Fix types of FE_DFL_ENV and FE_NOMASK_ENV (bug 14805).
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #14805]
4         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
5         fenv_t *.
6
7         [BZ #14801]
8         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
9         namespace for names of struct fields.
10         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
11         fenv_t fields.
12         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
13         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
14
15 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16
17         [BZ #3665]
18         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
19
20 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
21
22         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
23         PTR_DEMANGLE.
24
25         [BZ #5246]
26         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
27         PTR_DEMANGLE.
28
29 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
30
31         [BZ #14797]
32         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
33         definitely overflow as x * y not x * y + z.
34         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
35         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
36         * math/libm-test.inc (fma_test): Add more tests.
37         (fma_test_towardzero): Likewise.
38         (fma_test_downward): Likewise.
39         (fma_test_upward): Likewise.
40
41 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
42
43         [BZ #157]
44
45         * include/stub-tag.h: Remove file.
46         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
47         '#include' of it.
48         * manual/maint.texi (Porting): Don't reference it.
49         * Makerules ($(objpfx)stubs): Likewise.
50         * dirent/closedir.c: Don't include <stub-tag.h>.
51         * dirent/dirfd.c: Likewise.
52         * dirent/fdopendir.c: Likewise.
53         * dirent/getdents.c: Likewise.
54         * dirent/getdents64.c: Likewise.
55         * dirent/opendir.c: Likewise.
56         * dirent/readdir.c: Likewise.
57         * dirent/readdir64.c: Likewise.
58         * dirent/readdir64_r.c: Likewise.
59         * dirent/readdir_r.c: Likewise.
60         * dirent/rewinddir.c: Likewise.
61         * dirent/seekdir.c: Likewise.
62         * dirent/telldir.c: Likewise.
63         * gmon/profil.c: Likewise.
64         * grp/setgroups.c: Likewise.
65         * inet/if_index.c: Likewise.
66         * io/access.c: Likewise.
67         * io/chdir.c: Likewise.
68         * io/chmod.c: Likewise.
69         * io/chown.c: Likewise.
70         * io/close.c: Likewise.
71         * io/dup.c: Likewise.
72         * io/dup2.c: Likewise.
73         * io/dup3.c: Likewise.
74         * io/euidaccess.c: Likewise.
75         * io/faccessat.c: Likewise.
76         * io/fchdir.c: Likewise.
77         * io/fchmod.c: Likewise.
78         * io/fchmodat.c: Likewise.
79         * io/fchown.c: Likewise.
80         * io/fchownat.c: Likewise.
81         * io/fcntl.c: Likewise.
82         * io/flock.c: Likewise.
83         * io/fstatfs.c: Likewise.
84         * io/fstatfs64.c: Likewise.
85         * io/fstatvfs.c: Likewise.
86         * io/fstatvfs64.c: Likewise.
87         * io/futimens.c: Likewise.
88         * io/fxstat.c: Likewise.
89         * io/fxstat64.c: Likewise.
90         * io/fxstatat.c: Likewise.
91         * io/fxstatat64.c: Likewise.
92         * io/getcwd.c: Likewise.
93         * io/isatty.c: Likewise.
94         * io/lchmod.c: Likewise.
95         * io/lchown.c: Likewise.
96         * io/link.c: Likewise.
97         * io/linkat.c: Likewise.
98         * io/lseek.c: Likewise.
99         * io/lseek64.c: Likewise.
100         * io/lxstat64.c: Likewise.
101         * io/mkdir.c: Likewise.
102         * io/mkdirat.c: Likewise.
103         * io/mkfifo.c: Likewise.
104         * io/mkfifoat.c: Likewise.
105         * io/open.c: Likewise.
106         * io/open64.c: Likewise.
107         * io/openat.c: Likewise.
108         * io/openat64.c: Likewise.
109         * io/pipe.c: Likewise.
110         * io/pipe2.c: Likewise.
111         * io/poll.c: Likewise.
112         * io/posix_fadvise.c: Likewise.
113         * io/posix_fadvise64.c: Likewise.
114         * io/posix_fallocate.c: Likewise.
115         * io/posix_fallocate64.c: Likewise.
116         * io/read.c: Likewise.
117         * io/readlink.c: Likewise.
118         * io/readlinkat.c: Likewise.
119         * io/rmdir.c: Likewise.
120         * io/sendfile.c: Likewise.
121         * io/sendfile64.c: Likewise.
122         * io/statfs.c: Likewise.
123         * io/statfs64.c: Likewise.
124         * io/statvfs.c: Likewise.
125         * io/statvfs64.c: Likewise.
126         * io/symlink.c: Likewise.
127         * io/symlinkat.c: Likewise.
128         * io/ttyname.c: Likewise.
129         * io/ttyname_r.c: Likewise.
130         * io/umask.c: Likewise.
131         * io/unlink.c: Likewise.
132         * io/unlinkat.c: Likewise.
133         * io/utime.c: Likewise.
134         * io/utimensat.c: Likewise.
135         * io/write.c: Likewise.
136         * io/xmknod.c: Likewise.
137         * io/xmknodat.c: Likewise.
138         * io/xstat.c: Likewise.
139         * io/xstat64.c: Likewise.
140         * login/getpt.c: Likewise.
141         * login/grantpt.c: Likewise.
142         * login/unlockpt.c: Likewise.
143         * math/e_acoshl.c: Likewise.
144         * math/e_acosl.c: Likewise.
145         * math/e_asinl.c: Likewise.
146         * math/e_atan2l.c: Likewise.
147         * math/e_atanhl.c: Likewise.
148         * math/e_coshl.c: Likewise.
149         * math/e_expl.c: Likewise.
150         * math/e_fmodl.c: Likewise.
151         * math/e_gammal_r.c: Likewise.
152         * math/e_hypotl.c: Likewise.
153         * math/e_j0l.c: Likewise.
154         * math/e_j1l.c: Likewise.
155         * math/e_jnl.c: Likewise.
156         * math/e_lgammal_r.c: Likewise.
157         * math/e_log10l.c: Likewise.
158         * math/e_log2l.c: Likewise.
159         * math/e_logl.c: Likewise.
160         * math/e_powl.c: Likewise.
161         * math/e_rem_pio2l.c: Likewise.
162         * math/e_sinhl.c: Likewise.
163         * math/e_sqrtl.c: Likewise.
164         * math/fclrexcpt.c: Likewise.
165         * math/fedisblxcpt.c: Likewise.
166         * math/feenablxcpt.c: Likewise.
167         * math/fegetenv.c: Likewise.
168         * math/fegetexcept.c: Likewise.
169         * math/fegetround.c: Likewise.
170         * math/feholdexcpt.c: Likewise.
171         * math/fesetenv.c: Likewise.
172         * math/fesetround.c: Likewise.
173         * math/feupdateenv.c: Likewise.
174         * math/fgetexcptflg.c: Likewise.
175         * math/fraiseexcpt.c: Likewise.
176         * math/fsetexcptflg.c: Likewise.
177         * math/ftestexcept.c: Likewise.
178         * math/k_cosl.c: Likewise.
179         * math/k_rem_pio2l.c: Likewise.
180         * math/k_sinl.c: Likewise.
181         * math/k_tanl.c: Likewise.
182         * math/s_asinhl.c: Likewise.
183         * math/s_atanl.c: Likewise.
184         * math/s_cbrtl.c: Likewise.
185         * math/s_erfl.c: Likewise.
186         * math/s_expm1l.c: Likewise.
187         * math/s_log1pl.c: Likewise.
188         * math/s_tanhl.c: Likewise.
189         * misc/acct.c: Likewise.
190         * misc/brk.c: Likewise.
191         * misc/chflags.c: Likewise.
192         * misc/chroot.c: Likewise.
193         * misc/fchflags.c: Likewise.
194         * misc/fgetxattr.c: Likewise.
195         * misc/flistxattr.c: Likewise.
196         * misc/fremovexattr.c: Likewise.
197         * misc/fsetxattr.c: Likewise.
198         * misc/fsync.c: Likewise.
199         * misc/ftruncate.c: Likewise.
200         * misc/futimes.c: Likewise.
201         * misc/futimesat.c: Likewise.
202         * misc/getdomain.c: Likewise.
203         * misc/getdtsz.c: Likewise.
204         * misc/gethostid.c: Likewise.
205         * misc/gethostname.c: Likewise.
206         * misc/getloadavg.c: Likewise.
207         * misc/getpagesize.c: Likewise.
208         * misc/getsysstats.c: Likewise.
209         * misc/getxattr.c: Likewise.
210         * misc/gtty.c: Likewise.
211         * misc/ioctl.c: Likewise.
212         * misc/lgetxattr.c: Likewise.
213         * misc/listxattr.c: Likewise.
214         * misc/llistxattr.c: Likewise.
215         * misc/lremovexattr.c: Likewise.
216         * misc/lsetxattr.c: Likewise.
217         * misc/lutimes.c: Likewise.
218         * misc/madvise.c: Likewise.
219         * misc/mincore.c: Likewise.
220         * misc/mlock.c: Likewise.
221         * misc/mlockall.c: Likewise.
222         * misc/mmap.c: Likewise.
223         * misc/mprotect.c: Likewise.
224         * misc/msync.c: Likewise.
225         * misc/munlock.c: Likewise.
226         * misc/munlockall.c: Likewise.
227         * misc/munmap.c: Likewise.
228         * misc/preadv.c: Likewise.
229         * misc/preadv64.c: Likewise.
230         * misc/ptrace.c: Likewise.
231         * misc/pwritev.c: Likewise.
232         * misc/pwritev64.c: Likewise.
233         * misc/readv.c: Likewise.
234         * misc/reboot.c: Likewise.
235         * misc/remap_file_pages.c: Likewise.
236         * misc/removexattr.c: Likewise.
237         * misc/revoke.c: Likewise.
238         * misc/select.c: Likewise.
239         * misc/setdomain.c: Likewise.
240         * misc/setegid.c: Likewise.
241         * misc/seteuid.c: Likewise.
242         * misc/sethostid.c: Likewise.
243         * misc/sethostname.c: Likewise.
244         * misc/setregid.c: Likewise.
245         * misc/setreuid.c: Likewise.
246         * misc/setxattr.c: Likewise.
247         * misc/sstk.c: Likewise.
248         * misc/stty.c: Likewise.
249         * misc/swapoff.c: Likewise.
250         * misc/swapon.c: Likewise.
251         * misc/sync.c: Likewise.
252         * misc/syncfs.c: Likewise.
253         * misc/syscall.c: Likewise.
254         * misc/truncate.c: Likewise.
255         * misc/ualarm.c: Likewise.
256         * misc/usleep.c: Likewise.
257         * misc/ustat.c: Likewise.
258         * misc/utimes.c: Likewise.
259         * misc/vhangup.c: Likewise.
260         * misc/writev.c: Likewise.
261         * posix/_exit.c: Likewise.
262         * posix/alarm.c: Likewise.
263         * posix/execve.c: Likewise.
264         * posix/fexecve.c: Likewise.
265         * posix/fork.c: Likewise.
266         * posix/fpathconf.c: Likewise.
267         * posix/getaddrinfo.c: Likewise.
268         * posix/getegid.c: Likewise.
269         * posix/geteuid.c: Likewise.
270         * posix/getgid.c: Likewise.
271         * posix/getgroups.c: Likewise.
272         * posix/getlogin.c: Likewise.
273         * posix/getlogin_r.c: Likewise.
274         * posix/getpgid.c: Likewise.
275         * posix/getpid.c: Likewise.
276         * posix/getppid.c: Likewise.
277         * posix/getresgid.c: Likewise.
278         * posix/getresuid.c: Likewise.
279         * posix/getsid.c: Likewise.
280         * posix/getuid.c: Likewise.
281         * posix/glob64.c: Likewise.
282         * posix/nanosleep.c: Likewise.
283         * posix/pathconf.c: Likewise.
284         * posix/pause.c: Likewise.
285         * posix/posix_madvise.c: Likewise.
286         * posix/pread.c: Likewise.
287         * posix/pread64.c: Likewise.
288         * posix/pwrite.c: Likewise.
289         * posix/pwrite64.c: Likewise.
290         * posix/sched_getaffinity.c: Likewise.
291         * posix/sched_getp.c: Likewise.
292         * posix/sched_gets.c: Likewise.
293         * posix/sched_primax.c: Likewise.
294         * posix/sched_primin.c: Likewise.
295         * posix/sched_rr_gi.c: Likewise.
296         * posix/sched_setaffinity.c: Likewise.
297         * posix/sched_setp.c: Likewise.
298         * posix/sched_sets.c: Likewise.
299         * posix/sched_yield.c: Likewise.
300         * posix/setgid.c: Likewise.
301         * posix/setlogin.c: Likewise.
302         * posix/setpgid.c: Likewise.
303         * posix/setresgid.c: Likewise.
304         * posix/setresuid.c: Likewise.
305         * posix/setsid.c: Likewise.
306         * posix/setuid.c: Likewise.
307         * posix/sleep.c: Likewise.
308         * posix/spawni.c: Likewise.
309         * posix/sysconf.c: Likewise.
310         * posix/times.c: Likewise.
311         * posix/wait.c: Likewise.
312         * posix/wait3.c: Likewise.
313         * posix/wait4.c: Likewise.
314         * posix/waitpid.c: Likewise.
315         * resolv/gai_sigqueue.c: Likewise.
316         * resource/getpriority.c: Likewise.
317         * resource/getrlimit.c: Likewise.
318         * resource/getrusage.c: Likewise.
319         * resource/nice.c: Likewise.
320         * resource/setpriority.c: Likewise.
321         * resource/setrlimit.c: Likewise.
322         * resource/ulimit.c: Likewise.
323         * rt/aio_cancel.c: Likewise.
324         * rt/aio_fsync.c: Likewise.
325         * rt/aio_read.c: Likewise.
326         * rt/aio_sigqueue.c: Likewise.
327         * rt/aio_suspend.c: Likewise.
328         * rt/aio_write.c: Likewise.
329         * rt/clock_getres.c: Likewise.
330         * rt/clock_gettime.c: Likewise.
331         * rt/clock_nanosleep.c: Likewise.
332         * rt/clock_settime.c: Likewise.
333         * rt/lio_listio.c: Likewise.
334         * rt/mq_close.c: Likewise.
335         * rt/mq_getattr.c: Likewise.
336         * rt/mq_notify.c: Likewise.
337         * rt/mq_open.c: Likewise.
338         * rt/mq_receive.c: Likewise.
339         * rt/mq_send.c: Likewise.
340         * rt/mq_setattr.c: Likewise.
341         * rt/mq_timedreceive.c: Likewise.
342         * rt/mq_timedsend.c: Likewise.
343         * rt/mq_unlink.c: Likewise.
344         * rt/shm_open.c: Likewise.
345         * rt/shm_unlink.c: Likewise.
346         * rt/timer_create.c: Likewise.
347         * rt/timer_delete.c: Likewise.
348         * rt/timer_getoverr.c: Likewise.
349         * rt/timer_gettime.c: Likewise.
350         * rt/timer_settime.c: Likewise.
351         * setjmp/__longjmp.c: Likewise.
352         * setjmp/setjmp.c: Likewise.
353         * signal/kill.c: Likewise.
354         * signal/killpg.c: Likewise.
355         * signal/raise.c: Likewise.
356         * signal/sigaction.c: Likewise.
357         * signal/sigaltstack.c: Likewise.
358         * signal/sigblock.c: Likewise.
359         * signal/sigignore.c: Likewise.
360         * signal/sigintr.c: Likewise.
361         * signal/signal.c: Likewise.
362         * signal/sigpause.c: Likewise.
363         * signal/sigpending.c: Likewise.
364         * signal/sigqueue.c: Likewise.
365         * signal/sigreturn.c: Likewise.
366         * signal/sigset.c: Likewise.
367         * signal/sigsetmask.c: Likewise.
368         * signal/sigstack.c: Likewise.
369         * signal/sigsuspend.c: Likewise.
370         * signal/sigtimedwait.c: Likewise.
371         * signal/sigvec.c: Likewise.
372         * signal/sigwait.c: Likewise.
373         * signal/sigwaitinfo.c: Likewise.
374         * signal/sysv_signal.c: Likewise.
375         * socket/accept.c: Likewise.
376         * socket/accept4.c: Likewise.
377         * socket/bind.c: Likewise.
378         * socket/connect.c: Likewise.
379         * socket/getpeername.c: Likewise.
380         * socket/getsockname.c: Likewise.
381         * socket/getsockopt.c: Likewise.
382         * socket/isfdtype.c: Likewise.
383         * socket/listen.c: Likewise.
384         * socket/recv.c: Likewise.
385         * socket/recvfrom.c: Likewise.
386         * socket/recvmsg.c: Likewise.
387         * socket/send.c: Likewise.
388         * socket/sendmsg.c: Likewise.
389         * socket/sendto.c: Likewise.
390         * socket/setsockopt.c: Likewise.
391         * socket/shutdown.c: Likewise.
392         * socket/sockatmark.c: Likewise.
393         * socket/socket.c: Likewise.
394         * socket/socketpair.c: Likewise.
395         * stdio-common/ctermid.c: Likewise.
396         * stdio-common/cuserid.c: Likewise.
397         * stdio-common/remove.c: Likewise.
398         * stdio-common/rename.c: Likewise.
399         * stdio-common/renameat.c: Likewise.
400         * stdio-common/tempname.c: Likewise.
401         * stdlib/getcontext.c: Likewise.
402         * stdlib/makecontext.c: Likewise.
403         * stdlib/setcontext.c: Likewise.
404         * stdlib/swapcontext.c: Likewise.
405         * stdlib/system.c: Likewise.
406         * streams/fattach.c: Likewise.
407         * streams/fdetach.c: Likewise.
408         * streams/getmsg.c: Likewise.
409         * streams/getpmsg.c: Likewise.
410         * streams/putmsg.c: Likewise.
411         * streams/putpmsg.c: Likewise.
412         * sysdeps/unix/bsd/getpt.c: Likewise.
413         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
414         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
415         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
417         Likewise.
418         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
419         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
420         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
421         * sysvipc/msgctl.c: Likewise.
422         * sysvipc/msgget.c: Likewise.
423         * sysvipc/msgrcv.c: Likewise.
424         * sysvipc/msgsnd.c: Likewise.
425         * sysvipc/semctl.c: Likewise.
426         * sysvipc/semget.c: Likewise.
427         * sysvipc/semop.c: Likewise.
428         * sysvipc/semtimedop.c: Likewise.
429         * sysvipc/shmat.c: Likewise.
430         * sysvipc/shmctl.c: Likewise.
431         * sysvipc/shmdt.c: Likewise.
432         * sysvipc/shmget.c: Likewise.
433         * termios/tcdrain.c: Likewise.
434         * termios/tcflow.c: Likewise.
435         * termios/tcflush.c: Likewise.
436         * termios/tcgetattr.c: Likewise.
437         * termios/tcgetpgrp.c: Likewise.
438         * termios/tcsendbrk.c: Likewise.
439         * termios/tcsetattr.c: Likewise.
440         * termios/tcsetpgrp.c: Likewise.
441         * time/adjtime.c: Likewise.
442         * time/clock.c: Likewise.
443         * time/getitimer.c: Likewise.
444         * time/gettimeofday.c: Likewise.
445         * time/setitimer.c: Likewise.
446         * time/settimeofday.c: Likewise.
447         * time/stime.c: Likewise.
448         * time/time.c: Likewise.
449
450 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
451
452         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
453         /usr/old/bin.
454
455         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
456         instead of spaces.
457         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
458
459 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
460
461         [BZ #14796]
462         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
463         FE_TONEAREST before applying Dekker multiplication and Knuth
464         addition.  Clear inexact exceptions and check for exact zero
465         results afterwards.
466         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
467         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
468         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
469         * math/libm-test.inc (fma_test): Add more tests.
470         (fma_test_towardzero): Likewise.
471         (fma_test_downward): Likewise.
472         (fma_test_upward): Likewise.
473         * sysdeps/generic/math_private.h (default_libc_fesetround): New
474         function.
475         (libc_fesetround): New macro.
476         (libc_fesetroundf): Likewise.
477         (libc_fesetroundl): Likewise.
478         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
479         function.
480         (libc_fesetround_387): Likewise.
481         (libc_fesetroundf): New macro.
482         (libc_fesetround): Likewise.
483         (libc_fesetroundl): Likewise.
484         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
485         function.
486         (libc_fesetroundf): New macro.
487         (libc_fesetround): Likewise.
488         (libc_fesetroundl): Likewise.
489         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
490         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
491         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
492         libm_hidden_ver.
493         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
494         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
495         libm_hidden_def.
496         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
497         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
498         libm_hidden_ver.
499         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
500         libm_hidden_def.
501
502         [BZ #3439]
503         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
504         integer constant usable in #if and use that to give value to enum
505         constant.
506         (FE_DIVBYZERO): Likewise.
507         (FE_UNDERFLOW): Likewise.
508         (FE_OVERFLOW): Likewise.
509         (FE_INVALID): Likewise.
510         (FE_INVALID_SNAN): Likewise.
511         (FE_INVALID_ISI): Likewise.
512         (FE_INVALID_IDI): Likewise.
513         (FE_INVALID_ZDZ): Likewise.
514         (FE_INVALID_IMZ): Likewise.
515         (FE_INVALID_COMPARE): Likewise.
516         (FE_INVALID_SOFTWARE): Likewise.
517         (FE_INVALID_SQRT): Likewise.
518         (FE_INVALID_INTEGER_CONVERSION): Likewise.
519         (FE_TONEAREST): Likewise.
520         (FE_TOWARDZERO): Likewise.
521         (FE_UPWARD): Likewise.
522         (FE_DOWNWARD): Likewise.
523         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
524         (FE_DIVBYZERO): Likewise.
525         (FE_OVERFLOW): Likewise.
526         (FE_UNDERFLOW): Likewise.
527         (FE_INEXACT): Likewise.
528         (FE_TONEAREST): Likewise.
529         (FE_DOWNWARD): Likewise.
530         (FE_UPWARD): Likewise.
531         (FE_TOWARDZERO): Likewise.
532         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
533         (FE_UNDERFLOW): Likewise.
534         (FE_OVERFLOW): Likewise.
535         (FE_DIVBYZERO): Likewise.
536         (FE_INVALID): Likewise.
537         (FE_TONEAREST): Likewise.
538         (FE_TOWARDZERO): Likewise.
539         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
540         (FE_OVERFLOW): Likewise.
541         (FE_UNDERFLOW): Likewise.
542         (FE_DIVBYZERO): Likewise.
543         (FE_INEXACT): Likewise.
544         (FE_TONEAREST): Likewise.
545         (FE_TOWARDZERO): Likewise.
546         (FE_UPWARD): Likewise.
547         (FE_DOWNWARD): Likewise.
548         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
549         (FE_DIVBYZERO): Likewise.
550         (FE_OVERFLOW): Likewise.
551         (FE_UNDERFLOW): Likewise.
552         (FE_INEXACT): Likewise.
553         (FE_TONEAREST): Likewise.
554         (FE_DOWNWARD): Likewise.
555         (FE_UPWARD): Likewise.
556         (FE_TOWARDZERO): Likewise.
557
558 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
559
560         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
561
562 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
563
564         * scripts/cross-test-ssh.sh (command): Use newlines to separate
565         commands.  Quote $PWD.
566         (blacklist_exports): Don't use remove_newlines.  Replace "declare
567         -x" by "export".
568         (remove_newlines): Remove.
569
570 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
571
572         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
573         * stdlib/stdlib.h (atof): Moved to ...
574         * include/bits/stdlib-float.h: Here.  New file.
575         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
576         * stdlib/bits/stdlib-float.h: New file.
577         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
578         -mno-sse -mno-mmx.
579         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
580         <xmmintrin.h>.
581
582 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
583
584         * conform/conformtest.pl (@headers): Add fenv.h.
585         * conform/data/fenv.h-data: New file.
586         * include/fenv.h [_ISOMAC]: Disable all contents of file except
587         include of <math/fenv.h>.
588
589         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
590         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
591         && !UNIX98].  Enables tests for XOPEN2K8.
592         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
593         POSIX2008]: Likewise.
594
595         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
596         (struct rusage): Do not expect type or its members.
597
598         [BZ #3439]
599         * math/math.h (FP_NAN): Define macro to integer constant usable in
600         #if and use that to give value to enum constant.
601         (FP_INFINITE): Likewise.
602         (FP_ZERO): Likewise.
603         (FP_SUBNORMAL): Likewise.
604         (FP_NORMAL): Likewise.
605
606 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
607
608         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
609         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
610         arguments.
611
612 2012-11-02  Roland McGrath  <roland@hack.frob.com>
613
614         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
615         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
616         autoconf-time if not.
617         * configure.in: Remove AC_PREREQ.
618
619 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
620
621         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
622         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
623         of the internal implementation.
624
625 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
626
627         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
628         except include of <misc/sys/syslog.h>.
629
630 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
631
632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
633         function returns with a NULL context exit with zero.
634
635 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
636
637         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
638
639 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
640
641         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
642         (run_program_cmd): This.
643         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
644         (tst_langinfo): New variable.  Use it.
645
646 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
647
648         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
649         floating point opcodes.
650
651 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
652
653         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
654         variable.
655
656         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
657
658         * sysdeps/mach/hurd/powerpc: Remove directory.
659         * sysdeps/mach/powerpc: Likewise.
660
661 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
662
663         * scripts/check-local-headers.sh: Ignore c++ headers.
664
665 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
666
667         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
668         __libc_cleanup_region_start argument.
669
670 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
671
672         [BZ #14784]
673         [BZ #14785]
674         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
675         x * y using scaling, not as x * y + z.
676         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
677         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
678         * math/libm-test.inc (fma_test): Add more tests.
679         (fma_test_towardzero): Likewise.
680         (fma_test_downward): Likewise.
681         (fma_test_upward): Likewise.
682
683 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
684
685         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
686
687 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
688
689         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
690         New variable.
691
692 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
693
694         * rt/tst-shm.c (worker): Correct checking for mmap failure.
695
696 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
697
698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
699         Fix sort order.
700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
701         Likewise.
702
703 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
704
705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
706         Fix the order of the list for glibc 2.17.
707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
708         Likewise.
709
710 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
711
712         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
713
714 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
715
716         [BZ #14610]
717         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
718         for low part of x being zero before using __atanl (y).
719         * math/libm-test.inc (atan2_test): Add another test.
720
721         * manual/install.texi (Configuring and compiling): Document
722         general use of test-wrapper and test-wrapper-env.
723         * INSTALL: Regenerated.
724
725         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
726         (__fma): Do not extract and scale down low bits on after-rounding
727         systems when result rounded to normal precision would have normal
728         exponent.
729         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
730         (__fmal): Do not extract and scale down low bits on after-rounding
731         systems when result rounded to normal precision would have normal
732         exponent.
733         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
734         (__fmal): Do not extract and scale down low bits on after-rounding
735         systems when result rounded to normal precision would have normal
736         exponent.
737         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
738         macro.
739         (fma_test): Add more tests.
740         (fma_test_towardzero): Likewise.
741         (fma_test_downward): Likewise.
742         (fma_test_upward): Likewise.
743
744 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
745
746         * sysdeps/i386/tininess.h: Renamed to ...
747         * sysdeps/x86/tininess.h: This.
748         * sysdeps/x86_64/tininess.h: Removed.
749
750 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
751
752         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
753         input.  Use $(build-program-cmd).
754         ($(objpfx)tst-array1-static.out): Likewise.
755         ($(objpfx)tst-array2.out): Likewise.
756         ($(objpfx)tst-array3.out): Likewise.
757         ($(objpfx)tst-array4.out): Likewise.
758         ($(objpfx)tst-array5.out): Likewise.
759         ($(objpfx)tst-array5-static.out): Likewise.
760
761 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
762
763         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
764         if defined.
765
766         * nss/nsswitch.h (nss_interface_function): Provide new
767         macro for use with NSS functions.
768         * grp/initgroups.c: Use new macro.
769         * nss/getXXbyYY.c: Likewise.
770         * nss/getXXbyYY_r.c: Likewise.
771         * nss/getXXent.c: Likewise.
772         * nss/getXXent_r.c: Likewise.
773         * sysdeps/posix/getaddrinfo.c: Likewise.
774
775 2012-10-30  Andreas Jaeger  <aj@suse.de>
776
777         * po/ru.po: Update Russion translation from translation project.
778
779 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
780
781         [BZ #14152]
782         [BZ #14783]
783         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
784         result and shift together with sticky bit instead of replicating
785         round-to-nearest rounding.
786         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
787         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
788         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
789         missing underflow exceptions.
790         (fma_test_towardzero): Add more tests.
791         (fma_test_downward): Likewise.
792         (fma_test_upward): Likewise.
793
794         [BZ #14047]
795         * sysdeps/generic/tininess.h: New file.
796         * sysdeps/i386/tininess.h: Likewise.
797         * sysdeps/sh/tininess.h: Likewise.
798         * sysdeps/x86_64/tininess.h: Likewise.
799         * stdlib/tst-strtod-underflow.c: Likewise.
800         * stdlib/tst-tininess.c: Likewise.
801         * stdlib/strtod_l.c: Include <tininess.h>.
802         (round_and_return): Do not set errno for exact underflow cases.
803         Force an underflow exception when setting errno for underflow.
804         Determine underflow based on rounding to normal precision if
805         TININESS_AFTER_ROUNDING.
806         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
807         ERANGE for exact underflow cases.
808         * stdlib/Makefile (tests): Add tst-tininess and
809         tst-strtod-underflow.
810         ($(objpfx)tst-tininess): Use $(link-libm).
811         ($(objpfx)tst-strtod-underflow): Likewise.
812
813 2012-10-30  Andreas Jaeger  <aj@suse.de>
814
815         [BZ#14767]
816         * elf/Makefile (tests): Remove conditional for have-initfini-array
817         since this is now always required and the variable does not exist
818         anymore.
819         (tests-static): Likewise.
820         (modules-names): Likewise.
821
822         * po/eo.po: Add Esperanto translation from translation project.
823
824         * elf/tst-array1.c (fini_array): Make writeable so that it can be
825         merged with constructor/destructor.
826         (init_array): Likewise.
827         * elf/tst-array2dep.c (fini_array): Likewise.
828         (init_array): Likewise.
829
830 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
831
832         * manual/message.texi: Delete @cartouche tags.
833
834 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
835
836         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
837         EOPNOTSUPP.
838         * sysdeps/mach/hurd/fsync.c: Likewise.
839
840         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
841         [_POSIX_REALTIME_SIGNALS]: Change condition to
842         [_POSIX_REALTIME_SIGNALS > 0].
843
844 2012-10-27  Andreas Jaeger  <aj@suse.de>
845
846         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
847         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
848         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
849         [__WORDSIZE != 64]: Likewise.
850
851 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
852
853         *  iconvdata/tst-table.sh: Remove ${SHELL}.
854         *  iconvdata/tst-tables.sh: Likewise.
855
856 2012-10-25  David S. Miller  <davem@davemloft.net>
857
858         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
859         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
860         of strtoull.
861
862         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
863         ifunc-impl-list.c
864         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
865         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
866         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
867         file.
868
869 2012-10-25  Roland McGrath  <roland@hack.frob.com>
870
871         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
872         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
873         __getdirentries.
874
875 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
876             Jim Blandy  <jimb@codesourcery.com>
877
878         * scripts/cross-test-ssh.sh: New file.
879         * manual/install.texi (Configuring and compiling): Document use of
880         cross-test-ssh.sh.
881         * INSTALL: Regenerated.
882
883 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
884
885         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
886         EOPNOTSUPP.
887
888 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
889
890         * Makeconfig (run-program-prefix): Fix comment.
891
892 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
893             Jim Blandy  <jimb@codesourcery.com>
894
895         * Makeconfig (test-wrapper): New variable,
896         (test-wrapper-env): Likewise.
897         [$(cross-compiling) = yes && $(test-wrapper) != ""]
898         (run-built-tests): Define to yes.
899         (run-program-prefix): Use $(test-wrapper).
900         (built-program-cmd): Likewise.
901         * Rules (make-test-out): Use $(test-wrapper-env) and
902         $(host-built-program-cmd).
903         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
904         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
905         tst-pathopt.sh.
906         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
907         $(test-wrapper-env) to tst-rtld-load-self.sh.
908         ($(objpfx)order2.out): Use $(test-wrapper).
909         ($(objpfx)tst-initorder.out): Likewise.
910         ($(objpfx)tst-initorder2.out): Likewise.
911         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
912         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
913         (test_wrapper_env): New variable.  Use it to run ld.so.
914         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
915         Use it to run ld.so.
916         (test_wrapper_env): Likewise.
917         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
918         $(test-wrapper) to run-iconv-test.sh.
919         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
920         (ICONV): Use $test_wrapper.
921         * posix/Makefile ($(objpfx)globtest.out): Pass
922         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
923         globtest.sh, not $(run-program-prefix).
924         * posix/globtest.sh (run_via_rtld_prefix): New variable.
925         (test_wrapper): Likewise.
926         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
927         set together with run_via_rtld_prefix.
928         (run_program_prefix): Define in terms of test_wrapper and
929         run_via_rtld_prefix.
930
931 2012-10-24  Roland McGrath  <roland@hack.frob.com>
932
933         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
934         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
935         Targets removed.
936
937         [BZ #14743]
938         * include/time.h: Remove librt_hidden_proto (clock_gettime).
939         Declare __clock_getres, __clock_gettime, __clock_settime,
940         __clock_nanosleep, and __clock_getcpuclockid.
941         * rt/clock_gettime.c: Define __clock_gettime as an alias.
942         Remove librt_hidden_def (clock_gettime).
943         * sysdeps/unix/clock_gettime.c: Likewise.
944         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
945         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
946         * rt/clock_getres.c: Define __clock_getres as an alias.
947         * sysdeps/posix/clock_getres.c: Likewise.
948         * rt/clock_settime.c: Define __clock_settime as an alias.
949         * sysdeps/unix/clock_settime.c: Likewise.
950         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
951         * sysdeps/unix/clock_nanosleep.c: Likewise.
952         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
953         * rt/clock-compat.c: New file.
954         * rt/Makefile (librt-routines): Add clock-compat and move
955         $(clock-routines) to ...
956         (routines): ... here, new variable.
957         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
958         Don't add get_clockfreq here.
959         * rt/Versions (libc: GLIBC_2.17): New version set.
960         Add clock_* symbols here.
961         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
962         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
963         (GLIBC_2.17): Add clock_* symbols.
964         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
965         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
966         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
968         Likewise.
969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
970         Likewise.
971         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
972         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
973         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
974         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
975         * NEWS: Mention the move.
976
977         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
978         Use __open, __read, __close rather than their public counterparts.
979         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
980         (__get_clockfreq_via_cpuinfo): Likewise.
981         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
982         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
983
984         * config.h.in (HAVE_IFUNC): New #undef.
985         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
986         was successful.
987         * configure: Regenerated.
988
989 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
990
991         * configure.in: Move READELF check to start of file.
992         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
993         libc_cv_asm_gnu_indirect_function in the process.
994         * configure: Regenerated.
995
996 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
997
998         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
999         send the output to /dev/null.
1000         (libc_cv_cc_with_libunwind): Likewise.
1001         (libc_cv_as_noexecstack): Likewise.
1002         * configure: Regenerate.
1003
1004 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1005
1006         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1007
1008         * posix/globtest.sh (TMPDIR): Do not set.
1009         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1010         (testout): Likewise.
1011
1012 2012-10-24  Andreas Jaeger  <aj@suse.de>
1013
1014         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1015         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1016         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1017         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1018         posix_fadvise64, posix_fallocate64.
1019
1020         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1021         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1022         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1023         Likewise.
1024         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1025         Likewise.
1026         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1027
1028         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1029         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1030         <bits/fcntl-linux.h>.
1031         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1032
1033         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1034         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1035         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1036         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1037         [__WORDSIZE != 64]: Likewise.
1038
1039 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1040
1041         * Makeconfig (run-built-tests): New variable.
1042         * Rules [$(cross-compiling) = yes]: Change condition to
1043         [$(run-built-tests) = no].
1044         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1045         to [$(run-built-tests) = yes].
1046         * elf/Makefile [$(cross-compiling) = no]: Likewise
1047         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1048         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1049         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1050         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1051         * io/Makefile [$(cross-compiling) = no]: Likewise.
1052         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1053         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1054         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1055         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1056         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1057         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1058         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1059         * string/Makefile [$(cross-compiling) = no]: Likewise.
1060
1061         * posix/Makefile ($(objpfx)globtest.out): Pass
1062         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1063         $(rtld-installed-name).
1064         * posix/globtest.sh (elf_objpfx): Remove variable.
1065         (rtld_installed_name): Likewise.
1066         (library_path): Likewise.
1067         (run_program_prefix): New variable.  Use for running globtest
1068         binary.
1069
1070 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1071             Joseph Myers  <joseph@codesourcery.com>
1072
1073         * Makeconfig (host-built-program-cmd): New variable.
1074         * elf/Makefile (tst-stackguard1-ARGS): Use
1075         $(host-built-program-cmd).
1076         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1077         (tst-spawn-ARGS): Likewise.
1078         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1079
1080 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1081             Jim Blandy  <jimb@codesourcery.com>
1082
1083         * Makeconfig (run-via-rtld-prefix): New variable.
1084         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1085         (built-program-cmd): Likewise.
1086
1087 2012-10-22  Andreas Jaeger  <aj@suse.de>
1088
1089         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1090         __O_RSYNC if it exists, otherwise to O_SYNC.
1091
1092 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1093             Joseph Myers  <joseph@codesourcery.com>
1094
1095         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1096         /dev/null.
1097         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1098         from /dev/null
1099         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1100         /dev/null.
1101
1102 2012-10-22  Andreas Jaeger  <aj@suse.de>
1103
1104         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1105         Define always.
1106         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1107
1108         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1109         bits/fcntl-linux.h.
1110
1111         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1112         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1113
1114         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1115         to __O_LARGEFILE.
1116         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1117         to __O_LARGEFILE.
1118
1119 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1120             Joseph Myers  <joseph@codesourcery.com>
1121
1122         * config.make.in (NM): New variable.
1123
1124 2012-10-21  Andreas Jaeger  <aj@suse.de>
1125
1126         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1127         definitions and declarations that are provided by
1128         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1129
1130 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1131
1132         [BZ #14683]
1133         * elf/Makefile (tests-static): Add tst-leaks1-static.
1134         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1135         ($(objpfx)tst-leaks1-static): New rule.
1136         ($(objpfx)tst-leaks1-static-mem): Likewise.
1137         (tst-leaks1-static-ENV): New macro.
1138         * elf/dl-open.c (dl_open_worker): Check the main application
1139         only if SHARED is defined.
1140         * elf/tst-leaks1-static.c: New file.
1141
1142 2012-10-20  Andreas Jaeger  <aj@suse.de>
1143
1144         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1145         generic values for Linux.
1146         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1147         and declarations that are provided by <bits/fcntl-linux.h> and
1148         include <bits/fcntl-linux.h>.
1149         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1150         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1151
1152 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1153
1154         * io/fcntl.h: Move include of <bits/types.h> to the top and
1155         include it unconditionally.
1156
1157 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1158
1159         * wcsmbs/Makefile (tests-ifunc): New variable.
1160         (tests): Add $(tests-ifunc).
1161         * wcsmbs/test-wcschr-ifunc.c: New file.
1162         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1163         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1164         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1165         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1166         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1167
1168         * string/Makefile (tests-ifunc): New variable.
1169         (tests): Add $(tests-ifunc).
1170         * string/test-memccpy.c (TEST_NAME): New macro.
1171         * string/test-memchr.c (TEST_NAME): Likewise.
1172         * string/test-memcmp.c (TEST_NAME): Likewise.
1173         * string/test-memcpy.c (TEST_NAME): Likewise.
1174         * string/test-memmem.c (TEST_NAME): Likewise.
1175         * string/test-memmove.c (TEST_NAME): Likewise.
1176         * string/test-memset.c (TEST_NAME): Likewise.
1177         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1178         * string/test-stpcpy.c (TEST_NAME): Likewise.
1179         * string/test-stpncpy.c (TEST_NAME): Likewise.
1180         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1181         * string/test-strcasestr.c (TEST_NAME): Likewise.
1182         * string/test-strcat.c (TEST_NAME): Likewise.
1183         * string/test-strchr.c (TEST_NAME): Likewise.
1184         * string/test-strcmp.c(TEST_NAME): Likewise.
1185         * string/test-strcpy.c (TEST_NAME): Likewise.
1186         * string/test-strcspn.c (TEST_NAME): Likewise.
1187         * string/test-strlen.c (TEST_NAME): Likewise.
1188         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1189         * string/test-strncmp.c (TEST_NAME): Likewise.
1190         * string/test-strncpy.c (TEST_NAME): Likewise.
1191         * string/test-strnlen.c (TEST_NAME): Likewise.
1192         * string/test-strpbrk.c (TEST_NAME): Likewise.
1193         * string/test-strrchr.c (TEST_NAME): Likewise.
1194         * string/test-strspn.c (TEST_NAME): Likewise.
1195         * string/test-strstr.c (TEST_NAME): Likewise.
1196         * string/test-bcopy-ifunc.c: New file.
1197         * string/test-bzero-ifunc.c: Likewise.
1198         * string/test-memccpy-ifunc.c: Likewise.
1199         * string/test-memchr-ifunc.c: Likewise.
1200         * string/test-memcmp-ifunc.c: Likewise.
1201         * string/test-memcpy-ifunc.c: Likewise.
1202         * string/test-memmem-ifunc.c: Likewise.
1203         * string/test-memmove-ifunc.c: Likewise.
1204         * string/test-mempcpy-ifunc.c: Likewise.
1205         * string/test-memset-ifunc.c: Likewise.
1206         * string/test-rawmemchr-ifunc.c: Likewise.
1207         * string/test-stpcpy-ifunc.c: Likewise.
1208         * string/test-stpncpy-ifunc.c: Likewise.
1209         * string/test-strcasecmp-ifunc.c: Likewise.
1210         * string/test-strcasestr-ifunc.c: Likewise.
1211         * string/test-strcat-ifunc.c: Likewise.
1212         * string/test-strchr-ifunc.c: Likewise.
1213         * string/test-strchrnul-ifunc.c: Likewise.
1214         * string/test-strcmp-ifunc.c: Likewise.
1215         * string/test-strcpy-ifunc.c: Likewise.
1216         * string/test-strcspn-ifunc.c: Likewise.
1217         * string/test-strlen-ifunc.c: Likewise.
1218         * string/test-strncasecmp-ifunc.c: Likewise.
1219         * string/test-strncat-ifunc.c: Likewise.
1220         * string/test-strncmp-ifunc.c: Likewise.
1221         * string/test-strncpy-ifunc.c: Likewise.
1222         * string/test-strnlen-ifunc.c: Likewise.
1223         * string/test-strpbrk-ifunc.c: Likewise.
1224         * string/test-strrchr-ifunc.c: Likewise.
1225         * string/test-strspn-ifunc.c: Likewise.
1226         * string/test-strstr-ifunc.c: Likewise.
1227
1228         * debug/Makefile (tests-ifunc): New variable.
1229         (tests): Add $(tests-ifunc).
1230         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1231         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1232         * debug/test-stpcpy_chk-ifunc.c: New file.
1233         * debug/test-strcpy_chk-ifunc.c: Likewise.
1234
1235 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1236
1237         [BZ #13601]
1238         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1239         header is not read in.
1240
1241 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1242
1243         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1244         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1245         directly.  Pass built executable to script as
1246         $(built-program-cmd).
1247         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1248         $testprogram without using LD_LIBRARY_PATH and $ldso.
1249
1250         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1251         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1252         $(rtld-installed-name).
1253         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1254         (rtld_installed_name): Likewise.
1255         (library_path): Likewise.
1256         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1257         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1258         $(run-program-prefix) to tst-tables.sh.
1259         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1260         it to run tst-table-from and tst-table-to.
1261         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1262         Pass it to tst-table.sh.
1263         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1264         $(run-program-prefix) to tst-gettext.sh.
1265         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1266         tst-translit.sh.
1267         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1268         tst-gettext2.sh.
1269         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1270         to run tst-gettext.
1271         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1272         to run tst-gettext2.
1273         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1274         to run tst-translit.
1275         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
1276         $(run-program-prefix) to tst-mtrace.sh.
1277         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
1278         to run tst-mtrace.
1279         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
1280         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
1281         $(rtld-installed-name).
1282         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
1283         (rtld_installed_name): Likewise.
1284         (run_program_prefix): New variable.  Use it to run wordexp-test.
1285
1286         * Makeconfig (ARCH): Remove all definitions.
1287         (machine): Likewise.
1288         [ARCH]: Remove conditional code.
1289         [!objdir]: Give error.
1290         [!objdir] (objpfx): Remove.
1291         [!objdir] (common-objpfx): Likewise.
1292         [!objdir] (common-objdir): Likewise.
1293         * configure.in (config_makefile): Remove.  Hardcode Makefile in
1294         AC_CONFIG_FILES call.
1295         * configure: Regenerated.
1296
1297         [BZ #13888]
1298         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
1299         or TMPDIR.
1300         (testout): Likewise.
1301
1302         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
1303         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
1304         $(rtld-installed-name).
1305         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
1306         (rtld_installed_name): Likwise.
1307         (runit): Remove function.
1308         (run_getconf): New variable,  Use it for running getconf binary.
1309
1310 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
1311
1312         [BZ #14716]
1313         * string/test-memmem.c (check_result): New function.
1314         (do_one_test): Use it.
1315         (check1): New function.
1316         (test_main): Use it.
1317
1318 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1319
1320         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
1321
1322 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
1323
1324         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
1325         (_G_LSEEK64): Likewise.
1326         (_G_MMAP64): Likewise.
1327         (_G_FSTAT64): Likewise.
1328         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
1329         (_G_LSEEK64): Likewise.
1330         (_G_MMAP64): Likewise.
1331         (_G_FSTAT64): Likewise.
1332         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
1333         unconditional.  Call __mmap64 directly.
1334         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
1335         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
1336         __lseek64 directly.
1337         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
1338         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
1339         __mmap64 directly.
1340         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
1341         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1342         __lseek64 directly.
1343         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
1344         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1345         __lseek64 directly.
1346         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
1347         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
1348         __lseek64 directly.
1349         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
1350         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
1351         __fxstat64 directly.
1352         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
1353         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
1354         unconditional.
1355         (freopen64) [!_G_OPEN64]: Remove conditional code.
1356         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
1357         unconditional.
1358         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
1359         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
1360         unconditional.
1361         (ftello64) [!_G_LSEEK64]: Remove conditional code.
1362         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
1363         unconditional.
1364         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1365         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
1366         unconditional.
1367         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
1368         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
1369         unconditional.
1370         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1371         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
1372         unconditional.
1373         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1374         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
1375         unconditional.
1376         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1377
1378 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1379
1380         [BZ #12140]
1381         * manual/memory.texi (Malloc Tunable Parameters): Add note
1382         about free list pointers overwriting some perturb bytes.
1383         Wording suggested by Roland McGrath.
1384
1385 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
1386
1387         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
1388         (lgamma_test): Likewise.
1389         (tgamma_test): Likewise.
1390
1391 2012-10-16  Florian Weimer  <fweimer@redhat.com>
1392
1393         [BZ #14700]
1394         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
1395         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
1396
1397 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
1398
1399         * NEWS: Mention BZ #14716.
1400         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
1401         when removing AVAILABLE1_USES_J macro.
1402
1403 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1404
1405         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
1406         (__bswap_64): __uint64_t for unsigned 64-bit int.
1407
1408 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
1409
1410         * include/string.h (memmem): Declare libc hidden alias.
1411         * string/memmem.c (memmem): Define libc hidden alias.
1412         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
1413         __read, __close instead of open, read, close.
1414
1415 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1416
1417         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
1418         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
1419         global and hidden.
1420         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
1421         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
1422         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
1423         Likewise.
1424         (__rawmemchr_sse2): Likewise.
1425         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
1426         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
1427         (__strchr_sse2): Likewise.
1428         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
1429         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
1430         (__strcasecmp_sse2): Likewise.
1431         (__strncasecmp_sse2): Likewise.
1432         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
1433         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
1434         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
1435         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
1436         (__strrchr_sse2): Likewise.
1437         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
1438         ifunc-impl-list.c.
1439         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
1440         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
1441         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1442         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1443         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
1444         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
1445         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1446         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1447         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1448         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
1449         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
1450         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
1451         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
1452         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
1453         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1454         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1455         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1456         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1457         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1458         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
1459         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
1460         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
1461         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
1462         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1463         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
1464         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1465         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1466         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1467         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
1468         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
1469
1470         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
1471         global and hidden.
1472         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
1473         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
1474         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
1475         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
1476         Likewise.
1477         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
1478         Likewise.
1479         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
1480         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
1481         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
1482         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
1483         ifunc-impl-list.c.
1484         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
1485         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
1486         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
1487         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
1488         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
1489         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
1490         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
1491         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
1492         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
1493         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
1494         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
1495         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
1496         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
1497         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
1498         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
1499         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1500         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
1501         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
1502         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
1503         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
1504         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
1505         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
1506         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
1507         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1508         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1509         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
1510         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
1511         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
1512         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
1513         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
1514         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
1515         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
1516         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1517         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
1518         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
1519         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
1520         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
1521         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
1522         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
1523         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
1524         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
1525
1526         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
1527         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
1528         * include/ifunc-impl-list.h: New file.
1529         * misc/ifunc-impl-list.c: Likewise.
1530         * misc/Makefile (routines): Add ifunc-impl-list.
1531         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
1532         * string/test-string.h: Include <ifunc-impl-list.h>.
1533         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
1534         impl_array): New variables.
1535         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
1536         are defined.
1537         (test_init): Call __libc_ifunc_impl_list to initialize
1538         func_list if TEST_IFUNC and TEST_NAME are defined.
1539
1540         * string/Makefile (strop-tests): Add bcopy and bzero.
1541         * string/test-bcopy.c: New file.
1542         * string/test-bzero.c: Likewise.
1543         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
1544         defined.
1545         * string/test-memset.c: Support bzero test if TEST_BZERO is
1546         defined.
1547         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
1548         __libc_memmove.
1549         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
1550         __libc_memset.
1551         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
1552         of memset.
1553
1554 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
1555
1556         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
1557         * configure: Regenerated.
1558
1559         * Makeconfig (+link-static-before-libc): Don't include
1560         $(link-static-libc).
1561
1562         * libio/libio.h (_IO_pos_t): Remove.
1563
1564 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1565
1566         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
1567         McGrath.
1568
1569 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1570
1571         * crypt/crypt-entry.c: Include fips-private.h.
1572         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
1573         * crypt/md5c-test.c (main): Tolerate disabled MD5.
1574         * sysdeps/unix/sysv/linux/fips-private.h: New file.
1575         * sysdeps/generic/fips-private.h: New file, dummy fallback.
1576
1577 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1578
1579         * crypt/crypt-private.h: Include stdbool.h.
1580         (_ufc_setup_salt_r): Return bool.
1581         * crypt/crypt-entry.c: Include errno.h.
1582         (__crypt_r): Return NULL with EINVAL for bad salt.
1583         * crypt/crypt_util.c (bad_for_salt): New.
1584         (_ufc_setup_salt_r): Check that salt is long enough and within
1585         the specified alphabet.
1586         * crypt/badsalttest.c: New file.
1587         * crypt/Makefile (tests): Add it.
1588         ($(objpfx)badsalttest): New.
1589
1590 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1591
1592         * NEWS: Add entry for BZ #14602.
1593
1594 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1595
1596         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
1597         type-generic.
1598         * math/libm-test.inc: Update comment listing what functions and
1599         macros are tested.
1600         (isgreater_test): New function.
1601         (isgreaterequal_test): Likewise.
1602         (isless_test): Likewise.
1603         (islessequal_test): Likewise.
1604         (islessgreater_test): Likewise.
1605         (isunordered_test): Likewise.
1606         (main): Call the new functions.
1607
1608 2012-10-09  Roland McGrath  <roland@hack.frob.com>
1609
1610         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
1611         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
1612         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
1613         * sysdeps/i386/configure: Regenerated.
1614         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
1615         * sysdeps/mach/configure: Regenerated.
1616         * sysdeps/mach/hurd/configure: Regenerated.
1617         * sysdeps/powerpc/configure: Regenerated.
1618         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1619         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1620         * sysdeps/s390/s390-32/configure: Regenerated.
1621         * sysdeps/s390/s390-64/configure: Regenerated.
1622         * sysdeps/sh/configure: Regenerated.
1623         * sysdeps/sparc/configure: Regenerated.
1624         * sysdeps/unix/sysv/linux/configure: Regenerated.
1625         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
1626         * sysdeps/x86_64/configure: Regenerated.
1627
1628         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
1629         defined.  Don't check if MAP is NULL.
1630
1631 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1632
1633         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
1634         (_G_stat64): Likewise.
1635         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
1636         (_G_stat64): Likewise.
1637         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
1638         instead of struct _G_stat64.
1639         * libio/fileops.c (mmap_remap_check): Likewise.
1640         (decide_maybe_mmap): Likewise.
1641         (_IO_new_file_seekoff): Likewise.
1642         (_IO_file_stat): Likewise.
1643         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
1644         _G_off64_t.
1645         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
1646         instead of struct _G_stat64.
1647         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1648
1649 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
1650
1651         [BZ #14602]
1652         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1653         Replace with ...
1654         (CHECK_EOL): New macro.
1655         (two_way_short_needle): Check beginning of haystack for EOL.  Use
1656         CHECK_EOL.
1657         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1658         Replace with CHECK_EOL.
1659         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1660         Replace with CHECK_EOL.
1661
1662 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1663
1664         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1665         type-generic.
1666         * math/libm-test.inc: Update comment listing what functions and
1667         macros are tested.
1668         (finite_test): New function.
1669         (isinf_test): Likewise.
1670         (isnan_test): Likewise.
1671         (fpclassify_test): Test subnormal input.
1672         (isfinite_test): Likewise.
1673         (isnormal_test): Likewise.
1674         (main): Call the new functions.
1675
1676 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1677
1678         [BZ #14660]
1679         * Makerules (%.dynsym): Force C locale when running
1680         $(OBJDUMP) --dynamic-syms.
1681
1682 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1683
1684         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1685         <stdint.h>.
1686
1687 2012-10-06  David S. Miller  <davem@davemloft.net>
1688
1689         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1690         upper 32-bits of the length value in %o2 since we use branch-on-register
1691         tests which consider the entire 64-bit register.
1692
1693 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1694
1695         * string/test-strstr.c (check2): Add a test for page boundary.
1696
1697 2012-10-05  David S. Miller  <davem@davemloft.net>
1698
1699         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1700         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1701         file.
1702         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1703         sysdep_routines.
1704         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1705         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1706         and bzero when HWCAP_SPARC_CRYPTO is present.
1707
1708 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1709
1710         [BZ #14602]
1711         * string/test-strstr.c (check2): New function.
1712         (test_main): Call check2.
1713
1714         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1715         and bug-strchr1.
1716         * string/bug-strcasestr1.c (do_test): Moved to ...
1717         * string/test-strcasestr.c (check1): Here.  New function.
1718         (do_one_test): Break out result checking code into ...
1719         (check_result): This.  New function.
1720         (do_one_test): Call check_result.
1721         (test_main): Call check1.
1722         * string/bug-strchr1.c (do_test): Moved to ...
1723         * string/test-strchr.c (check1): Here.  New function.
1724         (do_one_test): Break out result checking code into ...
1725         (check_result): This.  New function.
1726         (do_one_test): Call check_result.
1727         (test_main): Call check1.
1728         * string/bug-strstr1.c (main): Moved to ...
1729         * string/test-strchr.c (check1): Here.  New function.
1730         (do_one_test): Break out result checking code into ...
1731         (check_result): This.  New function.
1732         (do_one_test): Call check_result.
1733         (test_main): Call check1.
1734         * string/bug-strcasestr1.c: Removed.
1735         * string/bug-strchr1.c: Likewise.
1736         * string/bug-strstr1.c: Likewise.
1737
1738         * elf/Makefile (dl-routines): Add hwcaps.
1739         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1740         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1741         (_dl_important_hwcaps): Moved to ...
1742         * elf/dl-hwcaps.c: Here.  New file.
1743         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1744
1745         [BZ #14557]
1746         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1747         if IS_IN_rtld isn't defined.
1748
1749         * elf/dl-support.c (_dl_sysinfo_map): New.
1750         Include "get-dynamic-info.h" and "setup-vdso.h".
1751         (_dl_non_dynamic_init): Call setup_vdso.
1752         * elf/dynamic-link.h: Don't include <assert.h>.
1753         (elf_get_dynamic_info): Moved to ...
1754         * elf/get-dynamic-info.h: Here.  New file.
1755         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1756         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1757         * elf/setup-vdso.h: Here.  New file.
1758         * elf/rtld.c: Include "setup-vdso.h".
1759         (dl_main): Call setup_vdso.
1760
1761 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1762
1763         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1764         creal in comment listing functions tested.  List finite, isinf,
1765         isnan, isless, islessequal, isgreater, isgreaterequal,
1766         islessgreater, isunordered, lgamma_r and pow10 as functions and
1767         macros not tested.  Mention which functions not tested are aliases
1768         for other functions.  Fix typo.  Note that signs of NaNs are not
1769         tested.
1770
1771         * scripts/config.guess: Update from config.git.
1772         * scripts/config.sub: Likewise.
1773
1774 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1775
1776         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1777         * misc/madvise.c (madvise): Renamed to __madvise.
1778         Make madvise a weak alias.
1779         * include/sys/mman.h: Declare __madvise.
1780         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1781         * sysdeps/unix/syscalls.list
1782         (madvise): Make __madvise the strong name, and madvise a weak alias.
1783         * sysdeps/unix/sysv/linux/syscalls.list
1784         (madvise, mmap): Remove redundant entries.
1785         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1786         * malloc/malloc.c (mtrim): Likewise.
1787         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1788
1789 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1790
1791         * sysdeps/mach/hurd/dl-cache.c: File removed.
1792         * config.h.in (USE_LDCONFIG): New #undef.
1793         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1794         * configure: Regenerated.
1795         * elf/Makefile (dl-routines): Add dl-cache only under
1796         [$(use-ldconfig) = yes].
1797         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1798         cache on [USE_LDCONFIG].
1799         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1800         [USE_LDCONFIG].
1801         * elf/rtld.c (dl_main): Likewise.
1802
1803 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1804
1805         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1806         _SC_LEVEL4_CACHE_LINESIZE.
1807
1808 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1809
1810         * sysdeps/unix/bsd/confstr.h: File removed.
1811
1812 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1813
1814         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1815         sys/sdt-config.h.
1816
1817 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1818
1819         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1820         Make 'mapoff' field ElfW(Off) rather than off_t.
1821
1822 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1823
1824         * nscd/Makefile: Remove nscd-cflags and all its users.
1825         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1826         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1827
1828         [BZ #10631]
1829         * malloc.c (malloc_printerr): Clarify error message.
1830
1831 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1832
1833         [BZ #14648]
1834         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1835         Set bit_FMA_Usable if FMA is supported.
1836         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1837         macro.
1838         (bit_FMA4_Usable): Updated.
1839         (index_FMA_Usable): New macro.
1840         (CPUID_FMA): Likewise
1841         (HAS_FMA): Defined with bit_FMA_Usable.
1842
1843 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1844
1845         * bits/types.h (__swblk_t): Type removed.
1846         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1847         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1848         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1849         (__SWBLK_T_TYPE): Likewise.
1850         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1851         (__SWBLK_T_TYPE): Likewise.
1852         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1853         (__SWBLK_T_TYPE): Likewise.
1854         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1855         (__SWBLK_T_TYPE): Likewise.
1856
1857 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1858             Honza Horak <hhorak@redhat.com>
1859
1860         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1861         (xdr_mapname): Use YPMAXMAP as maxsize.
1862         (xdr_peername): Use YPMAXPEER as maxsize.
1863         (xdr_keydat): Use YPAXRECORD as maxsize.
1864         (xdr_valdat): Use YPMAXRECORD as maxsize.
1865
1866 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1867
1868         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1869
1870         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1871         * csu/init-first.c: ... here.
1872         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1873         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1874         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1875         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1876         * sysdeps/i386/init-first.c: File removed.
1877         * sysdeps/sh/init-first.c: File removed.
1878
1879 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1880
1881         [BZ #14645]
1882         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1883         if x * y might underflow to zero and z is zero.
1884         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1885         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1886         * math/libm-test.inc (min_subnorm_value): New variable.
1887         (fma_test): Add more tests.
1888         (fma_test_towardzero): Likewise.
1889         (fma_test_downward): Likewise
1890         (fma_test_upward): Likewise.
1891         (initialize): Set min_subnorm_value.
1892
1893 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1894
1895         [BZ #14638]
1896         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1897         0 + 0.
1898         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1899         mode for addition resulting in exact zero.
1900         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1901         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1902         exact 0 + 0.
1903         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1904         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1905         * math/libm-test.inc (fma_test): Add more tests.
1906         (fma_test_towardzero): New function.
1907         (fma_test_downward): Likewise.
1908         (fma_test_upward): Likewise.
1909         (main): Call the new functions.
1910
1911 2012-09-28  David S. Miller  <davem@davemloft.net>
1912
1913         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1914
1915 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1916
1917         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1918         instead of SIGALRM.
1919
1920         * sysdeps/gnu/_G_config.h: Moved to ...
1921         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1922         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1923         * sysdeps/generic/_G_config.h: ... here.
1924
1925         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1926
1927         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1928
1929         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1930         Conditionalize target on [libnss_test1.so-version].
1931
1932         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1933
1934         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1935         (elfobjdir): Move out of conditionals.
1936
1937         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1938         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1939         (__nss_lookup_function): Conditionalize label remove_from_tree on
1940         [!DO_STATIC_NSS || SHARED], matching its only use.
1941
1942 2012-09-28  David S. Miller  <davem@davemloft.net>
1943
1944         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1945         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1946         file.
1947         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1948         sysdep_routines.
1949         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1950         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1951         when HWCAP_SPARC_CRYPTO is present.
1952
1953 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1954
1955         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1956
1957 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1958
1959         [BZ #6530]
1960         * stdio-common/vfprintf.c (process_string_arg): Revert
1961         2000-07-22 change.
1962
1963 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1964
1965         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1966         for testcase.
1967         * stdio-common/tst-sprintf.c: Include <locale.h>
1968         (main): Test sprintf's handling of incomplete multibyte
1969         characters.
1970
1971 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1972
1973         * elf/dl-runtime.c (VERSYMIDX): Removed.
1974         * elf/dl-version.c (VERSYMIDX): Likewise.
1975         * elf/do-rel.h (VERSYMIDX): Likewise.
1976         (VALIDX): Likewise.
1977         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1978         * elf/rtld.c (VALIDX): Likewise.
1979         (ADDRIDX): Likewise.
1980         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1981         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1982         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1983         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1984         (VALIDX): Likewise.
1985         (ADDRIDX): Likewise.
1986
1987 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1988
1989         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1990
1991 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1992
1993         [BZ #11438]
1994         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1995         to global scope.
1996         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1997         addresses are in the same scope as 192.0.2/24.
1998         * posix/gai.conf: Document new scope table defaults.
1999
2000 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2001
2002         [BZ #5298]
2003         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2004         for ftell.  Compute offsets from write pointers instead.
2005         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2006
2007 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2008
2009         [BZ #14543]
2010         * libio/Makefile (tests): New test case tst-fseek.
2011         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2012         combination works in wide mode.
2013         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2014         state when the external buffer state changes.
2015
2016 2012-09-27  David S. Miller  <davem@davemloft.net>
2017
2018         [BZ #14376]
2019         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2020         pass reloc->r_addend in as the 'high' argument to
2021         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2022
2023         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2024
2025 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2026
2027         * rt/tst-aio2.c: Include <pthread.h>.
2028         * rt/tst-aio3.c: Likewise.
2029
2030 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2031
2032         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2033
2034 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2035
2036         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2037         contents on [SHARED].
2038
2039 2012-09-26  Marek Polacek  <polacek@redhat.com>
2040
2041         [BZ #14530]
2042         [BZ #13741]
2043         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2044         for C++ and GCC <4.3 as well as for non GCC compilers.
2045
2046 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2047
2048         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2049
2050 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2051
2052         * Makefile.in (all, install): Declare with .PHONY.
2053         Reported by Michael Hope <michael.hope@linaro.org>.
2054
2055 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2056
2057         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2058         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2059         system header.
2060         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2061         Likewise.
2062         (sydep_routines): Add the new and the internal functions.
2063         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2064         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2066         (GLIBC_2.17): Add the new function.
2067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2068         (GLIBC_2.17): Likewise.
2069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2070         (GLIBC_2.17): Likewise.
2071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2072         (GLIBC_2.17): Likewise.
2073         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2074
2075 2012-09-25  Alan Modra  <amodra@gmail.com>
2076
2077         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2078         Add release barrier before setting once_control to say
2079         initialisation is done.  Add hints on lwarx.  Use macro in
2080         place of isync.
2081         (clear_once_control): Add release barrier.
2082
2083 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2084
2085         [BZ #13629]
2086         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2087         specially.
2088         * math/s_clog10.c (__clog10): Likewise.
2089         * math/s_clog10f.c (__clog10f): Likewise.
2090         * math/s_clog10l.c (__clog10l): Likewise.
2091         * math/s_clogf.c (__clogf): Likewise.
2092         * math/s_clogl.c (__clogl): Likewise.
2093         * math/Makefile (libm-calls): Add x2y2m1.
2094         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2095         (__x2y2m1): Likewise.
2096         (__x2y2m1l): Likewise.
2097         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2098         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2099         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2100         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2101         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2102         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2103         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2104         * sysdeps/i386/fpu/libm-test-ulps: Update.
2105         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2106
2107         [BZ #14621]
2108         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2109         int as type of variable DEPTH.
2110         (glob): Use size_t instead of int as type of variables NEWCOUNT
2111         and OLD_PATHC.
2112
2113 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2114
2115         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2116         Add s_sincosf-sse2.
2117         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2118         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2119         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2120         macros for using routine as __sincosf_ia32.
2121         Use macro for function declaration and weak_alias.
2122         * sysdeps/i386/fpu/libm-test-ulps: Update.
2123
2124         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2125         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2126
2127         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2128         subnormal argument.
2129         * math/s_cexpf.c (__cexpf): Likewise.
2130         * math/s_csinf.c (__csinf): Likewise.
2131         * math/s_csinhf.c (__csinhf): Likewise.
2132         * math/s_ctanf.c (__ctanf): Likewise.
2133         * math/s_ctanhf.c (__ctanhf): Likewise.
2134         * math/s_ccosh.c (__ccoshf): Likewise.
2135         * math/s_cexp.c (__cexpl): Likewise.
2136         * math/s_csin.c (__csin): Likewise.
2137         * math/s_csinh.c (__csinh): Likewise.
2138         * math/s_ctan.c (__ctan): Likewise.
2139         * math/s_ctanh.c (ctanh): Likewise.
2140         * math/s_ccoshl.c (__ccoshl): Likewise.
2141         * math/s_cexpl.c (__cexpl): Likewise.
2142         * math/s_csinl.c (__csinl): Likewise.
2143         * math/s_csinhl.c (__csinhl): Likewise.
2144         * math/s_ctanl.c (__ctanl): Likewise.
2145         * math/s_ctanhl.c (__ctanhl): Likewise.
2146
2147 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2148
2149         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2150         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2151         (_IO_off_t): Define to __off_t, not _G_off_t.
2152         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2153         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2154         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2155         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2156         type of __dummy and __dummy2 fields.
2157         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2158         (_G_ssize_t): Likewise.
2159         (_G_off_t): Likewise.
2160         (_G_pid_t): Likewise.
2161         (_G_uid_t): Likewise.
2162         (_G_wchar_t): Likewise.
2163         (_G_wint_t): Likewise.
2164         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2165         (_G_ssize_t): Likewise.
2166         (_G_off_t): Likewise.
2167         (_G_pid_t): Likewise.
2168         (_G_uid_t): Likewise.
2169         (_G_wchar_t): Likewise.
2170         (_G_wint_t): Likewise.
2171         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2172         (_G_ssize_t): Likewise.
2173         (_G_off_t): Likewise.
2174         (_G_pid_t): Likewise.
2175         (_G_uid_t): Likewise.
2176         (_G_wchar_t): Likewise.
2177         (_G_wint_t): Likewise.
2178
2179 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2180
2181         * malloc/arena.c: Include malloc-sysdep.h.
2182         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2183         is sufficient to shrink the heap or an unmap is needed.
2184         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2185         new function check_may_shrink_heap.
2186         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2187         new function check_may_shrink_heap.
2188
2189 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2190
2191         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2192         comments.
2193
2194 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2195
2196         * catgets/test-gencat.sh: Add "set -e".
2197         * elf/tst-pathopt.sh: Likewise.
2198         * grp/tst_fgetgrent.sh: Likewise.
2199         * iconvdata/run-iconv-test.sh: Likewise.
2200         * intl/tst-gettext.sh: Likewise.
2201         * intl/tst-gettext2.sh: Likewise.
2202         * intl/tst-gettext4.sh: Likewise.
2203         * intl/tst-gettext6.sh: Likewise.
2204         * intl/tst-translit.sh: Likewise.
2205         * io/ftwtest-sh: Likewise.
2206         * libio/test-freopen.sh: Likewise.
2207         * malloc/tst-mtrace.sh: Likewise.
2208         * posix/globtest.sh: Likewise.
2209         * posix/tst-getconf.sh: Likewise.
2210         * posix/wordexp-tst.sh: Likewise.
2211         * stdio-common/tst-printf.sh: Likewise.
2212         * stdio-common/tst-unbputc.sh: Likewise.
2213         * stdlib/tst-fmtmsg.sh: Likewise.
2214         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2215         * catgets/Makefile: Do not specify -e option when running
2216         testsuite shell scripts.
2217         * elf/Makefile: Likewise.
2218         * grp/Makefile: Likewise.
2219         * iconvdata/Makefile: Likewise.
2220         * intl/Makefile: Likewise.
2221         * io/Makefile: Likewise.
2222         * libio/Makefile: Likewise.
2223         * malloc/Makefile: Likewise.
2224         * posix/Makefile: Likewise.
2225         * stdio-common/Makefile: Likewise.
2226         * stdlib/Makefile: Likewise.
2227         * sysdeps/x86_64/Makefile: Likewise.
2228
2229         * io/ftwtest-sh: Add copyright header.
2230         * posix/globtest.sh: Likewise.
2231         * posix/tst-getconf.sh: Likewise.
2232         * posix/wordexp-tst.sh: Likewise.
2233         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2234
2235 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2236
2237         [BZ #13679]
2238         * Makeconfig (+link): Defined as $(+link-static) if
2239         $(build-shared) isn't yes.
2240         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2241         isn't yes.
2242         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2243
2244         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2245
2246         [BZ #14562]
2247         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2248         new chunk size with MALLOC_ALIGN_MASK.
2249
2250 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2251
2252         [BZ #5044]
2253         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2254         <rounding-mode.h>.
2255         (__printf_fphex): Determine rounding using get_rounding_mode and
2256         round_away.
2257         * stdio-common/tst-printf-round.c (struct hex_test): New
2258         structure.
2259         (hex_tests): New variable.
2260         (test_hex_in_one_mode): New function.
2261         (do_test): Also run tests for hex float output.
2262
2263 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2264
2265         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2266         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2267         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2268         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2269         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2270         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2271         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2272         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2273
2274 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2275
2276         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
2277         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
2278         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
2279         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
2280
2281 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
2282
2283         [BZ #14579]
2284         * elf/rtld.c (dl_main): Limit the check for self loading to normal
2285         mode only.
2286         * elf/tst-rtld-load-self.sh: New test.
2287         * elf/Makefile: Run it.
2288
2289 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
2290
2291         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
2292         (tst-writev-ENV): Remove.
2293         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
2294
2295 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
2296
2297         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
2298
2299 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
2300
2301         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
2302         unconditional.
2303         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
2304         Likewise.
2305         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
2306         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
2307         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
2308         Likewise.
2309
2310 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2311
2312         [BZ #14587]
2313         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
2314         * config.make.in (have-cpp-asm-debuginfo): Removed.
2315         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
2316         * configure: Regenerated.
2317
2318 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2319
2320         [BZ #5044]
2321         * stdio-common/printf_fp.c: Include <stdbool.h> and
2322         <rounding-mode.h>.
2323         (___printf_fp): Determine rounding using get_rounding_mode and
2324         round_away.
2325         * stdio-common/tst-printf-round.c: New file.
2326         * stdio-common/Makefile (tests): Add tst-printf-round.
2327         (link-libm): New variable.
2328         ($(objpfx)tst-printf-round): Depend in $(link-libm).
2329
2330 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2331
2332         [BZ #14576]
2333         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
2334         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
2335         Likewise.
2336         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
2337         Likewise.
2338
2339 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
2340
2341         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
2342         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2343         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2344         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2345
2346 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
2347
2348         [BZ #14518]
2349         * include/rounding-mode.h: New file.
2350         * sysdeps/generic/get-rounding-mode.h: Likewise.
2351         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
2352         * stdlib/strtod_l.c: Include <rounding-mode.h>.
2353         (MAX_VALUE): New macro.
2354         (MIN_VALUE): Likewise.
2355         (overflow_value): New function.
2356         (underflow_value): Likewise.
2357         (round_and_return): Use overflow_value and underflow_value to
2358         determine return values in overflow and underflow cases.  Use
2359         round_away to determine rounding depending on rounding mode.
2360         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
2361         determine return values in overflow and underflow cases.
2362         * stdlib/tst-strtod-round.c: Include <fenv.h>.
2363         (struct test_results): New structure.
2364         (struct test): Use struct test_results to store expected results
2365         for all rounding modes.
2366         (TEST): Include expected results for all rounding modes.
2367         (test_in_one_mode): New function.
2368         (do_test): Use test_in_one_mode to compute and check results.
2369         Check results for all rounding modes.
2370         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
2371         $(link-libm).
2372
2373 2012-12-09  Allan McRae  <allan@archlinux.org>
2374
2375         * sysdeps/i386/fpu/libm-test-ulps: Update
2376
2377 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
2378
2379         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
2380         (_G_int32_t): Likewise.
2381         (_G_uint16_t): Likewise.
2382         (_G_uint32_t): Likewise.
2383         (_G_HAVE_BOOL): Likewise.
2384         (_G_HAVE_ATEXIT): Likewise.
2385         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2386         (_G_HAVE_IO_FILE_OPEN): Likewise.
2387         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
2388         (_G_int32_t): Likewise.
2389         (_G_uint16_t): Likewise.
2390         (_G_uint32_t): Likewise.
2391         (_G_HAVE_BOOL): Likewise.
2392         (_G_HAVE_ATEXIT): Likewise.
2393         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2394         (_G_HAVE_IO_FILE_OPEN): Likewise.
2395         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
2396         (_G_int32_t): Likewise.
2397         (_G_uint16_t): Likewise.
2398         (_G_uint32_t): Likewise.
2399         (_G_HAVE_BOOL): Likewise.
2400         (_G_HAVE_ATEXIT): Likewise.
2401         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2402         (_G_HAVE_IO_FILE_OPEN): Likewise.
2403
2404 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2405
2406         * csu/libc-tls.c: Update copyright years.
2407
2408 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
2409
2410         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
2411         [!_G_USING_THUNKS]: Remove conditional code.
2412         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
2413         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
2414
2415         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
2416         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
2417         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2418         (_G_VTABLE_LABEL_PREFIX): Likewise.
2419         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2420         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2421         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2422         (_G_VTABLE_LABEL_PREFIX): Likewise.
2423         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2424         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2425         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2426         (_G_VTABLE_LABEL_PREFIX): Likewise.
2427         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2428
2429 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2430
2431         * libio/Makefile: Include ../Makeconfig before tests.
2432         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
2433         only if $(build-shared) is yes.
2434
2435         * iconv/gconv_db.c: Update copyright years.
2436
2437 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2438
2439         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
2440         unwind info if defined PIC. Fix special cases description.
2441         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
2442
2443         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
2444         DP_HI_MASK entry.
2445         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
2446
2447 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2448
2449         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
2450
2451         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
2452         is NULL.
2453
2454         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
2455         (LDLIBS-tst-chk4): This.
2456         (LDFLAGS-tst-chk5): Renamed to ...
2457         (LDLIBS-tst-chk5): This.
2458         (LDFLAGS-tst-chk6): Renamed to ...
2459         (LDLIBS-tst-chk6): This.
2460         (LDFLAGS-tst-lfschk4): Renamed to ...
2461         (LDLIBS-tst-lfschk4): This.
2462         (LDFLAGS-tst-lfschk5): Renamed to ...
2463         (LDLIBS-tst-lfschk5): This.
2464         (LDFLAGS-tst-lfschk6): Renamed to ...
2465         (LDLIBS-tst-lfschk6): This.
2466
2467         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
2468         on $(common-objpfx)soversions.mk.
2469
2470 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
2471
2472         [BZ #10014]
2473         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
2474         example host name.
2475
2476 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2477
2478         * malloc/arena.c (arena_get_retry): New function that gets
2479         another arena for the caller to try its request on.
2480         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
2481         current arena cannot fulfill the request.
2482         (__libc_memalign): Likewise.
2483         (__libc_memalign): Likewise.
2484         (__libc_pvalloc): Likewise.
2485         (__libc_calloc): Likewise.
2486
2487 2012-09-05  John Tobey  <john.tobey@gmail.com>
2488
2489         [BZ #13542]
2490         * manual/arith.texi (Operations on Complex): Fix description
2491         of carg branch cut.
2492
2493 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2494
2495         [BZ #10014]
2496         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
2497         host name.
2498
2499         [BZ #10038]
2500         * manual/memory.texi (Memory): Make order of menu items match
2501         order of sections.
2502
2503 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2504
2505         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
2506         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
2507         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
2508
2509 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2510
2511         * csu/libc-tls.c (static_dtv): Renamed to ...
2512         (_dl_static_dtv): This.  Make it global.
2513         (_dl_initial_dtv): Removed.
2514         (__libc_setup_tls): Updated.
2515         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
2516         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
2517         DL_INITIAL_DTV.
2518
2519 2012-09-06  Petr Machata  <pmachata@redhat.com>
2520
2521         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
2522         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
2523         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
2524         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
2525
2526 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2527
2528         [BZ #14545]
2529         * csu/libc-tls.c (_dl_initial_dtv): New variable.
2530         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
2531         freeing dtv[-1].
2532
2533 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2534
2535         [BZ #14544]
2536         * Makeconfig (link-static-before-libc): Replace $(+prector)
2537         with $(+prectorT).
2538         (link-static-after-libc): Replace $(+postctor) with
2539         $(+postctorT).
2540         (link-bounded): Replace $(+prector)/$(+postctor) with
2541         $(+prectorT)/$(+postctorT).
2542         (+prectorT): New macro.
2543         (+postctorT): Likewise.
2544
2545 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2546
2547         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
2548         (round_str): Handle values above the maximum for IBM long double
2549         as inexact.
2550         * stdlib/tst-strtod-round.c (tests): Regenerated.
2551
2552 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2553
2554         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
2555         assembler flag.
2556         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
2557         zarch_nohighgprs around the zarch optimized routines.
2558         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
2559         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
2560         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
2561         for zarch.
2562
2563 2012-09-05  David S. Miller  <davem@davemloft.net>
2564
2565         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2566
2567         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
2568         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
2569         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
2570         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
2571         entries.
2572
2573 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2574
2575         * malloc/arena.c: Fold copyright years.
2576         * malloc/mcheck.c, malloc/memusage.c: Likewise.
2577
2578 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2579
2580         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
2581
2582 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2583
2584         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
2585
2586 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2587
2588         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
2589         change internal state upon failure.
2590
2591 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2592
2593         * malloc/mcheck.c (mcheck_check_all): Fix typo.
2594         * malloc/memusage.c (mmap): Likewise.
2595         (mmap64, mremap): Likewise.  Adjust name in comment.
2596
2597 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2598
2599         * libio/fileops.c: Fix typos in comments.
2600         * libio/oldfileops.c: Likewise.
2601         * libio/wfileops.c: Likewise.
2602
2603 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2604
2605         [BZ #1349]
2606         * malloc/Makefile (tests): Add tst-malloc-usable test case.
2607         (tst-malloc-usable-ENV): Set environment for test case.
2608         * malloc/hooks.c (malloc_check_get_size): New function to get
2609         requested size.
2610         * malloc/malloc.c (musable): Use malloc_check_get_size.
2611         * malloc/tst-malloc-usable.c: New test case.
2612
2613 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2614
2615         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
2616
2617 2012-09-05  Allan McRae  <allan@archlinux.org>
2618
2619         [BZ #13966]
2620         * configure.in (CXX_SYSINCLUDES): Use compiler output to
2621         determine header location.
2622         * configure: Regenerated.
2623
2624 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2625
2626         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
2627         float format.
2628         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
2629         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
2630         format.
2631         (test): Regenerate.
2632
2633 2012-09-04  David S. Miller  <davem@davemloft.net>
2634
2635         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
2636         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
2637         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
2638
2639 2012-09-04  Florian Weimer  <fweimer@redhat.com>
2640
2641         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
2642         failures.
2643
2644         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
2645
2646 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
2647
2648         [BZ #9914]
2649         * libio/iogetdelim.c: Include <limits.h>.
2650         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
2651         + len + 1 would overflow.
2652
2653 2012-09-03  Andreas Jaeger  <aj@suse.de>
2654
2655         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2656         * sysdeps/i386/fpu/libm-test-ulps: Update.
2657
2658 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2659
2660         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2661         Add s_sinf-sse2, s_conf-sse2.
2662
2663         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2664         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2665         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2666         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2667
2668         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2669         for using routine as __sinf_ia32.
2670         Use macro for function declaration and weak_alias.
2671         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2672         for using routine as __cosf_ia32.
2673         Use macro for function declaration and weak_alias.
2674
2675         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2676         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2677
2678         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2679         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2680         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2681
2682         * math/libm-test.inc (cos_test): Add more test cases.
2683         (sin_test): Likewise.
2684         (sincos_test): Likewise.
2685
2686 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2687
2688         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2689         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2690         hidden.
2691         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2692
2693 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2694
2695         [BZ #14538]
2696         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2697         first element of the GOT.
2698         (elf_machine_load_address): Return the difference between
2699         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2700
2701 2012-09-01  Allan McRae  <allan@archlinux.org>
2702
2703         [BZ #13412]
2704         * configure.in (AWK): Require gawk version 3.0 or later.
2705         * configure: Regenerated.
2706
2707 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2708
2709         * sysdeps/unix/sysv/linux/kernel-features.h
2710         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2711         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2712         [__NR_clock_getres]: Make code unconditional.
2713         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2714         (clock_getcpuclockid): Remove code left unreachable by removal of
2715         conditionals.
2716         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2717         code unconditional.
2718         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2719         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2720         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2721         Make code unconditional.
2722         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2723         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2724         * sysdeps/unix/sysv/linux/clock_settime.c
2725         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2726         conditional code.
2727         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2728         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2729
2730 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2731
2732         [BZ #14476]
2733         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2734         scripts/test-installation.pl.
2735
2736         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2737         and $ld_so_version if it is set.
2738
2739 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2740
2741         [BZ #14516]
2742         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2743         failure if reading from procfs failed.
2744         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2745
2746 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2747
2748         * sysdeps/unix/sysv/linux/kernel-features.h
2749         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2750         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2751         Remove conditional code.
2752         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2753         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2754         Remove conditional code.
2755         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2756         * sysdeps/unix/sysv/linux/i386/fxstat.c
2757         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2758         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2759         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2760         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2761         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2762         * sysdeps/unix/sysv/linux/i386/lxstat.c
2763         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2764         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2765         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2766         Remove conditional code.
2767         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2768         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2769         Remove conditional code.
2770         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2771         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2772         <kernel-features.h>.
2773         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2774         Remove.
2775         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2776         Remove conditional code.
2777         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2778         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2779         Remove conditional.
2780
2781 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2782
2783         [BZ #5400]
2784         * NEWS: Add fixed bug number.
2785
2786 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2787
2788         [BZ #14519]
2789         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2790         underflowing exponent in case of negative sign.
2791         * stdlib/tst-strtod-round-data: Add more tests.
2792         * stdlib/tst-strtod-round.c (tests): Regenerated.
2793
2794         [BZ #3479]
2795         * stdlib/strtod_l.c (NDIG): Remove.
2796         (HEXNDIG): Likewise.
2797         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2798         smallest representable value.
2799         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2800         lie within an exact representation of 1/2 ulp of the result.
2801         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2802         unconditionally.
2803         (TENS_P9_IDX): Define unconditionally.
2804         (TENS_P9_SIZE): Likewise.
2805         (TENS_P10_IDX): Likewise.
2806         (TENS_P10_SIZE): Likewise.
2807         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2808         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2809         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2810         entries for 10^2^13 and 10^2^14.
2811         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2812         (TENS_P13_IDX): Define.
2813         (TENS_P13_SIZE): Likewise.
2814         (TENS_P14_IDX): Likewise.
2815         (TENS_P14_SIZE): Likewise.
2816         (_fpioconst_pow10): Change array size to
2817         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2818         unconditional.
2819         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2820         1024]: Add entries for 10^2^13 and 10^2^14.
2821         [LAST_POW10 > _LAST_POW10]: Remove #error.
2822         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2823         (_fpioconst_pow10): Change array size to
2824         FPIOCONST_POW10_ARRAY_SIZE.
2825         * stdlib/gen-fpioconst.c: New file.
2826         * stdlib/gen-tst-strtod-round.c: Likewise.
2827         * stdlib/tst-strtod-round-data: Likewise.
2828         * stdlib/tst-strtod-round.c: Likewise.
2829         * stdlib/Makefile (tests): Add tst-strtod-round.
2830
2831         [BZ #14459]
2832         * stdlib/strtod_l.c: Include <stdint.h>.
2833         (NDEBUG): Do not define.
2834         (round_and_return): Change EXPONENT parameter to type intmax_t.
2835         Rearrange calculations to avoid internal overflow possibilities.
2836         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2837         Rearrange calculations to avoid internal overflow possibilities.
2838         Assert that number fits inside MPNSIZE limbs.
2839         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2840         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2841         calculations and add assertions to avoid internal overflow
2842         possibilities.  Add casts to avoid signed/unsigned operations.
2843         * stdlib/tst-strtod-overflow.c: New file.
2844         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2845
2846 2012-08-25  Marek Polacek  <polacek@redhat.com>
2847
2848         * time/time.h: Fix some typos in comments.
2849
2850 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2851
2852         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2853         * posix/tst-rfc3484-2.c: Likewise.
2854         * posix/tst-rfc3484-3.c: Likewise.
2855
2856 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2857
2858         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2859         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2860
2861 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2862
2863         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2864         #include of fxstatat64.c.
2865
2866 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2867
2868         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2869         * shadow/getspent_r.c: Likewise.
2870         * shadow/getspnam.c: Likewise.
2871         * shadow/getspnam_r.c: Likewise.
2872         * gshadow/getsgent.c: Likewise.
2873         * gshadow/getsgent_r.c: Likewise.
2874         * gshadow/getsgnam.c: Likewise.
2875         * gshadow/getsgnam_r.c: Likewise.
2876         * inet/getnetbyad.c: Likewise.
2877         * inet/getnetbyad_r.c: Likewise.
2878         * inet/getnetbynm.c: Likewise.
2879         * inet/getnetbynm_r.c: Likewise.
2880         * inet/getnetent.c: Likewise.
2881         * inet/getnetent_r.c: Likewise.
2882         * inet/getproto.c: Likewise.
2883         * inet/getproto_r.c: Likewise.
2884         * inet/getprtent.c: Likewise.
2885         * inet/getprtent_r.c: Likewise.
2886         * inet/getprtname.c: Likewise.
2887         * inet/getprtname_r.c: Likewise.
2888         * inet/getrpcbyname.c: Likewise.
2889         * inet/getrpcbyname_r.c: Likewise.
2890         * inet/getrpcbynumber.c: Likewise.
2891         * inet/getrpcbynumber_r.c: Likewise.
2892         * inet/getrpcent.c: Likewise.
2893         * inet/getrpcent_r.c: Likewise.
2894         * inet/getaliasent.c: Likewise.
2895         * inet/getaliasent_r.c: Likewise.
2896         * inet/getaliasname.c: Likewise.
2897         * inet/getaliasname_r.c: Likewise.
2898         * nscd/getgrgid_r.c: Likewise.
2899         * nscd/getgrnam_r.c: Likewise.
2900         * nscd/gethstbyad_r.c: Likewise.
2901         * nscd/gethstbynm3_r.c: Likewise.
2902         * nscd/getpwnam_r.c: Likewise.
2903         * nscd/getpwuid_r.c: Likewise.
2904         * nscd/getsrvbynm_r.c: Likewise.
2905         * nscd/getsrvbypt_r.c: Likewise.
2906         * nscd/gai.c: Likewise.
2907
2908         * configure.in (build_nscd): New substituted variable, set
2909         by --disable-build-nscd and defaults to $use_nscd.
2910         * configure: Regenerated.
2911         * config.make.in (build-nscd): New substituted variable.
2912         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2913         Change conditional to require [$(build-nscd) = yes] as well.
2914         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2915
2916         [BZ# 13696]
2917         * configure.in (use_nscd): New substituted variable, set by
2918         --disable-nscd.  If enabled, define USE_NSCD.
2919         * configure: Regenerated.
2920         * config.h.in: Add USE_NSCD.
2921         * config.make.in (use-nscd): New substituted variable.
2922         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2923         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2924         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2925         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2926         (CFLAGS-getgrnam_r.c): Likewise.
2927         (CFLAGS-initgroups.c): Likewise.
2928         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2929         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2930         Variables removed.
2931         * inet/getnetgrent_r.c
2932         (nscd_setnetgrent): New function, broken out of ...
2933         (setnetgrent): ... here.  Call it.
2934         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2935         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2936         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2937         * nscd/Makefile (routines, aux): Move definitions after include of
2938         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2939         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2940         Conditionalize on [USE_NSCD].
2941         (is_nscd, nscd_init_cb): Likewise.
2942         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2943         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2944         * nss/nss_db/db-init.c: Likewise.
2945         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2946         [USE_NSCD].
2947         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2948         (make_request): Use it.
2949         (cache_valid_p): New function.
2950         (__check_pf): Use it.
2951         * NEWS: Add item for --disable-nscd.
2952
2953 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2954
2955         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2956         to support sed >= 4.2.1-20-ga9bf076.
2957         * configure: Regenerated.
2958
2959 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2960
2961         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2962         Conditionalize whole body on [IREL].
2963
2964 2012-08-22  Jeff Law <law@redhat.com>
2965
2966         [BZ #14505]
2967         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2968         if the family is PF_UNSPEC.
2969
2970 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2971
2972         * Makerules (lib-version): Rename from V.
2973         (install-lib-nosubdir): Change V to lib-version.
2974
2975 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2976
2977         [BZ #14252]
2978         * powerpc32/power6/wcschr.c: New file.
2979         * powerpc32/power6/wcscpy.c: New file.
2980         * powerpc32/power6/wcsrchr.c: New file.
2981         * powerpc64/power6/wcschr.c: New file.
2982         * powerpc64/power6/wcscpy.c: New file.
2983         * powerpc64/power6/wcsrchr.c: New file.
2984
2985 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2986
2987         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2988         (two_way_short_needle): Use it.
2989         * string/strstr.c (AVAILABLE1_USES_J): Define.
2990         * string/strcasestr.c: Likewise.
2991
2992         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2993         array references.
2994         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2995
2996         [BZ #11607]
2997         * NEWS: Add an entry.
2998         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2999         define their defaults.
3000         (two_way_short_needle): Detect end-of-string on-the-fly.
3001         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3002         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3003         * string/bug-strcasestr1.c: New test.
3004         * string/Makefile: Run it.
3005
3006 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3007
3008         [BZ #11607]
3009         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3010         the first character.
3011
3012 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3013
3014         * csu/elf-init.c (__libc_csu_irel): Function removed.
3015         * csu/libc-start.c (apply_irel): New function.
3016         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3017
3018 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3019
3020         * sysdeps/unix/sysv/linux/kernel-features.h
3021         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3022         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3023         <kernel-features.h>.
3024         [__NR_fadvise64_64]: Make code unconditional.
3025         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3026         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3027         !__NR_fadvise64_64)]: Likewise.
3028         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3029         !__NR_fadvise64_64))]: Likewise.
3030         [__NR_fadvise64]: Make code unconditional.
3031         [!__NR_fadvise64]: Remove conditional code.
3032         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3033         <kernel-features.h>.
3034         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3035         unconditional.
3036         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3037         conditional code.
3038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3039         not include <kernel-features.h>.
3040         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3041         unconditional.
3042         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3043         conditional code.
3044         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3045         include <kernel-features.h>.
3046         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3047         unconditional.
3048         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3049         conditional code.
3050
3051 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3052
3053         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3054         slight instruction rearrangements per scrollpipe analysis.
3055         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3056
3057 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3058
3059         * manual/syslog.texi (syslog; vsyslog, closelog):
3060         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3061         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3062
3063         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3064         DSOCAPS to match condition on defining it.
3065
3066 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3067
3068         * sysdeps/unix/sysv/linux/kernel-features.h
3069         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3071         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3072         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3074         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3075         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3077         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3078         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3079
3080         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3081         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3082
3083         * sysdeps/unix/sysv/linux/kernel-features.h
3084         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3085         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3086         unconditional.
3087         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3088         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3089         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3090         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3091         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3092         Make code unconditional.
3093         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3094         (__mmap64) [!__NR_mmap2]: Likewise.
3095         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3096         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3097         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3098         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3099         [__NR_mmap2]: Make code unconditional.
3100         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3101         (__mmap64) [!__NR_mmap2]: Likewise.
3102
3103 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3104
3105         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3106
3107 2012-08-18  Andreas Jaeger  <aj@suse.de>
3108
3109         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3110
3111 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3112
3113         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3114         * include/unistd.h (__have_sock_cloexec): Likewise.
3115         (__have_pipe2): Likewise.
3116         (__have_dup3): Likewise.
3117
3118 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3119
3120         [BZ #9685]
3121         * include/unistd.h (__have_pipe2): Change define into an extern int.
3122         (__have_dup3): Likewise.
3123         * socket/have_sock_cloexec.c: Include fcntl.h.
3124         (__have_pipe2): New variable.
3125         (__have_dup3): Likewise.
3126
3127 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3128
3129         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3130
3131 2012-08-17  Marek Polacek  <polacek@redhat.com>
3132
3133         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3134         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3135
3136 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3137
3138         * configure.in: Add AC_SUBST for sysheaders.
3139         * configure: Regenerated.
3140         * config.make.in (sysheaders): New substituted variable.
3141
3142         * sysdeps/unix/mkfifo.c: Moved ...
3143         * sysdeps/posix/mkfifo.c: ... here.
3144         * sysdeps/unix/mkfifoat.c: Moved ...
3145         * sysdeps/posix/mkfifoat.c: ... here.
3146
3147         * sysdeps/unix/utime.c: Moved ...
3148         * sysdeps/posix/utime.c: ... here.
3149
3150         * sysdeps/unix/time.c: Moved ...
3151         * sysdeps/posix/time.c: ... here.
3152         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3153         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3154
3155         * sysdeps/unix/nice.c: Moved ...
3156         * sysdeps/posix/nice.c: ... here.
3157
3158         * sysdeps/unix/alarm.c: Moved ...
3159         * sysdeps/posix/alarm.c: ... here.
3160
3161         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3162
3163 2012-08-17  Jeff Law <law@redhat.com>
3164
3165         * intl/Makefile (codeset_mo): New variable.
3166         ($(codeset_mo)): New target.
3167         (tst-codeset.out): Depend on that.  Remove explicit rule.
3168         (tst-gettext3.out, tst-gettext5.out): Likewise.
3169         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3170         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3171         * intl/tst-codeset.sh: Remove.
3172         * intl/tst-gettext3.sh: Likewise.
3173         * intl/tst-gettext5.sh: Likewise.
3174
3175 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3176
3177         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3178         * sysdeps/unix/syscalls.list: ... here.
3179
3180         * sysdeps/posix/getaddrinfo.c
3181         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3182         (gaiconf_init, gaiconf_reload): Use them.
3183         [!_STATBUF_ST_NSEC]
3184         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3185         Define using time_t rather than struct timespec.
3186
3187         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3188         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3189         Macros removed.
3190         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3191         [!NO_THREADS].
3192         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3193         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3194         Likewise.
3195
3196         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3197         __libc_cleanup_push argument.
3198
3199         * bits/param.h: New file.
3200         * misc/sys/param.h: New file.
3201         * include/sys/param.h: New file.
3202         * misc/Makefile (headers): Add bits/param.h.
3203         * sysdeps/generic/sys/param.h: File removed.
3204         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3205         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3206         * sysdeps/mach/hurd/bits/param.h: New file.
3207         * sysdeps/mach/hurd/sys/param.h: File removed.
3208
3209         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3210         last change.
3211
3212         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3213         [_IO_MTSAFE_IO].
3214         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3215         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3216         New macros.
3217
3218         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3219         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3220         rather than -D_IO_MTSAFE_IO conditionally.
3221         * stdio-common/Makefile (CPPFLAGS): Likewise.
3222         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3223         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3224         Use $(libio-mtsafe).
3225         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3226         of -D_IO_MTSAFE_IO.
3227         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3228         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3229         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3230         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3231         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3232         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3233         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3234         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3235         (CFLAGS-fread_u_chk.c): Likewise.
3236         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3237         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3238         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3239         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3240         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3241         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3242         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3243         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3244         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3245
3246         * libio/Makefile: Test [$(libc-reentrant) = yes]
3247         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3248
3249         * Makeconfig
3250         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3251         * sysdeps/pthread/configure: File removed.
3252         * sysdeps/pthread/Makeconfig: New file.
3253         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3254         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3255
3256 2012-08-16  Gary Benson  <gbenson@redhat.com>
3257
3258         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3259         unmapping the first object in a namespace.
3260
3261 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3262
3263         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3264         (__internal_setnetgrent): ... this.  Add internal_function to
3265         definition.  Add libc_hidden_def.
3266         (setnetgrent): Update caller.
3267         (internal_endnetgrent): Renamed to ...
3268         (__internal_endnetgrent): ... this.  Add internal_function to
3269         definition.  Add libc_hidden_def.
3270         (endnetgrent): Update caller.
3271         (internal_getnetgrent_r): Renamed to ...
3272         (__internal_getnetgrent_r): ... this.  Add internal_function to
3273         definition.  Add libc_hidden_def.
3274         (__getnetgrent_r): Update caller.
3275         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
3276
3277 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3278
3279         * stdlib/longlong.h: Update from GCC.
3280
3281 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3282
3283         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
3284         on _QL, which is set by umul_ppmm but never used.
3285         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
3286         variables, which are set by GMP macros but never used.
3287         * stdio-common/_itowa.c (_itowa): Likewise.
3288         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
3289         * stdlib/mod_1.c (mpn_mod_1): Likewise.
3290
3291 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
3292
3293         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
3294         struct La_sh_regs is not constant.
3295         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
3296         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
3297         and struct La_sparc64_regs are not constant.
3298
3299 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3300
3301         * sysdeps/unix/sysv/linux/kernel-features.h
3302         (__ASSUME_POSIX_TIMERS): Remove.
3303         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3304         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3305         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
3306         Make code unconditional.
3307         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3308         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
3309         Make code unconditional.
3310         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3311         * sysdeps/unix/sysv/linux/clock_nanosleep.c
3312         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
3313         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3314         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
3315         Make code unconditional.
3316         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3317         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
3318         (__libc_missing_posix_timers): Remove.
3319
3320 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3321
3322         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
3323         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
3324
3325         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
3326
3327         * elf/dl-sym.c: Include <stdlib.h>.
3328
3329         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
3330         constants, which avoids warnings in 32-bit builds.
3331
3332         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
3333         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
3334
3335         * misc/lseek.c: File moved to ...
3336         * io/lseek.c: ... here.
3337
3338         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
3339
3340         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
3341         shifting LEN more than 31 bits at once.
3342
3343 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3344
3345         [BZ #14195]
3346         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
3347         segmentation fault for a case of two empty input strings.
3348         * string/test-strncasecmp.c (check1): Renamed to...
3349         (bz12205): ...this.
3350         (bz14195): Add new testcase for two empty input strings and N > 0.
3351         (test_main): Call new testcase, adapt for renamed function.
3352
3353 2012-08-15  Andreas Jaeger  <aj@suse.de>
3354
3355         [BZ #14090]
3356         * crypt/md5test2.c: New test, based on test supplied by Serge
3357         Belyshev <belyshev@depni.sinp.msu.ru>.
3358         * crypt/Makefile (xtests): Add md5test-giant..
3359         * crypt/Makefile ($(objpfx)md5test-giant): Add.
3360
3361 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3362
3363         [BZ #14090]
3364         * crypt/md5.c (md5_process_block): Don't assume the buffer
3365         length is less than 2**32.
3366         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
3367         length is less than 2**64.
3368
3369 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3370
3371         * string/str-two-way.h: Include <sys/param.h>.
3372         (MAX): Macro removed.
3373
3374         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
3375         Move #define and #undef of memmove to just before and after
3376         including <string.h>.
3377
3378         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
3379         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
3380         and after including <string.h>.  Move declarations of
3381         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
3382         to before #include "string/memmove.c".
3383
3384         * include/dirent.h: Declare __getdirentries.
3385
3386         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
3387         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
3388
3389 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3390
3391         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
3392         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
3393         * sysdeps/i386/configure: Regenerated.
3394         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
3395         STABS_CURRENT_FILE, and STABS_FUN.
3396         (END): Remove call to STABS_FUN_END.
3397         (STABS_CURRENT_FILE1): Delete.
3398         (STABS_CURRENT_FILE): Likewise.
3399         (STABS_FUN): Likewise.
3400         (STABS_FUN_END): Likewise.
3401         (STABS_FUN2): Likewise.
3402         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
3403         * sysdeps/x86_64/configure: Regenerated.
3404
3405 2012-08-14  Roland McGrath  <roland@hack.frob.com>
3406
3407         * elf/dl-open.c: Include <atomic.h>.
3408         * elf/dl-lookup.c: Likewise.
3409
3410 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
3411
3412         * sysdeps/unix/sysv/linux/kernel-features.h
3413         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
3414         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
3415         unconditionally.
3416         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
3417         unconditionally.
3418         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
3419         condition on __ASSUME_CLONE_THREAD_FLAGS.
3420
3421 2012-08-14  Andreas Jaeger  <aj@suse.de>
3422
3423         * sysdeps/i386/fpu/libm-test-ulps: Update.
3424
3425 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
3426
3427         * include/atomic.h (atomic_exchange_and_add): Split into ...
3428         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
3429         New atomic macros.
3430
3431 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
3432
3433         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3434
3435 2012-08-13  Jeff Law <law@redhat.com>
3436
3437         * manual/stdio.texi (snprintf): Clarify handling of the trailing
3438         null byte in the output string.
3439
3440 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
3441
3442         * sysdeps/unix/sysv/linux/kernel-features.h
3443         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
3444         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
3445         (__ASSUME_ARG_MAX_STACK_BASED): Define.
3446         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3447         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
3448         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
3449         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
3450
3451 2012-08-09  Jeff Law <law@redhat.com>
3452
3453         [BZ #13939]
3454         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
3455         When avoid_arena is set, don't retry in the that arena.  Pick the
3456         next one, whatever it might be.
3457         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
3458         (arena_lock): Pass in new parameter to arena_get2.
3459         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
3460         arena_get2.
3461         (__libc_malloc): Unify retrying after main arena failure with
3462         __libc_memalign version.
3463         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
3464
3465 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3466
3467         [BZ #14166]
3468         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
3469         to __redirect_strstr.
3470         (__strstr_sse42): Use typeof __redirect_strstr.
3471         (__strstr_ia32): Likewise.
3472         (__libc_strstr): New prototype.
3473         (strstr): Renamed to ...
3474         (__libc_strstr): This.
3475         (strstr): New strong alias of __libc_strstr.
3476         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
3477         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
3478         __redirect_time.
3479         Include <time.h>.
3480         (__libc_time): New prototype.
3481         (time_ifunc): Replace time with __libc_time.
3482         (time): New strong alias and hidden definition of __libc_time.
3483         (__GI_time): Remove strong alias.
3484         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
3485         Include <stddef.h>.
3486         (memmove): Redefined to __redirect_memmove.
3487         (__memmove_sse2): Use typeof __redirect_memmove.
3488         (__memmove_ssse3): Likewise.
3489         (__memmove_ssse3_back): Likewise.
3490         (__libc_memmove): New prototype.
3491         (memmove): Renamed to ...
3492         (__libc_memmove): This.
3493         (memmove): New strong alias of __libc_memmove.
3494
3495 2012-08-08  Mark Salter  <msalter@redhat.com>
3496
3497         * elf/elf.h
3498         (R_MN10300_TLS_GD): Define.
3499         (R_MN10300_TLS_LD): Likewise.
3500         (R_MN10300_TLS_LDO): Likewise.
3501         (R_MN10300_TLS_GOTIE): Likewise.
3502         (R_MN10300_TLS_IE): Likewise.
3503         (R_MN10300_TLS_LE): Likewise.
3504         (R_MN10300_TLS_DTPMOD): Likewise.
3505         (R_MN10300_TLS_DTPOFF): Likewise.
3506         (R_MN10300_TLS_TPOFF): Likewise.
3507         (R_MN10300_SYM_DIFF): Likewise.
3508         (R_MN10300_ALIGN): Likewise.
3509         (R_MN10300_NUM): Update.
3510
3511 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
3512
3513         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
3514         Remove.
3515
3516 2012-08-08  Roland McGrath  <roland@hack.frob.com>
3517
3518         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
3519
3520         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
3521         sysdeps/unix -> sysdeps/posix move.
3522         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3523
3524 2012-08-07      Allan McRae     <allan@archlinux.org>
3525
3526         [BZ #14303]
3527         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
3528         (SUNOS_CPP): Likewise.
3529         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
3530         not found.
3531         (open_input): Call CPP using execvp.
3532
3533 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3534
3535         * sysdeps/unix/sysv/linux/kernel-features.h
3536         (__ASSUME_PROT_GROWSUPDOWN): Remove.
3537         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3538         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3539         (__ASSUME_WAITID_SYSCALL): Likewise.
3540         * sysdeps/unix/sysv/linux/dl-execstack.c
3541         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
3542         code unconditional.
3543         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
3544         conditional code.
3545         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
3546         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
3547         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
3548         code.
3549         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
3550         unconditional.
3551         [__ASSUME_WAITID_SYSCALL]: Likewise.
3552         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
3553
3554 2012-08-07  Roland McGrath  <roland@hack.frob.com>
3555
3556         * sysdeps/unix/closedir.c: Renamed to ...
3557         * sysdeps/posix/closedir.c: ... here.
3558         * sysdeps/unix/dirfd.c: Renamed to ...
3559         * sysdeps/posix/dirfd.c: ... here.
3560         * sysdeps/unix/dirstream.h: Renamed to ...
3561         * sysdeps/posix/dirstream.h: ... here.
3562         * sysdeps/unix/fdopendir.c: Renamed to ...
3563         * sysdeps/posix/fdopendir.c: ... here.
3564         * sysdeps/unix/opendir.c: Renamed to ...
3565         * sysdeps/posix/opendir.c: ... here.
3566         * sysdeps/unix/readdir.c: Renamed to ...
3567         * sysdeps/posix/readdir.c: ... here.
3568         * sysdeps/unix/readdir_r.c: Renamed to ...
3569         * sysdeps/posix/readdir_r.c: ... here.
3570         * sysdeps/unix/rewinddir.c: Renamed to ...
3571         * sysdeps/posix/rewinddir.c: ... here.
3572         * sysdeps/unix/seekdir.c: Renamed to ...
3573         * sysdeps/posix/seekdir.c: ... here.
3574         * sysdeps/unix/telldir.c: Renamed to ...
3575         * sysdeps/posix/telldir.c: ... here.
3576         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
3577         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
3578         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3579         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
3580
3581         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
3582         * bits/fcntl.h: ... here.
3583
3584         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
3585         not 0.
3586         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
3587         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
3588         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
3589         (struct flock): Move l_start, l_len to the beginning.
3590         Use __pid_t for l_pid.
3591         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
3592         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
3593         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
3594         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
3595         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
3596         [__USE_LARGEFILE64] (struct flock64): New type.
3597         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
3598
3599         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
3600         * bits/dirent.h: ... here.
3601
3602         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
3603         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
3604
3605 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3606
3607         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3608         Change from 2.6.0 to 2.6.16.
3609         * sysdeps/unix/sysv/linux/configure: Regenerated.
3610         * sysdeps/unix/sysv/linux/kernel-features.h
3611         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
3612         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
3613         version.
3614         (__ASSUME_UTIMES): Likewise.
3615         (__ASSUME_CLONE_STOPPED): Remove.
3616         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
3617         architectures, not kernel version.
3618         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
3619         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3620         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3621         (__ASSUME_WAITID_SYSCALL): Likewise.
3622         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
3623         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
3624         * README: State 2.6.16 as minimum Linux kernel version.  Do not
3625         refer to older versions.
3626
3627 2012-08-06  Roland McGrath  <roland@hack.frob.com>
3628
3629         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
3630         Define alphasort64 as an alias.
3631         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
3632         Define versionsort64 as an alias.
3633         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
3634         Define scandir64 as an alias.
3635         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
3636         Define scandirat64 as an alias.
3637         * dirent/alphasort64.c (alphasort64):
3638         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
3639         * dirent/versionsort64.c: Likewise.
3640         * dirent/scandir64.c: Likewise.
3641         * dirent/scandirat64.c: Likewise.
3642         * sysdeps/wordsize-64/alphasort.c: File removed.
3643         * sysdeps/wordsize-64/alphasort64.c: File removed.
3644         * sysdeps/wordsize-64/scandir.c: File removed.
3645         * sysdeps/wordsize-64/scandir64.c: File removed.
3646         * sysdeps/wordsize-64/scandirat.c: File removed.
3647         * sysdeps/wordsize-64/scandirat64.c: File removed.
3648         * sysdeps/wordsize-64/versionsort.c: File removed.
3649         * sysdeps/wordsize-64/versionsort64.c: File removed.
3650         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
3651         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
3652         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
3653         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
3654         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
3655         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
3656         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
3657         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
3658
3659         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3660         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3661         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3662         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3663         [defined __arch64__ || defined __sparcv9]
3664         (__INO_T_MATCHES_INO64_T): New macro.
3665         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3666         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3667         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3668         * sysdeps/unix/sysv/linux/bits/dirent.h
3669         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3670         (_DIRENT_MATCHES_DIRENT64): New macro.
3671
3672         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3673         Define lockf64 as an alias.
3674         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3675         Define fseeko64 as an alias.
3676         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3677         Define ftello64 as an alias.
3678         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3679         Define _IO_fgetpos64 and fgetpos64 as aliases.
3680         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3681         Define _IO_fsetpos64 and fsetpos64 as aliases.
3682         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3683         Conditionalize body on this.
3684         * libio/fseeko64.c: Likewise.
3685         * libio/ftello64.c: Likewise.
3686         * libio/iofgetpos64.c: Likewise.
3687         * libio/iofsetpos64.c: Likewise.
3688         * sysdeps/wordsize-64/lockf.c: File removed.
3689         * sysdeps/wordsize-64/lockf64.c: File removed.
3690         * sysdeps/wordsize-64/fseeko.c: File removed.
3691         * sysdeps/wordsize-64/fseeko64.c: File removed.
3692         * sysdeps/wordsize-64/ftello.c: File removed.
3693         * sysdeps/wordsize-64/ftello64.c: File removed.
3694         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3695         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3696         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3697         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3698         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3699         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3700         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3701         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3702         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3703         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3704         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3705         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3706         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3707         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3708
3709         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3710         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3711         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3712         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3713         [defined __arch64__ || defined __sparcv9]
3714         (__OFF_T_MATCHES_OFF64_T): New macro.
3715         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3716         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3717         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3718         (__OFF_T_MATCHES_OFF64_T): New macro.
3719
3720 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3721
3722         * stdlib/secure-getenv.c (__secure_getenv): Replace
3723         GLIBC_2_16 with GLIBC_2_17.
3724
3725 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3726
3727         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3728         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3729
3730 2012-08-03  David S. Miller  <davem@davemloft.net>
3731
3732         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3733
3734 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3735
3736         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3737         Remove.
3738         (__ASSUME_CORRECT_SI_PID): Likewise.
3739         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3740         (__ASSUME_TMPFS_NAME): Likewise.
3741         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3742         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3743         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3744         (HAVE_AUX_SECURE): Make definition unconditional.
3745         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3746         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3747
3748 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3749
3750         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3751         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3752         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3753         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3754         __eloop_threshold instead of SYMLOOP_MAX.
3755
3756         * sysdeps/generic/eloop-threshold.h: New file.
3757         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3758         of MAXSYMLINKS.
3759         * elf/chroot_canon.c (chroot_canon): Likewise.
3760
3761 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3762
3763         [BZ #13717]
3764         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3765         Change to 2.6.0 everywhere.
3766         * sysdeps/unix/sysv/linux/configure: Regenerated.
3767         * sysdeps/unix/sysv/linux/kernel-features.h
3768         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3769         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3770         kernel versions.
3771         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3772         (__ASSUME_FUTEX_REQUEUE): Remove.
3773         (__ASSUME_STATFS64): Define unconditionally.
3774         (__ASSUME_AT_SECURE): Likewise.
3775         (__ASSUME_CORRECT_SI_PID): Likewise.
3776         (__ASSUME_TGKILL): Define without depending on kernel version for
3777         i386.
3778         (__ASSUME_UTIMES): Likewise.
3779         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3780         kernel version.
3781         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3782         (__ASSUME_TMPFS_NAME): Likewise.
3783         * README: Update reference to Linux kernel versions.
3784
3785 2012-08-02  Marek Polacek  <polacek@redhat.com>
3786
3787         [BZ# 14150]
3788         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3789         libc_cv_asm_type_prefix with %.
3790         * configure: Regenerated.
3791         * include/libc-symbols.h: Remove comment about
3792         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3793         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3794         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3795         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3796         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3797         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3798         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3799         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3800         * elf/tst-unique2mod1.c: Likewise.
3801         * elf/tst-unique1mod2.c: Likewise.
3802         * elf/tst-unique1mod1.c: Likewise.
3803         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3804         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3805         Replace ASM_TYPE_DIRECTIVE with .type.
3806         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3807         * sysdeps/i386/sysdep.h: Likewise.
3808         * sysdeps/x86_64/sysdep.h: Likewise.
3809         * sysdeps/sh/sysdep.h: Likewise.
3810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3811         Do not define ASM_TYPE_DIRECTIVE.
3812         * sysdeps/powerpc/sysdep.h: Likewise.
3813         * sysdeps/powerpc/powerpc32/sysdep.h:
3814         Replace ASM_TYPE_DIRECTIVE with .type.
3815         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3816         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3817         * sysdeps/i386/fpu/e_powf.S: Likewise.
3818         * sysdeps/i386/fpu/e_expl.S: Likewise.
3819         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3820         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3821         * sysdeps/i386/fpu/e_pow.S: Likewise.
3822         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3823         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3824         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3825         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3826         * sysdeps/i386/fpu/e_log2.S: Likewise.
3827         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3828         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3829         * sysdeps/i386/fpu/e_powl.S: Likewise.
3830         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3831         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3832         * sysdeps/i386/fpu/e_logl.S: Likewise.
3833         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3834         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3835         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3836         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3837         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3838         * sysdeps/i386/fpu/e_log.S: Likewise.
3839         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3840         * sysdeps/i386/fpu/e_logf.S: Likewise.
3841         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3842         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3843         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3844         * sysdeps/i386/fpu/e_log10.S: Likewise.
3845         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3846         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3847         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3848         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3849         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3850         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3851         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3852         * sysdeps/i386/i686/strtok.S: Likewise.
3853         * sysdeps/i386/i386-mcount.S: Likewise.
3854         * sysdeps/i386/strtok.S: Likewise.
3855         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3856         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3857         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3858         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3859         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3860         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3861         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3862         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3863         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3864         * sysdeps/x86_64/_mcount.S: Likewise.
3865         * sysdeps/x86_64/strtok.S: Likewise.
3866         * sysdeps/sh/_mcount.S: Likewise.
3867
3868 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3869
3870         * libio/iofopen.c: Include <fcntl.h>.
3871         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3872         (_IO_fopen64, fopen64): Define as aliases.
3873         * libio/iofopen64.c: Include <fcntl.h>.
3874         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3875         Conditionalize body on this.
3876         * sysdeps/wordsize-64/iofopen.c: File removed.
3877         * sysdeps/wordsize-64/iofopen64.c: File removed.
3878
3879 2012-08-01  Marek Polacek  <polacek@redhat.com>
3880
3881         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3882         Use dlfcn directly instead of a variable.
3883         (binfmt-subdir): Do not define.
3884         (dlfcn): Likewise.
3885
3886 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3887
3888         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3889         Remove all definitions.
3890         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3891         <kernel-features.h>.
3892         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3893         (miss_F_GETOWN_EX): Remove all definitions.
3894         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3895         macro definition.
3896         [!__ASSUME_FCNTL64]: Remove conditional code.
3897         [__ASSUME_FCNTL64]: Make code unconditional.
3898         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3899         <kernel-features.h>.
3900         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3901         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3902         (lockf64) [__NR_fcntl64]: Make code unconditional.
3903         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3904
3905         * sysdeps/unix/sysv/linux/kernel-features.h
3906         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3907         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3908         Make code unconditional.
3909         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3910         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3912         [__NR_vfork]: Make code unconditional.
3913         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3914         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3916         [__NR_vfork]: Make code unconditional.
3917         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3918         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3919
3920 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3921
3922         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3923         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3924
3925         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3926         Define mkstemp64 as an alias.
3927         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3928         Define mkstemps64 as an alias.
3929         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3930         Define mkostemp64 as an alias.
3931         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3932         Define mkostemps64 as an alias.
3933         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3934         Conditionalize body on this.
3935         * misc/mkostemp64.c: Likewise.
3936         * misc/mkostemps64.c: Likewise.
3937         * misc/mkstemps64.c: Likewise.
3938         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3939         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3940         * sysdeps/wordsize-64/mkostemp.c: File removed.
3941         * sysdeps/wordsize-64/mkstemp.c: File removed.
3942         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3943         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3944         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3945         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3946
3947         [BZ #14138]
3948         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3949         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3950         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3951         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3952
3953         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3954         compat_symbol macros from <shlib-compat.h> rather than the underlying
3955         default_symbol_version and symbol_version macros, so that DEFAULT
3956         lines in shlib-versions are respected.
3957         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3958
3959 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3960
3961         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3962         Declare with warn_unused_result.
3963         (setgid, setregid, setegid, setresgid): Likewise.
3964         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3965         Likewise.
3966         * WUR-REPORT: Remove set*id functions.
3967
3968 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3969
3970         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3971
3972 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3973
3974         * include/sys/socket.h (__libc_accept, __libc_accept4):
3975         Add attribute_hidden.
3976         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3977
3978         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3979         use of PTR_MANGLE.
3980         * inet/getnetgrent_r.c (setup): Likewise.
3981
3982         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3983
3984 2012-07-31  David S. Miller  <davem@davemloft.net>
3985
3986         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3987
3988 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3989
3990         [BZ #13629]
3991         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3992         value between 1.0 and 2.0 and smaller part has absolute value less
3993         than 1.0.
3994         * math/s_clog10.c (__clog10): Likewise.
3995         * math/s_clog10f.c (__clog10f): Likewise.
3996         * math/s_clog10l.c (__clog10l): Likewise.
3997         * math/s_clogf.c (__clogf): Likewise.
3998         * math/s_clogl.c (__clogl): Likewise.
3999         * math/libm-test.inc (clog_test): Add more tests.
4000         (clog10_test): Likewise.
4001         * sysdeps/i386/fpu/libm-test-ulps: Update.
4002         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4003
4004 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4005
4006         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4007         Exit with zero in case no suitable GID is found, and write a
4008         message to standard error.
4009
4010 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4011
4012         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4013         rather than to 1.
4014         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4015         (MAXPATHLEN): Removed.
4016         (NOGROUP, NODEV): New macros.
4017         (setbit, clrbit, isset, isclr): New macros.
4018         (howmany, roundup, powerof2): New macros.
4019         (DEV_BSIZE): New macro.
4020
4021         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4022         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4023
4024         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4025         definition on [!__NO_LONG_DOUBLE_MATH].
4026
4027         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4028         PTR_MANGLE and PTR_DEMANGLE.
4029
4030         * socket/accept4.c (accept4): Rename to __libc_accept4.
4031         Define accept4 as a weak alias.
4032
4033         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4034         on [_DIRENT_HAVE_D_TYPE].
4035         * io/ftw.c (ftw_dir): Likewise.
4036
4037         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4038
4039         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4040
4041         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4042         Use the BSD numbers rather than the arbitrary ones we had.
4043         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4044         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4045         (SIGXCPU, SIGXFSZ): New macros.
4046         (_NSIG): Now 32.
4047
4048         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4049         initializer on [_LIBC_REENTRANT].
4050
4051         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4052         definitions inside [_POSIX_MAPPED_FILES].
4053
4054         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4055
4056         * dirent/opendir.c: Include <fcntl.h>.
4057
4058         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4059         (__libc_getspecific): Likewise.
4060         (__libc_key_create): Likewise.
4061
4062         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4063         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4064         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4065         (tmpfile64): Define as alias.
4066         * sysdeps/wordsize-64/tmpfile.c: File removed.
4067         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4068         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4069         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4070
4071         * stdio-common/vfscanf.c: Include <stdbool.h>.
4072         * nss/makedb.c: Likewise.
4073         * stdio-common/_i18n_number.h: Likewise.
4074         * argp/argp-help.c: Likewise.
4075         * posix/wordexp.c: Likewise.
4076         * sysdeps/posix/spawni.c: Likewise.
4077         * nss/nss_files/files-initgroups.c: Likewise.
4078         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4079         * nss/nss_files/files-initgroups.c: Likewise.
4080         * nss/nss_db/db-netgrp.c: Likewise.
4081         * nss/nss_db/db-initgroups.c: Likewise.
4082         * io/fchmodat.c: Include <sys/stat.h>.
4083
4084         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4085         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4086
4087         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4088         [HAVE_MMAP].
4089
4090         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4091         Add multiple inclusion protection.
4092
4093 2012-07-27  David S. Miller  <davem@davemloft.net>
4094
4095         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4096
4097 2012-07-27  Gary Benson  <gbenson@redhat.com>
4098
4099         [BZ #14298]
4100         * elf/rtld.c: Include <stap-probe.h>.
4101         (dl_main): Added static probes "init_start" and "init_complete".
4102         * elf/dl-load.c: Include <stap-probe.h>.
4103         (lose): Take new parameter "nsid".
4104         Added static probe "map_failed".
4105         (_dl_map_object_from_fd): Pass namespace id to lose.
4106         Added static probe "map_start".
4107         (open_verify): Pass namespace id to lose.
4108         * elf/dl-open.c: Include <stap-probe.h>.
4109         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4110         and "reloc_complete".
4111         * elf/dl-close.c: Include <stap-probe.h>.
4112         (_dl_close_worker): Added static probes "unmap_start" and
4113         "unmap_complete".
4114         * elf/rtld-debugger-interface.txt: New file documenting the above.
4115
4116 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4117
4118         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4119         rather than a string variable.
4120         * sunrpc/rpc_main.c (h_output): Likewise.
4121         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4122
4123 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4124
4125         * inet/check_native.c: New file.
4126
4127 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4128
4129         [BZ #13629]
4130         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4131         if larger part has absolute value 1.0.
4132         * math/s_clog10.c (__clog10): Likewise.
4133         * math/s_clog10f.c (__clog10f): Likewise.
4134         * math/s_clog10l.c (__clog10l): Likewise.
4135         * math/s_clogf.c (__clogf): Likewise.
4136         * math/s_clogl.c (__clogl): Likewise.
4137         * math/libm-test.inc (clog_test): Add more tests.
4138         (clog10_test): Likewise.
4139         * sysdeps/i386/fpu/libm-test-ulps: Update.
4140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4141
4142         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4143         (pltexit): Likewise.
4144         (La_regs): Likewise.
4145         (La_retval): Likewise.
4146         (int_retval): Likewise.
4147         Update #error for removed macros to refer only to definitions in
4148         tst-audit.h.
4149         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4150         macro.
4151         (pltexit): Likewise.
4152         (La_regs): Likewise.
4153         (La_retval): Likewise.
4154         (int_retval): Likewise.
4155         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4156         macro.
4157         (pltexit): Likewise.
4158         (La_regs): Likewise.
4159         (La_retval): Likewise.
4160         (int_retval): Likewise.
4161         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4162         macro.
4163         (pltexit): Likewise.
4164         (La_regs): Likewise.
4165         (La_retval): Likewise.
4166         (int_retval): Likewise.
4167         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4168         macro.
4169         (pltexit): Likewise.
4170         (La_regs): Likewise.
4171         (La_retval): Likewise.
4172         (int_retval): Likewise.
4173         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4174         macro.
4175         (pltexit): Likewise.
4176         (La_regs): Likewise.
4177         (La_retval): Likewise.
4178         (int_retval): Likewise.
4179         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4180         macro.
4181         (pltexit): Likewise.
4182         (La_regs): Likewise.
4183         (La_retval): Likewise.
4184         (int_retval): Likewise.
4185         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4186         macro definitions in tst-audit.h.
4187         * sysdeps/i386/tst-audit.h: New file.
4188         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4189         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4190         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4191         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4192         * sysdeps/sh/tst-audit.h: Likewise.
4193         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4194         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4195         * sysdeps/x86_64/tst-audit.h: Likewise.
4196
4197 2012-07-26  Andreas Jaeger  <aj@suse.de>
4198
4199         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4200         ptrace.
4201
4202         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4203         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4204         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4205         PTRACE_O_MASK.
4206         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4207         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4208         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4209
4210         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4211         value.
4212
4213         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4214         _sigsys.
4215         (si_call_addr, si_syscall, si_arch): Define new macro.
4216         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4217         _sigsys.
4218         (si_call_addr, si_syscall, si_arch): Define new marcro.
4219         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4220         _sigsys.
4221         (si_call_addr, si_syscall, si_arch): Define new macro.
4222         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4223         _sigsys.
4224         (si_call_addr, si_syscall, si_arch): Define new macro.
4225
4226 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4227
4228         [BZ #13717]
4229         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4230         Change to 2.4.21 where previously 2.4.1.
4231         * sysdeps/unix/sysv/linux/configure: Regenerated.
4232         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4233         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4234         Linux kernel version.
4235         (__ASSUME_STD_AUXV): Remove.
4236         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4237         kernel version.
4238         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4239         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4240         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4241         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4242         (__ASSUME_NETLINK_SUPPORT): Likewise.
4243         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4244         (__no_netlink_support): Remove conditional definition.
4245         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4246         Remove.
4247         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4248         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4249         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4250         (if_nameindex_ioctl): Remove.
4251         (if_nameindex_netlink): Do not handle __no_netlink_support.
4252         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4253         code.
4254         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4255         Remove conditional code.
4256         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4257         code.
4258         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4259         unconditional.
4260         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4261         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4262         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4263         Remove.
4264         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4265         [!__ASSUME_STD_AUXV]: Remove conditional code.
4266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4267         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4268         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4270         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4271         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4272         code.
4273         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
4275         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
4276         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4277         conditional code.
4278         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
4280         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4281         code.
4282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
4283         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4284         conditional code.
4285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4286         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4287         code unconditional.
4288         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4289         conditional code.
4290         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4291         unconditional.
4292         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4293         conditional code.
4294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4295         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4296         unconditional.
4297         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4298         conditional code.
4299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4300         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4301         code unconditional.
4302         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4303         conditional code.
4304         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4305         unconditional.
4306         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4307         conditional code.
4308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4309         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4310         code unconditional.
4311         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4312         conditional code.
4313         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4314         unconditional.
4315         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4316         conditional code.
4317
4318 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
4319
4320         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
4321         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
4322         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4323         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
4324         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
4325         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4326         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4327         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
4328         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
4329         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4330         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
4331         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4332         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
4333         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4334         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4335         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
4336         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
4337         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
4338         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
4339         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
4340         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
4341         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4342         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4343
4344 2012-07-25  Florian Weimer  <fweimer@redhat.com>
4345
4346         * Versions.def: Add GLIBC_2.17.
4347         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
4348         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
4349         Introduce __libc_secure_getenv.
4350         * stdlib/Versions (2.17): Add secure_getenv
4351         (GLIBC_PRIVATE): Add __libc_secure_getenv.
4352         * stdlib/secure-getenv.c: Rename __secure_getenv to
4353         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
4354         symbol __secure_getenv for GLIBC_2.0.
4355         * stdlib/tst-secure-getenv.c: New.
4356         * stdlib/Makefile (tests): Add testcase.
4357         * manual/startup.texi (Environment Access): Document
4358         secure_getenv.
4359         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
4360         __libc_secure_getenv.
4361         * inet/ruserpass.c (ruserpass): Likewise.
4362         * malloc/mtrace.c (mtrace): Likewise.
4363         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
4364         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4365         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
4366         * sysdeps/posix/tempname.c: Likewise.  Evaluate
4367         HAVE_SECURE_GETENV.
4368         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
4369         __secure_getenv to __libc_secure_getenv.
4370         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
4371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4372         Likewise.
4373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4374         Likewise.
4375         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
4376         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
4377         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4378         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
4379         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
4380         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4381         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
4382
4383 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4384
4385         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
4386         (struct La_i86_retval): Likewise.
4387         (struct La_x86_64_regs): Likewise.
4388         (struct La_x86_64_retval): Likewise.
4389         (struct La_x32_regs): Likewise.
4390         (struct La_x32_retval): Likewise.
4391         (struct La_ppc32_regs): Likewise.
4392         (struct La_ppc32_retval): Likewise.
4393         (struct La_ppc64_regs): Likewise.
4394         (struct La_ppc64_retval): Likewise.
4395         (struct La_sh_regs): Likewise.
4396         (struct La_sh_retval): Likewise.
4397         (struct La_s390_32_regs): Likewise.
4398         (struct La_s390_32_retval): Likewise.
4399         (struct La_s390_64_regs): Likewise.
4400         (struct La_s390_64_retval): Likewise.
4401         (struct La_sparc32_regs): Likewise.
4402         (struct La_sparc32_retval): Likewise.
4403         (struct La_sparc64_regs): Likewise.
4404         (struct La_sparc64_retval): Likewise.
4405         (struct audit_ifaces): Remove architecture-specific pltenter and
4406         pltexit members.
4407         * sysdeps/i386/ldsodefs.h: New file.
4408         * sysdeps/powerpc/ldsodefs.h: Likewise.
4409         * sysdeps/s390/ldsodefs.h: Likewise.
4410         * sysdeps/sh/ldsodefs.h: Likewise.
4411         * sysdeps/sparc/ldsodefs.h: Likewise.
4412         * sysdeps/x86_64/ldsodefs.h: Likewise.
4413
4414 2012-07-25  Marek Polacek  <polacek@redhat.com>
4415
4416         [BZ #6808]
4417         * math/libm-test.inc (yn_test): Add another test.
4418         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
4419         to ERANGE when the result is +-Inf.
4420         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
4421         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4422         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
4423         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
4424
4425 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
4426
4427         * conform/data/time.h-data (NULL): Use macro-constant.  Require
4428         equal to 0.
4429         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
4430         clock_t.
4431         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
4432
4433 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
4434
4435         * configure.in <sysdeps resolving>: Correct printing
4436         Implies_before.
4437         * configure: Regenerate.
4438
4439 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
4440
4441         * math/w_ilogb.c: Include <limits.h>.
4442         * math/w_ilogbl.c: Likewise.
4443
4444 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4445
4446         * manual/lang.texi (__va_copy): Document primarily as ISO C99
4447         va_copy.  Document allowing for unavailable va_copy only as
4448         pre-C99 compatibility.
4449         * manual/string.texi (Copying and Concatenation): Use va_copy
4450         instead of __va_copy in concat example.
4451
4452 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
4453
4454         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
4455         (__sendto): Use create_address_port.  Initialize APORT and deallocate
4456         it if not null.
4457
4458         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
4459         with O_NOLINK passed to __file_name_lookup.
4460
4461         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
4462         with O_NOLINK passed to __file_name_lookup.
4463
4464         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
4465         negative N or less than NGIDS.
4466
4467         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
4468         type to string_t.  Set ERANGE as errno and return it if NAME is not big
4469         enough.  Use memcpy instead of strncpy.
4470
4471 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4472
4473         * elf/Makefile (check-data): Remove.
4474         (localplt.data): New vpath directive.
4475         ($(objpfx)check-localplt.out): Use localplt.data from vpath
4476         instead of $(check-data).
4477         * scripts/data/localplt-generic.data: Move to ...
4478         * sysdeps/generic/localplt.data: ... here.
4479         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
4480         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
4481         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
4482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
4483         ... here.
4484         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
4485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
4486         ... here.
4487         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
4488         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
4489         ... here.
4490         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
4491         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
4492         ... here.
4493         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
4494         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
4495         ... here.
4496         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
4497         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
4498         ... here.
4499
4500 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4501
4502         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
4503         PPC32 and PPC64 files.
4504         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
4505         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
4506
4507 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4508
4509         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
4510         __makecontext_ret to ...
4511         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
4512         ... here and call exit if uc_link is NULL.  New file.
4513         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
4514         __makecontext_ret.S.
4515         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
4516         __makecontext_ret to ...
4517         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
4518         ... here and call exit if uc_link is NULL.  New file.
4519         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
4520         __makecontext_ret.S.
4521
4522 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4523
4524         * elf/elf.h (R_390_IRELATIVE): New definition.
4525         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
4526         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
4527         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
4528         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4529         (elf_machine_lazy_rel): Likewise.
4530         * sysdeps/s390/dl-irel.h: New file.
4531         * sysdeps/s390/s390-64/memcpy.S: New asm code.
4532         * sysdeps/s390/s390-64/memset.S: New asm code.
4533         * sysdeps/s390/s390-64/memcmp.S: New asm code.
4534         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
4535         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
4536         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
4537         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
4538         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
4539         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
4540         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
4541         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
4542         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
4543         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
4544         * sysdeps/s390/s390-32/memcpy.S: New asm code.
4545         * sysdeps/s390/s390-32/memset.S: New asm code.
4546         * sysdeps/s390/s390-32/memcmp.S: New asm code.
4547
4548 2012-07-17  Marek Polacek  <polacek@redhat.com>
4549
4550         [BZ #14349]
4551         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
4552         * sysdeps/s390/s390-64/configure.in: Likewise.
4553         * sysdeps/sparc/configure.in: Likewise.
4554         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
4555         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
4556         * sysdeps/i386/configure.in: Likewise.
4557         * sysdeps/x86_64/configure.in: Likewise.
4558         * sysdeps/sh/configure.in: Likewise.
4559         * sysdeps/s390/s390-32/configure: Regenerated.
4560         * sysdeps/s390/s390-64/configure: Likewise.
4561         * sysdeps/x86_64/configure: Likewise.
4562         * sysdeps/sh/configure: Likewise.
4563         * sysdeps/powerpc/powerpc64/configure: Likewise.
4564         * sysdeps/powerpc/powerpc32/configure: Likewise.
4565         * sysdeps/sparc/configure: Likwise.
4566         * sysdeps/i386/configure: Likewise.
4567
4568         * elf/dl-open.c: Comment fixes.
4569
4570 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
4571
4572         * Makefile [CXX] (check-data): Remove.
4573         [CXX] (c++-types.data): New vpath directive.
4574         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
4575         vpath.  Do not allow for C++ type data being missing.
4576         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
4577         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
4578         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
4579         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
4580         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
4581         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
4582         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
4583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
4584         ... here.
4585         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
4586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
4587         ... here.
4588         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
4589         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
4590         ... here.
4591         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
4592         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
4593         ... here.
4594         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
4595         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
4596         ... here.
4597         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
4598         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
4599         ... here.
4600         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
4601         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
4602         ... here.
4603         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
4604         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
4605
4606         * elf/tls-macros.h (TLS_LE): Move architecture-specific
4607         definitions to architecture-specific files.
4608         (TLS_IE): Likewise.
4609         (TLS_LD): Likewise.
4610         (TLS_GD): Likewise.
4611         * sysdeps/i386/tls-macros.h: New file.
4612         * sysdeps/powerpc/tls-macros.h: Likewise.
4613         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
4614         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
4615         * sysdeps/sh/tls-macros.h: Likewise.
4616         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
4617         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
4618         * sysdeps/x86_64/tls-macros.h: Likewise.
4619
4620 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4621
4622         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
4623         zero value for regular exit case.
4624
4625         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4626         (__start_context): Preserve zero value for regular exit case.
4627
4628 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4629             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4630
4631         * manual/setjmp.texi (setcontext): Clarify normal process
4632         termination when uc_link is the null pointer.
4633         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
4634         exit call.
4635
4636 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
4637
4638         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
4639         preprocessor.  Test for each exception mask separately.
4640
4641 2012-07-16  Andreas Jaeger  <aj@suse.de>
4642
4643         * po/ru.po: Update from translation team.
4644
4645 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
4646
4647         * conform/data/string.h-data (NULL): Use macro-constant.  Require
4648         equal to 0.
4649         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4650         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4651         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
4652         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
4653         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4654
4655 2012-07-13  Andreas Jaeger  <aj@suse.de>
4656
4657         * po/fr.po: Update from translation team.
4658
4659 2012-07-12  Marek Polacek  <polacek@redhat.com>
4660
4661         [BZ #14173]
4662         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4663         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4664         loop condition.
4665
4666 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4667
4668         [BZ #13717]
4669         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4670         Change to 2.4.1 where previously 2.4.0.
4671         * sysdeps/unix/sysv/linux/configure: Regenerated.
4672         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4673         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4674         version.
4675         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4676         (__ASSUME_AT_CLKTCK): Remove.
4677         (__ASSUME_AT_PAGESIZE): Likewise.
4678         (__ASSUME_AT_XID): Likewise.
4679         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4680         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4681         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4682         unconditionally.
4683         (HAVE_AUX_PAGESIZE): Likewise.
4684         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4685         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4686         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4687
4688 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4689
4690         [BZ #14307]
4691         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4692         the temporary buffer used to invoke __gethostbyname2_r,
4693         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4694         host_data / struct gaih_addrtuple.
4695         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4696         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4697         header file nss/nsswitch.h.
4698         * nss/nsswitch.h (global scope): Add definition of implementation
4699         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4700         resolv/nss_dns/dns-host.c).
4701
4702 2012-07-11  Andreas Jaeger  <aj@suse.de>
4703
4704         * po/fr.po: Update from translation team.
4705
4706         * po/sv.po: Update from translation team
4707         * po/fr.po: Another update from translation team.
4708
4709 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4710
4711         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4712         for subnormals or multiply small sinh result by itself.
4713         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4714         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4715
4716 2012-07-11  David S. Miller  <davem@davemloft.net>
4717
4718         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4719
4720 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4721
4722         [BZ #14347]
4723         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4724         (INTERNAL_MARK): Shift it here.
4725
4726 2012-07-10  Marek Polacek  <polacek@redhat.com>
4727
4728         [BZ #14151]
4729         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4730         libc_cv_asm_global_directive with .globl.
4731         * configure: Regenerated.
4732         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4733         with .globl.
4734         * sysdeps/i386/configure: Regenerated.
4735         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4736         with .globl.
4737         * sysdeps/x86_64/configure: Regenerated.
4738         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4739         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4740         * elf/tst-unique2mod2.c: Likewise.
4741         * elf/tst-unique2mod1.c: Likewise.
4742         * elf/tst-unique1mod2.c: Likewise.
4743         * elf/tst-unique1mod1.c: Likewise.
4744         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4745         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4746         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4747         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4748         * sysdeps/mach/sysdep.h: Likewise.
4749         * sysdeps/i386/sysdep.h: Likewise.
4750         * sysdeps/i386/i386-mcount.S: Likewise.
4751         * sysdeps/x86_64/_mcount.S: Likewise.
4752         * sysdeps/x86_64/sysdep.h: Likewise.
4753         * sysdeps/sh/_mcount.S: Likewise.
4754         * sysdeps/sh/sysdep.h: Likewise.
4755         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4756         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4757         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4758         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4759         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4760         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4761         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4762         * locale/localeinfo.h: Likewise.
4763         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4764         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4765
4766 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4767
4768         [BZ #14336]
4769         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4770         system".
4771         * manual/message.texi (The Uniforum approach): Likewise.
4772         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4773         (glibc iconv Implementation): Likewise.
4774
4775 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4776
4777         [BZ #14337]
4778         * math/s_clog.c (__clog): Avoid scaling a value down where that
4779         could result in underflow.
4780         * math/s_clog10.c (__clog10): Likewise.
4781         * math/s_clog10f.c (__clog10f): Likewise.
4782         * math/s_clog10l.c (__clog10l): Likewise.
4783         * math/s_clogf.c (__clogf): Likewise.
4784         * math/s_clogl.c (__clogl): Likewise.
4785         * math/libm-test.inc (clog_test): Add more tests.
4786         (clog10_test): Likewise.
4787         * sysdeps/i386/fpu/libm-test-ulps: Update.
4788         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4789
4790 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4791
4792         [BZ #14283]
4793         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4794         by 7 not 8 to examine high bit of fractional part.
4795
4796         [BZ #14042]
4797         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4798         for call to __mcount_internal.
4799         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4800         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4801         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4802
4803 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4804
4805         [BZ #14154]
4806         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4807         approximation for values within 0x1p-13f of an odd multiple of
4808         pi/4.
4809         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4810         exception.  Add more tests.
4811         * sysdeps/i386/fpu/libm-test-ulps: Update.
4812
4813         [BZ #6778]
4814         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4815         inputs and return -1 for them.  Do not check for +Inf in case not
4816         reachable for +Inf.
4817         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4818         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4819         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4820         and return -1 for them.  Do not check for +Inf in case not
4821         reachable for +Inf.
4822         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4823         define.
4824         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4825         and return -1 for them.  Do not check for +Inf in case not
4826         reachable for +Inf.
4827         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4828         spurious underflow.
4829         * sysdeps/i386/fpu/libm-test-ulps: Update.
4830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4831
4832 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4833
4834         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4835
4836 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4837
4838         [BZ #14157]
4839         [BZ #14331]
4840         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4841         could result in spurious underflow.  Scale down values above
4842         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4843         * math/s_csqrtf.c (__csqrtf): Likewise.
4844         * math/s_csqrtl.c (__csqrtl): Likewise.
4845         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4846         spurious underflow.
4847         * sysdeps/i386/fpu/libm-test-ulps: Update.
4848         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4849
4850 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4851
4852         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4853         xopen-msg.sed.
4854         * catgets/xopen-msg.awk: New file.
4855         * catgets/xopen-msg.sed: Removed.
4856
4857         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4858         po2text.sed.
4859         * intl/po2test.awk: New file.
4860         * intl/po2test.sed: Removed.
4861
4862 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4863
4864         [BZ #14328]
4865         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4866         or multiply small sinh result by itself.
4867         * math/s_ctanf.c (__ctanf): Likewise.
4868         * math/s_ctanh.c (__ctanh): Likewise.
4869         * math/s_ctanhf.c (__ctanhf): Likewise.
4870         * math/s_ctanhl.c (__ctanhl): Likewise.
4871         * math/s_ctanl.c (__ctanl): Likewise.
4872         * math/libm-test.inc (ctan_test_tonearest): New function.
4873         (ctan_test_towardzero): Likewise.
4874         (ctan_test_downward): Likewise.
4875         (ctan_test_upward): Likewise.
4876         (ctanh_test_tonearest): Likewise.
4877         (ctanh_test_towardzero): Likewise.
4878         (ctanh_test_downward): Likewise.
4879         (ctanh_test_upward): Likewise.
4880         (main): Call these new functions.
4881         * sysdeps/i386/fpu/libm-test-ulps: Update.
4882         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4883
4884 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4885
4886         * .gitignore: Delete /ports entry.
4887
4888 2012-07-03  Andreas Jaeger  <aj@suse.de>
4889
4890         * po/bg.po: Update from translation team.
4891         * po/cs.po: Likewise.
4892         * po/de.po: Likewise.
4893         * po/hr.po: Likewise.
4894         * po/nl.pl: Likewise.
4895         * po/pl.po: Likewise.
4896         * po/vi.po: Likewise.
4897
4898 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4899
4900         * Makeconfig [!+link] (+link-before-libc): New variable.
4901         [!+link] (+link-after-libc): Likewise.
4902         [!+link] (+link-tests): Likewise.
4903         [!+link] (+link): Define in terms of $(+link-before-libc) and
4904         $(+link-after-libc).
4905         [!+link-static] (+link-static-before-libc): New variable.
4906         [!+link-static] (+link-static-after-libc): Likewise.
4907         [!+link-static] (+link-static-tests): Likewise.
4908         [!+link-static] (+link-static): Define in terms of
4909         $(+link-static-before-libc) and $(+link-static-after-libc).
4910         [build-shared] (link-libc-before-gnulib): New variable.
4911         [build-shared] (link-libc-tests): Likewise.
4912         [build-shared] (link-libc): Define in terms of
4913         $(link-libc-before-gnulib).
4914         [!build-shared] (link-libc-tests): New variable.
4915         (link-libc-static-tests): New variable.
4916         [!gnulib] (gnulib-arch): New variable.
4917         [!gnulib] (gnulib-tests): Likewise.
4918         [!gnulib] (static-gnulib-arch): Likewise.
4919         [!gnulib] (static-gnulib-tests): Likewise.
4920         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4921         Define with "=" instead of ":=".
4922         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4923         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4924         * Rules (binaries-all-notests): New variable.
4925         (binaries-all-tests): Likewise.
4926         (binaries-static-notests): Likewise.
4927         (binaries-static-tests): Likewise.
4928         (binaries-all): Define using $(binaries-all-notests) and
4929         $(binaries-all-tests).
4930         (binaries-static): Define using $(binaries-static-notests) and
4931         $(binaries-static-tests).
4932         (binaries-shared-tests): New variable.
4933         (binaries-shared-notests): Likewise.
4934         (binaries-shared): Remove variable.
4935         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4936         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4937         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4938         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4939         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4940         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4941         * elf/Makefile (sln-modules): New variable.
4942         (extra-objs): Add $(sln-modules:=.o).
4943         (ldconfig-modules): Add static-stubs.
4944         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4945         * elf/static-stubs.c: New file.
4946
4947         [BZ #14283]
4948         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4949         by 7 not 8 to examine high bit of fractional part.  Use volatile
4950         variables when splitting into final array of floats if
4951         __FLT_EVAL_METHOD__ != 0.
4952         * math/libm-test.inc (cos_test): Add another test.
4953         (sin_test): Likewise.
4954         * sysdeps/i386/fpu/libm-test-ulps: Update.
4955
4956         [BZ #14273]
4957         * math/libm-test.inc (cosh_test): Add more tests.
4958
4959         * version.h (RELEASE): Set to "development".
4960         (VERSION): Set to "2.16.90".
4961
4962 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4963
4964         * NEWS: Update copyright. Remove last-updated date.
4965         Mention math library bug fixes and timezone data changes.
4966         * README: Mention GNU/Hurd, x32, and HPPA support status.
4967
4968 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4969
4970         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4971
4972 2012-06-27  Andreas Jaeger  <aj@suse.de>
4973
4974         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4975
4976 2012-06-25  Andreas Jaeger  <aj@suse.de>
4977
4978         * sysdeps/s390/fpu/libm-test-ulps: Update.
4979
4980 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4981             Thomas Schwinge  <thomas@codesourcery.com>
4982
4983         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4984         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4985         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4986         fanotify_mark.
4987
4988 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4989
4990         * sysdeps/mach/start.c: Remove file.
4991         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4992         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4993         * sysdeps/sh/init-first.c: Likewise.
4994
4995         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4996         registers for frame unwinding purposes, add CFI directives.
4997         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4998         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4999         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5000         Likewise.
5001
5002         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5003         __fortify_fail returning.
5004         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5005
5006         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5007         sysdeps/sh/____longjmp_chk.S.
5008         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5009         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5010         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5011         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5012
5013         * sysdeps/sh/abort-instr.h: New file.
5014         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5015         process in case exit returns.
5016
5017         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5018         initialize the GOT register before use.
5019
5020         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5021         calculation of ARGC > 4.
5022
5023         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5024         meaningful names to some local labels.
5025
5026 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5027             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5028
5029         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5030         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5031         (__arch_compare_and_exchange_val_16_acq): Likewise.
5032         (__arch_compare_and_exchange_val_32_acq): Likewise.
5033         (atomic_exchange_and_add): Fix gUSA sequence.
5034         (atomic_add): Likewise.
5035         (atomic_add_negative): Likewise.
5036         (atomic_add_zero): Likewise.
5037         (atomic_bit_test_set): Likewise.
5038
5039 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5040
5041         [BZ #13579]
5042         * include/link.h (struct link_map): Add l_free_initfini.
5043         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5044         l_initfini.
5045         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5046         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5047         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5048         set.
5049
5050 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5051
5052         * configure.in: Use AC_LANG_SOURCE.
5053         * configure: Regenerate.
5054
5055 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5056
5057         * configure.in (libc_cv_localstatedir): New substituted variable.
5058         * configure: Regenerated.
5059         * config.make.in (localstatedir): New variable, substituted from
5060         libc_cv_localstatedir.
5061         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5062         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5063         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5064         * sysdeps/gnu/configure: Regenerated.
5065
5066 2012-06-21  Jeff Law  <law@redhat.com>
5067
5068         [BZ #14277]
5069         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5070         free.  Simplify list management for _LIBC case.
5071
5072 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5073
5074         [BZ #14273]
5075         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5076         Clear sign bit of 64-bit integer value before comparing against
5077         overflow value.
5078
5079         * sysdeps/mach/configure: Regenerated.
5080
5081 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5082
5083         [BZ #14278]
5084         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5085
5086 2012-06-21  Jeff Law  <law@redhat.com>
5087
5088         [BZ #13882]
5089         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5090         uint16_t for elements in the "seen" array to avoid char overflows.
5091         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5092         * elf/dl-open.c (dl_open_worker): Likewise.
5093
5094 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5095
5096         * scripts/list-sources.sh: Scan PORTS for translations.
5097         * po/libc.pot: Regenerated.
5098
5099 2012-06-21  Andreas Jaeger  <aj@suse.de>
5100
5101         [BZ #12194]
5102         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5103         warning.
5104         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5105         * bits/byteswap-16.h (__bswap_16): Likewise.
5106         * bits/byteswap.h (__bswap_constant_16): Likewise.
5107
5108 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5109
5110         [BZ #14117]
5111         * sysdeps/i386/fpu_control.h: Removed.
5112         * sysdeps/x86_64/fpu_control.h: Moved to ...
5113         * sysdeps/x86/fpu_control.h: Here.
5114
5115         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5116         (_FPU_SETCW): Likewise.
5117
5118 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5119
5120         [BZ #14117]
5121         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5122         * sysdeps/x86/fpu/bits/mathinline.h: This.
5123         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5124
5125         [BZ #14050]
5126         [BZ #14117]
5127         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5128         functions if __x86_64__ is defined.
5129
5130 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5131
5132         * string/endian.h: Add !__ASSEMBLER__ condition for including
5133         conversion interfaces.
5134
5135 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5136
5137         [BZ #14241]
5138         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5139         of ABS(x) in calculating zero to negative powers other than odd
5140         integers.
5141         * math/libm-test.inc (pow_test): Add more tests.
5142
5143 2012-06-15  Andreas Jaeger  <aj@suse.de>
5144
5145         * manual/contrib.texi (Contributors): Update entry of Liubov
5146         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5147         Machado Filho.
5148
5149 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5150
5151         * string/string.h: Add __wur to GNU version of strerror_r.
5152
5153 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5154
5155         [BZ #14229]
5156         * string/Makefile (tests): Add tst-strtok_r.
5157         * string/tst-strtok_r.c: New file.
5158         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5159         RAX_LP/RDX_LP on SAVE_PTR.
5160
5161 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5162
5163         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5164
5165 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5166
5167         * libm_test.inc (csqrt_test): Allow more spurious underflow
5168         exceptions.
5169         (j0_test): Likewise.
5170         (j1_test): Likewise.
5171         (y0_test): Likewise.
5172         (y1_test): Likewise.
5173
5174 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5175
5176         * po/Makefile (libc.pot): Use UTF-8 charset.
5177
5178 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5179
5180         [BZ #14210]
5181         Suppress sign-conversion warning from FD_SET.
5182         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5183         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5184         not unsigned long int.
5185         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5186
5187 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5188
5189         [BZ #14050]
5190         [BZ #14117]
5191         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5192         __extern_always_inline instead of __extern_inline.
5193         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5194         (__signbit): Likewise.
5195         (__signbitl): Support C++ namespace.
5196         (lrintf): New inline function.
5197         (lrint): Likewise.
5198         (llrintf): Likewise.
5199         (llrint): Likewise.
5200         (fmaxf): Likewise.
5201         (fmax): Likewise.
5202         (fminf): Likewise.
5203         (fmin): Likewise.
5204         (rint): Likewise.
5205         (rintf): Likewise.
5206         (ceil): Likewise.
5207         (ceilf): Likewise.
5208         (floor): Likewise.
5209         (floorf): Likewise.
5210         (nearbyint): Likewise.
5211         (nearbyintf): Likewise.
5212
5213 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5214
5215         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5216         non-default versions.
5217
5218 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5219
5220         [BZ #14218]
5221         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5222
5223 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5224
5225         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5226         (FE_UPWARD, FE_DOWNWARD): Don't define.
5227         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5228         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5229
5230         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5231         reading it.
5232         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5233         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5234
5235 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5236
5237         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5238         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5239         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5240         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5241
5242 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5243
5244         [BZ #14117]
5245         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5246         * sysdeps/i386/fpu/Implies: New file.
5247         * sysdeps/x86_64/fpu/Implies: Likewise.
5248         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5249         * sysdeps/x86/fpu/bits/fenv.h: This.
5250
5251         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5252         __SSE_MATH__.
5253
5254 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5255
5256         [BZ #14134]
5257         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5258         character 0xffff that matches the last element of the
5259         conversion table.
5260
5261 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5262
5263         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5264         fmodl commit.
5265
5266 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5267
5268         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5269         values higher than 25.6283.
5270
5271 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5272
5273         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5274         subnormal exponent extraction and add some __builtin_expect.
5275         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
5276         Fix for subnormal mantissa calculation.
5277
5278 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
5279
5280         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
5281         cpu2 is -1 and errno is not ENOSYS.
5282
5283 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5284
5285         [BZ #14117]
5286         * sysdeps/i386/i486/bits/string.h: Renamed to ...
5287         * sysdeps/x86/bits/string.h: This.
5288         * sysdeps/x86_64/bits/string.h: Removed.
5289
5290         * sysdeps/i386/i486/bits/string.h: Define inline functions only
5291         if not compiling for x86-64, but compiling for >= i486.
5292
5293         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
5294         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
5295
5296         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
5297         New macro from Linux kernel 3.4.0.
5298         (FP_XSTATE_MAGIC2): Likewise.
5299         (FP_XSTATE_MAGIC2_SIZE): Likewise.
5300         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
5301         (struct _fpx_sw_bytes): New struct.
5302         (struct _xsave_hdr): Likewise.
5303         (struct _ymmh_state): Likewise.
5304         (struct _xstate): Likewise.
5305
5306         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
5307         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
5308         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
5309         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
5310         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
5311         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
5312
5313         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
5314         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
5315         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
5316         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
5317         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
5318         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
5319
5320 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5321
5322         [BZ #13743]
5323         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
5324         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
5325         (sysdep_headers): Include sys/platform/ppc.h.
5326         * sysdeps/powerpc/test-gettimebase.c: Test for
5327         __ppc_get_timebase() to catch future ISA opcode/insn changes.
5328         * manual/Makefile (appendices): Include platform.texi.
5329         * manual/contrib.texi (Contributors): Update @node pointers.
5330         * manual/maint.texi (Maintenance): Likewise.
5331         (Platform): New node.
5332         * manual/platform.texi: New file.  Document the new features.
5333
5334 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5335             Jakub Jelinek  <jakub@redhat.com>
5336
5337         [BZ #14188]
5338         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
5339         where __builtin_expect is unavailable.
5340
5341 2012-06-03  David S. Miller  <davem@davemloft.net>
5342
5343         * stdlib/longlong.h: Updated from GCC.
5344
5345 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
5346
5347         [BZ #14042]
5348         * sysdeps/powerpc/powerpc32/mcount.c: New file.
5349         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
5350         __mcount_internal.
5351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
5352         (GLIBC_2.16): Likewise.
5353
5354 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5355
5356         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
5357
5358 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5359
5360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
5361         (default-abi): New variable.
5362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
5363         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
5364         variable.
5365         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
5366         Likewise.
5367         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
5368         Likewise.
5369         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
5370         Likewise.
5371
5372         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
5373         definition.  Document in comment.
5374
5375 2012-06-01  David S. Miller  <davem@davemloft.net>
5376
5377         * stdlib/longlong.h: Updated from GCC.
5378
5379 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5380
5381         [BZ #14117]
5382         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
5383         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
5384         sys/debugreg.h sys/io.h here.
5385         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
5386         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
5387         sys/io.h.
5388         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
5389         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
5390         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
5391         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
5392         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
5393         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
5394
5395         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
5396         Define only if __x86_64__ is defined.
5397
5398 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5399
5400         [BZ #14048]
5401         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
5402         Use int64_t for variable i.
5403         * math/libm-test.inc (fmod_test): Add more tests.
5404
5405         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
5406         z computation is not scheduled after fetestexcept.
5407         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
5408         Use math_force_eval instead of asm to ensure calculation scheduled
5409         before exception test.
5410         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
5411         Ensure a1 + u.d computation is not scheduled after fetestexcept.
5412
5413 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
5414
5415         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
5416         computation is not scheduled after fetestexcept.
5417
5418 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5419
5420         [BZ #14117]
5421         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
5422         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
5423
5424 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5425
5426         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
5427         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5428
5429 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5430
5431         [BZ #14117]
5432         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
5433         <bits/wordsize.h>.
5434         (__WCHAR_MIN): Support __WORDSIZE == 64.
5435         (__WCHAR_MAX): Likewise.
5436
5437         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
5438         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
5439
5440         [BZ #14183]
5441         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
5442         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
5443
5444         [BZ #14117]
5445         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
5446         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
5447
5448         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
5449         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
5450
5451         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
5452         Defined to 1 if __x86_64__ isn't defined.
5453         (_STAT_VER_LINUX_OLD): New.
5454         (st_atime): Remove duplicate.
5455         (st_mtime): Likewise.
5456         (st_ctime): Likewise.
5457
5458 2012-05-31  David S. Miller  <davem@davemloft.net>
5459
5460         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
5461         entries.
5462
5463 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
5464
5465         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
5466         gen-libm-test.pl.
5467
5468         [BZ #14132]
5469         * elf/dl-reloc.c: Include <_itoa.h>.
5470         (_dl_reloc_bad_type): Remove use of INTUSE.
5471         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
5472         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
5473         * stdio-common/psiginfo.c (psiginfo): Likewise.
5474         * stdio-common/psignal.c (psignal): Likewise.
5475         * string/strsignal.c (strsignal): Likewise.
5476         * include/signal.h (_sys_siglist): Declare hidden proto.
5477         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
5478         INTVARDEF with libc_hidden_data_def.
5479         * stdio-common/itoa-udigits.c: Likewise.
5480         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
5481         (_itoa_lower_digits_internal): Remove declaration.
5482         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
5483         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
5484         (_sys_sigabbrev_internal): Remove aliases.
5485         (_sys_siglist): Define hidden alias.
5486
5487 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5488
5489         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5490         bits/sysctl.h.
5491
5492 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5493
5494         [BZ #14117]
5495         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
5496         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
5497
5498         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
5499         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
5500         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
5501         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
5502         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
5503         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
5504
5505         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
5506         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
5507         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
5508
5509         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
5510         with __addr.
5511         (insw): Likewise.
5512         (insl): Likewise.
5513         (outsb): Likewise.
5514         (outsw): Likewise.
5515         (outsl): Likewise.
5516
5517         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
5518         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
5519         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
5520
5521         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
5522         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
5523         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
5524         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
5525         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
5526         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
5527
5528         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
5529         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
5530
5531         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
5532         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
5533
5534         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
5535         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
5536         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
5537
5538         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
5539         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
5540         to ...
5541         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
5542
5543         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
5544         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
5545         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
5546
5547         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
5548         for x86-64.
5549         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
5550
5551 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
5552
5553         * math/math.h (M_El): Use two more decimal places.
5554         (M_LOG2El): Likewise.
5555         (M_LOG10El): Likewise.
5556         (M_LN2l): Likewise.
5557         (M_LN10l): Likewise.
5558         (M_PIl): Likewise.
5559         (M_PI_2l): Likewise.
5560         (M_PI_4l): Likewise.
5561         (M_1_PIl): Likewise.
5562         (M_2_PIl): Likewise.
5563         (M_2_SQRTPIl): Likewise.
5564         (M_SQRT2l): Likewise.
5565         (M_SQRT1_2l): Likewise.
5566
5567 2012-05-31  David S. Miller  <davem@davemloft.net>
5568
5569         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
5570         values between float registers.
5571         * sysdeps/sparc/sparc64/memset.S: Likewise.
5572         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5573
5574 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
5575
5576         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
5577         -D_FORTIFY_SOURCE=1.
5578         (CPPFLAGS-tst-longjmp_chk.c): Define.
5579         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
5580         (CPPFLAGS-tst-longjmp_chk2.c): Define.
5581         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
5582         CFLAGS-tst-wchar-h.c.
5583
5584 2012-05-31  Marek Polacek  <polacek@redhat.com>
5585
5586         [BZ #14132]
5587         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
5588         __endmntent_internal): Remove declaration.
5589         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
5590         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
5591         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
5592
5593 2012-05-30  David S. Miller  <davem@davemloft.net>
5594
5595         * sysdeps/sparc/sparc32/soft-fp/q_util.c
5596         (___Q_simulate_exceptions): Use real FP ops rather than writing
5597         into the %fsr.
5598         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
5599         Likewise.
5600
5601 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5602
5603         [BZ #14117]
5604         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
5605         * sysdeps/x86/bits/xtitypes.h: This.
5606
5607         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
5608         * sysdeps/x86/bits/wordsize.h: This.
5609
5610         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
5611         * sysdeps/x86/bits/huge_vall.h: This.
5612
5613         * sysdeps/i386/bits/select.h: Removed.
5614         * sysdeps/x86_64/bits/select.h: Renamed to ...
5615         * sysdeps/x86/bits/select.h: This.
5616
5617         * sysdeps/i386/bits/setjmp.h: Removed.
5618         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
5619         * sysdeps/x86/bits/setjmp.h: This.
5620
5621         * sysdeps/i386/bits/mathdef.h: Removed.
5622         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
5623         * sysdeps/x86/bits/mathdef.h: This.
5624
5625 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5626
5627         [BZ #14132]
5628         * include/sys/socket.h (__connect_internal)
5629         (__libc_sa_len_internal): Remove declaration.
5630         (__connect, __libc_sa_len): Declare hidden_proto.
5631         (SA_LEN): Remove use of INTUSE.
5632         * socket/connect.c: Add libc_hidden_def.
5633         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
5634         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
5635         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
5636         alias.
5637         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5638         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5639         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
5640         of adding _internal alias.
5641
5642 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5643
5644         [BZ #14117]
5645         * sysdeps/i386/bits/link.h: Removed.
5646         * sysdeps/i386/bits/linkmap.h: Likewise.
5647         * sysdeps/x86_64/bits/link.h: Renamed to ...
5648         * sysdeps/x86/bits/link.h: This.
5649         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
5650         * sysdeps/x86/bits/linkmap.h: This.
5651
5652         * sysdeps/i386/bits/endian.h: Removed.
5653         * sysdeps/x86_64/bits/endian.h: Renamed to ...
5654         * sysdeps/x86/bits/endian.h: This.
5655
5656         * sysdeps/i386/bits/byteswap.h: Removed.
5657         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5658         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
5659         * sysdeps/x86/bits/byteswap.h: This.
5660         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5661         * sysdeps/x86/bits/byteswap-16.h: This.
5662         * sysdeps/i386/Implies: Add x86.
5663         * sysdeps/x86_64/Implies: Likewise.
5664
5665 2012-05-30  David S. Miller  <davem@davemloft.net>
5666
5667         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5668         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5669         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5670         (FP_TRAPPING_EXCEPTIONS): Define.
5671         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5672         (FP_TRAPPING_EXCEPTIONS): Define.
5673         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5674         subnormals only when inexact has been signalled or underflow
5675         exceptions are enabled.
5676         (_FP_PACK_CANONICAL): Likewise.
5677
5678 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5679
5680         [BZ #14183]
5681         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5682         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5683
5684 2012-05-30  Richard Henderson  <rth@twiddle.net>
5685
5686         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5687         with #ifndef NOT_IN_libc.
5688
5689         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5690         marked to avoid plt entry.
5691
5692 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5693
5694         [BZ #14112]
5695         * Makeconfig (default-abi): New macro.
5696         (abi-includes): Likewise.
5697         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5698         $(abi-$(default-abi)-lib-soname) for soname if defined.
5699         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5700         abi-variants.
5701         * Makefile (installed-stubs): Likewise.
5702         * include/stubs-biarch.h: Removed.
5703         * scripts/lib-names.awk: Only handle one library at a time.
5704         * scripts/soversions.awk: Remove WORDSIZE support.
5705         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5706         entries.
5707         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5708         Removed.
5709         (syscall-list-default-condition): Likewise.
5710         (syscall-list-default-condition): Likewise.
5711         (syscall-list-includes): Likewise.
5712         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5713         syscall-list-* with abi-*.  Handle undefined abi-variants.
5714         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5715         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5716         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5717         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5718         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5719         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5720         Removed.
5721         (syscall-list-32-options): Likewise.
5722         (syscall-list-32-condition): Likewise.
5723         (syscall-list-64-options): Likewise.
5724         (syscall-list-64-condition): Likewise.
5725         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5726         macro.
5727         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5728         Renamed to ...
5729         (abi-*): This.
5730         (abi-64-ld-soname): New macro.
5731         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5732         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5733         Renamed to ...
5734         (abi-*): This.
5735         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5736         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5737
5738 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5739
5740         * sysdeps/unix/sysv/linux/kernel-features.h
5741         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5742         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5743         include <kernel-features.h>.
5744         [!__NR_ftruncate64]: Remove conditional code.
5745         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5746         [__NR_ftruncate64]: Make code unconditional.
5747         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5748         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5749         include <kernel-features.h>.
5750         [!__NR_ftruncate64]: Remove conditional code.
5751         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5752         [__NR_ftruncate64]: Make code unconditional.
5753         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5754         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5755         include <kernel-features.h>.
5756         [!__NR_ftruncate64]: Remove conditional code.
5757         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5758         [__NR_ftruncate64]: Make code unconditional.
5759         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5761         include <kernel-features.h>.
5762         [!__NR_ftruncate64]: Remove conditional code.
5763         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5764         [__NR_ftruncate64]: Make code unconditional.
5765         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5766
5767         * configure.in (libc_cv_fpie): Weaken to a compile test using
5768         LIBC_TRY_CC_OPTION.
5769         * configure: Regenerated.
5770
5771 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5772
5773         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5774         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5775         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5776         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5777         Refreshed.
5778         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5779         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5780         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5781         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5782         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5783         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5784         Refreshed.
5785
5786 2012-05-27  David S. Miller  <davem@davemloft.net>
5787
5788         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5789         (___Q_zero): New.
5790         (__Q_simulate_exceptions): Return void.  Change to simulate
5791         exceptions by writing into the %fsr.
5792         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5793         (__Qp_handle_exceptions): Likewise.
5794         (numbers): Delete.
5795         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5796         __Qp_handle_exceptions.
5797         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5798         __Qp_handle_exceptions.
5799         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5800         as unused and give dummy FP_RND_NEAREST initializer.
5801         (FP_INHIBIT_RESULTS): Define.
5802         (___Q_simulate_exceptions): Update declaration.
5803         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5804         formatting.
5805         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5806         as unused and give dummy FP_RND_NEAREST initializer.
5807         (__Qp_handle_exceptions): Update declaration.
5808         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5809         formatting.
5810
5811 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5812
5813         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5814         the temporary FPU control word.
5815         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5816         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5817         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5818         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5819         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5820         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5821         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5822         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5823         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5824         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5825         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5826
5827 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5828
5829         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5830         fields.
5831
5832 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5833
5834         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5835         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5836         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5837         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5838         Likewise.
5839         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5840         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5841         Likewise.
5842
5843 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5844
5845         * po/h.po: Update from translation team.
5846
5847 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5848
5849         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5850
5851         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5852         handling of denormals.
5853         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5854         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5855         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5856         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5857         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5858         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5859         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5860         Likewise.
5861
5862 2012-05-26  Marek Polacek  <polacek@redhat.com>
5863
5864         [BZ #14152]
5865         * math/libm-test.inc (fma_test): Don't always expect underflow
5866         exception.
5867
5868 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5869
5870         [BZ #12416]
5871         * elf/tst-execstack.c: Include stackinfo.h.
5872         (do_test): Adjust test case to ensure that pthread_getattr_np
5873         behaviour remains the same after marking stack executable.
5874
5875 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5876
5877         * sysdeps/unix/sysv/linux/kernel-features.h
5878         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5879         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5880         kernel-features.h.
5881         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5882         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5883         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5884         kernel-features.h.
5885         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5886         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5887
5888 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5889
5890         * configure.in: Define the default includes to being none.
5891         * configure: Regenerated.
5892
5893 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5894
5895         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5896         * sysdeps/x86_64/setjmp.S: Likewise.
5897         * sysdeps/i386/bsd-setjmp.S: Likewise.
5898         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5899         * sysdeps/i386/setjmp.S: Likewise.
5900         * sysdeps/i386/__longjmp.S: Likewise.
5901         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5902         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5903
5904         * include/stap-probe.h: New file.
5905         * configure.in: Handle --enable-systemtap.
5906         * configure: Regenerated.
5907         * config.h.in (USE_STAP_PROBE): New #undef.
5908         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5909         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5910         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5911
5912 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5913
5914         [BZ #13717]
5915         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5916         to 2.4.0 where earlier.
5917         * sysdeps/unix/sysv/linux/configure: Regenerated.
5918         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5919         <kernel-features.h>.
5920         [__ASSUME_32BITUIDS]: Make code unconditional.
5921         [!__ASSUME_32BITUIDS]: Remove conditional code.
5922         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5923         <kernel-features.h>.
5924         [__ASSUME_32BITUIDS]: Make code unconditional.
5925         [!__ASSUME_32BITUIDS]: Remove conditional code.
5926         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5927         [__ASSUME_32BITUIDS]: Make code unconditional.
5928         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5929         * sysdeps/unix/sysv/linux/i386/getegid.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/geteuid.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/getgid.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/getgroups.c: Do not include
5942         <kernel-features.h>.
5943         [__ASSUME_32BITUIDS]: Make code unconditional.
5944         [!__ASSUME_32BITUIDS]: Remove conditional code.
5945         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5946         <kernel-features.h>.
5947         [__ASSUME_32BITUIDS]: Make code unconditional.
5948         [!__ASSUME_32BITUIDS]: Remove conditional code.
5949         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5950         <kernel-features.h>.
5951         [__ASSUME_32BITUIDS]: Make code unconditional.
5952         [!__ASSUME_32BITUIDS]: Remove conditional code.
5953         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5954         <kernel-features.h>.
5955         [__ASSUME_32BITUIDS]: Make code unconditional.
5956         [!__ASSUME_32BITUIDS]: Remove conditional code.
5957         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5958         <kernel-features.h>.
5959         [__ASSUME_32BITUIDS]: Make code unconditional.
5960         [!__ASSUME_32BITUIDS]: Remove conditional code.
5961         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5962         <kernel-features.h>.
5963         [__ASSUME_32BITUIDS]: Make code unconditional.
5964         [!__ASSUME_32BITUIDS]: Remove conditional code.
5965         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5966         <kernel-features.h>.
5967         [__ASSUME_32BITUIDS]: Make code unconditional.
5968         [!__ASSUME_32BITUIDS]: Remove conditional code.
5969         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5970         <kernel-features.h>.
5971         [__NR_setresgid] (__setresgid): Do not declare.
5972         [__ASSUME_32BITUIDS]: Make code unconditional.
5973         [!__ASSUME_32BITUIDS]: Remove conditional code.
5974         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5975         <kernel-features.h>.
5976         [__NR_setresuid] (__setresuid): Do not declare.
5977         [__ASSUME_32BITUIDS]: Make code unconditional.
5978         [!__ASSUME_32BITUIDS]: Remove conditional code.
5979         * sysdeps/unix/sysv/linux/i386/setfsgid.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/setfsuid.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/setgid.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/i386/setgroups.c: Do not include
5992         <kernel-features.h>.
5993         [__ASSUME_32BITUIDS]: Make code unconditional.
5994         [!__ASSUME_32BITUIDS]: Remove conditional code.
5995         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5996         <kernel-features.h>.
5997         [__ASSUME_32BITUIDS]: Make code unconditional.
5998         [!__ASSUME_32BITUIDS]: Remove conditional code.
5999         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
6000         <kernel-features.h>.
6001         [__ASSUME_32BITUIDS]: Make code unconditional.
6002         [!__ASSUME_32BITUIDS]: Remove conditional code.
6003         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
6004         <kernel-features.h>.
6005         [__ASSUME_32BITUIDS]: Make code unconditional.
6006         [!__ASSUME_32BITUIDS]: Remove conditional code.
6007         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
6008         <kernel-features.h>.
6009         [__ASSUME_32BITUIDS]: Make code unconditional.
6010         [!__ASSUME_32BITUIDS]: Remove conditional code.
6011         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
6012         <kernel-features.h>.
6013         [__ASSUME_32BITUIDS]: Make code unconditional.
6014         [!__ASSUME_32BITUIDS]: Remove conditional code.
6015         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
6016         <kernel-features.h>.
6017         [__ASSUME_32BITUIDS]: Make code unconditional.
6018         [!__ASSUME_32BITUIDS]: Remove conditional code.
6019         * sysdeps/unix/sysv/linux/kernel-features.h
6020         (__ASSUME_SETRESUID_SYSCALL): Remove.
6021         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6022         (__ASSUME_32BITUIDS): Likewise.
6023         (__ASSUME_LDT_WORKS): Likewise.
6024         (__ASSUME_O_DIRECTORY): Likewise.
6025         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6026         architecture but not kernel version.
6027         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6028         (__ASSUME_MMAP2_SYSCALL): Likewise.
6029         (__ASSUME_STAT64_SYSCALL): Likewise.
6030         (__ASSUME_IPC64): Likewise.
6031         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6032         <kernel-features.h>.
6033         [__ASSUME_32BITUIDS]: Make code unconditional.
6034         [!__ASSUME_32BITUIDS]: Remove conditional code.
6035         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6036         <kernel-features.h>.
6037         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6038         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6039         132096]: Remove conditional code.
6040         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6041         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6042         <kernel-features.h>.
6043         [__ASSUME_32BITUIDS]: Make code unconditional.
6044         [!__ASSUME_32BITUIDS]: Remove conditional code.
6045         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6046         <kernel-features.h>.
6047         [__ASSUME_32BITUIDS]: Make code unconditional.
6048         [!__ASSUME_32BITUIDS]: Remove conditional code.
6049         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6050         <kernel-features.h>.
6051         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6052         unconditional.
6053         (__setresgid): Do not declare.
6054         [__ASSUME_32BITUIDS]: Make code unconditional.
6055         [!__ASSUME_32BITUIDS]: Remove conditional code.
6056         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6057         <kernel-features.h>.
6058         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6059         unconditional.
6060         (__setresuid): Do not declare.
6061         [__ASSUME_32BITUIDS]: Make code unconditional.
6062         [!__ASSUME_32BITUIDS]: Remove conditional code.
6063         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6064         <kernel-features.h>.
6065         [__ASSUME_32BITUIDS]: Make code unconditional.
6066         [!__ASSUME_32BITUIDS]: Remove conditional code.
6067         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6068         <kernel-features.h>.
6069         [__ASSUME_32BITUIDS]: Make code unconditional.
6070         [!__ASSUME_32BITUIDS]: Remove conditional code.
6071
6072 2012-05-25  Richard Henderson  <rth@twiddle.net>
6073
6074         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6075         dl_hwcap to ifunc resolver.
6076         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6077         elf_ifunc_invoke.
6078         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6079         dl_hwcap to ifunc resolver.
6080         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6081
6082 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6083
6084         [BZ #14153]
6085         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6086         for |x| <= 2**-26, not 2**-57.
6087         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6088         exception.
6089
6090 2012-05-24  Jeff Law  <law@redhat.com>
6091
6092         * stdio-common/Makefile (tests): Add bug25.
6093         * stdio-common/bug25.c: New test.
6094
6095 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6096
6097         [BZ #13576]
6098         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6099         multiple of MALLOC_ALIGNMENT in size.
6100         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6101
6102 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6103
6104         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6105         Require >= 256.
6106         (FILENAME_MAX): Use macro-int-constant.
6107         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6108         (_IOFBF): Use macro-int-constant.
6109         (_IOLBF): Likewise.
6110         (_IONBF): Likewise.
6111         (SEEK_CUR): Likewise.
6112         (SEEK_END): Likewise.
6113         (SEEK_SET): Likewise.
6114         (TMP_MAX): Likewise.
6115         (EOF): Use macro-int-constant.  Require < 0.
6116         (NULL): Use macro-constant.  Require == 0.
6117         (stdin): Require type to be FILE *.
6118         (stdout): Likewise.
6119         (stderr): Likewise.
6120         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6121         macro-int-constant.
6122         (EXIT_SUCCESS): Likewise.
6123         (NULL): Use macro-constant.  Require == 0.
6124         (RAND_MAX): Use macro-int-constant.
6125         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6126         [C99-based standards] (strtof): Require function.
6127         [C99-based standards] (strtold): Likewise.
6128         [C99-based standards] (strtoll): Likewise.
6129         [C99-based standards] (strtoull): Likewise.
6130         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6131         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6132         [ISO || ISO99 || ISO11] (math.h): Likewise.
6133         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6134         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6135         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6136
6137 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6138
6139         [BZ #14132]
6140         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6141         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6142         * intl/dgettext.c (DCGETTEXT): Likewise.
6143         * intl/gettext.c (DCGETTEXT): Likewise.
6144         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6145         * posix/regex_internal.h (gettext): Likewise.
6146         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6147         Remove declaration.
6148         * include/argz.h (__argz_count_internal)
6149         (__argz_stringify_internal): Remove declaration.
6150         (__argz_count, __argz_stringify): Declare hidden proto.
6151         * intl/dcgettext.c: Remove use of INTDEF.
6152         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6153         * string/argz-stringify.c: Likewise.
6154         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6155         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6156         Declare hidden proto.
6157         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6158         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6159         Declare hidden proto.
6160         * include/stdio.h (__asprintf_internal): Don't declare.
6161         (__asprintf): Don't define as macro.  Declare hidden proto.
6162         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6163         (__fsetlocking): Declare hidden proto.
6164         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6165         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6166         hidden proto.
6167         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6168         (_IO_setlinebuf): Remove use of INTUSE.
6169         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6170         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6171         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6172         Remove declaration.
6173         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6174         (_IO_do_flush): Remove use of INTUSE.
6175         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6176         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6177         (_IO_adjust_column, _IO_least_wmarker)
6178         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6179         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6180         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6181         (_IO_default_doallocate, _IO_wdefault_doallocate)
6182         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6183         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6184         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6185         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6186         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6187         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6188         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6189         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6190         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6191         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6192         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6193         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6194         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6195         proto.
6196         (_IO_flush_all_internal, _IO_adjust_column_internal)
6197         (_IO_default_uflow_internal, _IO_default_finish_internal)
6198         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6199         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6200         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6201         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6202         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6203         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6204         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6205         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6206         (_IO_file_close_internal, _IO_file_close_it_internal)
6207         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6208         (_IO_file_init_internal, _IO_file_attach_internal)
6209         (_IO_file_fopen_internal, _IO_file_read_internal)
6210         (_IO_file_sync_internal, _IO_file_seek_internal)
6211         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6212         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6213         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6214         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6215         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6216         (_IO_list_all_internal, _IO_link_in_internal)
6217         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6218         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6219         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6220         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6221         (_IO_do_write_internal, _IO_padn_internal)
6222         (_IO_getline_info_internal, _IO_getline_internal)
6223         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6224         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6225         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6226         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6227         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6228         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6229         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6230         with libc_hidden_ver, remove use of INTUSE.
6231         * libio/genops.c: Likewise.
6232         * libio/freopen.c: Likewise.
6233         * libio/freopen64.c: Likewise.
6234         * libio/iofclose.c: Likewise.
6235         * libio/iofdopen.c: Likewise.
6236         * libio/iofflush.c: Likewise.
6237         * libio/iofflush_u.c: Likewise.
6238         * libio/iofgets.c: Likewise.
6239         * libio/iofgets_u.c: Likewise.
6240         * libio/iofopen.c: Likewise.
6241         * libio/iofopncook.c: Likewise.
6242         * libio/iofread.c: Likewise.
6243         * libio/iofread_u.c: Likewise.
6244         * libio/ioftell.c: Likewise.
6245         * libio/iofwrite.c: Likewise.
6246         * libio/iogetline.c: Likewise.
6247         * libio/iogets.c: Likewise.
6248         * libio/iogetwline.c: Likewise.
6249         * libio/iopadn.c: Likewise.
6250         * libio/iopopen.c: Likewise.
6251         * libio/ioseekoff.c: Likewise.
6252         * libio/ioseekpos.c: Likewise.
6253         * libio/iosetbuffer.c: Likewise.
6254         * libio/iosetvbuf.c: Likewise.
6255         * libio/ioungetc.c: Likewise.
6256         * libio/ioungetwc.c: Likewise.
6257         * libio/iovdprintf.c: Likewise.
6258         * libio/iovsprintf.c: Likewise.
6259         * libio/iovsscanf.c: Likewise.
6260         * libio/memstream.c: Likewise.
6261         * libio/obprintf.c: Likewise.
6262         * libio/oldfileops.c: Likewise.
6263         * libio/oldiofclose.c: Likewise.
6264         * libio/oldiofdopen.c: Likewise.
6265         * libio/oldiofopen.c: Likewise.
6266         * libio/oldiopopen.c: Likewise.
6267         * libio/oldstdfiles.c: Likewise.
6268         * libio/putc.c: Likewise.
6269         * libio/setbuf.c: Likewise.
6270         * libio/setlinebuf.c: Likewise.
6271         * libio/stdfiles.c: Likewise.
6272         * libio/strops.c: Likewise.
6273         * libio/vasprintf.c: Likewise.
6274         * libio/vscanf.c: Likewise.
6275         * libio/vsnprintf.c: Likewise.
6276         * libio/vswprintf.c: Likewise.
6277         * libio/wfiledoalloc.c: Likewise.
6278         * libio/wfileops.c: Likewise.
6279         * libio/wgenops.c: Likewise.
6280         * libio/wmemstream.c: Likewise.
6281         * libio/wstrops.c: Likewise.
6282         * libio/__fpurge.c: Likewise.
6283         * libio/__fsetlocking.c: Likewise.
6284         * assert/assert.c: Likewise.
6285         * debug/fgets_chk.c: Likewise.
6286         * debug/fgets_u_chk.c: Likewise.
6287         * debug/fread_chk.c: Likewise.
6288         * debug/fread_u_chk.c: Likewise.
6289         * debug/gets_chk.c: Likewise.
6290         * debug/obprintf_chk.c: Likewise.
6291         * debug/vasprintf_chk.c: Likewise.
6292         * debug/vdprintf_chk.c: Likewise.
6293         * debug/vsnprintf_chk.c: Likewise.
6294         * debug/vsprintf_chk.c: Likewise.
6295         * malloc/mtrace.c: Likewise.
6296         * misc/error.c: Likewise.
6297         * misc/syslog.c: Likewise.
6298         * stdio-common/asprintf.c: Likewise.
6299         * stdio-common/fxprintf.c: Likewise.
6300         * stdio-common/getw.c: Likewise.
6301         * stdio-common/isoc99_fscanf.c: Likewise.
6302         * stdio-common/isoc99_scanf.c: Likewise.
6303         * stdio-common/isoc99_vfscanf.c: Likewise.
6304         * stdio-common/isoc99_vscanf.c: Likewise.
6305         * stdio-common/isoc99_vsscanf.c: Likewise.
6306         * stdio-common/printf-prs.c: Likewise.
6307         * stdio-common/printf_fp.c: Likewise.
6308         * stdio-common/printf_fphex.c: Likewise.
6309         * stdio-common/printf_size.c: Likewise.
6310         * stdio-common/putw.c: Likewise.
6311         * stdio-common/scanf.c: Likewise.
6312         * stdio-common/sprintf.c: Likewise.
6313         * stdio-common/tmpfile.c: Likewise.
6314         * stdio-common/vfprintf.c: Likewise.
6315         * stdio-common/vfscanf.c: Likewise.
6316         * stdlib/strfmon_l.c: Likewise.
6317         * sunrpc/openchild.c: Likewise.
6318         * sunrpc/xdr_stdio.c: Likewise.
6319         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
6320         * sysdeps/mach/hurd/tmpfile.c: Likewise.
6321
6322 2012-05-24  Roland McGrath  <roland@hack.frob.com>
6323
6324         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6325
6326         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
6327         in the third column, to generate for the shared library an IFUNC
6328         that uses _dl_vdso_vsym.
6329         * Makerules (COMPILE.c, compile-stdin.c): New variables.
6330         * Makeconfig (object-suffixes-noshared): New variable.
6331
6332         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
6333         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
6334         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
6335         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
6336
6337         [BZ #14132]
6338         * include/sys/time.h (__gettimeofday): Remove macro.
6339         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
6340         * time/gettimeofday.c (__gettimeofday): Remove #undef.
6341         Remove INTDEF.
6342         (__gettimeofday): Add libc_hidden_def.
6343         (gettimeofday): Add libc_hidden_weak.
6344         * sysdeps/mach/gettimeofday.c: Likewise.
6345         * sysdeps/posix/gettimeofday.c: Likewise.
6346         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
6347         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
6348         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
6349         (__gettimeofday_internal): Remove strong_alias.
6350         (__gettimeofday): Add libc_hidden_def.
6351         (gettimeofday): Add libc_hidden_weak.
6352         * sysdeps/unix/syscalls.list (gettimeofday):
6353         Remove __gettimeofday_internal alias.
6354
6355 2012-05-24  Daniel Jacobowitz  <drow@false.org>
6356             H.J. Lu  <hongjiu.lu@intel.com>
6357
6358         [BZ #12495]
6359         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
6360         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
6361         (largebin_index_32_big): New.
6362         (largebin_index): Use it for 16-byte alignment.
6363         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
6364         correction with front_misalign.
6365
6366 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6367
6368         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
6369         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
6370         Likewise.
6371         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
6372         Likewise.
6373         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
6374         Likewise.
6375         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
6376         Likewise.
6377         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
6378         Likewise.
6379         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
6380         Likewise.
6381         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
6382         Likewise.
6383         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6384         Likewise.
6385         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
6386         Likewise.
6387         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
6388         Likewise.
6389         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
6390         Likewise.
6391         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
6392         Likewise.
6393
6394         * scripts/data/c++-types-x32-linux-gnu.data: New file.
6395         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
6396
6397 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6398
6399         [BZ #10846]
6400         [BZ #14036]
6401         * math/libm-test.inc (exp_test): Add test from bug 14036.
6402         (pow_test): Add test from bug 10846.
6403
6404         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
6405         and other flags.
6406         (special_function): Do not include flags in test name.
6407         (parse_args): Likewise.
6408         * sysdeps/i386/fpu/libm-test-ulps: Update.
6409         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6410         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6411         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6412         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6413
6414         * math/gen-libm-test.pl (%beautify): Add entries for underflow
6415         exceptions.
6416         * math/libm-test.inc ("Philosophy"): Update comment about
6417         exception testing.
6418         (UNDERFLOW_EXCEPTION): New macro.
6419         (UNDERFLOW_EXCEPTION_OK): Likewise.
6420         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
6421         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
6422         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
6423         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
6424         (INVALID_EXCEPTION_OK): Update value.
6425         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6426         (OVERFLOW_EXCEPTION_OK): Likewise.
6427         (IGNORE_ZERO_INF_SIGN): Likewise.
6428         (test_exceptions): Handle underflow exceptions.
6429         (acos_test): Update for underflow exception expectations.
6430         (cexp_test): Likewise.
6431         (clog_test): Likewise.
6432         (clog10_test): Likewise.
6433         (csqrt_test): Likewise.
6434         (ctan_test): Likewise.
6435         (ctanh_test): Likewise.
6436         (exp_test): Likewise.
6437         (exp10_test): Likewise.
6438         (exp2_test): Likewise.
6439         (expm1_test): Likewise.
6440         (fma_test): Likewise.
6441         (j0_test): Likewise.
6442         (jn_test): Likewise.
6443         (nexttoward_test): Likewise.
6444         (pow_test): Likewise.
6445         (scalbn_test): Likewise.
6446         (scalbln_test): Likewise.
6447         (tan_test): Likewise.
6448         (y1_test): Likewise.
6449         * sysdeps/i386/fpu/libm-test-ulps: Update.
6450         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6451
6452 2012-05-23  David S. Miller  <davem@davemloft.net>
6453
6454         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6455         (__libc_sigaction): Remove unused local variables.
6456
6457 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6458
6459         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
6460
6461 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6462
6463         mktime: avoid signed integer overflow
6464         * time/mktime.c (__mktime_internal): Do not mishandle the case
6465         where diff == INT_MIN.
6466
6467         mktime: simplify computation of average
6468         * time/mktime.c (ranged_convert): Use new time_t_avg function
6469         instead of rolling our own (probably-slower) code.
6470
6471         mktime: do not assume signed right shift propagates sign bit
6472         * time/mktime.c (isdst_differ): New static function.
6473         (__mktime_internal): No need to normalize tm_isdst now.
6474         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
6475         tm_isdst values.
6476
6477         mktime: merge another wrapv change from gnulib
6478         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
6479         from some compilers.
6480
6481         mktime: remove incorrect attempt at unusual arithmetics
6482         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
6483         The code didn't really work on such machines anyway.
6484         (TYPE_MINIMUM): Assume two's complement.
6485         (twos_complement_arithmetic): Verify that long_int and time_t
6486         are two's complement (or unsigned, in the latter case).
6487
6488         mktime: check signed shifts on long_int and time_t, too
6489         * time/mktime.c (SHR): Check that shifts work as desired
6490         on the types long_int and time_t too, as SHR is used on
6491         such types.
6492
6493         mktime: do not assume 'long' is wide enough
6494         * time/mktime.c (verify): Move decl up.
6495         (long_int): New type.
6496         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
6497         to remove assumption in the code that 'long' is wide enough to
6498         store year values.  This assumption is not true on x32 and on
6499         some non-glibc platforms.
6500
6501         mktime: merge wrapv change from gnulib
6502         * time/mktime.c (WRAPV): New macro.
6503         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
6504         (guess_time_tm, __mktime_internal): Do not assume that signed
6505         integer overflow wraps around; modern compilers generate code
6506         where this assumption is no longer valid.
6507
6508 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6509
6510         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6511         Replace "jmp L(pseudo_end)" with "ret".
6512         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6513         Likewise.
6514
6515 2012-05-23  Andreas Jaeger  <aj@suse.de>
6516
6517         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
6518         * sysdeps/unix/sysv/linux/poll.c: Remove file.
6519
6520 2012-05-23  Andreas Jaeger  <aj@suse.de>
6521             Maximilian Attems  <max@stro.at>
6522
6523         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
6524         New macros.
6525
6526 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6527
6528         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
6529         code so that pseudo_end is just ret and the stack pointer is
6530         correct also for static library in error case.
6531
6532 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
6533
6534         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
6535         move to syscalls.list.
6536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
6537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
6538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
6539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
6540
6541         * manual/install.texi (Running make install): Do not mention Linux
6542         kernel version for which pt_chown is not needed.
6543         (Linux): Do not mention problems with nscd with 2.0 kernels.
6544         * INSTALL: Regenerated.
6545
6546 2012-05-23  Andreas Jaeger  <aj@suse.de>
6547
6548         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
6549         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
6550         macro.
6551         * sysdeps/unix/sysv/linux/s390/bits/mman.h
6552         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6553         * sysdeps/unix/sysv/linux/sh/bits/mman.h
6554         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6555         * sysdeps/unix/sysv/linux/i386/bits/mman.h
6556         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6557         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
6558         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6559         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
6560         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6561         * sysdeps/unix/sysv/linux/bits/in.h
6562         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
6563
6564 2012-05-22  Roland McGrath  <roland@hack.frob.com>
6565
6566         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
6567         (PREPARE_VERSION): Just use assert instead, it will be elided
6568         under [NDEBUG] anyway.
6569
6570 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6571
6572         * sysdeps/unix/sysv/linux/Makefile: Include
6573         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
6574         (sysdep_routines): Remove sysctl.
6575         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
6576         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
6577         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
6578         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
6579         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
6580
6581 2012-05-22  Andreas Jaeger  <aj@suse.de>
6582
6583         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
6584         that pseudo_end is just ret and the stack pointer is correct also
6585         for static library in error case.
6586
6587 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
6588
6589         [BZ #14122]
6590         * nss/nsswitch.c (defconfig_entries): New variable.
6591         (__nss_database_lookup): Don't leak defconfig entries.
6592         (nss_parse_service_list): Don't leak on error paths.
6593         (free_database_entries): New function.
6594         (free_defconfig): New function.
6595         (free_mem): Move common code to free_database_entries.
6596
6597 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6598
6599         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
6600         Add arch_prctl.
6601         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6602
6603         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6604         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
6605         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
6606         New macro.
6607         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6608         (INTERNAL_SYSCALL_TYPES): Likewise.
6609         (LOAD_ARGS_TYPES_[1-6]): Likewise.
6610         (LOAD_REGS_TYPES_[1-6]): Likewise.
6611         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
6612         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
6613
6614 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6615
6616         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
6617         copysignl for GLIBC_2_0.
6618         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
6619         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
6620         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
6621         logbl for GLIBC_2_0.
6622         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
6623         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
6624
6625 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6626
6627         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
6628         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6629
6630         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6631         Use "neg %eax".
6632
6633         * time/mktime.c: Update copyright years.
6634
6635 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6636
6637         mktime: merge comment-quoting-style change from gnulib
6638         * time/mktime.c: Quote 'like this' in comments.
6639         The GNU coding standards suggest that we no longer quote `like this',
6640         as "`" and "'" are typically rendered asymmetrically nowadays.
6641         The typical gnulib style is to quote 'like this' when quoting
6642         code, and "like this" when quoting English.
6643
6644         * time/mktime.c (compile-command): Add "-I.".
6645
6646         mktime: merge mktime-internal.h change from gnulib
6647         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
6648
6649         mktime: merge time_r change from gnulib
6650         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
6651
6652         mktime: merge DEBUG change from gnulib
6653         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
6654         case system <time.h> has a #define.
6655
6656         mktime: merge <sys/types.h> change from gnulib
6657         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
6658         since <time.t> is now guaranteed to define time_t.
6659
6660         mktime: merge HAVE_CONFIG_H change from gnulib
6661         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6662
6663 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6664
6665         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6666         Use "neg %eax".
6667
6668         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6669         __rlim_t cast.
6670         (struct rusage): Use anonymous union to pad each field to
6671         __syscall_slong_t.
6672
6673 2012-05-21  David S. Miller  <davem@davemloft.net>
6674
6675         * Makefules (o-iterator): Remove .s cases.
6676         (compile-command.s): Delete.
6677         (COMPILE.s): Delete.
6678         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6679
6680 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6681
6682         * configure.in (libc_cv_predef_stack_protector): Only consider
6683         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6684         * configure: Regenerated.
6685
6686 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6687
6688         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6689         New macro.  Use R*LP on int and pointer.
6690         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6691         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6692         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6693         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6694
6695         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6696         [__WORDSIZE_TIME64_COMPAT32] instead of
6697         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6698         (struct utmp): Likewise.
6699         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6700         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6701         Renamed to ...
6702         (__WORDSIZE_TIME64_COMPAT32): This.
6703         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6704         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6705         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6706         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6707         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6708         (__WORDSIZE_TIME64_COMPAT32): New macro.
6709
6710 2012-05-21  Andreas Jaeger  <aj@suse.de>
6711
6712         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6713         only if [SHARED]. Add prototype for __wcschr_ia32.
6714
6715 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6716
6717         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6718         of %rbp unmolested in the jmp_buf while mangling the low bits.
6719         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6720         unmolested high bits of %rbp while demangling the low bits.
6721         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6722
6723 2012-05-21  Andreas Jaeger  <aj@suse.de>
6724
6725         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6726         * sunrpc/svc_simple.c: Use it for registerrpc.
6727         * sunrpc/xcrypt.c: Use it for passwd2des.
6728
6729         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6730
6731 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6732
6733         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6734         Don't define if [__SYSCALL_WORDSIZE != 32].
6735         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6736         New macro.
6737
6738 2012-05-21  Bruno Haible  <bruno@clisp.org>
6739             Andreas Jaeger  <aj@suse.de>
6740
6741         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6742         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6743         inptr and inend for must_buffer_ch.
6744         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6745         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6746         * stdio-common/Makefile (tests): Remove bug15.
6747         (bug15-ENV): Remove macro.
6748         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6749         anymore.
6750
6751 2012-05-19  Andreas Jaeger  <aj@suse.de>
6752             Roland McGrath  <roland@hack.frob.com>
6753
6754         * manual/contrib.texi: Completely rewritten. It contains now an
6755         alphabetical list of contributors and their contributions.
6756
6757 2012-05-21  Richard Henderson  <rth@twiddle.net>
6758
6759         * misc/getauxval.c (__getauxval): Use unsigned long int.
6760         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6761         (getauxval): Use unsigned long int.
6762
6763 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6764
6765         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6766
6767 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6768
6769         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6770         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6771         __alignof__ (long double).
6772
6773 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6774
6775         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6776
6777 2012-05-20  Richard Henderson  <rth@twiddle.net>
6778
6779         * misc/getauxval.c: New file.
6780         * misc/sys/auxv.h: New file.
6781         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6782         (routines): Add getauxval.
6783         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6784         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6785         * elf/dl-sysdep.c (_dl_auxv): Remove.
6786         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6787         * elf/dl-support.c (_dl_auxv): New variable.
6788         (_dl_aux_init): Initialize it.
6789         * manual/startup.texi (Auxiliary Vector): New node.
6790         * sysdeps/generic/bits/hwcap.h: New file.
6791         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6792         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6793         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6794         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6795         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6796         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6798         Update.
6799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6800         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6801         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6802         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6803         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6804         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6805         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6806         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6807
6808 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6809
6810         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6811
6812 2012-05-19  David S. Miller  <davem@davemloft.net>
6813
6814         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6815
6816 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6817
6818         [BZ #14123]
6819         * math/s_ccosh.c: Include <float.h>
6820         (__ccosh): Avoid internal overflow calculating sinh and cosh
6821         values before multiplying by sin and cos values.
6822         * math/s_ccoshf.c: Likewise.
6823         * math/s_ccoshl.c: Likewise.
6824         * math/s_csin.c: Likewise.
6825         * math/s_csinf.c: Likewise.
6826         * math/s_csinl.c: Likewise.
6827         * math/s_csinh.c: Likewise.
6828         * math/s_csinhf.c: Likewise.
6829         * math/s_csinhl.c: Likewise.
6830         * math/libm-test.inc (ccos_test): Add more tests.
6831         (ccosh_test): Likewise.
6832         (csin_test): Likewise.
6833         (csinh_test): Likewise.
6834         * sysdeps/i386/fpu/libm-test-ulps: Update.
6835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6836
6837 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6838
6839         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6840         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6841
6842         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6843
6844 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6845
6846         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6847         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6848         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6849         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6850         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6851         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6852         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6853         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6854         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6855         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6856         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6857         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6858         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6859         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6860         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6861         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6862         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6863         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6864         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6865         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6866         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6867         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6868         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6869         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6870         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6871         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6872         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6873         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6874         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6875         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6876         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6877
6878 2012-05-18  Andreas Jaeger  <aj@suse.de>
6879
6880         * csu/.gitignore: Delete.
6881
6882 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6883
6884         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6885         (timex): Use __syscall_slong_t.
6886
6887 2012-05-18  Andreas Jaeger  <aj@suse.de>
6888             Carlos O'Donell  <carlos_odonell@mentor.com>
6889
6890         * manual/install.texi (Configuring and compiling): Update
6891         description about files modified in the source directory.
6892         * INSTALL: Regenerated.
6893
6894 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6895
6896         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6897         value.  Use "or" to set return value to -1.
6898         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6899         negate return value.
6900
6901 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6902
6903         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6904         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6905         failure if the compiler has Graphite support disabled.
6906         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6907         Likewise.
6908         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6909         CFLAGS-memmove.c): Likewise.
6910         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6911         Likewise.
6912
6913 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6914
6915         * sysdeps/x86_64/x32/_itoa.h: New file.
6916
6917         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6918         getdents system call only if kernel and user dirents have the
6919         same d_ino and d_off.
6920
6921         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6922         LLONG_MAX != LONG_MAX.
6923         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6924         (_fitoa_word): Likewise.
6925
6926         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6927         years.
6928         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6929         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6930         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6931
6932         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6933         include <bits/wordsize.h>.  Check __x86_64__ instead of
6934         __WORDSIZE.
6935         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6936         if __x86_64__ is defined.  Use anonymous union on fpstate.
6937
6938         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6939         anonymous union.
6940
6941 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6942
6943         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6944         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6945         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6946         Refer to _rtld_local_ro instead of _rtld_global_ro.
6947         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6948         Likewise.
6949         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6950         Likewise.
6951         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6952         Likewise.
6953         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6954         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6955         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6956
6957         * sysdeps/powerpc/powerpc32/dl-machine.c
6958         (__elf_machine_runtime_setup) [PROF]: Don't reference
6959         _dl_prof_resolve.
6960
6961 2012-05-18  Andreas Jaeger  <aj@suse.de>
6962
6963         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6964         function only available for GCCs before 3.4 since GCC 3.4
6965         introduced a builtin.
6966         (lrint): Likewise.
6967         (llrintf): Likewise.
6968         (llrint): Likewise.
6969         (fmaxf): Likewise.
6970         (fmax): Likewise.
6971         (fminf): Likewise.
6972         (fmin): Likewise.
6973         (rint): Likewise.
6974         (rintf): Likewise.
6975         (nearbyint): Likewise.
6976         (nearbyintf): Likewise.
6977         (ceil): Likewise.
6978         (ceilf): Likewise.
6979         (floor): Likewise.
6980         (floorf): Likewise.
6981
6982 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6983
6984         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6985         on both fields and cast pointer to __syscall_ulong_t.
6986
6987         * bits/types.h (__fsword_t): New type.
6988         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6989         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6990         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6991         (__FSWORD_T_TYPE): Likewise.
6992         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6993         (__FSWORD_T_TYPE): Likewise.
6994         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6995         (__FSWORD_T_TYPE): Likewise.
6996         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6997         (__FSWORD_T_TYPE): Likewise.
6998         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6999         __SWORD_TYPE with __fsword_t.
7000         (statfs64): Likewise.
7001
7002 2012-05-17  David S. Miller  <davem@davemloft.net>
7003
7004         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7005
7006 2012-05-17  Andreas Jaeger  <aj@suse.de>
7007
7008         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7009         warning.
7010
7011 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7012
7013         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7014
7015 2012-05-17  Andreas Jaeger  <aj@suse.de>
7016
7017         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7018         when it is used.
7019
7020 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7021
7022         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7023
7024 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7025
7026         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7027         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7028
7029 2012-05-17  Andreas Jaeger  <aj@suse.de>
7030             Carlos O'Donell  <carlos_odonell@mentor.com>
7031
7032         [BZ #14059]
7033         * sysdeps/x86_64/multiarch/init-arch.h
7034         (bit_YMM_Usable): Rename to...
7035         (bit_AVX_Usable): ... this.
7036         (bit_FMA4_Usable): New macro.
7037         (bit_XMM_state): New macro.
7038         (bit_YMM_state): New macro.
7039         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7040         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7041         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7042         (CPUID_OSXSAVE): New macro.
7043         (CPUID_AVX): New macro.
7044         (CPUID_FMA4): New macro.
7045         (index_YMM_Usable): Rename to...
7046         (index_AVX_Usable): ... this.
7047         (HAS_AVX): Use HAS_ARCH_FEATURE.
7048         (HAS_FMA4): Likewise.
7049         (HAS_YMM_USABLE): Remove.
7050         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7051         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7052         are present.
7053         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7054         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7055         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7056         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7057         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7058
7059 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7060
7061         * math/libm-test.c: Support platforms without multiple rounding modes.
7062         * math/bug-nextafter.c: Support platforms without FP exceptions.
7063         * math/bug-nexttoward.c: Likewise.
7064         * math/test-fenv.c: Likewise.
7065         * math/test-misc.c: Likewise.
7066         * stdlib/bug-getcontext.c: Likewise.
7067
7068 2012-05-17  Andreas Jaeger  <aj@suse.de>
7069
7070         * manual/examples/search.c (critter_cmp): Change signature to
7071         avoid warnings.
7072         * manual/string.texi (Collation Functions): Likewise.
7073
7074 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7075
7076         * bits/types.h: Fold copyright years.
7077         * bits/typesizes.h: Likewise.
7078         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7079         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7080         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7081         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7082         * time/time.h: Likewise.
7083
7084 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7085
7086         [BZ #208]
7087         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7088         in instead of returning them.  Return void.
7089         (__libc_mallinfo): Accumulate over all arenas.
7090         (__malloc_stats): Adjust for change in int_mallinfo interface.
7091
7092 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7093
7094         [BZ #10375]
7095         * configure.in (NM): Add AC_CHECK_TOOL for it.
7096         (libc_extra_cflags): New substituted variable.
7097         Check for -fstack-protector being used implicitly.
7098         * configure: Regenerated.
7099         * config.make.in (config-extra-cflags): New variable,
7100         gets @libc_extra_cflags@.
7101         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7102
7103         [BZ #10375]
7104         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7105         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7106         * configure: Regenerated.
7107         * config.make.in (CPPUNDEFS): New substituted variable.
7108         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7109         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7110         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7111
7112 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7113
7114         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7115         (mq_attr): Use __syscall_slong_t.
7116
7117 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7118
7119         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7120         Check __x86_64__ instead of __WORDSIZE.
7121         (_STAT_VER_LINUX): Likewise.
7122         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7123         __syscall_ulong_t and __syscall_slong_t.
7124         (stat64): Likewise.
7125
7126 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7127
7128         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7129
7130 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7131
7132         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7133
7134 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7135
7136         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7137         __syscall_ulong_t.
7138
7139         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7140         include <bits/wordsize.h>.  Check __x86_64__ instead of
7141         __WORDSIZE.
7142         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7143         defined.
7144         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7145
7146         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7147         include <bits/wordsize.h>.  Check __x86_64__ instead of
7148         __WORDSIZE.
7149         (user_regs_struct): Use "__extension__ unsigned long long"
7150         instead of "unsigned long" if __x86_64__ is defined.
7151         (user): Likewise.  Pad after pointer field if __ILP32__ is
7152         defined.
7153
7154 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7155
7156         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7157         versions 5 to 9.
7158         * configure: Regenerated.
7159         * manual/install.texi (texinfo): Increase version requirement to
7160         4.5 or later.
7161         * INSTALL: Regenerated.
7162
7163         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7164
7165 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7166
7167         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7168
7169         * sysdeps/x86_64/x32/ffs.c: New file.
7170
7171         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7172         __syscall_ulong_t.
7173         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7174         defined.  Use __syscall_ulong_t.
7175         (shminfo): Use __syscall_ulong_t.
7176         (shm_info): Likewise.
7177
7178         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7179         __syscall_ulong_t.
7180
7181         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7182         <bits/wordsize.h>.
7183         (msgqnum_t): Use __syscall_ulong_t.
7184         (msglen_t): Likewise.
7185         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7186         __syscall_ulong_t.
7187
7188         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7189         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7190
7191         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7192
7193         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7194         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7195
7196         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7197         __syscall_slong_t.
7198
7199         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7200         include <bits/wordsize.h>.  Check __x86_64__ instead of
7201         __WORDSIZE.
7202
7203         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7204         "unsigned long long int" if __x86_64__ is defined.
7205         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7206
7207         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7208         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7209         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7210
7211         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7212         <stdint.h>.
7213         (GET_PC): Cast to uintptr_t first.
7214         (GET_FRAME): Likewise.
7215         (GET_STACK): Likewise.
7216
7217         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7218         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7219         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7220         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7221         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7222         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7223         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7224         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7225         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7226         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7227         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7228         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7229         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7230         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7231         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7232         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7233         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7234         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7235         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7236         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7237         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7238         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7239         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7240         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7241         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7242         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7243         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7244         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7245         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7246
7247 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7248
7249         * Makerules (+depfiles): Also collect depfiles from .oS in
7250         $(extra-objs).
7251         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7252         .oS, $(libnldbl-routines)).
7253
7254         * Makerules (native-compile-mkdep-flags): Define.
7255         * sunrpc/Makefile (extra-objs): Add $(addprefix
7256         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7257         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7258         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7259         calling $(make-target-directory).
7260
7261 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7262
7263         * bits/types.h (__snseconds_t): Removed.
7264         * time/time.h (struct timespec): Replace __snseconds_t with
7265         __syscall_slong_t.
7266         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7267         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7268         Likewise.
7269         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7270         (__SNSECONDS_T_TYPE): Likewise.
7271         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7272         (__SNSECONDS_T_TYPE): Likewise.
7273         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7274         (__SNSECONDS_T_TYPE): Likewise.
7275
7276 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7277
7278         * sysdeps/mach/hurd/bits/typesizes.h
7279         (__SYSCALL_SLONG_TYPE): New macro.
7280         (__SYSCALL_ULONG_TYPE): Likewise.
7281
7282 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7283
7284         * bits/types.h (__syscall_slong_t): New type.
7285         (__syscall_ulong_t): Likewise.
7286
7287         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
7288         (__SYSCALL_ULONG_TYPE): Likewise.
7289         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7290         (__SYSCALL_SLONG_TYPE): Likewise.
7291         (__SYSCALL_ULONG_TYPE): Likewise.
7292         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7293         (__SYSCALL_SLONG_TYPE): Likewise.
7294         (__SYSCALL_ULONG_TYPE): Likewise.
7295         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7296         (__SYSCALL_SLONG_TYPE): Likewise.
7297         (__SYSCALL_ULONG_TYPE): Likewise.
7298
7299 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7300
7301         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
7302         Add sigaltstack-offsets.sym.
7303         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
7304         <sigaltstack-offsets.h>.
7305         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
7306         longjmp_msg pointer.
7307         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
7308         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
7309         signal stack.
7310         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
7311
7312 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7313
7314         * elf/stackguard-macros.h: Remove file.
7315         * sysdeps/generic/stackguard-macros.h: New file.
7316         * sysdeps/i386/stackguard-macros.h: Likewise.
7317         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
7318         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
7319         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7320         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7321         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
7322         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
7323         * sysdeps/x86_64/stackguard-macros.h: Likewise.
7324         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
7325         <elf/stackguard-macros.h>.
7326
7327         [BZ #14109]
7328         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
7329         __aligned__ in attribute.
7330         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
7331         (gregset_t): Likewise.
7332
7333 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7334
7335         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
7336         * sysdeps/x86_64/64/Implies-after: Here.  New file.
7337         * sysdeps/x86_64/x32/Implies-after: New file.
7338
7339 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7340
7341         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
7342         and access return value for _dl_profile_fixup.  Use R10_LP to
7343         load frame size.
7344
7345 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7346
7347         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
7348
7349 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7350
7351         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
7352         * sysdeps/x86_64/x32/sysdep.h: New file.
7353
7354 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7355
7356         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
7357         * sysdeps/x86_64/setjmp.S: Likewise.
7358
7359 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7360
7361         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
7362         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
7363         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
7364         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
7365         remove unused global constant.
7366
7367 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
7368
7369         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
7370         include of <not-cancel.h>.
7371
7372 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7373
7374         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
7375
7376 2012-05-15  Jeff Law  <law@redhat.com>
7377             Andreas Jaeger  <aj@suse.de>
7378
7379         [BZ #13594]
7380         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
7381         out from...
7382         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
7383         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
7384         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
7385         code changing __hst_map_handle.map.
7386
7387 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7388
7389         * configure.in (sysnames): Look for Implies-before and Implies-after
7390         files.
7391         * configure: Regenerated.
7392
7393 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7394
7395         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
7396         8-byte data alignment with LP_SIZE alignment.
7397
7398 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7399
7400         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
7401         into R10_LP.
7402
7403 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7404
7405         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
7406
7407 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7408
7409         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
7410         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
7411         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
7412         Likewise.
7413         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
7414
7415 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7416
7417         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
7418         (stackinfo_sub_sp): Likewise.
7419
7420 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7421
7422         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
7423         RAX_LP.
7424
7425 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7426
7427         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
7428         into R*_LP.
7429
7430 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7431
7432         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
7433         sizes into R*_LP.
7434
7435 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7436
7437         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
7438
7439 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7440
7441         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
7442         into R11_LP and load __x86_64_shared_cache_size_half into
7443         R8_LP.
7444
7445 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7446
7447         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
7448         R8_LP.
7449
7450 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7451
7452         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
7453         logb for POWER7.
7454         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
7455         logbf for POWER7.
7456         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
7457         logbl for POWER7.
7458         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
7459         powerpc32/power7/fpu/s_logb.c via #include.
7460         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
7461         powerpc32/power7/fpu/s_logbf.c via #include.
7462         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
7463         powerpc32/power7/fpu/s_logbl.c via #include.
7464
7465 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7466
7467         * README.libm: Remove file.
7468
7469 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7470
7471         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
7472         count for x32.  Use R*_LP and omit operand-size suffix.
7473
7474 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7475
7476         * shlib-versions: Move x86_64-.*-linux.* entries to ...
7477         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
7478         * sysdeps/x86_64/x32/shlib-versions: New file.
7479
7480 2012-05-14  Roland McGrath  <roland@hack.frob.com>
7481
7482         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
7483         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
7484         Use _dl_fatal_printf instead.
7485
7486 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7487
7488         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
7489         set if not set by the user.  Do not allow for being unset.
7490         * sysdeps/unix/sysv/linux/configure: Regenerated.
7491
7492 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7493
7494         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
7495         the `q' suffix from lea and replace .quad with ASM_ADDR.
7496
7497 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7498
7499         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
7500         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
7501         instead of $17.
7502         (PTR_DEMANGLE): Likewise.
7503
7504 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7505
7506         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
7507         (LP_OP): Likewise.
7508         (ASM_ADDR): Likewise.
7509         (RAX_LP): Likewise.
7510         (RBP_LP): Likewise.
7511         (RBX_LP): Likewise.
7512         (RCX_LP): Likewise.
7513         (RDI_LP): Likewise.
7514         (RSI_LP): Likewise.
7515         (RSP_LP): Likewise.
7516         (R8_LP): Likewise.
7517         (R9_LP): Likewise.
7518         (R10_LP): Likewise.
7519         (R10_LP): Likewise.
7520         (R11_LP): Likewise.
7521         (R12_LP): Likewise.
7522         (R13_LP): Likewise.
7523         (R14_LP): Likewise.
7524         (R15_LP): Likewise.
7525
7526 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7527
7528         * sysdeps/x86_64/x32/dl-machine.h: New file.
7529
7530 2012-05-14  Andreas Jaeger  <aj@suse.de>
7531
7532         * manual/Makefile (subdir): Remove export of subdir.
7533         (all): Remove target.
7534         (.PHONY): Remove all from list.
7535         (mkinstalldirs): Remove.
7536         (.PHONY): Remove installdirs from list.
7537         ($(inst_infodir)/libc.info): Use make-target-directory.
7538         (installdirs): Remove.
7539         (subdir_%): Remove.
7540         (glibc-targets): Remove.
7541         (lib): Remove.
7542         (stubs): Remove.
7543         ($(objpfx)stubs ../po/manual.pot): Remove.
7544         ($(objpfx)stamp%): Remove.
7545         (make-target-directory): Remove.
7546         (subdir_install): Remove.
7547         (routines): Remove.
7548         (aux): Remove.
7549         (sources): Remove.
7550         (objects): Remove.
7551         (headers): Remove.
7552
7553         [BZ #13750]
7554         * manual/.gitignore: Remove, it's not needed anymore.
7555         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
7556         all files in it.
7557         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
7558         directory.
7559         (texis): Renamed to $(objpfx)texis.
7560         (texis-path): New, contains path to generated files.
7561         (chapters.%): Use texis-path for complete path, add extra argument
7562         libc-texinfo.sh.
7563         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
7564         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
7565         (summary,texi, stamp-summary): Use complete path of
7566         files. Generate files in build dir.
7567         (dir-add.texi): Build in build dir.
7568         (libm-err.texi,stamp-libm-err): Likewise.
7569         (version.texi, stamp-version): Likewise.
7570         (.%c.texi): Likewise.
7571         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
7572         (mostlyclean): Remove target.
7573         (realclean): Remove target.
7574         (generated): Add new variable with contents from mostlyclean and
7575         realclean, remove entries duplicated in common-mostlyclean, add
7576         stamp-libm-err and stamp-version.
7577         (generated-dirs): Add libc directory.
7578         ($(inst_infodir)/libc.info): Install files from build dir.
7579
7580         * manual/install.texi (Configuring and compiling): Adjust since
7581         the info files are not part of the tar ball anymore.
7582
7583 2012-05-14  Andreas Jaeger  <aj@suse.de>
7584
7585         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
7586         variable.
7587
7588 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7589
7590         [BZ #13717]
7591         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7592         to 2.2.0 where earlier.
7593         * sysdeps/unix/sysv/linux/configure: Regenerated.
7594         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
7595         Remove conditional code.
7596         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
7597         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
7598         Remove conditional code.
7599         [!__NR_lchown]: Likewise.
7600         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7601         [__NR_lchown]: Likewise.
7602         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
7603         comment referencing __ASSUME_LCHOWN_SYSCALL.
7604         * sysdeps/unix/sysv/linux/i386/sigaction.c
7605         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7606         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7607         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
7608         Remove conditional code.
7609         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
7610         (__protocol_available): Remove #if 0 code.
7611         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
7612         conditional code.
7613         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
7614         * sysdeps/unix/sysv/linux/kernel-features.h
7615         (__ASSUME_GETCWD_SYSCALL): Don't define.
7616         (__ASSUME_REALTIME_SIGNALS): Likewise.
7617         (__ASSUME_PREAD_SYSCALL): Likewise.
7618         (__ASSUME_PWRITE_SYSCALL): Likewise.
7619         (__ASSUME_POLL_SYSCALL): Likewise.
7620         (__ASSUME_LCHOWN_SYSCALL): Likewise.
7621         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
7622         non-SPARC.
7623         (__ASSUME_SIOCGIFNAME): Don't define.
7624         (__ASSUME_MSG_NOSIGNAL): Likewise.
7625         (__ASSUME_SENDFILE): Define unconditionally.
7626         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
7627         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
7628         conditional code.
7629         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
7630         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
7631         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7632         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7633         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
7634         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7635         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
7637         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7638         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
7640         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7641         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
7643         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7644         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
7646         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7647         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
7649         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7650         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
7652         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7653         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
7655         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7656         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
7658         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7659         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7660         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7661         Remove conditional code.
7662         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7663         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7664         Remove conditional code.
7665         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7666         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7667         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7668         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7669         Remove conditional code.
7670         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7671         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7672         Remove conditional code.
7673         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7674         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7675         Remove conditional code.
7676         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7677         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7678         Remove conditional code.
7679         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7680         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7681         Remove conditional code.
7682         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7683         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7684         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7685         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7686         * sysdeps/unix/sysv/linux/sigaction.c
7687         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7688         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7689         * sysdeps/unix/sysv/linux/sigpending.c
7690         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7691         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7692         * sysdeps/unix/sysv/linux/sigprocmask.c
7693         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7694         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7695         * sysdeps/unix/sysv/linux/sigsuspend.c
7696         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7697         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7698         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7699         (__libc_missing_rt_sigs): Remove.
7700         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7701         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7702         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7703         Remove conditional code.
7704         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7705         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7706         return 1.
7707         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7708         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7709         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7710         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7711
7712 2012-05-14  Andreas Jaeger  <aj@suse.de>
7713
7714         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7715         it's not used in glibc.
7716         (__coshm1): Likewise.
7717         (__acosh1p): Likewise.
7718         (__sgn): Likewise.
7719
7720         * manual/string.texi (Copying and Concatenation): Add missing
7721         variable in concat example.
7722         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7723
7724 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7725
7726         [BZ #14103]
7727         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7728         __builtin_clzl with __builtin_clzll.
7729
7730 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7731
7732         [BZ #14104]
7733         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7734         libc_freeres_ptr.
7735
7736 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7737
7738         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7739         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7740         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7741         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7742
7743 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7744
7745         * NEWS: Update ia64 info.
7746
7747 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7748
7749         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7750         used as bcopy.
7751
7752 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7753
7754         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7755         * sysdeps/unix/syscalls.list (dup3): Likewise.
7756         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7757         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7758
7759 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7760
7761         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7762         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7763
7764 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7765
7766         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7767         thread pointer.
7768         (TLS_IE): Use mov/add instead of movq/addq to load thread
7769         pointer.
7770         (TLS_GD_PREFIX): New.
7771         (TLS_GD): Use it.
7772
7773 2012-05-11  David S. Miller  <davem@davemloft.net>
7774
7775         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7776         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7777         (_FPU_SETCW): Likewise.
7778
7779 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7780
7781         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7782         is 32-byte aligned.
7783
7784 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7785
7786         [BZ #11837]
7787         * iconvdata/gb18030.c: Update tables.
7788         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7789         characters specially.
7790         (BODY for TO_LOOP): Add encoding of missing ranges.
7791
7792 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7793
7794         [BZ #13673]
7795         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7796         * sysdeps/mach/hurd/dup3.c: Likewise.
7797         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7798         * sysdeps/powerpc/memmove.c:: Likewise.
7799
7800 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7801
7802         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7803         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7804
7805 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7806
7807         * elf/elf.h (R_X86_64_RELATIVE64): New.
7808         (R_X86_64_NUM): Updated.
7809         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7810         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7811         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7812         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7813         tst-quad1pie tst-quad2pie
7814         (modules-names): Add tst-quadmod1 tst-quadmod2.
7815         ($(objpfx)tst-quad1): New dependency.
7816         ($(objpfx)tst-quad2): Likewise.
7817         ($(objpfx)tst-quad1pie): Likewise.
7818         ($(objpfx)tst-quad2pie): Likewise.
7819         * sysdeps/x86_64/tst-quad1.c: New file.
7820         * sysdeps/x86_64/tst-quad1pie.c: New file.
7821         * sysdeps/x86_64/tst-quad2.c: Likewise.
7822         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7823         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7824         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7825         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7826         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7827
7828 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7829
7830         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7831         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7832         * streams/stropts.h (t_scalar_t): Define type.
7833
7834         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7835         (_PATH_PRESERVE): Set to "/var/lib".
7836         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7837
7838         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7839         instead of int.
7840
7841         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7842         if __dir_mkfile succeeded.
7843
7844         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7845         checking for _hurd_dtablesize.  Unlock it right after having
7846         finished _hurd_dtable allocation.
7847
7848 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7849
7850         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7851         * sysdeps/mach/hurd/configure: Regenerated.
7852         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7853         special-casing to...
7854         * sysdeps/gnu/configure.in: ... this new file.
7855         * sysdeps/unix/sysv/linux/configure: Regenerated.
7856         * sysdeps/gnu/configure: New generated file.
7857
7858         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7859         for Linux: use nsec instead of usec, as well as:
7860         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7861         members of type struct timespec.
7862         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7863         New macros.
7864         (struct stat64): Likewise.
7865         (_STATBUF_ST_NSEC): New macro.
7866         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7867
7868         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7869         __strtoul_internal rather than strtoul.
7870
7871 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7872
7873         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7874         and reject them.
7875
7876 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7877
7878         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7879         which preserves existing values.
7880         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7881
7882 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7883
7884         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7885         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7886         greater than FD_SETSIZE.
7887
7888 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7889
7890         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7891         allocated, call __vm_protect to finish enabling the existing space, and
7892         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7893         allocate the remainder.
7894
7895 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7896
7897         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7898         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7899
7900 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7901
7902         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7903         sysdeps/mach/hurd/readlink.c.
7904
7905         * posix/tst-sysconf.c (posix_options): Only use
7906         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7907         _POSIX_SYNCHRONIZED_IO when they are defined
7908         * sysdeps/mach/hurd/bits/posix_opt.h:
7909         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7910         (_XOPEN_REALTIME): Undefine macro.
7911         (_XOPEN_REALTIME_THREADS): Undefine macro.
7912         (_XOPEN_SHM): Undefine macro.
7913         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7914         macro to -1.
7915         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7916         macro to -1.
7917         (_POSIX_ASYNC_IO): Undefine macro.
7918         (_POSIX_PRIORITIZED_IO): Undefine macro.
7919         (_POSIX_SPIN_LOCKS): Define macro to -1.
7920
7921         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7922         SA_NODEFER, SA_RESETHAND.
7923         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7924         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7925         F_DUPFD_CLOEXEC.
7926
7927 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7928
7929         * elf/Makefile (pldd-modules): Define unconditionally.
7930
7931 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7932
7933         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7934
7935 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7936
7937         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7938         Return ENOENT when name is empty.
7939         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7940
7941 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7942
7943         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7944
7945         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7946
7947 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7948
7949         Fix mlock in all cases except non-readable pages.
7950         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7951         instead of VM_PROT_ALL as parameter to __vm_wire function.
7952
7953         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7954         (__mkdir): When path is `/', just fail with EEXIST.
7955         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7956
7957 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7958
7959         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7960         <sys/uio.h> (for writev).
7961         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7962         and <sys/param.h> (for MIN).
7963
7964 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7965
7966         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7967         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7968         if interrupted.
7969
7970 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7971
7972         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7973         Depend on against $(link-rpcuserlibs).
7974
7975 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7976
7977         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7978         (__libc_stack_end): Do not use attribute_relro.
7979         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7980         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7981         to libthread-provided value.
7982         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7983         attribute_relro.
7984
7985 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7986
7987         [BZ #3748]
7988         * bits/libc-lock.h (__libc_once_get): New macro.
7989         * sysdeps/mach/bits/libc-lock.h: Likewise.
7990         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7991         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7992         instead of using implementation details.
7993
7994         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7995         * libio/freopen.c: Likewise.
7996         * libio/freopen64.c: Likewise.
7997         * misc/syslog.c: Likewise.
7998         * nscd/connections.c: Likewise.
7999         * nscd/netgroupcache.c: Likewise.
8000         * sysdeps/posix/getcwd.c: Likewise.
8001
8002 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8003
8004         * math/w_ilogbf.c: Add #include <limits.h>.
8005
8006 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8007
8008         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8009         path instead of returning without unlocking.
8010
8011         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8012         immediate-write ioctls.
8013         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8014
8015 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8016
8017         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8018         __builtin_frame_address instead of making assumptions about the
8019         location of the return address relative to DATA.  Force early load of
8020         the return address.
8021         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8022         __builtin_frame_address.
8023
8024         dup3 for GNU Hurd.
8025         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8026         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8027         implement dup3 and do some further code clean-ups.
8028         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8029         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8030
8031 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8032
8033         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8034
8035         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8036         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8037         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8038         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8039         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8040         d->port.lock.
8041
8042         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8043         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8044         when handler == SIG_ERR, not when handler != SIG_ERR.
8045
8046 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8047
8048         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8049         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8050         definitions.
8051
8052         accept4 for GNU Hurd.
8053         * include/sys/socket.h (__libc_accept4): New prototype.
8054         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8055         to implement __libc_accept4.
8056         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8057         __libc_accept4.
8058         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8059
8060         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8061         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8062         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8063         signal-defines.sym.
8064
8065 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8066
8067         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8068
8069 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8070
8071         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8072         assertion on O_CLOEXEC flag.
8073         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8074         * hurd/intern-fd.c: Likewise.
8075         * hurd/port2fd.c: Likewise.
8076
8077 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8078
8079         [BZ #3906]
8080         * bits/in.h (IPV6_PKTINFO): Define new macro.
8081         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8082
8083 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8084
8085         [BZ #13954]
8086         [BZ #13955]
8087         [BZ #13956]
8088         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8089         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8090         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8091         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8092         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8093         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8094         * math/libm-test.inc (logb_test) : Additional logb tests.
8095
8096 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8097             Andreas Jaeger  <aj@suse.de>
8098
8099         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8100         * configure: Regenerated.
8101         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8102         * config.make.in (link-obsolete-rpc): New substituted variable.
8103         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8104         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8105         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8106         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8107         so that libc.a contains the symbols.
8108         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8109         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8110         * sunrpc/auth_none.c: Likewise.
8111         * sunrpc/auth_unix.c: Likewise.
8112         * sunrpc/authdes_prot.c: Likewise.
8113         * sunrpc/authuxprot.c: Likewise.
8114         * sunrpc/clnt_gen.c: Likewise.
8115         * sunrpc/clnt_perr.c: Likewise.
8116         * sunrpc/clnt_raw.c: Likewise.
8117         * sunrpc/clnt_simp.c: Likewise.
8118         * sunrpc/clnt_tcp.c: Likewise.
8119         * sunrpc/clnt_udp.c: Likewise.
8120         * sunrpc/clnt_unix.c: Likewise.
8121         * sunrpc/des_crypt.c: Likewise.
8122         * sunrpc/des_soft.c: Likewise.
8123         * sunrpc/get_myaddr.c: Likewise.
8124         * sunrpc/key_call.c: Likewise.
8125         * sunrpc/key_prot.c: Likewise.
8126         * sunrpc/netname.c: Likewise.
8127         * sunrpc/pm_getmaps.c: Likewise.
8128         * sunrpc/pm_getport.c: Likewise.
8129         * sunrpc/pmap_clnt.c: Likewise.
8130         * sunrpc/pmap_prot.c: Likewise.
8131         * sunrpc/pmap_prot2.c: Likewise.
8132         * sunrpc/pmap_rmt.c: Likewise.
8133         * sunrpc/publickey.c: Likewise.
8134         * sunrpc/rpc_cmsg.c: Likewise.
8135         * sunrpc/rpc_common.c: Likewise.
8136         * sunrpc/rpc_dtable.c: Likewise.
8137         * sunrpc/rpc_prot.c: Likewise.
8138         * sunrpc/rpc_thread.c: Likewise.
8139         * sunrpc/rtime.c: Likewise.
8140         * sunrpc/svc.c: Likewise.
8141         * sunrpc/svc_auth.c: Likewise.
8142         * sunrpc/svc_raw.c: Likewise.
8143         * sunrpc/svc_run.c: Likewise.
8144         * sunrpc/svc_tcp.c: Likewise.
8145         * sunrpc/svc_udp.c: Likewise.
8146         * sunrpc/svc_unix.c: Likewise.
8147         * sunrpc/svcauth_des.c: Likewise.
8148         * sunrpc/xcrypt.c: Likewise.
8149         * sunrpc/xdr.c: Likewise.
8150         * sunrpc/xdr_array.c: Likewise.
8151         * sunrpc/xdr_float.c: Likewise.
8152         * sunrpc/xdr_intXX_t.c: Likewise.
8153         * sunrpc/xdr_mem.c: Likewise.
8154         * sunrpc/xdr_rec.c: Likewise.
8155         * sunrpc/xdr_ref.c: Likewise.
8156         * sunrpc/xdr_sizeof.c: Likewise.
8157         * sunrpc/xdr_stdio.c: Likewise.
8158
8159 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8160
8161         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8162         change.  Update copyright years.
8163
8164 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8165
8166         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8167
8168 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8169             Joseph Myers  <joseph@codesourcery.com>
8170             Paul Pluzhnikov  <ppluzhnikov@google.com>
8171
8172         [BZ #14012]
8173         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8174         requiring rpcgen.
8175         [cross-compiling] (extra-libs): Likewise.
8176         [cross-compiling] (extra-libs-others): Likewise.
8177         [cross-compiling] (librpcsvc-routines): Likewise.
8178         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8179         [cross-compiling] (omit-deps): Likewise.
8180         (sunrpc-CPPFLAGS): New variable.
8181         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8182         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8183         (cross-rpcgen-objs): New variable.
8184         (extra-objs): Append $(cross-rpcgen-objs).
8185         ($(cross-rpcgen-objs)): New rule.
8186         ($(objpfx)cross-rpcgen): Likewise.
8187         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8188         comment.
8189         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8190         ($(objpfx)x%.stmp): Likewise.
8191         * sunrpc/proto.h [IS_IN_build] (_): Define.
8192         [IS_IN_build] (_libc_intl_domainname): Likewise.
8193
8194 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8195
8196         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8197         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8198         and R_X86_64_TPOFF64.
8199
8200 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8201
8202         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8203         sysdeps/unix/sysv/syscalls.list.
8204         (stime): Likewise.
8205         (utime): Likewise.
8206         * sysdeps/unix/sysv/syscalls.list: Remove file.
8207
8208 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8209
8210         [BZ #3440]
8211         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8212         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8213         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8214         (__LC_IDENTIFICATION): Make these macros useful in #if
8215         expressions, as required by C99.
8216
8217 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8218
8219         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8220         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8221         after this.
8222
8223 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8224
8225         * stdlib/longlong.h: Updated from GCC.
8226
8227 2012-05-09  Andreas Jaeger  <aj@suse.de>
8228
8229         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8230         default is first entry.
8231         (run_mode): Set type.
8232         (main): Remove informal message about syslog.
8233         (options): Fix typo.
8234
8235         [BZ #14053]
8236         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8237         to asm.
8238         (lrint): Likewise.
8239         (llrintf): Likewise.
8240         (llrint): Likewise.
8241         (rint): Likewise.
8242         (rintf): Likewise.
8243         (nearbyint): Likewise.
8244         (nearbyintf): Likewise.
8245
8246 2012-05-09  Andreas Jaeger  <aj@suse.de>
8247             Pedro Alves  <palves@redhat.com>
8248
8249         * nscd/nscd.c (run_mode): Use enum.
8250         (main): Cleanup coding style issue.
8251
8252 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8253             Andreas Jaeger  <aj@suse.de>
8254
8255         * nscd/nscd.c (go_background): Replaced with...
8256         (run_mode): ... this.
8257         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8258         (options): Add -F --foreground.
8259         (main): Implement it.
8260         (parse_opt): Parse it.
8261
8262 2012-05-09  Andreas Jaeger  <aj@suse.de>
8263
8264         [BZ #14083]
8265         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8266         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8267         -Wconversion warning.
8268         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8269         Likewise.
8270
8271 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8272
8273         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8274         == 0.
8275         (LC_ALL): Use macro-int-constant.
8276         (LC_COLLATE): Likewise.
8277         (LC_CTYPE): Likewise.
8278         (LC_MESSAGES): Likewise.
8279         (LC_MONETARY): Likewise.
8280         (LC_NUMERIC): Likewise.
8281         (LC_TIME): Likewise.
8282         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
8283         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8284         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8285         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
8286         Specify type.
8287         [C99-based standards] (float_t): Expect type.
8288         [C99-based standards] (double_t): Expect type.
8289         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
8290         type.
8291         [C99-based standards] (HUGE_VALL): Likewise.
8292         [C99-based standards] (INFINITY): Likewise.
8293         [C99-based standards] (NAN): Likewise.
8294         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
8295         [C99-based standards] (FP_NAN): Likewise.
8296         [C99-based standards] (FP_NORMAL): Likewise.
8297         [C99-based standards] (FP_SUBNORMAL): Likewise.
8298         [C99-based standards] (FP_ZERO): Likewise.
8299         [C99-based standards] (FP_FAST_FMA): Use
8300         optional-macro-int-constant.  Specify type.  Require == 1.
8301         [C99-based standards] (FP_FAST_FMAF): Likewise.
8302         [C99-based standards] (FP_FAST_FMAL): Likewise.
8303         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
8304         [C99-based standards] (FP_ILOGBNAN): Likewise.
8305         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
8306         Specify type.
8307         [C99-based standards] (MATH_ERREXCEPT): Likewise.
8308         [C99-based standards] (math_errhandling): Specify type.
8309         [ISO99 || ISO11] (signgam): Do not allow.
8310         [non-C99-based standards] (copysignf): Do not allow.
8311         [non-C99-based standards] (exp2f): Likewise.
8312         [non-C99-based standards] (log2f): Likewise.
8313         [non-C99-based standards] (modff): Allow.
8314         [non-C99-based standards] (erff): Do not allow.
8315         [non-C99-based standards] (erfcf): Likewise.
8316         [non-C99-based standards] (gammaf): Likewise.
8317         [non-C99-based standards] (hypotf): Likewise.
8318         [non-C99-based standards] (j0f): Likewise.
8319         [non-C99-based standards] (j1f): Likewise.
8320         [non-C99-based standards] (jnf): Likewise.
8321         [non-C99-based standards] (lgammaf): Likewise.
8322         [non-C99-based standards] (tgammaf): Likewise.
8323         [non-C99-based standards] (y0f): Likewise.
8324         [non-C99-based standards] (y1f): Likewise.
8325         [non-C99-based standards] (ynf): Likewise.
8326         [non-C99-based standards] (isnanf): Likewise.
8327         [non-C99-based standards] (acoshf): Likewise.
8328         [non-C99-based standards] (asinhf): Likewise.
8329         [non-C99-based standards] (atanhf): Likewise.
8330         [non-C99-based standards] (cbrtf): Likewise.
8331         [non-C99-based standards] (expm1f): Likewise.
8332         [non-C99-based standards] (ilogbf): Likewise.
8333         [non-C99-based standards] (log1pf): Likewise.
8334         [non-C99-based standards] (logbf): Likewise.
8335         [non-C99-based standards] (nextafterf): Likewise.
8336         [non-C99-based standards] (remainderf): Likewise.
8337         [non-C99-based standards] (rintf): Likewise.
8338         [non-C99-based standards] (scalbf): Likewise.
8339         [non-C99-based standards] (copysignl): Likewise.
8340         [non-C99-based standards] (exp2l): Likewise.
8341         [non-C99-based standards] (log2l): Likewise.
8342         [non-C99-based standards] (modfl): Allow.
8343         [non-C99-based standards] (erfl): Do not allow.
8344         [non-C99-based standards] (erfcl): Likewise.
8345         [non-C99-based standards] (gammal): Likewise.
8346         [non-C99-based standards] (hypotl): Likewise.
8347         [non-C99-based standards] (j0l): Likewise.
8348         [non-C99-based standards] (j1l): Likewise.
8349         [non-C99-based standards] (jnl): Likewise.
8350         [non-C99-based standards] (lgammal): Likewise.
8351         [non-C99-based standards] (tgammal): Likewise.
8352         [non-C99-based standards] (y0l): Likewise.
8353         [non-C99-based standards] (y1l): Likewise.
8354         [non-C99-based standards] (ynl): Likewise.
8355         [non-C99-based standards] (isnanl): Likewise.
8356         [non-C99-based standards] (acoshl): Likewise.
8357         [non-C99-based standards] (asinhl): Likewise.
8358         [non-C99-based standards] (atanhl): Likewise.
8359         [non-C99-based standards] (cbrtl): Likewise.
8360         [non-C99-based standards] (expm1l): Likewise.
8361         [non-C99-based standards] (ilogbl): Likewise.
8362         [non-C99-based standards] (log1pl): Likewise.
8363         [non-C99-based standards] (logbl): Likewise.
8364         [non-C99-based standards] (nextafterl): Likewise.
8365         [non-C99-based standards] (remainderl): Likewise.
8366         [non-C99-based standards] (rintl): Likewise.
8367         [non-C99-based standards] (scalbl): Likewise.
8368         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8369         [non-C99-based standards] (FP_*): Do not allow.
8370         [C99-based standards] (FP_*): Change to
8371         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8372         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8373         allow.
8374         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
8375         (SIG_ERR): Likewise.
8376         [X/Open-based standards] (SIG_HOLD): Likewise.
8377         (SIG_IGN): Likewise.
8378         (SIGABRT): Use macro-int-constant.  Specify type.  Require
8379         positive value.
8380         (SIGFPE): Likewise.
8381         (SIGILL): Likewise.
8382         (SIGINT): Likewise.
8383         (SIGSEGV): Likewise.
8384         (SIGTER): Likewise.
8385         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
8386         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
8387         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
8388         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
8389         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
8390         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
8391         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
8392         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
8393         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
8394         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
8395         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
8396         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
8397         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
8398         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
8399         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
8400         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
8401         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
8402         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
8403         [X/Open-based standards] (SIGTRAP): Likewise.
8404         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
8405         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
8406         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
8407         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
8408         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8409         allow.
8410
8411 2012-05-08  Ian Wienand  <ianw@vmware.com>
8412
8413         [BZ #14080]
8414         * time/tzset.c (__tzset_parse_tz): Update default rules for
8415         daylight time changes in the Energy Policy Act of 2005.
8416
8417 2012-05-09  Andreas Jaeger  <aj@suse.de>
8418
8419         [BZ #13983]
8420         * elf/ldconfig.c (parse_conf): Change string to make clear that
8421         ldconfig only issued a warning if ld.so.conf does not exist.
8422
8423 2012-05-08  David S. Miller  <davem@davemloft.net>
8424
8425         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
8426         movxtod instead of popping the value on the stack.
8427
8428         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8429
8430 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
8431
8432         * config.h.in: Add HAVE_ARM_PCS_VFP.
8433
8434 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
8435
8436         [BZ #13979]
8437         * include/features.h: Warn if user requests __FORTIFY_SOURCE
8438         checking but the checks are disabled for any reason.
8439
8440 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8441
8442         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
8443         and ELF64_R_TYPE with ELFW(R_TYPE).
8444
8445 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
8446
8447         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
8448         (ulimit): Likewise.
8449
8450         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
8451         (settimeofday): Likewise.
8452
8453 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
8454
8455         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
8456         a struct th_u2 inside the union, and move tu_block/tu_code into
8457         a new th_u3 union of tu_block/tu_code inside of that.  Move
8458         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
8459         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
8460         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
8461         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
8462         (th_stuff): Change to th_u1.tu_stuff.
8463         (th_data): Define.
8464         (th_msg): Change to th_u1.th_u2.tu_data.
8465
8466 2012-05-07  David S. Miller  <davem@davemloft.net>
8467
8468         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8469
8470         [BZ #14074]
8471         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
8472         (SETUP_PIC_REG): Use it.
8473         (SETUP_PIC_REG_LEAF): Use it.
8474
8475 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
8476
8477         [BZ #13885]
8478         [BZ #13923]
8479         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8480         USE_AS_EXPM1L.
8481         (EXPL_FINITE): Likewise.
8482         (FLDLOG): Likewise.
8483         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8484         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8485         e_expl.S.
8486         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8487         USE_AS_EXPM1L.
8488         (EXPL_FINITE): Likewise.
8489         (FLDLOG): Likewise.
8490         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8491         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8492         e_expl.S.
8493         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
8494         test of -max_value argument for long double.
8495         * sysdeps/i386/fpu/libm-test-ulps: Update.
8496         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8497
8498 2012-05-06  David S. Miller  <davem@davemloft.net>
8499
8500         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
8501         quad soft-float symbols whose references which are compiler
8502         generated.
8503         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8504
8505 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
8506
8507         [BZ #13884]
8508         [BZ #13914]
8509         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8510         USE_AS_EXP10L.
8511         (EXPL_FINITE): Likewise.
8512         (FLDLOG): Likewise.
8513         (c0): Likewise.
8514         (c1): Likewise.
8515         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8516         Adjust comments for base varying.
8517         (__expl_finite): Change alias to EXPL_FINITE.
8518         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
8519         e_expl.S.
8520         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
8521         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
8522         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
8523         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
8524         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8525         USE_AS_EXP10L.
8526         (EXPL_FINITE): Likewise.
8527         (FLDLOG): Likewise.
8528         (c0): Likewise.
8529         (c1): Likewise.
8530         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8531         Adjust comments for base varying.
8532         (__expl_finite): Change alias to EXPL_FINITE.
8533         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
8534         tests for bugs.
8535         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8536
8537         [BZ #14064]
8538         * math/libm-test.inc (check_float_internal): Correct ulp
8539         calculation for subnormal expected results.
8540
8541 2012-05-06  Andreas Jaeger  <aj@suse.de>
8542
8543         * Makeconfig (+math-flags): New, set to -frounding-math.
8544         (+cflags): Add +math-flags so that all of glibc gets compiled with
8545         it.
8546
8547         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
8548
8549 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
8550
8551         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
8552         Disable one test.
8553
8554         [BZ #13787]
8555         [BZ #13922]
8556         [BZ #14036]
8557         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
8558         (__ieee754_expl): Allow for and saturate large arguments.
8559         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
8560         (u_threshold): Likewise.
8561         (__exp): Call __ieee754_exp before checking for overflow and
8562         underflow.
8563         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
8564         (u_threshold): Likewise.
8565         (__expf): Call __ieee754_expf before checking for overflow and
8566         underflow.
8567         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
8568         (u_threshold): Likewise.
8569         (__expl): Call __ieee754_expl before checking for overflow and
8570         underflow.
8571         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
8572         (__ieee754_expl): Allow for and saturate large arguments.
8573         * math/libm-test.inc (exp_test): Add another test.  Do not allow
8574         missing overflow exception on overflow.
8575         (expm1_test): Do not allow missing overflow exception on overflow.
8576
8577         * sysdeps/i386/fpu/e_expl.c: Move to ...
8578         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
8579         rather than using inline asm.
8580         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
8581         * sysdeps/x86_64/fpu/e_expl.S: Copy from
8582         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
8583
8584         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
8585         (nice): Likewise.
8586         (poll): Likewise.
8587         (signal): Likewise.
8588         (time): Likewise.
8589         (times): Likewise.
8590
8591 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8592
8593         * sysdeps/unix/syscalls.list (adjtime): Add entry from
8594         sysdeps/unix/common/syscalls.list.
8595         (fchmod): Likewise.
8596         (fchown): Likewise.
8597         (ftruncate): Likewise.
8598         (getrusage): Likewise.
8599         (gettimeofday): Likewise.
8600         (setpgid): Likewise.
8601         (setregid): Likewise.
8602         (setreuid): Likewise.
8603         (sigaction): Likewise.
8604         (truncate): Likewise.
8605         (vhangup): Likewise.
8606         * sysdeps/unix/common/syscalls.list: Remove file.
8607         * sysdeps/unix/bsd/Implies: Don't include unix/common.
8608         * sysdeps/unix/sysv/linux/Implies: Likewise.
8609
8610 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8611
8612         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
8613         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
8614         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
8615         Moved to ...
8616         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
8617         Here.
8618         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
8619         to ...
8620         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
8621         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
8622         to ...
8623         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
8624         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
8625         to ...
8626         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
8627         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
8628         to ...
8629         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
8630         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
8631         to ...
8632         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
8633         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
8634         to ...
8635         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
8636         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
8637         to ...
8638         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
8639         Here.
8640         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
8641         to ...
8642         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
8643         Here.
8644         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
8645         to ...
8646         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
8647         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
8648         Moved to ...
8649         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
8650         Here.
8651         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
8652         to ...
8653         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
8654
8655 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8656
8657         * sysdeps/unix/common/bits/dirent.h: Remove file.
8658         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8659
8660         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8661         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8662         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8663         * sysdeps/unix/bsd/isatty.c: Likewise.
8664         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8665         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8666         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8667
8668 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8669
8670         [BZ #13563]
8671         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8672         long double comparison inaccuracies.
8673         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8674         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8675
8676 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8677
8678         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8679         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8680
8681 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8682
8683         [BZ #14049]
8684         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8685         nonzero digits before rounding a hex value.
8686         * stdlib/tst-strtod.c (tests): Add another test.
8687
8688 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8689
8690         * sysdeps/s390/fpu/libm-test-ulps: Update.
8691
8692 2012-05-03  Andreas Jaeger  <aj@suse.de>
8693
8694         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8695         does not get optimized out.
8696         (malloc_opt_barrier): New.
8697
8698 2012-05-03  Andreas Jaeger  <aj@suse.de>
8699             Roland McGrath  <roland@hack.frob.com>
8700
8701         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8702         intermediate file deletion.
8703         (generated): Add .symlist files.
8704
8705 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8706
8707         [BZ #13775]
8708         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8709         Redirect under this condition.
8710         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8711         [__USE_GNU] (__dprintf_chk): Not under this condition.
8712         [__USE_GNU] (__vdprintf_chk): Likewise.
8713         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8714         under this condition.
8715         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8716         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8717         [__USE_XOPEN2K8] (vdprintf): Likewise.
8718         [__USE_GNU] (__dprintf_chk): Not under this condition.
8719         [__USE_GNU] (__vdprintf_chk): Likewise.
8720         [__USE_GNU] (dprintf): Likewise.
8721         [__USE_GNU] (vdprintf): Likewise.
8722
8723 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8724
8725         * elf/Makefile (common-generated): Set this instead of generated for
8726         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8727         $(all-built-dso)-derived lists.
8728
8729 2012-05-03  Andreas Jaeger  <aj@suse.de>
8730
8731         * sysdeps/i386/fpu/libm-test-ulps: Update.
8732
8733         * FAQ: Removed.
8734         * FAQ.in: Likewise.
8735         * scripts/gen-FAQ.pl: Likewise.
8736         * manual/install.texi (Installation): Point to online location of
8737         FAQ.
8738         * Makefile (files-for-dist): Remove FAQ.
8739         (FAQ): Remove.
8740
8741 2012-05-02  Allan McRae  <allan@archlinux.org>
8742
8743         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8744         (LDFLAGS-reldepmod5.so): Likewise.
8745         (LDFLAGS-reldep6mod1.so): Likewise.
8746         (LDFLAGS-reldep6mod4.so): Likewise.
8747         (LDFLAGS-reldep8mod3.so): Likewise.
8748         (LDFLAGS-unload4mod1.so): Likewise.
8749         (LDFLAGS-unload4mod2.so): Likewise.
8750         (LDFLAGS-tst-initorder): Likewise.
8751         (LDFLAGS-tst-initordera2.so): Likewise.
8752         (LDFLAGS-tst-initordera3.so): Likewise.
8753         (LDFLAGS-tst-initordera4.so): Likewise.
8754         (LDFLAGS-tst-initorderb2.so): Likewise.
8755         (LDFLAGS-noload): Likewise.
8756         (LDFLAGS-next): Likewise.
8757         (LDFLAGS-order2mod1.so): Likewise.
8758         (LDFLAGS-order2mod2.so): Likewise.
8759         (LDFLAGS-tst-initorder2): Likewise.
8760         (LDFLAGS-tst-initorder2a.so): Likewise.
8761         (LDFLAGS-tst-initorder2b.so): Likewise.
8762         (LDFLAGS-tst-initorder2c.so): Likewise.
8763         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8764
8765 2012-05-02  David S. Miller  <davem@davemloft.net>
8766
8767         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8768
8769 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8770
8771         [BZ #14055]
8772         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8773
8774 2012-05-02  Andreas Jaeger  <aj@suse.de>
8775
8776         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8777         since we manipulate rounding mode.
8778         (CPPFLAGS-test-idouble.c): Likewise.
8779         (CPPFLAGS-test-ifloat.c): Likewise.
8780         (CFLAGS-test-ldouble.c): Likewise.
8781         (CFLAGS-test-double.c): Likewise.
8782         (CFLAGS-test-float.c): Likewise.
8783         (CFLAGS-test-misc.c): Likewise.
8784         (CFLAGS-test-test-fenv.c): Likewise.
8785
8786 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8787
8788         [BZ #2550]
8789         [BZ #2570]
8790         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8791         comparisons to determine direction to adjust input.
8792
8793 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8794
8795         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8796         output to the target.
8797
8798         * scripts/localplt.awk: New file.
8799         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8800         (check-localplt-CFLAGS): Variable removed.
8801         ($(all-built-dso:=.jmprel)): New static pattern rule.
8802         (generated): Add those targets.
8803         (localplt-built-dso): New variable.
8804         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8805
8806         * elf/check-localplt.c: File removed.
8807
8808         * scripts/check-execstack.awk: New file.
8809         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8810         (check-execstack-CFLAGS): Variable removed.
8811         ($(objpfx)check-execstack.h): Target removed.
8812         ($(objpfx)execstack-default): New target.
8813         (generated): Add that instead of check-execstack.h.
8814         ($(all-built-dso:=.phdr)): New static pattern rule.
8815         (generated): Add those targets.
8816         * elf/check-execstack.c: File removed.
8817
8818         * scripts/check-textrel.awk: New file.
8819         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8820         (check-textrel-CFLAGS): Variable removed.
8821         (all-built-dso): Use := to define.o
8822         ($(all-built-dso:=.dyn)): New static pattern rule.
8823         (generated): Add those targets.
8824         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8825         * config.make.in (READELF): New substituted variable.
8826         * elf/check-textrel.c: File removed.
8827
8828 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8829
8830         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8831         allow.
8832         * conform/data/ctype.h-data [C99-based standards] (isblank):
8833         Expect function.
8834         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8835         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8836         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8837         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8838         Specify type.  Require positive value.
8839         (EILSEQ): Likewise.
8840         (ERANGE): Likewise.
8841         [ISO || POSIX] (EILSEQ): Do not expect.
8842         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8843         Specify type.  Require positive value.
8844         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8845         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8846         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8847         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8848         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8849         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8850         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8851         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8852         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8853         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8854         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8855         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8856         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8857         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8858         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8859         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8860         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8861         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8862         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8863         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8864         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8865         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8866         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8867         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8868         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8869         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8870         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8871         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8872         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8873         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8874         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8875         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8876         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8877         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8878         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8879         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8880         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8881         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8882         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8883         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8884         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8885         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8886         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8887         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8888         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8889         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8890         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8891         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8892         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8893         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8894         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8895         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8896         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8897         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8898         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8899         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8900         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8901         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8902         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8903         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8904         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8905         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8906         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8907         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8908         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8909         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8910         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8911         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8912         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8913         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8914         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8915         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8916         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8917         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8918         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8919         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8920         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8921         Require >= 2.
8922         (FLT_ROUNDS): Expect as macro, not constant.
8923         (FLT_MANT_DIG): Use macro-int-constant.
8924         (DBL_MANT_DIG): Likewise.
8925         (LDBL_MANT_DIG): Likewise.
8926         (FLT_DIG): Likewise.
8927         (DBL_DIG): Likewise.
8928         (LDBL_DIG): Likewise.
8929         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8930         (DBL_MIN_EXP): Likewise.
8931         (LDBL_MIN_EXP): Likewise.
8932         (FLT_MAX_EXP): Use macro-int-constant.
8933         (DBL_MAX_EXP): Likewise.
8934         (LDBL_MAX_EXP): Likewise.
8935         (FLT_MAX_10_EXP): Likewise.
8936         (DBL_MAX_10_EXP): Likewise.
8937         (LDBL_MAX_10_EXP): Likewise.
8938         (FLT_MAX): Use macro-constant.
8939         (DBL_MAX): Likewise.
8940         (LDBL_MAX): Likewise.
8941         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8942         (DBL_EPSILON): Likewise.
8943         (LDBL_EPSILON): Likewise.
8944         (FLT_MIN): Likewise.
8945         (DBL_MIN): Likewise.
8946         (LDBL_MIN): Likewise.
8947         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8948         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8949         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8950         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8951         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8952         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8953         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8954         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8955         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8956         [ISO11] (FLT_TRUE_MIN): Likewise.
8957         [ISO11] (LDBL_TRUE_MIN): Likewise.
8958         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8959         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8960         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8961         (SCHAR_MAX): Likewise.
8962         (UCHAR_MAX): Likewise.
8963         (CHAR_MIN): Likewise.
8964         (CHAR_MAX): Likewise.
8965         (MB_LEN_MAX): Use macro-int-constant.
8966         (SHRT_MIN): Use macro-int-constant.  Specify type.
8967         (SHRT_MAX): Likewise.
8968         (USHRT_MAX): Likewise.
8969         (INT_MAX): Likewise.
8970         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8971         bound negative.
8972         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8973         bound with "U".
8974         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8975         bound with "L".
8976         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8977         bound negative.  Suffix upper bound with "L".
8978         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8979         bound with "UL".
8980         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8981         Specify type.
8982         [C99-based standards] (LLONG_MAX): Likewise.
8983         [C99-based standards] (ULLONG_MAX): Likewise.
8984         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8985         == 0.
8986         [ISO11] (max_align_t): Require type.
8987         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8988
8989         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8990         from $CFLAGS, without defining away __attribute__ calls.
8991         (checknamespace): Use $CFLAGS_namespace.
8992
8993         * conform/conformtest.pl (@keywords): Only include C99 keywords
8994         for standards based on C99 or C11.
8995
8996         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8997         Disable tests.
8998         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8999         UNIX98]: Likewise.
9000
9001         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9002         usability of symbols in #if.
9003
9004         * conform/conformtest.pl: If macro or constant types start
9005         "promoted:", expect the symbol to be of the following type
9006         promoted by the integer promotions.
9007
9008         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9009         in one place.  Also handle "macro-constant".
9010
9011         * conform/conformtest.pl: Only accept expected macro values with
9012         "==".  Parse all "macro" lines in one place.
9013         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9014
9015         * conform/conformtest.pl: Handle braced types on "constant" lines
9016         instead of handling "typed-constant".
9017         * conform/data/signal.h-data: Use "constant" instead of
9018         "typed-constant".
9019
9020         * conform/conformtest.pl: Handle "optional-" at start of lines in
9021         one place rather than duplicating several cases.  Handle each
9022         format of "macro" line with initial "optional-".
9023
9024         * conform/conformtest.pl: Only accept expected constant or
9025         optional-constant values with "==".  Parse all "constant" lines in
9026         one place.  Parse all "optional-constant" lines in one place.
9027         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9028         * conform/data/fmtmsg.h-data: Likewise.
9029         * conform/data/netinet/in.h-data: Likewise.
9030         * conform/data/tar.h-data: Likewise.
9031         * conform/data/limits.h-data: Use "==" form on "constant" and
9032         "optional-constant" lines.
9033
9034         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9035         Use -std=c99 for XOPEN2K.
9036         (@knownproblems): Remove.
9037         (newtoken): Don't check %isknown.
9038
9039         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9040         Do not expect macro.
9041         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9042         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9043         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9044         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9045         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9046         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9047         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9048         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9049         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9050         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9051         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9052         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9053         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9054         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9055         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9056         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9057         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9058         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9059         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9060         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9061         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9062         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9063         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9064         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9065         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9066         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9067         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9068         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9069         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9070         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9071         [XPG3] (acosh): Likewise.
9072         [XPG3] (asinh): Likewise.
9073         [XPG3] (atanh): Likewise.
9074         [XPG3] (cbrt): Likewise.
9075         [XPG3] (expm1): Likewise.
9076         [XPG3] (ilogb): Likewise.
9077         [XPG3] (log1p): Likewise.
9078         [XPG3] (logb): Likewise.
9079         [XPG3] (nextafter): Likewise.
9080         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9081         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9082         [XPG3] (remainder): Likewise.
9083         [XPG3] (rint): Likewise.
9084         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9085         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9086         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9087         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9088         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9089         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9090         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9091         [UNIX98 || XOPEN2K] (scalb): Expect.
9092         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9093         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9094         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9095         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9096         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9097         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9098         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9099         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9100         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9101         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9102         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9103         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9104         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9105         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9106         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9107         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9108         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9109         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9110         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9111         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9112         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9113         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9114         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9115         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9116         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9117         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9118         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9119         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9120         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9121         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9122         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9123         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9124         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9125         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9126         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9127         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9128         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9129         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9130         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9131         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9132         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9133         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9134         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9135         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9136         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9137         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9138         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9139         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9140         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9141         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9142         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9143         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9144         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9145         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9146         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9147         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9148         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9149         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9150         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9151         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9152         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9153         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9154         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9155         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9156         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9157         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9158         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9159         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9160         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9161         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9162         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9163         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9164         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9165         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9166         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9167         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9168         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9169         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9170         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9171         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9172         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9173         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9174         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9175         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9176         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9177         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9178         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9179         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9180         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9181         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9182         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9183         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9184         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9185         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9186         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9187         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9188         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9189         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9190         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9191         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9192         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9193         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9194         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9195         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9196         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9197         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9198         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9199         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9200         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9201         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9202         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9203         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9204         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9205         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9206         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9207         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9208         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9209         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9210         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9211         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9212         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9213         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9214         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9215         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9216         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9217         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9218         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9219         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9220         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9221         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9222         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9223         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9224         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9225         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9226         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9227         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9228         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9229
9230         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9231         _XOPEN_SOURCE_EXTENDED for XPG4.
9232
9233         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9234
9235         * Makeconfig (localtime): Remove variable.
9236         (inst_localtime-file): Likewise.
9237
9238 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9239
9240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9241         Update.
9242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9243         Update.
9244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9245         Update.
9246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9247         Update.
9248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9249         Update.
9250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9251         Update.
9252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9253         Update.
9254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9255         Update.
9256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9257         Update.
9258
9259 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9260
9261         [BZ #2550]
9262         [BZ #2570]
9263         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9264         comparisons to determine direction to adjust input.
9265         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9266         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9267         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9268         Likewise.
9269         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9270         Likewise.
9271         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9272         Likewise.
9273         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9274         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9275         Likewise.
9276         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9277         Likewise.
9278         * math/libm-test.inc (nexttoward_test): Add more tests.
9279
9280 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9281
9282         [BZ #14040]
9283         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
9284         in version GLIBC_2.1, not GLIBC_2.0.
9285         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
9286         Likewise.
9287
9288 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
9289
9290         [BZ #13942]
9291         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
9292         (1 - x) * (1 + x).
9293         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9294         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
9295         * math/libm-test.inc (acos_test): Add more tests.
9296         (asin_test): Likewise.
9297         * sysdeps/i386/fpu/libm-test-ulps: Update.
9298         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9299
9300         [BZ #14034]
9301         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
9302         of square root.
9303         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
9304         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9305         * math/libm-test.inc (acos_test_tonearest): New function.
9306         (acos_test_towardzero): Likewise.
9307         (acos_test_downward): Likewise.
9308         (acos_test_upward): Likewise.
9309         (asin_test_tonearest): Likewise.
9310         (asin_test_towardzero): Likewise.
9311         (asin_test_downward): Likewise.
9312         (asin_test_upward): Likewise.
9313         (main): Call the new functions.
9314         * sysdeps/i386/fpu/libm-test-ulps: Update.
9315         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9316
9317         [BZ #13884]
9318         [BZ #13924]
9319         * math/e_exp10.c: Include <float.h>.
9320         (__ieee754_exp10): Handle underflow here rather than multiplying
9321         large negative argument by M_LN10.
9322         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
9323         of __ieee754_expf.
9324         * math/e_exp10l.c: Include <float.h>.
9325         (__ieee754_exp10l): Handle underflow here rather than multiplying
9326         large negative argument by M_LN10l.
9327         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
9328         spurious overflow exception on underflow.
9329
9330 2012-04-29  Marek Polacek  <polacek@redhat.com>
9331
9332         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
9333         (__fortify_function): New macro.
9334         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
9335         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
9336         __extern_always_inline.
9337         * libio/bits/stdio2.h: Likewise.
9338         * libio/bits/stdio.h: Likewise.
9339         * string/string.h: Likewise.
9340         * string/bits/string3.h: Likewise.
9341         * include/stdio.h: Likewise.
9342         * stdlib/bits/stdlib.h: Likewise.
9343         * stdlib/stdlib.h: Likewise.
9344         * rt/bits/mqueue2.h: Likewise.
9345         * rt/mqueue.h: Likewise.
9346         * posix/bits/unistd.h: Likewise.
9347         * posix/unistd.h: Likewise.
9348         * io/bits/poll2.h: Likewise.
9349         * io/bits/fcntl2.h: Likewise.
9350         * io/fcntl.h: Likewise.
9351         * io/sys/poll.h: Likewise.
9352         * misc/bits/syslog.h: Likewise.
9353         * misc/bits/syslog-ldbl.h: Likewise.
9354         * misc/sys/syslog.h: Likewise.
9355         * socket/bits/socket2.h: Likewise.
9356         * socket/sys/socket.h: Likewise.
9357         * debug/tst-chk1.c: Likewise.
9358         * wcsmbs/bits/wchar2.h: Likewise.
9359         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9360         * wcsmbs/wchar.h: Likewise.
9361
9362 2012-04-29  Andreas Jaeger  <aj@suse.de>
9363
9364         * Makerules (tests): Remove enable-check-abi protection.
9365         (check-abi-warn): Remove.
9366         (check-abi-%): Remove check-abi-warn usage.
9367
9368         * configure.in: Remove check-abi configure option.
9369         * configure: Regenerated.
9370         * config.make.in (enable-check-abi): Remove.
9371
9372 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
9373
9374         [BZ #14033]
9375         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
9376         double functions to double *_finite functions.
9377
9378         [BZ #13941]
9379         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
9380         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
9381         LDBL_MIN_EXP.
9382         * stdio-common/Makefile (tests): Add tst-sprintf3.
9383         * stdio-common/tst-sprintf3.c: New file.
9384
9385         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
9386         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
9387
9388 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9389
9390         * conform/conformtest.pl: Remove duplicate typed-constant
9391         handling.
9392
9393 2012-04-28  David S. Miller  <davem@davemloft.net>
9394
9395         * Makerules (%.abilist): Add vpath on sysdep_dirs.
9396         (check-abi-%): Remove AWK script prerequisite and explicit
9397         abilist directory.
9398         (check-abi): Rewrite to just diff the symlist with the abilist.
9399         (config-tls, config-abi-config): Delete, no longer used.
9400         (update-abi-%): Remove AWK script and explicit abilist directory.
9401         (update-abi): Rewrite to simply compare and conditionally copy the
9402         symlist and the sysdep abilist file.  Remove update-abi-config
9403         checks.
9404         * abilist/ld.abilist: Remove.
9405         * abilist/libBrokenLocale.abilist: Remove.
9406         * abilist/libanl.abilist: Remove.
9407         * abilist/libcrypt.abilist: Remove.
9408         * abilist/libdl.abilist: Remove.
9409         * abilist/librt.abilist: Remove.
9410         * abilist/libthread_db.abilist: Remove.
9411         * abilist/libutil.abilist: Remove.
9412         * scripts/extract-abilist.awk: Remove.
9413         * scripts/merge-abilist.awk: Remove.
9414         * sysdeps/generic/libcidn.abilist: New file.
9415         * sysdeps/generic/libnss_compat.abilist: New file.
9416         * sysdeps/generic/libnss_db.abilist: New file.
9417         * sysdeps/generic/libnss_dns.abilist: New file.
9418         * sysdeps/generic/libnss_files.abilist: New file.
9419         * sysdeps/generic/libnss_hesiod.abilist: New file.
9420         * sysdeps/generic/libnss_nis.abilist: New file.
9421         * sysdeps/generic/libnss_nisplus.abilist: New file.
9422         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
9423         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
9424         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
9425         file.
9426         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
9427         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
9428         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
9429         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
9430         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
9431         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
9432         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
9433         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
9434         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
9435         file.
9436         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
9437         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
9438         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
9439         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
9440         file.
9441         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
9442         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
9443         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
9444         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
9445         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
9446         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
9447         file.
9448         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
9449         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
9450         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
9451         file.
9452         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
9453         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
9454         New file.
9455         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
9456         New file.
9457         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
9458         New file.
9459         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
9460         New file.
9461         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
9462         New file.
9463         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
9464         New file.
9465         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
9466         New file.
9467         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
9468         New file.
9469         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
9470         New file.
9471         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
9472         New file.
9473         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
9474         New file.
9475         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
9476         New file.
9477         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
9478         New file.
9479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
9480         file.
9481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
9482         New file.
9483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
9484         New file.
9485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
9486         file.
9487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
9488         New file.
9489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
9490         New file.
9491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
9492         file.
9493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
9494         New file.
9495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9496         New file.
9497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
9498         New file.
9499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
9500         New file.
9501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
9502         New file.
9503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
9504         New file.
9505         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
9506         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
9507         file.
9508         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
9509         New file.
9510         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
9511         file.
9512         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
9513         file.
9514         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
9515         file.
9516         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
9517         file.
9518         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
9519         file.
9520         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9521         New file.
9522         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
9523         file.
9524         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
9525         file.
9526         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
9527         New file.
9528         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
9529         file.
9530         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
9531         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
9532         file.
9533         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
9534         New file.
9535         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
9536         file.
9537         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
9538         file.
9539         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
9540         file.
9541         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
9542         file.
9543         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
9544         file.
9545         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9546         New file.
9547         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
9548         file.
9549         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
9550         file.
9551         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
9552         New file.
9553         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
9554         file.
9555         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
9556         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
9557         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
9558         file.
9559         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
9560         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
9561         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
9562         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
9563         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
9564         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
9565         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
9566         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
9567         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
9568         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
9569         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
9570         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
9571         file.
9572         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
9573         New file.
9574         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
9575         file.
9576         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
9577         file.
9578         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
9579         file.
9580         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
9581         file.
9582         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
9583         file.
9584         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
9585         New file.
9586         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
9587         New file.
9588         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
9589         file.
9590         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
9591         New file.
9592         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
9593         file.
9594         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
9595         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
9596         file.
9597         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
9598         New file.
9599         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
9600         file.
9601         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
9602         file.
9603         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
9604         file.
9605         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
9606         file.
9607         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
9608         file.
9609         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
9610         New file.
9611         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
9612         New file.
9613         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
9614         file.
9615         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
9616         New file.
9617         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
9618         file.
9619
9620 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9621
9622         * conform/conformtest.pl: Fix typo in handling typed-constant from
9623         allow-header.
9624
9625 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9626
9627         * README: Cut down references to pre-2.6 Linux kernels and
9628         Linuxthreads.  Update lists of configurations in libc and ports
9629         and sort alphabetically.  Say "or newer" with Linux kernel version
9630         requirements.
9631
9632         * config.h.in [IS_IN_build]: Allow compiling without optimization.
9633
9634 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9635
9636         [BZ #887]
9637         * math/libm-test.inc (logb_test_downward): New test to expose
9638         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
9639         rounding mode.
9640
9641 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9642
9643         [BZ #14027]
9644         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
9645         to be done.
9646         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
9647         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
9648
9649 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
9650
9651         * sysdeps/unix/i386/brk.S: Remove file.
9652         * sysdeps/unix/i386/dl-brk.S: Likewise.
9653         * sysdeps/unix/i386/pipe.S: Likewise.
9654         * sysdeps/unix/i386/sigreturn.S: Likewise.
9655         * sysdeps/unix/i386/syscall.S: Likewise.
9656         * sysdeps/unix/i386/vfork.S: Likewise.
9657         * sysdeps/unix/i386/wait.S: Likewise.
9658
9659         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9660         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9661
9662         * configure.in (arm*-none*): Do not allow without
9663         --enable-hacker-mode.
9664         (netbsd*): Remove case setting base_os.
9665         (386bsd*): Likewise.
9666         (freebsd*): Likewise.
9667         (bsdi*): Likewise.
9668         (osf*): Likewise.
9669         (sunos*): Likewise.
9670         (ultrix*): Likewise.
9671         (newsos*): Likewise.
9672         (dynix*): Likewise.
9673         (*bsd*): Likewise.
9674         (sysv*): Likewise.
9675         (isc*): Likewise.
9676         (esix*): Likewise.
9677         (sco*): Likewise.
9678         (minix*): Likewise.
9679         (irix4*): Likewise.
9680         (irix6*): Likewise.
9681         (solaris[2-9]*): Likewise.
9682         (none): Likewise.
9683         * configure: Regenerated.
9684
9685 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9686
9687         [BZ #11521]
9688         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9689         overflow or cancellation in calculating denominator.
9690         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9691         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9692         down expression to avoid unexpected rounding in newer GCCs.
9693         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9694
9695 2012-04-26  David S. Miller  <davem@davemloft.net>
9696
9697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9698         long-double compat symbols.
9699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9704         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9705         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9706         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9707         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9708         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9709         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9710         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9711         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9712
9713 2012-04-25  David S. Miller  <davem@davemloft.net>
9714
9715         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9716         HWCAP_* values only after the memory barriers have been defined.
9717         (atomic_full_barrier): Define.
9718         (atomic_read_barrier): Define.
9719         (atomic_write_barrier): Define.
9720
9721 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9722
9723         * shlib-versions: Add libgcc_s version information.
9724         * sysdeps/generic/libgcc_s.h: Remove.
9725         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9726         libgcc_s.h.
9727         * sysdeps/gnu/unwind-resume.c: Likewise.
9728         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9729
9730 2012-04-25  David S. Miller  <davem@davemloft.net>
9731
9732         * sysdeps/unix/sparc/brk.S: Delete.
9733         * sysdeps/unix/sparc/dl-brk.S: Delete.
9734         * sysdeps/unix/sparc/pipe.S: Delete.
9735         * sysdeps/unix/sparc/sysdep.S: Delete.
9736         * sysdeps/unix/sparc/sysdep.h: Delete.
9737         * sysdeps/unix/sparc/vfork.S: Delete.
9738         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9739         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9740         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9741         ret_ERRVAL, r0, r1, MOVE): Define.
9742         (JUMPTARGET): Remove.
9743         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9744         sysdeps/unix/sparc/sysdep.h
9745         (ENTRY, END): Remove.
9746         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9747
9748 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9749
9750         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9751         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9752         -DIS_IN_build.
9753
9754         * timezone/README: Update upstream location and email address for
9755         tzcode and tzdata.
9756         * timezone/zdump.c: Update from tzcode 2012b.
9757         * timezone/zic.c: Likewise.
9758
9759         * configure.in (libc_cv_as_needed): Remove test.
9760         * configure: Regenerated.
9761         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9762         conditional definition.
9763         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9764         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9765         * config.make.in (have-as-needed): Remove variable.
9766
9767 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9768             Paul Pluzhnikov  <ppluzhnikov@google.com>
9769
9770         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9771         strings correctly.
9772
9773 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9774
9775         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9776         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9777         * sysdeps/sh/strlen.S: Likewise.
9778
9779 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9780
9781         * sysdeps/unix/fork.S: Remove file.
9782         * sysdeps/unix/i386/fork.S: Likewise.
9783         * sysdeps/unix/sparc/fork.S: Likewise.
9784
9785         * sysdeps/unix/system.c: Remove file.
9786         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9787
9788         * sysdeps/unix/getegid.S: Remove file.
9789         * sysdeps/unix/geteuid.S: Likewise.
9790
9791 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9792
9793         * scripts/check-localplt.awk: New file.
9794         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9795         of diff.
9796         * scripts/data/localplt-generic.data: Add a comment.
9797
9798         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9799         NODE when __dir_mkfile failed.
9800         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9801         Reported by Ludovic Courtès <ludo@gnu.org>.
9802
9803 2012-04-24  Andreas Jaeger  <aj@suse.de>
9804
9805         * Makerules (common-clean): Also remove gen-as-const-headers
9806         files.
9807
9808 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9809
9810         * Makerules (native-compile): Do not change working directory for
9811         build.  Use $(OUTPUT_OPTION) in command.
9812         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9813
9814 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9815
9816         [BZ #13886]
9817         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9818         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9819         * math/libm-test.inc (floor_test): Add more tests.
9820         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9821
9822 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9823
9824         * sysdeps/unix/getdents.c: Remove file.
9825         * sysdeps/unix/sysv/getdents.c: Likewise.
9826         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9827
9828         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9829         sysdeps/unix/mman/syscalls.list.
9830         (mmap): Likewise.
9831         (mprotect): Likewise.
9832         (msync): Likewise.
9833         (munmap): Likewise.
9834         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9835         * sysdeps/unix/mman/syscalls.list: Remove.
9836         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9837
9838         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9839         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9840         * configure: Regenerated.
9841         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9842         $(libgcc_s_suffix).
9843         * config.make.in (libgcc_s_suffix): Remove variable.
9844
9845 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9846
9847         * sysdeps/unix/sysv/gethostname.c: Move to ...
9848         * sysdeps/posix/gethostname.c: ... here.
9849
9850         * sysdeps/unix/execve.S: Remove file.
9851
9852         * sysdeps/unix/_exit.S: Remove file.
9853
9854 2012-04-23  Andreas Jaeger  <aj@suse.de>
9855
9856         [BZ #13739]
9857         * manual/Makefile: Remove make dist support, there's no
9858         need for a stand-alone documentation tar ball.
9859         (TEXI2DVI): Define always, it's not in Makeconfig.
9860         (dist): Removed.
9861         (tar-it): Removed.
9862         (edition): Removed.
9863         (glibc-doc-$(edition).tar): Removed
9864         (%.Z): Removed.
9865         (%.gz): Removed.
9866         (%.uu): Removed.
9867         (ETAGS): Remove, it's in Makeconfig.
9868         (move-if-change): Remove, it's in Makeconfig.
9869
9870 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9871
9872         [BZ #13970]
9873         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9874         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9875         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9876         (strtod_l, strtof_l, strtold_l): Remove __wur.
9877         It is not necessarily an error to ignore strtol's return value.
9878         One can reliably look at the stored endptr to decide whether
9879         the number had valid syntax.
9880
9881 2012-04-21  Andreas Jaeger  <aj@suse.de>
9882
9883         [BZ #13739]
9884         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9885
9886 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9887
9888         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9889         * sysdeps/unix/sysv/Versions: Remove file.
9890
9891 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9892
9893         [BZ #13927]
9894         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9895
9896 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9897
9898         [BZ #7064]
9899         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9900         version from __vm86.
9901
9902 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9903
9904         * sysdeps/unix/common/lxstat.c: Remove file.
9905         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9906
9907         * sysdeps/unix/sysv/Makefile: Remove file.
9908
9909         * sysdeps/unix/sysv/direct.h: Remove file.
9910
9911         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9912         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9913         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9914         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9915         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9916         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9917         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9918
9919         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9920
9921         * sysdeps/unix/xmknod.c: Remove file.
9922         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9923
9924         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9925
9926         * sysdeps/unix/sysv/i386/time.S: Remove file.
9927
9928         * sysdeps/unix/fxstat.c: Remove file.
9929         * sysdeps/unix/xstat.c: Likewise.
9930         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9931
9932         * sysdeps/unix/sysv/sigaction.c: Remove file.
9933
9934         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9935         (sysdep_headers): Remove variable.
9936         [termio.h not in sysdep_headers] (generated): Likewise.
9937         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9938         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9939         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9940         * sysdeps/unix/sysv/tcflow.c: Likewise.
9941         * sysdeps/unix/sysv/tcflush.c: Likewise.
9942         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9943         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9944         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9945         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9946         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9947
9948         * sysdeps/unix/siglist.c: Remove file.
9949
9950         * sysdeps/unix/getppid.S: Remove file.
9951
9952         * sysdeps/unix/mkdir.c: Remove file.
9953         * sysdeps/unix/rmdir.c: Likewise.
9954
9955 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9956
9957         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9958         ERR_MAX value.
9959         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9960         errlist-compat value.
9961
9962 2012-04-18  David S. Miller  <davem@davemloft.net>
9963
9964         * sysdeps/generic/memcopy.h (reg_char): Delete.
9965         * debug/strcat_chk.c: Use char, not reg_char.
9966         * debug/strcpy_chk.c: Likewise.
9967         * debug/strncat_chk.c: Likewise.
9968         * debug/strncpy_chk.c: Likewise.
9969         * string/memchr.c: Likewise.
9970         * string/memrchr.c: Likewise.
9971         * string/rawmemchr.c: Likewise.
9972         * string/strcat.c: Likewise.
9973         * string/strchr.c: Likewise.
9974         * string/strchrnul.c: Likewise.
9975         * string/strcmp.c: Likewise.
9976         * string/strcpy.c: Likewise.
9977         * string/strncat.c: Likewise.
9978         * string/strncmp.c: Likewise.
9979         * string/strncpy.c: Likewise.
9980
9981 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9982
9983         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9984         __builtin_memcopy is called when src and dest ranges are known to not
9985         overlap.
9986
9987 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9988
9989         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9990         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9991         fwd_align_merge macro call.
9992         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9993         bwd_align_merge macro call.
9994         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9995
9996 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9997
9998         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9999         bwd_align_merge macros.
10000         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10001         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10002         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10003
10004 2012-04-18  David S. Miller  <davem@davemloft.net>
10005
10006         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10007
10008 2012-04-18  Andreas Jaeger  <aj@suse.de>
10009
10010         [BZ# 6794]
10011         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10012         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10013         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10014
10015         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10016         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10017         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10018
10019         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10020         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10021         Adjust for changed ldbl-128 files.
10022
10023         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10024         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10025         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10026
10027 2012-04-17  David S. Miller  <davem@davemloft.net>
10028
10029         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10030
10031 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10032
10033         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10034         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10035         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10036         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10037         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10038         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10039
10040 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10041
10042         [BZ #6794]
10043         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10044         * math/libm-test.inc: Add ilogb errno and exception tests.
10045         * math/w_ilogb.c: New file: ilogb wrapper.
10046         * math/w_ilogbf.c: New file: ilogbf wrapper.
10047         * math/w_ilogbl.c: New file: ilogbl wrapper.
10048         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10049         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10050         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10051         exception being thrown with 0.0 as argument.
10052         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10053         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10054         exception being thrown with 0.0 as argument.
10055         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10056         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10057         exception being thrown with 0.0 as argument.
10058         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10059         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10060         exception being thrown with 0.0 as argument.
10061         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10062         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10063         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10064         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10065         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10066         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10067         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10068         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10069         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10070
10071 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10072
10073         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10074         with altivec.
10075
10076 2012-04-16  Marek Polacek  <polacek@redhat.com>
10077
10078         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10079
10080 2012-04-16  Marek Polacek  <polacek@redhat.com>
10081
10082         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10083         operands of fdivp instruction.
10084
10085 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10086
10087         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10088         * elf/tst-auditmod3b.c: Likewise.
10089         * elf/tst-auditmod4b.c: Likewise.
10090         * elf/tst-auditmod5b.c: Likewise.
10091         * elf/tst-auditmod6b.c: Likewise.
10092         * elf/tst-auditmod6c.c: Likewise.
10093         * elf/tst-auditmod7b.c: Likewise.
10094         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10095         * sysdeps/x86_64/preconfigure.in: Likewise.
10096         * sysdeps/x86_64/preconfigure: Regenerated.
10097
10098 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10099
10100         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10101         __ILP32__.
10102
10103 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10104
10105         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10106         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10107
10108 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10109
10110         [BZ #13973]
10111         * locale/iso-639.def: Fix gl language name. Spotted by
10112         Yaron Shahrabani.
10113
10114 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10115
10116         [BZ #2074]
10117         * libio/libio.h (__io_write_fn): Update comment.
10118
10119 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10120
10121         [BZ #2074]
10122         * stdio.texi (Hook Functions): The user provided writer function
10123         is not allowed to return -1.
10124
10125 2012-04-11  David S. Miller  <davem@davemloft.net>
10126
10127         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10128
10129 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10130
10131         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10132         Add a leading slash to rtkaio.
10133
10134 2012-04-11  Jim Meyering  <meyering@redhat.com>
10135
10136         [BZ #11959]
10137         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10138         It is not necessarily an error to ignore fwrite's return
10139         value.  One can reliably use ferror to test for errors after
10140         the fact.
10141
10142 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10143
10144         * bits/types.h (__snseconds_t): New type.
10145         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10146
10147         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10148         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10149         (__SNSECONDS_T_TYPE): Likewise.
10150         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10151         (__SNSECONDS_T_TYPE): Likewise.
10152         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10153         (__SNSECONDS_T_TYPE): Likewise.
10154
10155 2012-04-10  Andreas Jaeger  <aj@suse.de>
10156
10157         [BZ #2636]
10158         * manual/time.texi (Processor Time): Return type of times is
10159         elapsed real time since an arbitrary point in the past.
10160         (CPU Time): Move CLK_TCK from here...
10161         (Processor Time): ...to here.  Correct description.
10162         * manual/conf.texi (Constants for Sysconf): Correct description of
10163         _SC_CLK_TCK.
10164
10165 2012-04-10  David S. Miller  <davem@davemloft.net>
10166
10167         [BZ #13967]
10168         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10169         where the is a gap between DT_REL(A) and DT_JMPREL.
10170
10171 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10172
10173         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10174         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10175         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10176
10177 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10178
10179         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10180         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10181         (dl_main): Handle --inhibit-cache.
10182         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10183         _dl_inhibit_cache.
10184         * elf/dl-load.c (_dl_map_object): Use it.
10185         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10186
10187 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10188
10189         [BZ #13872]
10190         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10191         (__ieee754_powl): Saturate large exponents rather than testing for
10192         overflow of y*log2(x).
10193         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10194         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10195         exceptions.
10196
10197         [BZ #11521]
10198         * math/s_ctan.c: Include <float.h>.
10199         (__ctan): Avoid internal overflow or cancellation in calculating
10200         denominator.
10201         * math/s_ctanf.c: Likewise.
10202         * math/s_ctanl.c: Likewise.
10203         * math/s_ctanh.c: Likewise.
10204         * math/s_ctanhf.c: Likewise.
10205         * math/s_ctanhl.c: Likewise.
10206         * math/libm-test.inc (ctan_test): Add more tests.
10207         (ctanh_test): Likewise.
10208         * sysdeps/i386/fpu/libm-test-ulps: Update.
10209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10210
10211 2012-04-09  Andreas Jaeger  <aj@suse.de>
10212
10213         [BZ #6894]
10214         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10215         is an optional BSD extension.
10216
10217         [BZ #10254]
10218         * manual/stdio.texi (Opening Streams): Document additional fopen
10219         parameters.
10220
10221 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10222
10223         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10224         %eax without telling the compiler.
10225
10226 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10227
10228         [BZ # 13963]
10229         * manual/install.texi: Use sourceware.org.
10230
10231 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10232
10233         [BZ #13873]
10234         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10235         (__ieee754_pow): Generate overflow and underflow using huge*huge
10236         and tiny*tiny rather than just returning constant infinity or zero
10237         for large exponents.
10238         * math/libm-test.inc (pow_test): Require overflow exceptions for
10239         applicable cases of large exponents.
10240
10241         [BZ #706]
10242         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10243         (__ieee754_pow): Use iterative multiplication algorithm only for
10244         integer exponents with absolute value below 1024.  Check for odd
10245         integer exponents when using algorithm for real exponents.
10246         * math/libm-test.inc (pow_test): Add more tests.
10247         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10248
10249 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10250
10251         [BZ #13705]
10252         * math/libm-test.inc (exp_test): Do not allow overflow exception
10253         on underflow test.
10254
10255 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10256
10257         [BZ #13705]
10258         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10259         instead of __kernel_standard_f.
10260
10261 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10262
10263         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10264         * sysdeps/x86_64/memset_chk.S: Likewise.
10265
10266 2012-04-08  Andreas Jaeger  <aj@suse.de>
10267
10268         [BZ #10153]
10269         * manual/startup.texi (Environment Access): Describe return value
10270         for putenv and setenv.
10271
10272         [BZ #6895]
10273         * manual/filesys.texi (Directory Entries): Add description for
10274         DT_LNK.
10275
10276         [BZ #6890]
10277         * manual/filesys.texi (Directory Entries): Clarify that it's file
10278         system not operating system in the description of DT_UNKNOWN.
10279
10280         [BZ #6578]
10281         * manual/syslog.texi (closelog): Fix reference, it's openlog.
10282
10283 2012-04-08  Stephen Compall  <s11@member.fsf.org>
10284
10285         [BZ #6649]
10286         * manual/llio.texi (Opening and Closing Files): Add cross
10287         reference to explain mode argument.
10288
10289 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
10290
10291         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
10292         * sysdeps/x86_64/memset_chk.S: Likewise.
10293
10294 2012-04-07  David S. Miller  <davem@davemloft.net>
10295
10296         * elf/elf.h (R_SPARC_WDISP10): Define.
10297         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
10298         R_SPARC_SIZE32.
10299         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
10300         R_SPARC_SIZE64 and R_SPARC_H34.
10301
10302 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
10303
10304         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
10305         conditions and remove no longer applicable assertion.
10306
10307 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10308
10309         * bits/byteswap.h: Include <features.h>.
10310         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10311         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10312
10313 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10314
10315         * bits/byteswap.h (__bswap_16): Removed.
10316         Include <bits/byteswap-16.h> to get __bswap_16.
10317         * sysdeps/i386/bits/byteswap.h: Likewise.
10318         * sysdeps/s390/bits/byteswap.h: Likewise.
10319         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10320         * bits/byteswap-16.h: New file.
10321         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10322         * sysdeps/s390/bits/byteswap-16.h: Likewise.
10323         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
10324         * string/Makefile (headers): Add bits/byteswap-16.h.
10325
10326 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10327
10328         [BZ #13895]
10329         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
10330         extra indirection.
10331         * nss/Makefile (tests-static, tests): Add tst-nss-static.
10332         * nss/tst-nss-static.c: New.
10333
10334 2012-04-06  Robert Millan  <rmh@gnu.org>
10335
10336         [BZ #6486]
10337         * manual/llio.texi (File Position Primitive): lseek
10338         refers to WHENCE when it really means OFFSET.
10339
10340 2012-04-06  Andreas Jaeger  <aj@suse.de>
10341
10342         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
10343         strncmp declarations.
10344
10345         * abilist/libc.abilist: Add __poll and __ppoll.
10346
10347 2012-04-05  David S. Miller  <davem@davemloft.net>
10348
10349         * scripts/check-local-headers.sh: Accept a host triplet in the
10350         path matched by the exclude regexp.
10351
10352         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
10353         definition.
10354         * sysdeps/powerpc/powerpc32/dl-machine.h
10355         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
10356         * sysdeps/s390/s390-32/dl-machine.h
10357         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10358         * sysdeps/sparc/sparc32/dl-machine.h
10359         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10360         * sysdeps/sparc/sparc64/dl-machine.h
10361         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10362
10363         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
10364         lazy binding.
10365         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
10366         undefined symbol errors.
10367
10368         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
10369         DT_NEEDED entries.
10370
10371 2012-04-05  Michael Matz  <matz@suse.de>
10372
10373         [BZ #13592]
10374         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
10375
10376 2012-04-05  Andreas Jaeger  <aj@suse.de>
10377
10378         [BZ #13908]
10379         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
10380         comment.
10381
10382 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10383
10384         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
10385         which ROUND is no valid rounding mode.
10386
10387 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10388
10389         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
10390         read again.
10391         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
10392
10393 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10394
10395         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
10396         an exception using FPU order intentionally.
10397
10398 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10399
10400         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
10401         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
10402         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
10403         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
10404
10405 2012-04-05  Simon Josefsson  <simon@josefsson.org>
10406
10407         [BZ #12340]
10408         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
10409         EINVAL when BUFLEN is too smal.
10410
10411 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10412
10413         [BZ #13553]
10414         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
10415         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10416
10417 2012-04-03  Andreas Jaeger  <aj@suse.de>
10418
10419         [BZ #13938]
10420         * manual/setjmp.texi (System V contexts): Fix sentence.
10421
10422         [BZ #13926]
10423         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
10424         New macro for this case.
10425         [!__GNUC__] (__bswap_64): New inline function for this case.
10426         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10427         * bits/byteswap.h: Likewise.
10428         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
10429         ull, guard with __GLIBC_HAVE_LONG_LONG.
10430
10431         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
10432         __GLIBC_HAVE_LONG_LONG.
10433
10434         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
10435         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
10436
10437 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10438
10439         [BZ #13691]
10440         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
10441         inptr and inend, rather than using last_ch.
10442
10443 2012-04-02  David S. Miller  <davem@davemloft.net>
10444
10445         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
10446         * stdio-common/printf-parse.h (read_int): Change return type to
10447         'int', return -1 on INT_MAX overflow.
10448         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
10449         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
10450         overflows INT_MAX.  Check for overflow of in-format-string precision
10451         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
10452         SIZE_MAX not INT_MAX for integer overflow test.
10453         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
10454         skip the construct in the format string but do not record anything.
10455         * stdio-common/bug22.c: Adjust to test both width/prevision
10456         INT_MAX overflow as well as total length INT_MAX overflow.  Check
10457         explicitly for proper errno values.
10458
10459 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10460
10461         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
10462         CHAR_MAX.
10463         * string/test-strcmp.c [! WIDE]: Likewise.
10464         * time/tst-mktime2.c: Likewise for INT_MAX.
10465         * string/test-string.h: #include <sys/param.h> for MIN.
10466
10467         * csu/init-first.c (__libc_init_first): Call __ctype_init.
10468         * sysdeps/i386/init-first.c (init): Likewise.
10469         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
10470         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
10471         * sysdeps/sh/init-first.c (init): Likewise.
10472
10473 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
10474
10475         * po/ru.po: Update from translation team.
10476         * po/vi.po: Likewise.
10477
10478 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10479
10480         * resolv/nss_dns/dns-host.c: Merge copyright years.
10481
10482 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10483
10484         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10485         Optimize memcpy with prefetch if
10486         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
10487         src, dst pointers have unequal 16 byte alignments.
10488
10489 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10490
10491         [BZ #13928]
10492         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
10493         from a CNAME entry and return the minimum ttl for the query.
10494         (gaih_getanswer_slice): Likewise.
10495
10496 2012-03-30  Jeff Law  <law@redhat.com>
10497
10498         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
10499         due to long keys.
10500         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
10501         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
10502
10503         * resolv/nss_dns/dns-host.c: Update copyright year.
10504
10505 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
10506
10507         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
10508         requests to save a system call.  Fix check that all bytes are sent.
10509
10510         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
10511         comments for sendmmsg.
10512
10513 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10514
10515         [BZ #13691]
10516         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
10517         with only 1 character between 0x0041 and 0x01b0.
10518         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
10519         * wcsmbs/tst-mbsnrtowcs.c: New file.
10520
10521 2012-03-29  David S. Miller  <davem@davemloft.net>
10522
10523         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
10524         small copies by hand.
10525
10526 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10527
10528         [BZ #13761]
10529         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
10530         _nss_compat_initgroups_dyn): Fall back to malloc/free
10531         for large group memberships.
10532
10533 2012-03-28  David S. Miller  <davem@davemloft.net>
10534
10535         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
10536         that branches into memcpy.
10537         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
10538         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
10539         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
10540         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
10541         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
10542         bits.
10543         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
10544         implementation too.
10545         * sysdeps/sparc/mempcpy.S: New file.
10546
10547         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
10548         the IFUNC routine in the libc case.
10549         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10550
10551         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
10552         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
10553         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
10554         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
10555         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
10556         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
10557         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
10558         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
10559
10560         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
10561         loop to 256 bytes instead of 64 bytes and fix test signedness.
10562
10563         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
10564         * sysdeps/sparc/sparc32/Makefile: rather than here...
10565         * sysdeps/sparc/sparc64/Makefile: and here.
10566
10567 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
10568
10569         * malloc/mallocbug.c: Avoid warnings about unused variables.
10570
10571 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10572
10573         [BZ #13760]
10574         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
10575         in the right place. Discard and retry query if response is
10576         larger than input buffer size.
10577
10578 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
10579
10580         [BZ #369]
10581         [BZ #2678]
10582         [BZ #3866]
10583         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
10584         x for large integer exponent.
10585         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
10586         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
10587         sign of result as needed afterwards.
10588         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10589         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
10590         result for underflowing pow the same as for overflow.
10591         (__kernel_standard_l): Handle powl overflow and underflow here
10592         rather than calling __kernel_standard.
10593         * math/libm-test.inc (pow_test): Add more tests.
10594
10595         [BZ #3868]
10596         [BZ #13879]
10597         [BZ #13910]
10598         [BZ #13911]
10599         [BZ #13912]
10600         [BZ #13913]
10601         [BZ #13915]
10602         [BZ #13916]
10603         [BZ #13917]
10604         [BZ #13918]
10605         [BZ #13919]
10606         [BZ #13920]
10607         [BZ #13921]
10608         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
10609         * sysdeps/ieee754/k_standard.c: Include <float.h>.
10610         (__kernel_standard_l): New function.
10611         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
10612         __kernel_standard.
10613         * math/w_acosl.c (__acosl): Likewise.
10614         * math/w_asinl.c (__asinl): Likewise.
10615         * math/w_atan2l.c (__atan2l): Likewise.
10616         * math/w_atanhl.c (__atanhl): Likewise.
10617         * math/w_coshl.c (__coshl): Likewise.
10618         * math/w_exp10l.c (__exp10l): Likewise.
10619         * math/w_exp2l.c (__exp2l): Likewise.
10620         * math/w_fmodl.c (__fmodl): Likewise.
10621         * math/w_hypotl.c (__hypotl): Likewise.
10622         * math/w_j0l.c (__j0l, __y0l): Likewise.
10623         * math/w_j1l.c (__j1l, __y1l): Likewise.
10624         * math/w_jnl.c (__jnl, __ynl): Likewise.
10625         * math/w_lgammal.c (__lgammal): Likewise.
10626         * math/w_log10l.c (__log10l): Likewise.
10627         * math/w_log2l.c (__log2l): Likewise.
10628         * math/w_logl.c (__logl): Likewise.
10629         * math/w_powl.c (__powl): Likewise.
10630         * math/w_remainderl.c (__remainderl): Likewise.
10631         * math/w_scalbl.c (sysv_scalbl): Likewise.
10632         * math/w_sinhl.c (__sinhl): Likewise.
10633         * math/w_sqrtl.c (__sqrtl): Likewise.
10634         * math/w_tgammal.c (__tgammal): Likewise.
10635         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
10636         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
10637         * math/libm-test.inc (acos_test): Add more tests.
10638         (acosh_test): Likewise.
10639         (asin_test): Likewise.
10640         (atanh_test): Likewise.
10641         (exp_test): Likewise.
10642         (exp10_test): Likewise.
10643         (exp2_test): Likewise.
10644         (expm1_test): Likewise.
10645         (lgamma_test): Likewise.
10646         (log_test): Likewise.
10647         (log10_test): Likewise.
10648         (log1p_test): Likewise.
10649         (log2_test): Likewise.
10650         (pow_test): Do not allow some spurious overflow exceptions.
10651         (sqrt_test): Add more tests.
10652         (tgamma_test): Likewise.
10653         (y0_test): Likewise.
10654         (y1_test): Likewise.
10655         (yn_test): Likewise.
10656
10657 2012-03-27  Anton Blanchard  <anton@samba.org>
10658
10659         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10660         MAP_HUGETLB.
10661         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10662         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10663         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10664
10665 2012-03-27  David S. Miller  <davem@davemloft.net>
10666
10667         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10668
10669         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10670         have-as-vis3 check.
10671
10672 2012-03-27  Andreas Jaeger  <aj@suse.de>
10673
10674         * sysdeps/x86_64/elf/configure.in: Moved to ...
10675         * sysdeps/x86_64/configure.in: ... here.
10676         * sysdeps/x86_64/elf/start.S: Moved to ...
10677         * sysdeps/x86_64/start.S: ... here.
10678         * sysdeps/x86_64/elf/configure: Delete.
10679
10680         * sysdeps/x86_64/configure.in: Merge contents from
10681         sysdeps/i386/configure.in (without i686 check).
10682
10683         * sysdeps/i386/elf/Versions: Merge into ...
10684         * sysdeps/i386/Versions: ... this.
10685         * sysdeps/i386/elf/Versions: Delete file.
10686         * sysdeps/i386/elf/start.S: Moved to ...
10687         * sysdeps/i386/start.S: ...here.
10688         * sysdeps/i386/elf/configure.in: Merge into...
10689         * sysdeps/i386/configure.in: ...here.
10690         * sysdeps/i386/elf/configure.in: Delete file.
10691         * sysdeps/i386/elf/configure: Delete file.
10692
10693         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10694         * debug/backtracesyms.c: ... here.
10695         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10696         * debug/backtracesymsfd.c: ... here.
10697         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10698         * sysdeps/generic/ifunc-sel.h: ... here.
10699
10700         * sysdeps/unix/i386/start.c: Delete file.
10701         * sysdeps/unix/sparc/start.c: Delete file.
10702         * sysdeps/unix/start.c: Delete file.
10703
10704         * sysdeps/sh/elf/configure.in: Moved to ...
10705         * sysdeps/sh/configure.in: ... here.
10706         * sysdeps/sh/elf/start.S: Moved to ...
10707         * sysdeps/sh/start.S: ... here.
10708         * sysdeps/sh/elf/configure: Delete file.
10709
10710         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10711         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10712         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10713         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10714         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10715         * sysdeps/powerpc/powerpc64/start.S: here.
10716         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10717         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10718         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10719         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10720         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10721
10722         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10723         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10724         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10725         * sysdeps/powerpc/powerpc32/start.S: ... here.
10726         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10727         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10728         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10729
10730         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10731         * sysdeps/powerpc/ifunc-sel.h: ... here.
10732         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10733         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10734
10735         * sysdeps/sparc/elf/configure.in: Moved to ...
10736         * sysdeps/sparc/configure.in: ... here.
10737         * sysdeps/sparc/elf/configure: Delete file.
10738         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10739         * sysdeps/sparc/sparc32/start.S: ... here.
10740         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10741         * sysdeps/sparc/sparc64/start.S: ... here.
10742         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10743         * sysdeps/sparc/sparc32/Makefile: ... this.
10744         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10745         * sysdeps/sparc/sparc64/Makefile: ... this.
10746
10747         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10748         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10749         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10750         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10751         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10752         * sysdeps/s390/s390-32/setjmp.S: ... here.
10753         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10754         * sysdeps/s390/s390-32/configure.in: ... here.
10755         * sysdeps/s390/s390-32/elf/configure: Delete file.
10756         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10757         * sysdeps/s390/s390-32/start.S: ... here.
10758
10759         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10760         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10761         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10762         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10763         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10764         * sysdeps/s390/s390-64/setjmp.S: ... here.
10765         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10766         * sysdeps/s390/s390-64/configure.in: ... here
10767         * sysdeps/s390/s390-64/elf/configure: Delete file.
10768         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10769         * sysdeps/s390/s390-64/start.S: ... here.
10770         * sysdeps/s390/s390-64/elf/configure: Delete.
10771
10772         * configure.in: Remove support for elf directories in sysdeps.
10773
10774         * configure: Regenerated.
10775         * sysdeps/i386/configure: Regenerated.
10776         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10777         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10778         * sysdeps/s390/s390-32/configure: Regenerated.
10779         * sysdeps/s390/s390-64/configure: Regenerated.
10780         * sysdeps/sh/configure: Regenerated.
10781         * sysdeps/sparc/configure: Regenerated.
10782         * sysdeps/x86_64/configure: Regenerated.
10783
10784 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10785
10786         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10787
10788         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10789         denormal result into account.
10790
10791 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10792
10793         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10794         Reported by Allan McRae <allan@archlinux.org>.
10795
10796 2012-03-23  Jeff Law  <law@redhat.com>
10797
10798         * nss/getnssent.c (__nss_getent): Fix typo.
10799
10800 2012-03-23  David S. Miller  <davem@davemloft.net>
10801
10802         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10803
10804 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10805
10806         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10807         to pad to uint64_t for each field.
10808         (dl_tls_index): Replace unsigned long with uint64_t.
10809
10810 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10811         Paul Pluzhnikov  <ppluzhnikov@google.com>
10812
10813         [BZ #6528]
10814         * grp/Makefile (otherlibs): Don't set it.
10815         * inet/Makefile (otherlibs): Likewise.
10816         * login/Makefile (otherlibs): Likewise.
10817         * nscd/Makefile (otherlibs): Likewise.
10818         * posix/Makefile (otherlibs): Likewise.
10819         * pwd/Makefile (otherlibs): Likewise.
10820         * rt/Makefile (otherlibs): Likewise.
10821         * sunrpc/Makefile (otherlibs): Likewise.
10822         * nss/Makefile (otherlibs): Likewise.
10823         Add libnss_files to routines and static-only-routines.
10824         ($(objpfx)getent): Remove rule.
10825         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10826         static-only-routines.
10827
10828 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10829
10830         [BZ #13892]
10831         * math/s_cexp.c: Include <float.h>.
10832         (__cexp): Handle exp result overflowing not necessarily
10833         overflowing both real and imaginary parts of result.
10834         * math/s_cexpf.c: Likewise.
10835         * math/s_cexpl.c: Likewise.
10836         * math/libm-test.inc (cexp_test): Add more tests.
10837         * sysdeps/i386/fpu/libm-test-ulps: Update.
10838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10839
10840 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10841
10842         * include/link.h (ELFW): New macro.
10843         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10844         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10845
10846 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10847
10848         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10849         with uint64_t.
10850
10851 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10852
10853         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10854         declaration.
10855         (struct La_x32_retval): Likewise.
10856
10857 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10858
10859         * sysdeps/x86_64/preconfigure.in: New file.
10860         * sysdeps/x86_64/preconfigure: New generated file.
10861
10862 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10863
10864         [BZ #13824]
10865         * math/e_exp2l.c: Include <float.h>.
10866         (__ieee754_exp2l): Handle overflow and underflow cases
10867         separately.  Only pass fractional part of argument to
10868         __ieee754_expl.
10869         * math/libm-test.inc (exp2_test): Add more tests.
10870
10871         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10872         negating x to take absolute value.
10873         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10874         Likewise.
10875         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10876         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10877         Likewise.
10878         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10879         computing low part if x was negated.
10880         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10881
10882 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10883
10884         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10885         la_x32_gnu_pltexit.
10886         (pltexit): Cast int_retval to ptrdiff_t.
10887         * elf/tst-auditmod3b.c: Likewise.
10888         * elf/tst-auditmod4b.c: Likewise.
10889         * elf/tst-auditmod5b.c: Likewise.
10890         * elf/tst-auditmod6b.c: Likewise.
10891         * elf/tst-auditmod6c.c: Likewise.
10892         * elf/tst-auditmod7b.c: Likewise.
10893
10894         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10895         and x32_gnu_pltexit.
10896
10897         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10898         __ELF_NATIVE_CLASS.
10899         (La_x32_regs): New macro.
10900         (La_x32_retval): Likewise.
10901         (la_x32_gnu_pltenter): New function prototype.
10902         (la_x32_gnu_pltexit): Likewise.
10903
10904 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10905
10906         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10907         exponent.
10908
10909         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10910
10911         * configure.in (libc_cv_cc_nofma): Check for option to disable
10912         generation of FMA instructions.
10913         * configure: Regenerate.
10914         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10915         * sysdeps/ieee754/dbl-64/Makefile: New file.
10916         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10917         Remove brandred-fma4.
10918         (CFLAGS-brandred-fma4.c): Remove.
10919         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10920         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10921         define.
10922         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10923         define.
10924
10925 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10926
10927         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10928         LLONG_MAX != LONG_MAX.
10929         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10930         (_fitoa_word): Likewise.
10931         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10932         LLONG_MAX != LONG_MAX.
10933         * stdio-common/_itowa.h: Include <_itoa.h>.
10934         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10935         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10936         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10937         only if not defined.
10938         (_ITOA_WORD_TYPE): Likewise.
10939         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10940         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10941
10942 2012-03-21  David S. Miller  <davem@davemloft.net>
10943
10944         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10945
10946 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10947
10948         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10949         of x86_64 when setting libc_cv_slibdir, libdir and
10950         libc_cv_localedir.
10951         * sysdeps/unix/sysv/linux/configure: Regenerated.
10952
10953 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10954
10955         * manual/lang.texi (Old Varargs): Remove section.
10956         (How Variadic): Update menu.
10957         (va_start): Do not mention varargs.h.
10958
10959 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10960             Joseph Myers  <joseph@codesourcery.com>
10961
10962         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10963         link test.
10964         * configure: Regenerated.
10965
10966 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10967
10968         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10969         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10970         conformtest.pl
10971
10972 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10973
10974         * NOTES: Remove.
10975         * Makefile (files-for-dist): Remove NOTES.
10976         (NOTES): Remove rule.
10977         * README: Don't refer to NOTES.
10978         * manual/creature.texi: Don't include macros.texi.
10979         * manual/intro.texi (creature.texi): Remove comment referring to
10980         NOTES.
10981
10982         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10983         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10984         * configure: Regenerated.
10985         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10986         LIBC_TRY_CC_OPTION.
10987         (libc_cv_as_i686): Likewise.
10988         (libc_cv_cc_avx): Likewise.
10989         (libc_cv_cc_sse2avx): Likewise.
10990         (libc_cv_cc_fma4): Likewise.
10991         (libc_cv_cc_novzeroupper): Likewise.
10992         * sysdeps/i386/configure: Regenerated.
10993
10994         [BZ #13883]
10995         * sysdeps/i386/fpu/s_cexp.S: Remove.
10996         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10997         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10998         * math/libm-test.inc (cexp_test): Add more tests.
10999         * sysdeps/i386/fpu/libm-test-ulps: Update.
11000         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11001
11002 2012-03-21  Allan McRae  <allan@archlinux.org>
11003
11004         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11005
11006 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11007
11008         [BZ #13871]
11009         * math/w_exp2.c: Do not include <float.h>.
11010         (o_threshold, u_threshold): Remove.
11011         (__exp2): Calculate result before checking finiteness and calling
11012         __kernel_standard.
11013         * math/w_exp2f.c: Likewise.
11014         * math/w_exp2l.c: Likewise.
11015         * math/libm-test.inc (exp2_test): Require overflow exception for
11016         1e6 input.
11017
11018         [BZ #3866]
11019         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11020         range of signed 64-bit integers before using fistpll.  Remove
11021         checks for whether integers fit in mantissa bits.
11022         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11023         the range of signed 32-bit integers before using fistpl.  Remove
11024         checks for whether integers fit in mantissa bits.
11025         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11026         (__ieee754_powl): Test for y outside the range of signed 64-bit
11027         integers before using fistpll.  Reduce 64-bit values to 63-bit
11028         ones as needed.
11029         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11030         divide-by-zero is raised for zero to large negative powers.
11031         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11032         (__ieee754_powl): Test for y outside the range of signed 64-bit
11033         integers before using fistpll.  Reduce 64-bit values to 63-bit
11034         ones as needed.
11035         * math/libm-test.inc (pow_test): Add more tests.
11036
11037 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11038
11039         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11040         <stdio-common/_itoa.h>.
11041         * debug/segfault.c: Likewise.
11042         * elf/dl-cache.c: Likewise.
11043         * elf/dl-minimal.c: Likewise.
11044         * elf/dl-misc.c: Likewise.
11045         * elf/dl-sysdep.c: Likewise.
11046         * elf/dl-version.c: Likewise.
11047         * elf/rtld.c: Likewise.
11048         * hurd/hurdsock.c: Likewise.
11049         * hurd/lookup-retry.c: Likewise.
11050         * malloc/malloc.c: Likewise.
11051         * malloc/mtrace.c: Likewise.
11052         * nscd/nscd_getgr_r.c: Likewise.
11053         * nscd/nscd_getpw_r.c: Likewise.
11054         * nscd/nscd_getserv_r.c: Likewise.
11055         * posix/getopt_init.c: Likewise.
11056         * posix/wordexp.c: Likewise.
11057         * stdio-common/_itoa.c: Likewise.
11058         * stdio-common/printf_fphex.c: Likewise.
11059         * stdio-common/vfprintf.c: Likewise.
11060         * string/_strerror.c: Likewise.
11061         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11062         * sysdeps/i386/i686/hp-timing.h: Likewise.
11063         * sysdeps/mach/_strerror.c: Likewise.
11064         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11065         * sysdeps/mach/hurd/sethostid.c: Likewise.
11066         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11067         * sysdeps/mach/xpg-strerror.c: Likewise.
11068         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11069         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11070         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11071         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11072         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11073         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11074         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11075         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11076         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11077         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11078         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11079         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11080         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11081         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11082         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11083         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11084         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11085         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11086         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11087         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11088         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11089
11090         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11091
11092         * stdio-common/_itoa.h: Moved to ...
11093         * sysdeps/generic/_itoa.h: Here.
11094
11095         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11096
11097         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11098         instead of "_itoa.h" and "_itowa.h".
11099         * stdio-common/vfprintf.: Likewise.
11100
11101 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11102
11103         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11104         <bits/wordsize.h>.
11105         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11106         (__signbit): Likwise.
11107         (llrintf): Likwise.
11108         (llrint): Likwise.
11109
11110 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11111
11112         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11113         __WORDSIZE != 64.
11114
11115 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11116
11117         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11118         OVERFLOW_EXCEPTION_OK.
11119         * math/libm-test.inc ("Philosophy"): Update comment about
11120         exception testing.
11121         (OVERFLOW_EXCEPTION): Define.
11122         (OVERFLOW_EXCEPTION_OK): Likewise.
11123         (INVALID_EXCEPTION_OK): Renumber.
11124         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11125         (IGNORE_ZERO_INF_SIGN): Likewise.
11126         (test_exceptions): Handle FE_OVERFLOW.
11127         (exp10_test): Expect overflow exceptions.
11128         (exp2_test): Likewise.
11129         (expm1_test): Likewise.
11130         (nextafter_test): Likewise.
11131         (pow_test): Likewise.
11132         (scalbn_test): Likewise.
11133         (scalbln_test): Likewise.
11134
11135 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11136
11137         * sysdeps/x86_64/bits/atomic.h
11138         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11139         64bit integer.
11140         (atomic_exchange_acq): Likewise.
11141         (__arch_exchange_and_add_body): Likewise.
11142         (__arch_add_body): Likewise.
11143         (atomic_add_negative): Likewise.
11144         (atomic_add_zero): Likewise.
11145
11146 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11147
11148         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11149         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11150
11151 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11152
11153         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11154         Check __x86_64__ instead of __WORDSIZE.
11155
11156 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11157
11158         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11159
11160 2012-03-19  David S. Miller  <davem@davemloft.net>
11161
11162         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11163
11164         * sysdeps/sparc/fpu/fenv_private.h: New file.
11165         * sysdeps/sparc/fpu/math_private.h: Use it.
11166         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11167         Remove.
11168         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11169         (libc_feholdexcept_setroundl): Remove.
11170         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11171         Remove.
11172         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11173         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11174
11175 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11176
11177         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11178         int64_t instead of long int.
11179         (INSERT_WORDS64): Likwise.
11180
11181 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11182
11183         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11184         _Unwind_GetCFA return to _Unwind_Ptr first.
11185
11186 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11187
11188         [BZ #13629]
11189         * math/s_clog.c: Include <float.h>.
11190         (__clog): Scale large or subnormal inputs.
11191         * math/s_clogf.c: Likewise.
11192         * math/s_clogl.c: Likewise.
11193         * math/s_clog10.c: Include <float.h>.
11194         (M_LOG10_2): Define.
11195         (__clog10): Scale large or subnormal inputs.
11196         * math/s_clog10f.c: Likewise.
11197         * math/s_clog10l.c: Likewise.
11198         * math/libm-test.inc (clog_test): Add more tests.
11199         (clog10_test): Likewise.
11200         * sysdeps/i386/fpu/libm-test-ulps: Update.
11201         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11202
11203         [BZ #11451]
11204         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11205         x and y.
11206         * math/libm-test.inc (atan2_test): Add another test.
11207
11208         * Makerules (common-objdir-compile): Remove.
11209         * sysdeps/unix/Makefile (config-generated): Do not add
11210         $(unix-generated) to variable.
11211         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11212         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11213         Remove rule.
11214         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11215         Likewise.
11216         [generic bits/local_lim.h] (before-compile): Do not append to
11217         variable.
11218         [generic bits/local_lim.h] (common-generated): Likewise.
11219         [generic sys/param.h] (before-compile): Do not append to variable.
11220         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11221         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11222         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11223         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11224         include.
11225         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11226         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11227         [generic sys/param.h] ($(addprefix
11228         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11229         [generic sys/param.h] (common-generated): Do not append to
11230         variable.
11231         [generic sys/param.h] (sysdep_headers): Likewise.
11232         [generic bits/errno.h] (before-compile): Do not append to
11233         variable.
11234         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11235         rule.
11236         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11237         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11238         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11239         [generic bits/errno.h] (common-generated): Do not append to
11240         variable.
11241         [generic bits/ioctls.h] (before-compile): Do not append to
11242         variable.
11243         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11244         rule.
11245         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11246         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11247         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11248         rule.
11249         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11250         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11251         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11252         [generic bits/ioctls.h] (common-generated): Do not append to
11253         variable.
11254         [generic sys/syscall.h] (syscall.h): Remove variable.
11255         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11256         rule.
11257         [generic sys/syscall.h] (before-compile): Do not append to
11258         variable.
11259         [generic sys/syscall.h] (common-generated): Likewise.
11260         * sysdeps/unix/errnos-tmpl.c: Remove file.
11261         * sysdeps/unix/errnos.awk: Likewise.
11262         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11263         * sysdeps/unix/ioctls.awk: Likewise.
11264         * sysdeps/unix/mk-local_lim.c: Likewise.
11265         * sysdeps/unix/snarf-ioctls: Likewise.
11266
11267 2012-03-19  Richard Henderson  <rth@twiddle.net>
11268
11269         * sysdeps/i386/fpu/fenv_private.h: New file.
11270         * sysdeps/i386/fpu/math_private.h: Use it.
11271         (math_opt_barrier, math_force_eval): Remove.
11272         (libc_feholdexcept_setround_53bit): Remove.
11273         (libc_feupdateenv_53bit): Remove.
11274         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11275         (math_opt_barrier, math_force_eval): Remove.
11276         (libc_feholdexcept): Remove.
11277         (libc_feholdexcept_setround): Remove.
11278         (libc_fetestexcept, libc_fesetenv): Remove.
11279         (libc_feupdateenv_test): Remove.
11280         (libc_feupdateenv, libc_feholdsetround): Remove.
11281         (libc_feresetround): Remove.
11282
11283         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
11284         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
11285
11286         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
11287         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
11288         (libc_feupdateenv_testl): New.
11289         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
11290         (libc_feupdateenv_testf): New.
11291         (libc_feupdateenv): Use libc_feupdateenv_test.
11292         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
11293         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
11294
11295         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
11296         (libc_feholdsetroundf, libc_feholdsetroundl): New.
11297         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
11298         (libc_feresetround_noex): New.
11299         (libc_feresetround_noexf): New.
11300         (libc_feresetround_noexl): New.
11301         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
11302         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
11303         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
11304         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
11305         SET_RESTORE_ROUND.
11306         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11307         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
11308         (__cos): Likewise.
11309         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
11310         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11311         SET_RESTORE_ROUND_NOEX.
11312         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
11313         SET_RESTORE_ROUND_NOEXF.
11314         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
11315         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
11316         (libc_feholdsetroundf): New.
11317         (libc_feresetround, libc_feresetroundf): New.
11318
11319         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
11320         (libc_feholdexcept_setround_53bit): Convert from macro to function.
11321         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
11322
11323         * sysdeps/generic/math_private.h: Include <fenv.h>.
11324         (default_libc_feholdexcept): New.
11325         (default_libc_feholdexcept_setround): New.
11326         (default_libc_fesetenv, default_libc_feupdateenv): New.
11327         (libc_feholdexcept): Only define if undefined.
11328         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
11329         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
11330         (libc_feholdexcept_setroundl): Likewise.
11331         (libc_feholdexcept_setround_53bit): Likewise.
11332         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
11333         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
11334         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
11335         (libc_feupdateenv_53bit): Likewise.
11336         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
11337         (libc_feholdexcept): Convert from macro to inline function.
11338         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
11339         (libc_fesetenv, libc_feupdateenv): Likewise.
11340
11341         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
11342         not previously defined.
11343         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
11344         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
11345         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
11346         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
11347         * sysdeps/ieee754/flt-32/math_private.h: New file.
11348         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
11349         math_private.h below SET_FLOAT_WORD.
11350         (__isnan, __isinf_ns, __finite): Remove.
11351         (__isnanf, __isinf_nsf, __finitef): Remove.
11352
11353 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
11354
11355         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11356
11357 2012-03-17  David S. Miller  <davem@davemloft.net>
11358
11359         [BZ #6471]
11360         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
11361         for 2.16.
11362
11363 2012-03-16  David S. Miller  <davem@davemloft.net>
11364
11365         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
11366         warnings.
11367
11368         [BZ #6471]
11369         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
11370         properly.
11371         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
11372         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
11373         sysdep_routines when subdir is sysvipc.
11374         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
11375         __getshmlba helper.
11376
11377         * sysdeps/sparc/fpu/libm-test/ulps: Update.
11378
11379 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11380
11381         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
11382         [__LP64__].
11383
11384 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11385
11386         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
11387         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
11388         (__lround): Renamed to ...
11389         (__llround): This.  Replace long int with long long int.
11390         Define lround functions as aliases of llround functions.
11391         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
11392
11393 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11394
11395         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
11396         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
11397         adresses to uintptr_t.  Replace "long int" and "unsigned long
11398         int" with "greg_t" on va_arg.
11399
11400 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11401
11402         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
11403         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
11404
11405         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
11406         Move e_machine check before EI_CLASS check.  Handle x32
11407         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
11408         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
11409         SKIP_EM_IA_64 and include
11410         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
11411
11412         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
11413         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
11414         (add_system_dir): New macro.
11415
11416         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
11417         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
11418
11419 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11420
11421         [BZ #2551]
11422         [BZ #2552]
11423         [BZ #2553]
11424         [BZ #2554]
11425         [BZ #2562]
11426         [BZ #2563]
11427         [BZ #2565]
11428         [BZ #2566]
11429         [BZ #2576]
11430         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
11431         (y0): Likewise.
11432         * math/w_j0f.c (j0f): Likewise.
11433         (y0f): Likewise.
11434         * math/w_j0l.c (__j0l): Likewise.
11435         (__y0l): Likewise.
11436         * math/w_j1.c (j1): Likewise.
11437         (y1): Likewise.
11438         * math/w_j1f.c (j1f): Likewise.
11439         (y1f): Likewise.
11440         * math/w_j1l.c (__j1l): Likewise.
11441         (__y1l): Likewise.
11442         * math/w_jn.c (jn): Likewise.
11443         (yn): Likewise.
11444         * math/w_jnf.c (jnf): Likewise.
11445         (ynf): Likewise.
11446         * math/w_jnl.c (__jnl): Likewise.
11447         (__ynl): Likewise.
11448         * math/libm-test.inc (j0_test): Add more tests.
11449         (j1_test): Likewise.
11450         (jn_test): Likewise.  Add trailing semicolon to existing test.
11451         (y0_test): Likewise.
11452         (y1_test): Likewise.
11453         * sysdeps/i386/fpu/libm-test-ulps: Update.
11454         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11455
11456         [BZ #13851]
11457         [BZ #13854]
11458         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11459         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
11460         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
11461         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
11462         (__tanl): Set errno for infinite argument.
11463         * sysdeps/i386/fpu/mptan.c: Remove.
11464         * sysdeps/i386/fpu/s_tan.S: Likewise.
11465         * sysdeps/i386/fpu/s_tanl.S: Likewise.
11466         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
11467         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
11468         * math/libm-test.inc (tan_test): Add more tests and enable more
11469         tests for double and long double.
11470         * sysdeps/i386/fpu/libm-test-ulps: Update.
11471         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11472
11473 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11474
11475         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
11476         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
11477
11478 2012-03-16  Roland McGrath  <roland@hack.frob.com>
11479
11480         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
11481         * configure.in: Use it for both main tree and add-ons.
11482         * configure: Regenerated.
11483
11484 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11485
11486         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
11487
11488 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11489
11490         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
11491         in comment.
11492
11493         [BZ #13851]
11494         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
11495         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
11496         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11497         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
11498         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
11499         infinite argument.
11500         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
11501         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
11502         != 0 for prec == 2.
11503         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
11504         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
11505         * sysdeps/i386/fpu/s_cosl.S: Likewise.
11506         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
11507         * sysdeps/i386/fpu/s_sinl.S: Likewise.
11508         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
11509         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
11510         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
11511         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
11512         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
11513         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
11514         * math/libm-test.inc (cos_test): Add more tests and enable more
11515         tests for long double.
11516         (sin_test): Likewise.
11517         (sincos_test): Likewise.
11518         * sysdeps/i386/fpu/libm-test-ulps: Update.
11519         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11520
11521 2012-03-16  David S. Miller  <davem@davemloft.net>
11522
11523         * sysdeps/sparc/fpu/math_private.h: New file.
11524
11525 2012-03-15  David S. Miller  <davem@davemloft.net>
11526
11527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
11528         file.
11529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
11530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
11531         file.
11532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
11533         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
11534         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
11535         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
11536         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
11537         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
11538         sysdep routines.
11539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11540
11541         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
11542         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
11543
11544         * sysdeps/sparc/sparc-ifunc.h: New file.
11545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
11546         sparc-ifunc.h
11547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
11548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
11549         Likewise.
11550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
11551         Likewise.
11552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
11553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
11554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
11555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
11556         Likewise.
11557         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
11558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
11559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
11560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
11561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
11562         Likewise.
11563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
11564         Likewise.
11565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
11566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
11567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
11568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
11569         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
11570         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
11571         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
11572         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
11573         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
11574         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
11575         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
11576         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
11577         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
11578         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
11579         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
11580         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
11581         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
11582         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
11583         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
11584         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
11585         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
11586         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
11587         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
11588         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
11589
11590 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11591
11592         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
11593         scaling.
11594         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11595
11596 2012-03-15  Andreas Jaeger  <aj@suse.de>
11597
11598         [BZ #13852]
11599         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
11600         ieee754/flt-32 implementation for sin, cos and sincos.
11601         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
11602         * sysdeps/i386/fpu/s_cosf.S: Likewise.
11603         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
11604         * sysdeps/i386/fpu/s_sinf.S: Likewise.
11605         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
11606         ieee754/flt-32 implementation for tan.
11607
11608         * math/libm-test.inc (cos_test): Enable some large input tests for
11609         float as well
11610         (sin_test): Likewise.
11611         (sincos_test): Likewise.
11612         (tan_test): Add tests for large input.
11613
11614         * sysdeps/i386/fpu/libm-test-ulps: Update.
11615
11616 2012-03-15  Andreas Jaeger  <aj@suse.de>
11617
11618         [BZ #13658]
11619         * math/libm-test.inc (cos_test): Add more test cases.
11620         (sin_test): Likewise.
11621         (sincos_test): Likewise.
11622
11623 2012-03-15  Andreas Jaeger  <aj@suse.de>
11624
11625         [BZ #13837]
11626         * math/libm-test.inc (cos_test): Add a test case for large input
11627         value.
11628         (sin_test): Likewise.
11629         (sincos_test): Likewise.
11630
11631 2012-03-15  Andreas Jaeger  <aj@suse.de>,
11632         Joseph Myers  <joseph@codesourcery.com>
11633
11634         [BZ #13658]
11635         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
11636         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
11637         * sysdeps/i386/fpu/branred.c: Likewise.
11638         * sysdeps/i386/fpu/dosincos.c: Likewise.
11639         * sysdeps/i386/fpu/mpa.c: Likewise.
11640         * sysdeps/i386/fpu/s_cos.S: Likewise.
11641         * sysdeps/i386/fpu/s_sin.S: Likewise.
11642         * sysdeps/i386/fpu/s_sincos.S: Likewise.
11643         * sysdeps/i386/fpu/sincos32.c: Likewise.
11644
11645         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
11646         Define.
11647         (libc_feupdateenv_53bit): Define.
11648         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
11649         Define.
11650         (libc_feupdateenv_53bit): Define.
11651
11652         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
11653         53 bit (without extend i386 double precision).
11654
11655         * math/libm-test.inc (sincos_test): Add tests for large input.
11656         (sin): Likewise.
11657         (cos): Likewise.
11658
11659         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11660
11661 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11662
11663         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11664
11665 2012-03-15  David S. Miller  <davem@davemloft.net>
11666
11667         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11668         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11669         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11670         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11671         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11672         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11673         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11674         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11675         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11676         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11677         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11678         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11679         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11680         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11681         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11683         file.
11684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11686         file.
11687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11689         file.
11690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11692         file.
11693         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11694         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11695         fmin/fmax sysdep routines.
11696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11697
11698 2012-03-14  David S. Miller  <davem@davemloft.net>
11699
11700         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11701         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11702         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11703         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11704         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11705         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11706         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11707         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11708         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11709         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11710         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11711         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11712         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11713         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11714         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11715         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11716         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11717         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11718         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11719         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11720         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11721         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11722         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11723         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11724         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11725         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11726         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11727         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11728         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11729         routines.
11730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11731         file.
11732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11734         file.
11735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11737         file.
11738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11740         file.
11741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11743         file.
11744         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11746         file.
11747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11748         file.
11749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11750         file.
11751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11752         file.
11753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11754         New file.
11755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11756         file.
11757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11758         file.
11759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11761         file.
11762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11764         file.
11765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11766         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11767         file.
11768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11770         VIS3 routines.
11771
11772         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11773         New file.
11774
11775         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11776
11777         * sysdeps/sparc/configure.in: New file.
11778         * sysdeps/sparc/configure: Generate.
11779         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11780         * configure: Regenerate.
11781         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11782         * config.make.in (have-as-vis3): New.
11783         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11784         available use -Av9d instead of -Av9a.
11785         * sysdeps/sparc/sparc64/Makefile: Likewise.
11786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11788         New file.
11789         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11790         file.
11791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11792         New file.
11793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11794         file.
11795         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11796         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11797         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11798         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11799         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11800
11801         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11802         fzeros/fnegs to load 0x80000000 into a float register instead of
11803         using the stack.
11804         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11805
11806 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11807
11808         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11809         bits/syscall.h.
11810         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11811         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11812         ($(inst_includedir)/bits/syscall.h): Remove rule.
11813         ($(objpfx)bits/syscall.d): Include instead of
11814         $(objpfx)syscall-list.d.
11815         (generated): Change syscall-list.h and syscall-list.d to
11816         bits/syscall.h and bits/syscall.d.
11817
11818 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11819
11820         [BZ #13846]
11821         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11822
11823 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11824
11825         [BZ #13841]
11826         * math/s_csqrt.c: Include <float.h>.
11827         (__csqrt): Scale large or subnormal inputs.
11828         * math/s_csqrtf.c: Likewise.
11829         * math/s_csqrtl.c: Likewise.
11830         * math/libm-test.inc (csqrt_test): Add more tests.
11831         * sysdeps/i386/fpu/libm-test-ulps: Update.
11832         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11833
11834         [BZ #13840]
11835         * math/libm-test.inc (hypot_test): Add more tests.
11836
11837 2012-03-13  David S. Miller  <davem@davemloft.net>
11838
11839         [BZ #13840]
11840         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11841         double-precision for the calculation instead of scaling.
11842
11843 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11844
11845         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11846         manipulate bits before adding and subtracting TWO52[sx].
11847         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11848         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11849         Likewise.
11850         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11851
11852 2012-03-13  David S. Miller  <davem@davemloft.net>
11853
11854         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11855         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11856         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11857         rtld-global-offsets.h
11858         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11859
11860         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11861         large parameters.
11862
11863         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11864
11865         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11866         'err' in the ifdef scope in which it is actually used.
11867
11868         * nss/nss_db/db-init.c: Include string.h
11869
11870 2012-03-12  David S. Miller  <davem@davemloft.net>
11871
11872         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11873         masking out of the most significant byte of random value used.
11874         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11875         Fix coding style in previous change.
11876
11877         * sysdeps/unix/sysv/linux/kernel-features.h
11878         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11879         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11880         expression.
11881         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11882         later.
11883
11884 2012-03-11  David S. Miller  <davem@davemloft.net>
11885
11886         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11887         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11888         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11889         for 'resultvar' otherwise things get truncated on 64-bit.
11890
11891         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11892         Fix masking out of the most significant byte of random value used.
11893
11894         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11895
11896 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11897
11898         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11899
11900 2012-03-09  David S. Miller  <davem@davemloft.net>
11901
11902         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11903         variables with appropriate CPP guards.
11904         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11905         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11906         on resulting framesize and the management of the outregs buffer for pltexit.
11907         Preserve floating point return values across _dl_call_pltexit call.
11908         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11909         framesize and the management of the outregs buffer for pltexit.
11910         Preserve floating point return values across _dl_call_pltexit
11911         call.
11912         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11913         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11914         (print_exit): Fix format string for return register value.
11915
11916 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11917
11918         * sunrpc/Makefile (others): Add rpcgen.
11919         ($(objpfx)rpcgen): Remove special build rule and dependency on
11920         libc.
11921         * sunrpc/rpcgen.c: New file.
11922
11923 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11924
11925         [BZ #13673]
11926         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11927         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11928         * sysdeps/i386/crti.S: Likewise.
11929         * sysdeps/i386/crtn.S: Likewise.
11930         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11931         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11932         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11933         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11934         * sysdeps/sh/crti.S: Likewise.
11935         * sysdeps/sh/crtn.S: Likewise.
11936         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11937
11938         [BZ #13673]
11939         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11940         with URL.
11941         * locale/programs/locfile-kw.gperf: Likewise.
11942         * locale/programs/charmap-kw.h: Regenerated.
11943         * locale/programs/locfile-kw.h: Likewise.
11944
11945         [BZ #13673]
11946         * intl/plural.y: Replace FSF snail mail address with URL.
11947         * intl/plural.c: Regenerated.
11948
11949 2012-03-09  Richard Henderson  <rth@twiddle.net>
11950
11951         * include/math_private.h: Remove file.
11952         * math/math_private.h: Move file ...
11953         * sysdeps/generic/math_private.h: ... here.
11954
11955         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11956         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11957         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11958
11959         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11960         and <math_private.h>.
11961         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11962         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11963         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11964         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11965         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11966         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11967         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11968         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11969         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11970         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11971         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11972         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11973         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11974         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11975         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11976         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11977         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11978         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11979         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11980         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11981         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11982         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11983         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11984         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11985         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11986         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11987         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11988         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11989         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11990         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11991         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11992         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11993         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11994         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11995         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11996         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11997         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11998         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11999         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12000         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12001         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12002         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12003         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12004         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12005         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12006         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12007         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12008         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12009         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12010         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12011         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12012         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12013         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12014         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12015         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12016         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12017         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12018         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12019         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12020         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12021         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12022         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12023         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12024         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12025         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12026         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12027         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12028         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12029         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12030         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12031         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12032         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12033         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12034         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12035         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12036         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12037         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12038         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12039         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12040         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12041         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12042         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12043         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12044         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12045         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12046         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12047         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12048         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12049         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12050         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12051         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12052         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12053         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12054         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12055         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12056         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12057         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12058         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12059         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12060         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12061         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12062         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12063         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12064         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12065         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12066         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12067         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12068         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12069         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12070         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12071         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12072         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12073         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12074         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12075         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12076         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12077         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12078         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12079         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12080         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12081         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12082         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12083         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12084         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12085         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12086         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12087         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12088         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12089         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12090         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12091         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12092         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12093         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12094         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12095         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12096         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12097         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12098         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12099         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12100         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12101         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12102         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12103         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12104         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12105         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12106         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12107         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12108         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12109         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12110         * sysdeps/ieee754/k_standard.c: Likewise.
12111         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12112         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12113         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12114         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12115         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12116         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12117         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12118         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12119         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12120         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12121         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12122         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12123         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12124         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12125         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12126         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12127         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12128         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12129         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12130         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12131         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12132         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12133         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12134         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12135         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12136         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12137         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12138         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12139         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12140         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12141         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12142         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12143         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12144         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12145         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12146         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12147         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12148         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12149         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12150         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12151         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12152         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12153         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12154         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12155         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12156         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12157         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12158         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12159         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12160         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12161         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12162         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12163         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12164         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12165         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12166         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12167         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12168         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12169         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12170         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12171         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12172         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12173         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12174         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12175         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12176         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12177         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12178         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12179         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12180         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12181         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12182         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12183         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12184         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12185         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12186         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12187         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12188         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12189         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12190         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12191         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12192         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12193         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12194         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12195         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12196         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12197         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12198         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12199         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12200         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12201         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12202         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12203         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12204         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12205         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12206         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12207         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12208         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12209         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12210         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12211         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12212         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12213         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12214         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12215         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12216         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12217         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12218         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12219         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12220         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12221         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12222         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12223         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12224         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12225         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12226         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12227         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12228         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12229         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12230         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12231         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12232         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12233         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12234         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12235         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12236         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12237         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12238         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12239         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12240         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12241         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12242         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12243         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12244         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12245         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12246         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12247         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12248         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12249         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12250         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12251         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12252         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12253         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12254         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12255         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12256         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12257         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12258         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12259         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12260         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12261         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12262         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12263         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12264         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12265         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12266         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12267         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12268         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12269         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12270         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12271         * sysdeps/ieee754/s_lib_version.c: Likewise.
12272         * sysdeps/ieee754/s_matherr.c: Likewise.
12273         * sysdeps/ieee754/s_signgam.c: Likewise.
12274         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12275         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12276         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12277         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12278         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12279         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12280         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
12281         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
12282         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
12283         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12284         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12285         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12286         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12287         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12288         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
12289         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
12290         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
12291         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
12292         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
12293         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12294         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12295
12296 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12297
12298         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
12299         * sunrpc/rpc_main.c: Likewise.
12300         * sunrpc/rpc_svcout.c: Likewise.
12301
12302 2012-03-09  David S. Miller  <davem@davemloft.net>
12303
12304         * include/math_private.h: New file.
12305
12306 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12307
12308         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
12309         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
12310         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
12311         from <bits/socket_type.h>.
12312         (enum __socket_type): Don't define here.
12313         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
12314         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12315         bits/socket_type.h.
12316
12317         [BZ #13566]
12318         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
12319         checking __USE_GNU.
12320
12321         * Makerules ($(inst_includedir)/%.h): New rule.
12322         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
12323         (install-others): Remove variable setting.
12324         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
12325
12326 2012-03-08  Richard Henderson  <rth@twiddle.net>
12327
12328         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
12329         from macro to inline function; merge with the
12330         !__LIBC_INTERNAL_MATH_INLINES version.
12331         (__ieee754_sqrtf): Likewise.
12332
12333         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
12334         to inline function.
12335         (__rintf, __floor, __floorf): Likewise.
12336
12337         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
12338         macro to inline function.
12339         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
12340
12341         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
12342         not <math/math_private.h>.
12343
12344 2012-03-08  David S. Miller  <davem@davemloft.net>
12345
12346         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
12347         copyright year.
12348         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12349
12350 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
12351
12352         * resolv/gai_misc.c (handle_requests): Fix struct timespec
12353         normalization.
12354         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
12355         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
12356
12357 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
12358
12359         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
12360         be defined individually, they must be defined as a block.  Define
12361         S for printing a string instead of hidint the different by using a
12362         macro for adding the 'l'.
12363         * stdio-common/tst-fphex-wide.c: Adjust.
12364
12365 2012-03-07  Marek Polacek  <polacek@redhat.com>
12366
12367         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
12368
12369 2012-03-08  Marek Polacek  <polacek@redhat.com>
12370
12371         [BZ #13806]
12372         * stdio-common/Makefile (tests): Add tst-fphex-wide.
12373         * stdio-common/tst-fphex.c: Define a few macros to make the
12374         test reusable.  Use them.
12375         * stdio-common/tst-fphex-wide.c: New file.
12376
12377 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
12378
12379         [BZ #6911]
12380         * manual/macros.texi (gnusystems): New macro.
12381         (nongnusystems): Likewise.
12382         (gnulinuxhurdsystems): Likewise.
12383         (gnuhurdsystems): Likewise..
12384         (gnulinuxsystems): Likewise.
12385         * manual/charset.texi: Use new macros or @theglibc{} to refer to
12386         variants of the GNU system, not "GNU system".
12387         * manual/conf.texi: Likewise.
12388         * manual/errno.texi: Likewise.  Update example of errno macro
12389         expansion.
12390         * manual/filesys.texi: Likewise.
12391         (getumask): Document as specific to GNU/Hurd.
12392         * manual/install.texi: Likewise.  Reword some references to
12393         GNU/Linux.
12394         * manual/intro.texi: Likewise.
12395         * manual/io.texi: Likewise.
12396         (File Name Portability): Detail which constraints are inapplicable
12397         to all GNU systems and which are only inapplicable to GNU/Hurd.
12398         * manual/job.texi: Likewise.
12399         * manual/llio.texi: Likewise.
12400         (O_NOCTTY): Document as present on GNU/Linux.
12401         * manual/maint.texi: Likewise.
12402         * manual/memory.texi: Likewise.
12403         * manual/pattern.texi: Likewise.
12404         * manual/pipe.texi: Likewise.
12405         * manual/process.texi: Likewise.
12406         * manual/resource.texi: Likewise.
12407         (RUSAGE_CHILDREN): Remove statement about specifying a particular
12408         child on GNU/Hurd.
12409         * manual/setjmp.texi: Likewise.
12410         * manual/signal.texi: Likewise.
12411         * manual/startup.texi: Likewise.
12412         * manual/stdio.texi: Likewise.
12413         * manual/terminal.texi: Likewise.
12414         (ONLCR): Document as POSIX.
12415         (OXTABS): Document availability on GNU/Linux as XTABS.
12416         (ONOEOT): Document availability separately from other bits.
12417         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
12418         * manual/time.texi: Likewise.
12419         * manual/users.texi: Likewise.
12420         * INSTALL: Regenerated.
12421         * sysdeps/gnu/errlist.c: Regenerated.
12422
12423         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
12424         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
12425         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
12426         puts.
12427         * configure: Regenerated.
12428
12429 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
12430
12431         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
12432         default includes instead of AC_HEADER_CHECK.
12433         * sysdeps/i386/configure: Regenerated.
12434
12435         [BZ #10716]
12436         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
12437         * math/s_cacoshf.c (__cacoshf): Likewise.
12438         * math/s_cacoshl.c (__cacoshl): Likewise.
12439         * math/s_casinh.c (__casinh): Set signs of result from argument.
12440         * math/s_casinhf.c (__casinhf): Likewise.
12441         * math/s_casinhl.c (__casinhl): Likewise.
12442         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
12443         (casinh_test): Add more tests.
12444         * sysdeps/i386/fpu/libm-test-ulps: Update.
12445         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12446
12447 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
12448
12449         * po/zh_TW.po: Update from translation team.
12450
12451         * login/Makefile (distribute): Remove variable.
12452         * catgets/Makefile: Likewise.
12453         * mach/Makefile: Likewise.
12454         * malloc/Makefile: Likewise.
12455         * misc/Makefile: Likewise.
12456         * iconv/Makefile: Likewise.
12457         * nscd/Makefile: Likewise.
12458         * hurd/Makefile: Likewise.
12459         * manual/Makefile: Likewise.
12460         * locale/Makefile: Likewise.
12461         * intl/Makefile: Likewise.
12462         * conform/Makefile: Likewise.
12463         * nss/Makefile: Likewise.
12464         * time/Makefile: Likewise.
12465         * soft-fp/Makefile: Likewise.
12466         * dirent/Makefile: Likewise.
12467         * gmon/Makefile: Likewise.
12468         * po/Makefile: Likewise.
12469         * rt/Makefile: Likewise.
12470         * socket/Makefile: Likewise.
12471         * math/Makefile: Likewise.
12472         * signal/Makefile: Likewise.
12473         * debug/Makefile: Likewise.
12474         * elf/Makefile: Likewise.
12475         * timezone/Makefile: Likewise.
12476         * stdlib/Makefile: Likewise.
12477         * iconvdata/Makefile: Likewise.
12478         * sunrpc/Makefile: Likewise.
12479         * io/Makefile: Likewise.
12480         * argp/Makefile: Likewise.
12481         * inet/Makefile: Likewise.
12482         * hesiod/Makefile: Likewise.
12483         * grp/Makefile: Likewise.
12484         * csu/Makefile: Likewise.
12485         * wctype/Makefile: Likewise.
12486         * crypt/Makefile: Likewise.
12487         * libio/Makefile: Likewise.
12488         * string/Makefile: Likewise.
12489         * nis/Makefile: Likewise.
12490         * resolv/Makefile: Likewise.
12491         * stdio-common/Makefile: Likewise.
12492         * wcsmbs/Makefile: Likewise.
12493         * dlfcn/Makefile: Likewise.
12494         * posix/Makefile: Likewise.
12495
12496         [BZ #6959]
12497         * timezone/Makefile: Don't install timezone files, just the programs
12498         and scripts.
12499
12500 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
12501
12502         * nss/databases.def: Add missing gshadow entry.
12503
12504         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
12505
12506 2012-03-06  Marek Polacek  <polacek@redhat.com>
12507
12508         [BZ #13726]
12509         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
12510         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
12511         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
12512         * stdio-common/tst-long-dbl-fphex.c: New file.
12513
12514 2012-03-06  David S. Miller  <davem@davemloft.net>
12515
12516         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12517         (set_obp_int): New function.
12518         (get_obp_int): New function.
12519         (__get_clockfreq_via_dev_openprom): Likewise.
12520         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
12521         Avoid unused variable warnings on 'val' and use builtin_expect.
12522         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
12523         __builtin_expect.
12524         (INLINE_CLONE_SYSCALL): Likewise.
12525
12526 2012-03-05  David S. Miller  <davem@davemloft.net>
12527
12528         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12529
12530 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
12531
12532         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12533
12534         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
12535         only for |x| >= 40.
12536         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12537
12538 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12539
12540         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
12541         Replace gettimeofday with __vdso_gettimeofday.
12542
12543         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12544         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
12545         __vdso_clock_gettime and __vdso_getcpu.
12546
12547         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
12548         time with __vdso_time.
12549
12550 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12551
12552         * manual/lang.texi (size_t): Note types to which size_t may be
12553         equivalent with the GNU C Library, but do not describe when
12554         differences between them are significant.
12555
12556 2012-03-05  Andreas Jaeger  <aj@suse.de>
12557
12558         * sysdeps/i386/fpu/libm-test-ulps: Update.
12559
12560 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12561
12562         [BZ #3976]
12563         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
12564         (__ieee754_pow): Save and restore rounding mode and use
12565         round-to-nearest for main computations.
12566         * math/libm-test.inc (pow_test_tonearest): New function.
12567         (pow_test_towardzero): Likewise.
12568         (pow_test_downward): Likewise.
12569         (pow_test_upward): Likewise.
12570         (main): Call the new functions.
12571         * sysdeps/i386/fpu/libm-test-ulps: Update.
12572         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12573
12574         [BZ #3976]
12575         * math/libm-test.inc (cosh_test_tonearest): New function.
12576         (cosh_test_towardzero): Likewise.
12577         (cosh_test_downward): Likewise.
12578         (cosh_test_upward): Likewise.
12579         (sinh_test_tonearest): Likewise.
12580         (sinh_test_towardzero): Likewise.
12581         (sinh_test_downward): Likewise.
12582         (sinh_test_upward): Likewise.
12583         (main): Call the new functions.
12584         * sysdeps/i386/fpu/libm-test-ulps: Update.
12585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12586
12587 2012-03-05  Tom de Vries  <tom@codesourcery.com>
12588
12589         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
12590         default stack guard is set in last bytes.
12591         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
12592
12593 2012-03-05  Kees Cook  <keescook@chromium.org>
12594
12595         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
12596
12597         [BZ #13656]
12598         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
12599         possibly allocate from heap instead of stack.
12600         * stdio-common/bug-vfprintf-nargs.c: New file.
12601         * stdio-common/Makefile (tests): Add nargs overflow test.
12602
12603 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
12604
12605         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12606
12607 2012-03-03  Marek Polacek  <polacek@redhat.com>
12608
12609         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
12610         * math/math_private.h: Likewise.
12611         * stdlib/tst-strtod.c: Likewise.
12612         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12613         * sysdeps/x86_64/bits/atomic.h: Likewise.
12614
12615 2012-03-02  David S. Miller  <davem@davemloft.net>
12616
12617         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
12618         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
12619         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
12620         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
12621         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
12622         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
12623         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
12624         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
12625
12626 2012-03-02  Roland McGrath  <roland@hack.frob.com>
12627
12628         [BZ #13792]
12629         * manual/examples/README: New file, says the example source files
12630         can be used under GPL>=2.
12631         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
12632         line containing just "*/".
12633         * manual/examples/add.c: Add copyright header (GPL>=2).
12634         * manual/examples/argp-ex1.c: Likewise.
12635         * manual/examples/argp-ex2.c: Likewise.
12636         * manual/examples/argp-ex3.c: Likewise.
12637         * manual/examples/argp-ex4.c: Likewise.
12638         * manual/examples/atexit.c: Likewise.
12639         * manual/examples/db.c: Likewise.
12640         * manual/examples/dir.c: Likewise.
12641         * manual/examples/dir2.c: Likewise.
12642         * manual/examples/execinfo.c: Likewise.
12643         * manual/examples/filecli.c: Likewise.
12644         * manual/examples/filesrv.c: Likewise.
12645         * manual/examples/fmtmsgexpl.c: Likewise.
12646         * manual/examples/genpass.c: Likewise.
12647         * manual/examples/inetcli.c: Likewise.
12648         * manual/examples/inetsrv.c: Likewise.
12649         * manual/examples/isockad.c: Likewise.
12650         * manual/examples/longopt.c: Likewise.
12651         * manual/examples/memopen.c: Likewise.
12652         * manual/examples/memstrm.c: Likewise.
12653         * manual/examples/mkfsock.c: Likewise.
12654         * manual/examples/mkisock.c: Likewise.
12655         * manual/examples/mygetpass.c: Likewise.
12656         * manual/examples/pipe.c: Likewise.
12657         * manual/examples/popen.c: Likewise.
12658         * manual/examples/rprintf.c: Likewise.
12659         * manual/examples/search.c: Likewise.
12660         * manual/examples/select.c: Likewise.
12661         * manual/examples/setjmp.c: Likewise.
12662         * manual/examples/sigh1.c: Likewise.
12663         * manual/examples/sigusr.c: Likewise.
12664         * manual/examples/stpcpy.c: Likewise.
12665         * manual/examples/strdupa.c: Likewise.
12666         * manual/examples/strftim.c: Likewise.
12667         * manual/examples/strncat.c: Likewise.
12668         * manual/examples/subopt.c: Likewise.
12669         * manual/examples/swapcontext.c: Likewise.
12670         * manual/examples/termios.c: Likewise.
12671         * manual/examples/testopt.c: Likewise.
12672         * manual/examples/testpass.c: Likewise.
12673         * manual/examples/timeval_subtract.c: Likewise.
12674
12675         [BZ #13792]
12676         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12677         function to ...
12678         * manual/timeval_subtract.c.texi: ... here, new file.
12679
12680 2012-03-02  David S. Miller  <davem@davemloft.net>
12681
12682         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12683
12684 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12685
12686         [BZ #3976]
12687         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12688         (__sin): Save and restore rounding mode and use round-to-nearest
12689         for all computations.
12690         (__cos): Save and restore rounding mode and use round-to-nearest
12691         for all computations.
12692         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12693         <fenv.h>.
12694         (tan): Save and restore rounding mode and use round-to-nearest for
12695         all computations.
12696         * math/libm-test.inc (cos_test_tonearest): New function.
12697         (cos_test_towardzero): Likewise.
12698         (cos_test_downward): Likewise.
12699         (cos_test_upward): Likewise.
12700         (sin_test_tonearest): Likewise.
12701         (sin_test_towardzero): Likewise.
12702         (sin_test_downward): Likewise.
12703         (sin_test_upward): Likewise.
12704         (tan_test_tonearest): Likewise.
12705         (tan_test_towardzero): Likewise.
12706         (tan_test_downward): Likewise.
12707         (tan_test_upward): Likewise.
12708         (main): Call the new functions.
12709         * sysdeps/i386/fpu/libm-test-ulps: Update.
12710         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12711
12712         [BZ #10135]
12713         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12714         small n, then large n, before computing and testing k+n.
12715         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12716         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12717         Likewise.
12718         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12719         Likewise.
12720         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12721         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12722         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12723         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12724         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12725         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12726         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12727         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12728         * math/libm-test.inc (scalbn_test): Add more tests.
12729         (scalbln_test): Likewise.
12730
12731         * manual/filesys.texi (mode_t): Describe constraints on size and
12732         signedness, not exact equivalence to a particular type.
12733         (ino_t): Likewise.
12734         (ino64_t): Likewise.
12735         (dev_t): Likewise.
12736         (nlink_t): Likewise.
12737         (blkcnt_t): Likewise.
12738         (blkcnt64_t): Likewise.
12739         * manual/llio.texi (off_t): Likewise.
12740
12741         [BZ #3976]
12742         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12743         (__ieee754_exp): Save and restore rounding mode and use
12744         round-to-nearest for all computations.
12745         * math/libm-test.inc (exp_test_tonearest): New function.
12746         (exp_test_towardzero): Likewise.
12747         (exp_test_downward): Likewise.
12748         (exp_test_upward): Likewise.
12749         (main): Call the new functions.
12750         * sysdeps/i386/fpu/libm-test-ulps: Update.
12751         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12752
12753 2012-03-01  Chris Demetriou  <cgd@google.com>
12754
12755         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12756         have predictable order.
12757
12758 2012-03-01  David S. Miller  <davem@davemloft.net>
12759
12760         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12761
12762         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12763         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12764         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12765         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12766
12767         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12768         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12769         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12770         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12771         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12772         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12773         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12774         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12775         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12776
12777         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12778
12779         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12780         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12781         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12782
12783         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12784         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12785         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12786         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12787         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12788         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12789         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12790         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12791         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12792         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12793         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12794         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12795         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12796         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12797         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12798         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12799         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12800         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12801         * sysdeps/sparc/elf/configure: Regenerated.
12802
12803 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12804
12805         * configure.in (AS, LD): Require binutils 2.20 or later.
12806         * configure: Regenerated.
12807         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12808         as required minimum version.
12809         * INSTALL: Regenerated.
12810
12811         [BZ #2541]
12812         [BZ #4108]
12813         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12814         before squaring exponent.
12815         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12816         bottom long double and 27 bits of top long double before squaring
12817         exponent.
12818         * math/libm-test.inc (erfc_test): Add more tests.
12819         * sysdeps/i386/fpu/libm-test-ulps: Update.
12820         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12822
12823 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12824
12825         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12826         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12827         containing bit-fields.
12828         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12829         * soft-fp/single.h (_FP_UNION_S): Likewise.
12830         * soft-fp/double.h (_FP_UNION_D): Likewise.
12831
12832 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12833
12834         [BZ #13786]
12835         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12836         not include ../strcmp.S.
12837         [USE_AS_STRNCASECMP_L]: Likewise.
12838         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12839         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12840         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12841         (__strncasecmp_l_ia32): Define as alias to
12842         __strncasecmp_l_nonascii.
12843
12844         [BZ #5794]
12845         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12846         * sysdeps/i386/fpu/libm-test-ulps: Update.
12847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12848
12849         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12850         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12851
12852 2012-02-29  Jeff Law  <law@redhat.com>
12853
12854         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12855         out of bounds read.
12856
12857 2012-02-29  Marek Polacek  <polacek@redhat.com>
12858
12859         [BZ #13706]
12860         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12861         * elf/Makefile: Add rules to run tst-unused-dep.out.
12862
12863 2012-02-28  David S. Miller  <davem@davemloft.net>
12864
12865         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12866         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12867         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12868         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12869         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12870         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12871
12872 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12873
12874         * math/libm-test.inc (llround_test): Move one test from
12875         lround_test.  Use TEST_f_L in moved test.
12876         (lround_test): Move misplaced test to llround_test.  Add testcase
12877         from bug 2561.
12878
12879 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12880
12881         * sysdeps/x86_64/fpu/e_expf.S: New file.
12882         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12883
12884 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12885
12886         [BZ #13637]
12887         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12888         of remain_len that may cause incomplete multi-byte character and
12889         false match.
12890         * posix/bug-regex33.c: New file.
12891         * posix/Makefile (tests): Add bug-regex33.
12892
12893 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12894
12895         * manual/macros.texi: New file.
12896         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12897         * manual/libc.texinfo: Include macros.texi.
12898         * manual/creatute.texi: Likewise.
12899         * manual/install.texi: Likewise.
12900         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12901         @glibcadj{} in references to the GNU C Library.
12902         * manual/charset.texi: Likewise.
12903         * manual/conf.texi: Likewise.
12904         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12905         when not using those macros.
12906         * manual/creature.texi: Likewise.
12907         * manual/crypt.texi: Likewise.
12908         * manual/errno.texi: Likewise.
12909         * manual/filesys.texi: Likewise.
12910         * manual/header.texi: Likewise.
12911         * manual/install.texi: Likewise.
12912         * manual/intro.texi: Likewise.
12913         * manual/io.texi: Likewise.
12914         * manual/job.texi: Likewise.
12915         * manual/lang.texi: Likewise.
12916         * manual/libc.texiinfo: Likewise.
12917         * manual/llio.texi: Likewise.
12918         * manual/locale.texi: Likewise.
12919         * manual/maint.texi: Likewise.
12920         * manual/math.texi: Likewise.
12921         * manual/memory.texi: Likewise.
12922         * manual/message.texi: Likewise.
12923         * manual/nss.texi: Likewise.
12924         * manual/pattern.texi: Likewise.
12925         * manual/process.texi: Likewise.
12926         * manual/resource.texi: Likewise.
12927         * manual/search.texi: Likewise.
12928         * manual/setjmp.texi: Likewise.
12929         * manual/signal.texi: Likewise.
12930         * manual/socket.texi: Likewise.
12931         * manual/startup.texi: Likewise.
12932         * manual/stdio.texi: Likewise.
12933         * manual/string.texi: Likewise.
12934         * manual/sysinfo.texi: Likewise.
12935         * manual/syslog.texi: Likewise.
12936         * manual/terminal.texi: Likewise.
12937         * manual/time.texi: Likewise.
12938         * manual/users.texi: Likewise.
12939         * INSTALL: Regenerated.
12940         * NOTES: Regenerated.
12941         * sysdeps/gnu/errlist.c: Regenerated.
12942
12943 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12944
12945         * include/dirent.h: Include <dirstream.h> before
12946         <dirent/dirent.h>.
12947
12948 2012-02-28  David S. Miller  <davem@davemloft.net>
12949
12950         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12951         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12952         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12953         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12954
12955 2012-02-27  David S. Miller  <davem@davemloft.net>
12956
12957         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12958         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12959         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12960         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12961
12962         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12963         frame pointer instead of stack pointer relative arg slot.
12964         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12965         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12966         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12967
12968 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12969
12970         [BZ #3992]
12971         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12972
12973 2012-02-27  David S. Miller  <davem@davemloft.net>
12974
12975         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12976         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12977         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12978         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12979         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12980         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12981         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12982         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12983
12984 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12985
12986         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12987         later.  Allow versions 5-9.
12988         * configure: Regenerated.
12989         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12990         required minimum version and 4.6 as recommended version.  Do not
12991         mention bugs in GCC 2.7 and 2.8.
12992         * INSTALL: Regenerated.
12993
12994 2012-02-27  David S. Miller  <davem@davemloft.net>
12995
12996         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12997         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12998         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12999         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13000         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13001         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13002         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13003         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13004
13005         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13006         manipulate bits before adding and subtracting TWO112[sx].
13007         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13008
13009 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13010
13011         [BZ #13775]
13012         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13013         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13014         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13015         being in POSIX, because they are in 1003.1-2008.
13016
13017         * rt/tst-aio.c: Include <fcntl.h>.
13018         * rt/tst-aio7.c: Likewise.
13019         * rt/tst-aio64.c: Likewise.
13020
13021         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13022
13023 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13024
13025         * manual/install.texi (--with-headers): Describe headers as
13026         interface headers, not private headers.
13027         (Specific advice for GNU/Linux systems): Describe use of headers
13028         from "make headers_install", not private headers from older
13029         kernels.
13030         * INSTALL: Regenerated.
13031         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13032         Change to 2.6.19.
13033         * sysdeps/unix/sysv/linux/configure: Regenerated.
13034
13035         * manual/llio.texi (fclean): Remove documentation.
13036
13037         * manual/Makefile (libc-texi-generated): New variable.  Include
13038         version.texi.
13039         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13040         $(libc-texi-generated), not duplicated list of files.
13041         (version.texi, stamp-version): New rules.
13042         (realclean): Remove $(libc-texi-generated), not individual files
13043         from that list.  Do not remove dir-add.texinfo.
13044         * manual/libc.texinfo: Comment out uses of edition numbers and
13045         references to printed manual.  Remove last-updated dates.
13046         (EDITION): Comment out.
13047         (ISBN): Likewise.
13048         (VERSION, UPDATED): Remove.
13049         (version.texi): Include.
13050
13051 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13052
13053         * sysdeps/posix/spawni.c: Include <signal.h>.
13054         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13055         * sysdeps/pthread/aio_fsync.c: Likewise.
13056
13057 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13058
13059         * conform/Makefile (tests): Run only when not cross-compiling and
13060         when fast-check is not defined.
13061
13062         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13063         * conform/data/limits.h-data: Fixes for POSIX2008.
13064         * conform/run-conformtest.sh: Run all tests.
13065         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13066         headers.
13067         * include/bits/dlfcn.h: Likewise.
13068         * include/langinfo.h: Likewise.
13069         * include/monetary.h: Likewise.
13070         * include/sys/poll.h: Likewise.
13071
13072         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13073         for __USE_GNU.
13074         * posix/spawn.h: Define __need_sigset_t.
13075         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13076         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13077         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13078         to get sigevent_t only.
13079         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13080         only for __USE_GNU.
13081         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13082         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13083         process_vm_writev only for __USE_GNU.
13084         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13085
13086         * conform/Makefile: For now ignore errors from run-conformtest.
13087         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13088         POSIX to avoid namespace pollution.  Don't prepend headers.
13089         * conform/data/aio.h-data: Fixes for POSIX testing.
13090         * conform/data/fcntl.h-data: Likewise.
13091         * conform/data/glob.h-data: Likewise.
13092         * conform/data/grp.h-data: Likewise.
13093         * conform/data/pthread.h-data: Likewise.
13094         * conform/data/pwd.h-data: Likewise.
13095         * conform/data/signal.h-data: Likewise.
13096         * conform/data/spawn.h-data: Likewise.
13097         * conform/data/stdio.h-data: Likewise.
13098         * conform/data/stdlib.h-data: Likewise.
13099         * conform/data/stropts.h-data: Likewise.
13100         * conform/data/sys/mman.h-data: Likewise.
13101         * conform/data/sys/stat.h-data: Likewise.
13102         * conform/data/sys/types.h-data: Likewise.
13103         * conform/data/sys/wait.h-data: Likewise.
13104         * conform/data/time.h-data: Likewise.
13105         * conform/data/unistd.h-data: Likewise.
13106         * conform/data/utime.h-data: Likewise.
13107
13108         * io/sys/stat.h: fchmod was always in POSIX.
13109         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13110         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13111         * rt/aio.h: Define __need_timespec before including <time.h>.
13112         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13113         struct.  Add forward declaration of pthread_attr_t and use it in
13114         sigevent.
13115         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13116         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13117         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13118         always remove CLK_TCK definition.
13119
13120 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13121
13122         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13123
13124 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13125
13126         * conform/run-conformtest.sh: New file.
13127         * conform/Makefile: Run run-conformtest for tests.
13128         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13129         support.
13130
13131         * conform/data/uchar.h-data: New file.
13132         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13133         * conform/data/arpa/inet.h-data: Likewise.
13134         * conform/data/assert.h-data: Likewise.
13135         * conform/data/complex.h-data: Likewise.
13136         * conform/data/cpio.h-data: Likewise.
13137         * conform/data/ctype.h-data: Likewise.
13138         * conform/data/dirent.h-data: Likewise.
13139         * conform/data/dlfcn.h-data: Likewise.
13140         * conform/data/errno.h-data: Likewise.
13141         * conform/data/fcntl.h-data: Likewise.
13142         * conform/data/float.h-data: Likewise.
13143         * conform/data/fmtmsg.h-data: Likewise.
13144         * conform/data/fnmatch.h-data: Likewise.
13145         * conform/data/ftw.h-data: Likewise.
13146         * conform/data/glob.h-data: Likewise.
13147         * conform/data/grp.h-data: Likewise.
13148         * conform/data/iconv.h-data: Likewise.
13149         * conform/data/inttypes.h-data: Likewise.
13150         * conform/data/langinfo.h-data: Likewise.
13151         * conform/data/libgen.h-data: Likewise.
13152         * conform/data/limits.h-data: Likewise.
13153         * conform/data/locale.h-data: Likewise.
13154         * conform/data/math.h-data: Likewise.
13155         * conform/data/monetary.h-data: Likewise.
13156         * conform/data/mqueue.h-data: Likewise.
13157         * conform/data/ndbm.h-data: Likewise.
13158         * conform/data/net/if.h-data: Likewise.
13159         * conform/data/netdb.h-data: Likewise.
13160         * conform/data/netinet/in.h-data: Likewise.
13161         * conform/data/nl_types.h-data: Likewise.
13162         * conform/data/poll.h-data: Likewise.
13163         * conform/data/pthread.h-data: Likewise.
13164         * conform/data/pwd.h-data: Likewise.
13165         * conform/data/regex.h-data: Likewise.
13166         * conform/data/sched.h-data: Likewise.
13167         * conform/data/search.h-data: Likewise.
13168         * conform/data/semaphore.h-data: Likewise.
13169         * conform/data/setjmp.h-data: Likewise.
13170         * conform/data/signal.h-data: Likewise.
13171         * conform/data/spawn.h-data: Likewise.
13172         * conform/data/stdarg.h-data: Likewise.
13173         * conform/data/stdio.h-data: Likewise.
13174         * conform/data/stdlib.h-data: Likewise.
13175         * conform/data/string.h-data: Likewise.
13176         * conform/data/strings.h-data: Likewise.
13177         * conform/data/stropts.h-data: Likewise.
13178         * conform/data/sys/ipc.h-data: Likewise.
13179         * conform/data/sys/mman.h-data: Likewise.
13180         * conform/data/sys/msg.h-data: Likewise.
13181         * conform/data/sys/resource.h-data: Likewise.
13182         * conform/data/sys/select.h-data: Likewise.
13183         * conform/data/sys/sem.h-data: Likewise.
13184         * conform/data/sys/shm.h-data: Likewise.
13185         * conform/data/sys/socket.h-data: Likewise.
13186         * conform/data/sys/stat.h-data: Likewise.
13187         * conform/data/sys/statvfs.h-data: Likewise.
13188         * conform/data/sys/time.h-data: Likewise.
13189         * conform/data/sys/timeb.h-data: Likewise.
13190         * conform/data/sys/times.h-data: Likewise.
13191         * conform/data/sys/types.h-data: Likewise.
13192         * conform/data/sys/uio.h-data: Likewise.
13193         * conform/data/sys/un.h-data: Likewise.
13194         * conform/data/sys/utsname.h-data: Likewise.
13195         * conform/data/sys/wait.h-data: Likewise.
13196         * conform/data/syslog.h-data: Likewise.
13197         * conform/data/tar.h-data: Likewise.
13198         * conform/data/termios.h-data: Likewise.
13199         * conform/data/utime.h-data: Likewise.
13200         * conform/data/utmpx.h-data: Likewise.
13201         * conform/data/varargs.h-data: Likewise.
13202         * conform/data/wchar.h-data: Likewise.
13203         * conform/data/wctype.h-data: Likewise.
13204         * conform/data/wordexp.h-data: Likewise.
13205
13206         * include/stropts.h: New file.
13207         * include/uchar.h: New file.
13208         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13209         * include/assert.h: Likewise.
13210         * include/ctype.h: Likewise.
13211         * include/dirent.h: Likewise.
13212         * include/dlfcn.h: Likewise.
13213         * include/fcntl.h: Likewise.
13214         * include/fnmatch.h: Likewise.
13215         * include/glob.h: Likewise.
13216         * include/grp.h: Likewise.
13217         * include/libio.h: Likewise.
13218         * include/locale.h: Likewise.
13219         * include/math.h: Likewise.
13220         * include/net/if.h: Likewise.
13221         * include/netdb.h: Likewise.
13222         * include/netinet/in.h: Likewise.
13223         * include/pthread.h: Likewise.
13224         * include/pwd.h: Likewise.
13225         * include/regex.h: Likewise.
13226         * include/sched.h: Likewise.
13227         * include/search.h: Likewise.
13228         * include/setjmp.h: Likewise.
13229         * include/signal.h: Likewise.
13230         * include/stdio.h: Likewise.
13231         * include/stdlib.h: Likewise.
13232         * include/string.h: Likewise.
13233         * include/sys/cdefs.h: Likewise.
13234         * include/sys/mman.h: Likewise.
13235         * include/sys/msg.h: Likewise.
13236         * include/sys/resource.h: Likewise.
13237         * include/sys/select.h: Likewise.
13238         * include/sys/socket.h: Likewise.
13239         * include/sys/stat.h: Likewise.
13240         * include/sys/statvfs.h: Likewise.
13241         * include/sys/time.h: Likewise.
13242         * include/sys/times.h: Likewise.
13243         * include/sys/uio.h: Likewise.
13244         * include/sys/utsname.h: Likewise.
13245         * include/sys/wait.h: Likewise.
13246         * include/termios.h: Likewise.
13247         * include/time.h: Likewise.
13248         * include/ulimit.h: Likewise.
13249         * include/unistd.h: Likewise.
13250         * include/utime.h: Likewise.
13251         * include/wchar.h: Likewise.
13252         * include/wctype.h: Likewise.
13253         * include/wordexp.h: Likewise.
13254
13255         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13256
13257         * time/time.h: TIME_UTC must be a macro.
13258         Make timespec_get available for ISO C11 only as well.
13259
13260 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13261
13262         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13263         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13264
13265 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13266
13267         * configure.in: Use -o not -a in test for unsupported multi-arch.
13268
13269 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13270
13271         * manual/texinfo.tex: Update to version 2012-01-19.16.
13272
13273 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13274
13275         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
13276
13277 2012-02-24  Roland McGrath  <roland@hack.frob.com>
13278
13279         [BZ #13738]
13280         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
13281         * manual/fdl-1.3.texi: New file.
13282         * manual/fdl-1.1.texi: File removed.
13283
13284         [BZ #13738]
13285         * manual/libc.texinfo (FDL_VERSION): New @set.
13286         Use it for mention of FDL in cover text.
13287         (Documentation License): Use it in @include file name.
13288
13289 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13290             Roland McGrath  <roland@hack.frob.com>
13291
13292         [BZ #5461]
13293         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
13294         not LONG_LONG_MAX and LONG_LONG_MIN.
13295         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
13296         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
13297         name.
13298         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
13299
13300 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13301
13302         [BZ #2547]
13303         [BZ #11365]
13304         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
13305         manipulate bits before adding and subtracting TWO23[sx].
13306         * math/libm-test.inc (nearbyint_test): Add more tests.
13307
13308 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13309
13310         [BZ #2548]
13311         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
13312         bits before adding and subtracting TWO23[sx].
13313         * math/libm-test.inc (rint_test): Add more tests.
13314         (rint_test_tonearest): Likewise.
13315         (rint_test_towardzero): Likewise.
13316         (rint_test_downward): Likewise.
13317         (rint_test_upward: Likewise.
13318
13319 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13320
13321         [BZ #10110]
13322         * include/stdc-predef.h: New file.  Extracted from features.h.
13323         * include/features.h: Include stdc-predef.h.
13324         * Makefile (headers): Add stdc-predef.h.
13325         * CONFORMANCE (Compiler limitations): Update.
13326
13327 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13328
13329         * manual/libc.texinfo (VERSION, UPDATED): Revert.
13330
13331 2012-02-21  David S. Miller  <davem@davemloft.net>
13332
13333         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
13334         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13335
13336 2012-02-20  David S. Miller  <davem@davemloft.net>
13337
13338         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
13339         using a normal save/restore sequence, rather than allocating a
13340         dummy stack frame just to store a frame pointer and restore.
13341         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13342
13343 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13344
13345         * manual/install.texi: Fix stray word in line-wrapped comment.
13346
13347 2012-02-20  David S. Miller  <davem@davemloft.net>
13348
13349         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
13350         both binutils and gcc support GOTDATA.
13351
13352         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
13353         "rd %pc" in the PIC register setup sequences.
13354
13355         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
13356         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
13357         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13358         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
13359         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13360         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13361         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13362         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13363         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
13364         (SYSCALL_ERROR_HANDLER): Likewise.
13365         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13366         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13367         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
13368         (SYSCALL_ERROR_HANDLER): Likewise.
13369
13370         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
13371         (HAVE_GCC_GOTDATA): New.
13372         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
13373         relocation support in both binutils and gcc.
13374         * sysdeps/sparc/elf/configure: Regenerate.
13375
13376         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
13377         * sysdeps/sparc/sparc32/elf/configure: Delete.
13378         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
13379         * sysdeps/sparc/sparc64/elf/configure: Delete.
13380         * sysdeps/sparc/elf/configure.in: New file.
13381         * sysdeps/sparc/elf/configure: Generate.
13382
13383         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
13384         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
13385         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13386         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
13387         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
13388
13389 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13390
13391         * manual/install.texi: Do not mention specific glibc version
13392         numbers.
13393         * manual/libc.texinfo (VERSION, UPDATED): Update.
13394         (@copying): Use @copyright{} and range of years.
13395
13396 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13397
13398         [BZ #13695]
13399         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
13400         [crti.S not in sysdirs] (generated): Do not append.
13401         [crti.S not in sysdirs] (omit-deps): Likewise.
13402         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
13403         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
13404         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
13405         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
13406         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
13407         Likewise.
13408         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
13409         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
13410         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
13411         * csu/defs.awk: Remove file.
13412         * sysdeps/generic/initfini.c: Likewise.
13413         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
13414         variable.
13415         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
13416         Likewise.
13417
13418 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13419
13420         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
13421         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
13422         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
13423         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
13424         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13425         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
13426         <bits/epoll.h>.
13427         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
13428         (__EPOLL_PACKED): Define to empty if not defined by
13429         <bits/epoll.h>.
13430         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
13431         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13432         bits/epoll.h.
13433
13434 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13435
13436         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
13437         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
13438         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
13439         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
13440         <bits/timerfd.h>.
13441         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
13442         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13443         bits/timerfd.h.
13444
13445 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13446
13447         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
13448         in C locale.
13449         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13450         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
13451         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
13452         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13453
13454 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
13455
13456         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13457         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13458
13459 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
13460
13461         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
13462         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
13463         defined.
13464         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
13465         Likewise.
13466         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
13467         entry for 2.16.
13468
13469 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
13470
13471         * math/w_acos.c: Use non-signaling floating-point comparisons.
13472         * math/w_acosf.c: Likewise.
13473         * math/w_acosh.c: Likewise.
13474         * math/w_acoshf.c: Likewise.
13475         * math/w_acoshl.c: Likewise.
13476         * math/w_acosl.c: Likewise.
13477         * math/w_asin.c: Likewise.
13478         * math/w_asinf.c: Likewise.
13479         * math/w_asinl.c: Likewise.
13480         * math/w_atanh.c: Likewise.
13481         * math/w_atanhf.c: Likewise.
13482         * math/w_atanhl.c: Likewise.
13483         * math/w_exp2.c: Likewise.
13484         * math/w_exp2f.c: Likewise.
13485         * math/w_exp2l.c: Likewise.
13486         * math/w_j0.c: Likewise.
13487         * math/w_j0f.c: Likewise.
13488         * math/w_j0l.c: Likewise.
13489         * math/w_j1.c: Likewise.
13490         * math/w_j1f.c: Likewise.
13491         * math/w_j1l.c: Likewise.
13492         * math/w_jn.c: Likewise.
13493         * math/w_jnf.c: Likewise.
13494         * math/w_log.c: Likewise.
13495         * math/w_log10.c: Likewise.
13496         * math/w_log10f.c: Likewise.
13497         * math/w_log10l.c: Likewise.
13498         * math/w_log2.c: Likewise.
13499         * math/w_log2f.c: Likewise.
13500         * math/w_log2l.c: Likewise.
13501         * math/w_logf.c: Likewise.
13502         * math/w_logl.c: Likewise.
13503         * math/w_sqrt.c: Likewise.
13504         * math/w_sqrtf.c: Likewise.
13505         * math/w_sqrtl.c: Likewise.
13506         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13507         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
13508         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13509         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13510         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13511
13512 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13513
13514         [BZ #9739]
13515         * manual/string.texi (strnlen): Use correct parameter name in
13516         equivalent expression.
13517
13518 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13519
13520         [BZ #11174]
13521         * manual/users.texi (seteuid): Consistently use neweuid for
13522         argument name.
13523
13524 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13525
13526         [BZ #13704]
13527         * manual/nss.texi (Services in the NSS configuration): Correct
13528         list of services in example configuration file.
13529
13530 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
13531
13532         [BZ #11322]
13533         * manual/arith.texi: Remove statements about negative zero
13534         behaving identically to zero.
13535
13536 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13537
13538         [BZ #5993]
13539         * manual/install.texi: Do not document upgrading from libc5.
13540
13541 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13542
13543         [BZ #4596]
13544         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
13545
13546 2012-02-18  David S. Miller  <davem@davemloft.net>
13547
13548         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
13549         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
13550         %o7 across the call.
13551         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
13552         instead.
13553         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
13554         SETUP_PIC_REG_LEAF.
13555         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13556         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
13557         * sysdeps/sparc/crtn.S: Likewise.
13558
13559 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
13560
13561         * aout/Makefile: Remove.
13562
13563 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
13564
13565         [BZ #13058]
13566         * manual/examples/argp-ex1.c (main): Format definition in GNU
13567         style.
13568         * manual/examples/argp-ex2.c (main): Likewise.
13569         * manual/examples/argp-ex3.c (main): Likewise.
13570         * manual/examples/argp-ex4.c (main): Likewise.
13571         * manual/examples/longopt.c (main): Use new-style prototype
13572         definition.
13573         * manual/examples/strncat.c (main): Specify return type and use
13574         (void) for arguments.
13575         * manual/examples/subopt.c (main): Use char **argv argument.
13576
13577 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13578
13579         [BZ #5077]
13580         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
13581         rounding modes.
13582
13583 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
13584
13585         [BZ #6907]
13586         * manual/string.texi (strchr): Change when strchrnul is
13587         recommended.
13588
13589 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
13590
13591         [BZ #174]
13592         * manual/locale.texi (setlocale): Document LOCPATH.
13593
13594 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13595
13596         [BZ #10210]
13597         * manual/process.texi (execle): Move @dots{} before last argument.
13598
13599 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
13600
13601         [BZ #12047]
13602         * manual/charset.texi (Generic Charset Conversion): Fix typo
13603         (LC_TYPE -> LC_CTYPE).
13604
13605 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
13606
13607         [BZ #5805]
13608         * manual/arith.texi (scalbn): Use @var{} on parameter names.
13609         (scalbnf): Likewise.
13610         (scalbnl): Likewise.
13611         (scalbln): Likewise.
13612         (scalblnf): Likewise.
13613         (scalblnl): Likewise.
13614         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
13615         (vwarnx): Likewise.
13616         (verr): Likewise.
13617         (verrx): Likewise.
13618         * manual/filesys.texi (telldir): Use braces around return type.
13619         * manual/llio.texi (mmap): Add space after comma.
13620         (mmap64): Likewise.
13621         * manual/math.texi (jn): Use @var{} on parameter names.
13622         (jnf): Likewise.
13623         (jnl): Likewise.
13624         (yn): Likewise.
13625         (ynf): Likewise.
13626         (ynl): Likewise.
13627         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
13628         line.
13629         * manual/resource.texi (ulimit): Use @dots{} instead of literal
13630         "...".
13631         (sched_get_priority_min): Remove semicolon on @deftypefun line.
13632         (sched_get_priority_max): Likewise.
13633         * manual/signal.texi (sigvec): Add space after comma.
13634         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
13635         names.
13636         (if_indextoname): Likewise.
13637         (if_freenameindex): Likewise.
13638         (sendto): Use ',' instead of '.' in prototype.
13639         * manual/startup.texi (syscall): Use @dots{} instead of literal
13640         "...".
13641         * manual/stdio.texi (__fpending): Separate initial words of
13642         paragraph from @deftypefun line.
13643         * manual/syslog.texi (syslog): Use @dots{} instead of literal
13644         "...".
13645         (vsyslog): Use @var{} on parameter names.
13646         * manual/terminal.texi (stty): Use @var{} on parameter names.
13647         * manual/users.texi (getutmp): Use @var{} on parameter names.
13648         (getutmpx): Likewise.
13649
13650 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13651
13652         [BZ #6884]
13653         * manual/stdio.texi (fopen): Fix typos in description of
13654         ",ccs=STRING".
13655
13656 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
13657
13658         [BZ #4026]
13659         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13660         get clock_id definition.
13661
13662 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13663
13664         [BZ #4822]
13665         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13666         (madvise): Cast every argument to void on its own.
13667
13668 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13669
13670         [BZ #9902]
13671         * manual/startup.texi (Exit Status): Fix typo.
13672
13673 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13674
13675         [BZ #10140]
13676         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13677         * manual/examples/argp-ex2.c: Likewise.
13678         * manual/examples/argp-ex3.c: Likewise.
13679
13680 2012-02-16  Richard Henderson  <rth@redhat.com>
13681
13682         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13683         * sysdeps/s390/s390-32/initfini.c: Remove.
13684         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13685         * sysdeps/s390/s390-64/initfini.c: Remove.
13686
13687 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13688
13689         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13690         compiler output for sysdeps/generic/initfini.c.
13691         * sysdeps/sh/elf/initfini.c: Remove file.
13692
13693 2012-02-16  David S. Miller  <davem@davemloft.net>
13694
13695         [BZ #11494]
13696         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13697
13698         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13699         * sysdeps/sparc/crti.S: New file.
13700         * sysdeps/sparc/crtn.S: New file.
13701         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13702         * sysdeps/sparc/sparc64/Makefile: Likewise.
13703
13704 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13705
13706         [BZ #3335]
13707         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13708
13709 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13710
13711         [BZ #4822]
13712         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13713
13714         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13715         (write, read, close): Likewise.
13716         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13717
13718 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13719
13720         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13721         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13722         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13723         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13724         <bits/signalfd.h>.
13725         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13726         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13727         bits/signalfd.h.
13728
13729 2012-02-14  Marek Polacek  <polacek@redhat.com>
13730
13731         * sysdeps/x86_64/crti.S: New file.
13732         * sysdeps/x86_64/crtn.S: New file.
13733         * sysdeps/x86_64/elf/initfini.c: Remove file.
13734
13735 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13736
13737         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13738         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13739         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13740         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13741         <bits/inotify.h>.
13742         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13743         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13744         bits/inotify.h.
13745
13746 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13747
13748         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13749         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13750         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13751         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13752         <bits/eventfd.h>.
13753         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13754         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13755         bits/eventfd.h.
13756
13757 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13758
13759         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13760         __feraiseexcept instead of feraiseexcept.
13761
13762         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13763         nanosleep invocations.
13764         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13765         strings, and add error checking for a nanosleep invocations.
13766
13767 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13768
13769         Replace FSF snail mail address with URLs, as per GNU coding standards.
13770         Most of the snail mail addresses were wrong anyway, and omitting
13771         them makes the source code easier to maintain.  Almost all of the
13772         changes are to license notices and to locale LC_IDENTIFICATION
13773         addresses, except for this one:
13774         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13775         not its snail mail address.
13776
13777 2012-02-09  Richard Henderson  <rth@twiddle.net>
13778
13779         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13780         of kernel-features.h.
13781
13782         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13783
13784 2012-02-08  Marek Polacek  <polacek@redhat.com>
13785
13786         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13787         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13788         * sysdeps/gnu/_G_config.h: Likewise.
13789         * sysdeps/generic/_G_config.h: Likewise.
13790
13791 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13792
13793         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13794         tests.
13795         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13796
13797         * sysdeps/powerpc/powerpc32/crti.S: New file.
13798         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13799         * sysdeps/powerpc/powerpc64/crti.S: New file.
13800         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13801
13802         * Makeconfig (have-initfini): Don't set.
13803         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13804         * configure.in (nopic_initfini): Don't substitute.
13805         * config.h.in (HAVE_INITFINI): Don't #undef.
13806         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13807         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13808
13809 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13810
13811         Support crti.S and crtn.S provided directly by architectures.
13812         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13813         [crti.S in sysdirs] (omit-deps): Likewise.
13814         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13815         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13816         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13817         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13818         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13819         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13820         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13821         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13822         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13823         compiler output for sysdeps/generic/initfini.c.
13824         * sysdeps/i386/elf/Makefile: Remove file.
13825         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13826
13827 2012-02-07  Marek Polacek  <polacek@redhat.com>
13828
13829         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13830         * sysdeps/gnu/_G_config.h: Likewise.
13831         * sysdeps/mach/hurd/_G_config.h: Likewise.
13832
13833 2012-02-07  Marek Polacek  <polacek@redhat.com>
13834
13835         * math/Makefile (tests): Add tst-CMPLX2.
13836         * math/tst-CMPLX2.c: New file.
13837
13838 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13839
13840         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13841
13842         * math/libm-test.inc (jn_test): Add missing L suffix.
13843
13844 2012-02-06  Marek Polacek  <polacek@redhat.com>
13845
13846         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13847         * sysdeps/i386/fpu/e_powf.S: Likewise.
13848         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13849         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13850         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13851         * sysdeps/i386/fpu/e_pow.S: Likewise.
13852         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13853         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13854         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13855         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13856         * sysdeps/i386/fpu/e_log2.S: Likewise.
13857         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13858         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13859         * sysdeps/i386/fpu/e_powl.S: Likewise.
13860         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13861         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13862         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13863         * sysdeps/i386/fpu/e_logl.S: Likewise.
13864         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13865         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13866         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13867         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13868         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13869         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13870         * sysdeps/i386/fpu/e_log.S: Likewise.
13871         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13872         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13873         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13874         * sysdeps/i386/fpu/e_logf.S: Likewise.
13875         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13876         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13877         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13878         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13879         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13880         * sysdeps/i386/fpu/e_log10.S: Likewise.
13881         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13882         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13883         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13884         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13885         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13886         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13887         * sysdeps/i386/asm-syntax.h: Likewise.
13888         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13889         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13890         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13891         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13892         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13893         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13894         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13895         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13896         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13897         * sysdeps/powerpc/sysdep.h: Likewise.
13898         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13899         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13900
13901 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13902
13903         [BZ #411]
13904         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13905
13906 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13907
13908         * sysdeps/i386/sysdep.h: Include <features.h>.
13909         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13910         version.
13911
13912 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13913
13914         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13915         Define.
13916         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13917         LOAD_PIC_REG_STR.
13918
13919 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13920
13921         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13922         (SETUP_PIC_REG): Use GET_PC_THUNK.
13923         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13924         macro.
13925
13926 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13927
13928         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13929         for non-PIC compilation.
13930         (SETUP_PIC_REG): Add .p2align directive.
13931         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13932         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13933         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13934         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13935         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13936         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13937         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13938         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13939         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13940         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13941         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13942         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13943         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13944         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13945         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13946         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13947         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13948         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13949         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13950         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13951         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13952         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13953         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13954         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13955         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13956         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13957         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13958         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13959         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13960         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13961         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13962         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13963         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13964         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13965         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13966         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13967         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13968         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13969         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13970         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13971         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13972
13973 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13974
13975         * math/tst-CMPLX.c: Include <stdio.h>.
13976
13977 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13978
13979         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13980         float.
13981         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13982         * sysdeps/sparc/bits/mathdef.h: Likewise.
13983
13984 2012-01-31  Marek Polacek  <polacek@redhat.com>
13985
13986         * libio/libio.h: Don't define _PARAMS.
13987         * locale/programs/config.h: Don't define PARAMS.
13988         * stdlib/strtol_l.c: Likewise.
13989         (__strtol_l): Remove PARAMS from the prototype.
13990
13991 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13992
13993         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13994         names.  Just use the correct names.  Remove unnecessary wrapper
13995         functions.
13996         * malloc/arena.c: Likewise.
13997         * malloc/hooks.c: Likewise.
13998
13999         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14000         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14001         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14002
14003 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14004
14005         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14006         into tail calls.
14007         (update_get_addr): New function.
14008         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14009         GET_ADDR_MODULE parameter.
14010
14011 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14012
14013         * crypt/cert.c: Remove __STDC__ conditionals.
14014         * crypt/crypt-entry.c: Likewise.
14015         * crypt/crypt_util.c: Likewise.
14016         * libio/filedoalloc.c: Likewise.
14017         * libio/fileops.c: Likewise.
14018         * libio/genops.c: Likewise.
14019         * libio/iofclose.c: Likewise.
14020         * libio/iofdopen.c: Likewise.
14021         * libio/iofopen.c: Likewise.
14022         * libio/iofopen64.c: Likewise.
14023         * libio/iogetdelim.c: Likewise.
14024         * libio/iopopen.c: Likewise.
14025         * libio/obprintf.c: Likewise.
14026         * libio/oldfileops.c: Likewise.
14027         * libio/oldiofclose.c: Likewise.
14028         * libio/oldiofdopen.c: Likewise.
14029         * libio/oldiofopen.c: Likewise.
14030         * libio/oldiopopen.c: Likewise.
14031         * libio/wfiledoalloc.c: Likewise.
14032         * libio/wgenops.c: Likewise.
14033         * locale/programs/xmalloc.c: Likewise.
14034         * misc/syslog.c: Likewise.
14035         * stdio-common/xbug.c: Likewise.
14036         * string/memchr.c: Likewise.
14037         * string/memcmp.c: Likewise.
14038         * string/memrchr.c: Likewise.
14039         * string/rawmemchr.c: Likewise.
14040         * sysdeps/posix/getcwd.c: Likewise.
14041         * time/strftime_l.c: Likewise.
14042
14043 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14044
14045         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14046         * config.make.in (config-cflags-sse2avx): Define.
14047         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14048         Fix typo.
14049
14050 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14051
14052         * scripts/config.guess: Update from upstream config git repository.
14053         * scripts/config.sub: Likewise.
14054
14055 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14056
14057         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14058         (EM_NUM): Update.
14059         (R_TILEPRO_*, R_TILEGX_*): New macros.
14060
14061         * scripts/firstversions.awk: Fix bug in version range handling.
14062
14063         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14064
14065         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14066
14067         * include/sys/epoll.h: New file.
14068         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14069         libc_hidden_def.
14070
14071 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14072
14073         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14074         Avoid unnecessary __WORDSIZE == 64 test.
14075         (fmaxf): Use VEX format if possible.
14076         (fmax): Likewise.
14077         (fminf): Likewise.
14078         (fmin): Likewise.
14079
14080         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14081         * math/math_private.h: Remove libc_fegetround* and
14082         libc_fesetround*.
14083         * sysdeps/i386/configure.in: Check for -msse2avx.
14084         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14085         also if SSE2AVX is defined.
14086         Remove libc_fegetround* and libc_fesetround*.
14087         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14088         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14089         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14090         of HAS_YMM_USABLE.
14091         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14092         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14093         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14094         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14095         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14096
14097         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14098
14099 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14100
14101         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14102         size is not set.
14103         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14104
14105 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14106
14107         [BZ #13618]
14108         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14109         relocation.
14110         * Makeconfig (libm): Define.
14111         * elf/Makefile: Add rules to build and run tst-relsort1.
14112         * elf/tst-relsort1.c: New file.
14113         * elf/tst-relsort1mod1.c: New file.
14114         * elf/tst-relsort1mod2.c: New file.
14115
14116 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14117
14118         * math/s_ldexp.c: Remove __STDC__ conditionals.
14119         * math/s_ldexpf.c: Likewise.
14120         * math/s_ldexpl.c: Likewise.
14121         * math/s_nextafter.c: Likewise.
14122         * math/s_nexttowardf.c: Likewise.
14123         * math/s_significand.c: Likewise.
14124         * math/s_significandf.c: Likewise.
14125         * math/s_significandl.c: Likewise.
14126         * math/w_jnl.c: Likewise.
14127         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14128         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14129         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14130         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14131         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14132         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14133         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14134         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14135         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14136         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14137         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14138         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14139         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14140         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14141         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14142         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14143         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14144         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14145         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14146         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14147         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14148         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14149         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14150         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14151         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14152         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14153         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14154         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14155         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14156         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14157         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14158         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14159         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14160         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14161         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14162         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14163         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14164         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14165         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14166         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14167         * sysdeps/ieee754/k_standard.c: Likewise.
14168         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14169         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14170         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14171         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14172         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14173         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14174         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14175         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14176         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14177         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14178         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14179         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14180         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14181         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14182         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14183         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14184         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14185         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14186         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14187         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14188         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14189         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14190         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14191         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14192         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14193         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14194         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14195         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14196         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14197         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14198         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14199         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14200         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14201         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14202         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14203         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14204         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14205         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14206         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14207         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14208         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14209         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14210         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14211         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14212         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14213         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14214         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14215         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14216         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14217         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14218         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14219         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14220         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14221         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14222         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14223         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14224         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14225         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14226         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14227         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14228         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14229         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14230         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14231         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14232         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14233         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14234         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14235         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14236         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14237         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14238         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14239         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14240         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14241         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14242         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14243         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14244         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14245         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14246         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14247         * sysdeps/ieee754/s_matherr.c: Likewise.
14248         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14249         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14250         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14251         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14252
14253 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14254
14255         * crypt/md5.h: Remove __STDC__ conditionals.
14256         * libio/libioP.h: Likewise.
14257         * locale/programs/config.h: Likewise.
14258         * sysdeps/generic/sysdep.h: Likewise.
14259         * sysdeps/i386/asm-syntax.h: Likewise.
14260         * sysdeps/s390/asm-syntax.h: Likewise.
14261         * sysdeps/unix/sysdep.h: Likewise.
14262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14264
14265 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14266
14267         * libio/libio.h: Remove __STDC__ conditionals.
14268         * malloc/obstack.h: Likewise.
14269         * math/complex.h: Likewise.
14270         * math/math.h: Likewise.
14271         * sysdeps/generic/_G_config.h: Likewise.
14272         * sysdeps/gnu/_G_config.h: Likewise.
14273         * sysdeps/mach/hurd/_G_config.h: Likewise.
14274         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14275         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14276         * sysdeps/sparc/bits/mathdef.h: Likewise.
14277
14278 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
14279
14280         [BZ #13583]
14281         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
14282         Clean up HAS_* macros.
14283         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
14284         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
14285         possible.
14286         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
14287         HAS_AVX.
14288         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14289         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14290         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14291         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14292         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14293
14294 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
14295
14296         * elf/tst-unique3.cc (gets): Remove declaration.
14297         * elf/tst-unique3lib.cc (gets): Likewise.
14298         * elf/tst-unique3lib2.cc (gets): Likewise.
14299         * elf/tst-unique4.cc (gets): Likewise.
14300
14301 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
14302
14303         * include/stdio.h: Add C++ protection.  Add gets declarations and
14304         definitions.
14305         * debug/tst-chk1.c: Don't declare gets here.
14306         * stdio-common/tst-gets.c: Likewise.
14307
14308 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14309
14310         * posix/glob: Remove directory.
14311
14312 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14313
14314         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
14315
14316 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
14317
14318         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
14319         of the non-standard EPFNOSUPPORT.
14320
14321 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14322
14323         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
14324         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
14325         ANYWHERE set to 1 only on KERN_NO_SPACE error.
14326
14327 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
14328
14329         * wcsmbs/uchar.h: Test __STDC_VERSION__.
14330
14331 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
14332
14333         * nscd/aicache.c (addhstaiX): Do not cache negative results of
14334         transient errors.
14335         * nscd/grpcache.c (cache_addgr): Likewise.
14336         * nscd/hstcache.c (cache_addhst): Likewise.
14337         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14338         * nscd/pwdcache.c (cache_addpw): Likewise.
14339         * nscd/servicescache.c (cache_addserv): Likewise.
14340
14341 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
14342
14343         * malloc/malloc.c: Various cleanups.
14344         * malloc/hooks.c: Likewise.
14345
14346         * stdlib/Makefile (tests): Add bug-fmtmsg1.
14347         * stdlib/bug-fmtmsg1.c: New file.
14348
14349         * stdlib/fmtmsg.c (init): Add missing unlock.
14350         Patch by Peng Haitao <penght@cn.fujitsu.com>.
14351
14352 2012-01-12  Marek Polacek  <polacek@redhat.com>
14353
14354         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
14355         and _GNU_SOURCE.
14356
14357 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14358
14359         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
14360         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
14361         macro to ensure uniqueness of label name.
14362         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14363         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14364
14365 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
14366
14367         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
14368
14369         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
14370         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
14371         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
14372         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
14373
14374 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
14375
14376         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
14377
14378         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
14379         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
14380         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
14381
14382         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
14383
14384         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
14385         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
14386         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
14387         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
14388
14389         * math/bits/math-finite.h: Add ldexp support.
14390
14391 2012-01-10  Marek Polacek  <polacek@redhat.com>
14392
14393         * locale/programs/localedef.h (show_archive_content): Add noreturn
14394         attribute.
14395
14396 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
14397
14398         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
14399
14400 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14401
14402         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
14403
14404         * io/Makefile (headers): Add bits/poll2.h.
14405
14406 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
14407
14408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
14409         typo #include statement.
14410
14411 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14412
14413         * include/sys/cdefs.h: Define __attribute_alloc_size.
14414         * catgets/gencat.c: Add alloc_size attribute and apply consistently
14415         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
14416         * elf/pldd.c: Likewise.
14417         * iconv/iconv_charmap.c: Likewise.
14418         * iconv/iconvconfig.c: Likewise.
14419         * iconv/strtab.c: Likewise.
14420         * locale/programs/locale.c: Likewise.
14421         * locale/programs/localedef.h: Likewise.
14422         * locale/programs/simple-hash.c: Likewise.
14423         * nscd/nscd.h: Likewise.
14424         * nss/makedb.c: Likewise.
14425         * sysdeps/generic/ldconfig.h: Likewise.
14426         * locale/programs/localedef.c: Remove xmalloc prototype.
14427         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
14428
14429 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14430
14431         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
14432         appropriate.
14433
14434 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14435
14436         * math/Makefile (tests): Add tst-CMPLX.
14437         * math/tst-CMPLX.c: New file.
14438
14439         * math/complex.h (CMPLXL): Fix typo.
14440
14441         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
14442         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
14443         GLIBC_2.16.
14444         * debug/tst-chk1.c: Add poll and ppoll tests.
14445         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
14446         * include/sys/poll.h: Add hidden proto for ppoll.
14447         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
14448         * sysdeps/mach/hurd/ppoll.c: Likewise.
14449         * io/ppoll.c: Likewise.
14450         * debug/poll_chk.c: New file.
14451         * debug/ppoll_chk.c: New file.
14452         * include/bits/poll2.h: New file.
14453         * io/bits/poll2.h: New file.
14454
14455         [BZ #1350]
14456         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
14457
14458         * configure.in: static is always set to yes.  Remove.
14459         * config.make.in: Don't set build-static.
14460         * Makeconfig: Remove use of build-static.
14461         * dlfcn/Makefile: Likewise.
14462         * elf/Makefile: Likewise.
14463         * math/Makefile: Likewise.
14464         * misc/Makefile: Likewise.
14465         * nptl/Makefile: Likewise.
14466         * sysdeps/mach/hurd/Makefile: Likewise.
14467
14468         * configure.in: PWD_P is not used anymore.
14469         * config.make.in: Remove PWD_P entry.
14470
14471         * configure.in: Remove last remnants of RANLIB.
14472         No need to check for signed size_t anymore.
14473         Don't set libc_commonpagesize and libc_relro_required here for Alpha
14474         and IA-64.
14475         Remove __builtin_expect test because we require at least gcc 3.4.
14476         * aclocal.m4: Likewise.
14477
14478         * wcsmbs/mbrtoc16.c: Implement using towc function.
14479         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
14480         * wcsmbs/wcsmbsload.c: Likewise.
14481         * iconv/gconv_simple.c: Likewise.
14482         * iconv/gconv_int.h: Likewise.
14483         * iconv/gconv_builtin.h: Likewise.
14484         * iconv/iconv_prog.c: Remove CHAR16 handling.
14485
14486         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
14487
14488         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
14489
14490         * configure.in: Remove --with-elf and --enable-bounded options.
14491         Dont set base_machine for ia64.  More non-ELF conditions removed.
14492         Remove testing and setting of leading underscore information.
14493         * config.make.in (build-bounded): Set to no.
14494         * config.h.in: Remove NO_UNDERSCORES entry.
14495         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
14496         them.
14497         * csu/start.c: Remove !NO_UNDERSCORE code.
14498         * locale/localeinfo.h: Likewise.
14499         * sysdeps/generic/machine-gmon.h: Likewise.
14500         * sysdeps/generic/sysdep.h: Likewise.
14501         * sysdeps/i386/sysdep.h: Likewise.
14502         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14503         * sysdeps/mach/sysdep.h: Likewise.
14504         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14505         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14506         * sysdeps/sh/sysdep.h: Likewise.
14507         * sysdeps/sparc/sparc32/alloca.S: Likewise.
14508         * sysdeps/unix/i386/sysdep.S: Likewise.
14509         * sysdeps/unix/sparc/start.c: Likewise.
14510         * sysdeps/unix/sparc/sysdep.S: Likewise.
14511         * sysdeps/unix/sparc/sysdep.h: Likewise.
14512         * sysdeps/unix/start.c: Likewise.
14513         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14514         * sysdeps/x86_64/sysdep.h: Likewise.
14515
14516 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
14517
14518         [BZ #13553]
14519         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
14520         for non-gcc.
14521         * argp/argp-fmtstream.h: Use const instead __const.
14522         * argp/argp.h: Likewise.
14523         * assert/assert.h: Likewise.
14524         * bits/fenv.h: Likewise.
14525         * bits/sched.h: Likewise.
14526         * bits/sigset.h: Likewise.
14527         * bits/sigthread.h: Likewise.
14528         * catgets/nl_types.h: Likewise.
14529         * conform/data/pthread.h-data: Likewise.
14530         * crypt/crypt-private.h: Likewise.
14531         * crypt/crypt.h: Likewise.
14532         * crypt/crypt_util.c: Likewise.
14533         * ctype/ctype.h: Likewise.
14534         * debug/execinfo.h: Likewise.
14535         * debug/mbsnrtowcs_chk.c: Likewise.
14536         * debug/mbsrtowcs_chk.c: Likewise.
14537         * debug/wcsnrtombs_chk.c: Likewise.
14538         * debug/wcsrtombs_chk.c: Likewise.
14539         * debug/wcstombs_chk.c: Likewise.
14540         * dirent/dirent.h: Likewise.
14541         * dlfcn/dlfcn.h: Likewise.
14542         * elf/neededtest4.c: Likewise.
14543         * grp/grp.h: Likewise.
14544         * gshadow/gshadow.h: Likewise.
14545         * iconv/gconv.h: Likewise.
14546         * iconv/gconv_int.h: Likewise.
14547         * iconv/gconv_simple.c: Likewise.
14548         * iconv/iconv.h: Likewise.
14549         * iconv/loop.c: Likewise.
14550         * iconv/skeleton.c: Likewise.
14551         * include/aio.h: Likewise.
14552         * include/aliases.h: Likewise.
14553         * include/argz.h: Likewise.
14554         * include/arpa/inet.h: Likewise.
14555         * include/assert.h: Likewise.
14556         * include/dirent.h: Likewise.
14557         * include/dlfcn.h: Likewise.
14558         * include/execinfo.h: Likewise.
14559         * include/fcntl.h: Likewise.
14560         * include/fenv.h: Likewise.
14561         * include/glob.h: Likewise.
14562         * include/grp.h: Likewise.
14563         * include/libintl.h: Likewise.
14564         * include/mntent.h: Likewise.
14565         * include/netdb.h: Likewise.
14566         * include/pwd.h: Likewise.
14567         * include/rpc/netdb.h: Likewise.
14568         * include/sched.h: Likewise.
14569         * include/search.h: Likewise.
14570         * include/shadow.h: Likewise.
14571         * include/signal.h: Likewise.
14572         * include/stdio.h: Likewise.
14573         * include/stdlib.h: Likewise.
14574         * include/string.h: Likewise.
14575         * include/sys/socket.h: Likewise.
14576         * include/sys/stat.h: Likewise.
14577         * include/sys/statfs.h: Likewise.
14578         * include/sys/statvfs.h: Likewise.
14579         * include/sys/syslog.h: Likewise.
14580         * include/sys/time.h: Likewise.
14581         * include/sys/uio.h: Likewise.
14582         * include/time.h: Likewise.
14583         * include/unistd.h: Likewise.
14584         * include/utmp.h: Likewise.
14585         * include/wchar.h: Likewise.
14586         * include/wctype.h: Likewise.
14587         * inet/aliases.h: Likewise.
14588         * inet/arpa/inet.h: Likewise.
14589         * inet/netinet/ether.h: Likewise.
14590         * inet/netinet/in.h: Likewise.
14591         * intl/libintl.h: Likewise.
14592         * io/bits/fcntl2.h: Likewise.
14593         * io/fcntl.h: Likewise.
14594         * io/ftw.h: Likewise.
14595         * io/sys/poll.h: Likewise.
14596         * io/sys/stat.h: Likewise.
14597         * io/sys/statfs.h: Likewise.
14598         * io/sys/statvfs.h: Likewise.
14599         * io/utime.h: Likewise.
14600         * libio/bits/stdio.h: Likewise.
14601         * libio/bits/stdio2.h: Likewise.
14602         * libio/libio.h: Likewise.
14603         * libio/libioP.h: Likewise.
14604         * libio/stdio.h: Likewise.
14605         * locale/lc-ctype.c: Likewise.
14606         * locale/locale.h: Likewise.
14607         * login/utmp.h: Likewise.
14608         * malloc/arena.c: Likewise.
14609         * malloc/malloc.c: Likewise.
14610         * malloc/malloc.h: Likewise.
14611         * malloc/mcheck.c: Likewise.
14612         * malloc/mtrace.c: Likewise.
14613         * math/bits/mathcalls.h: Likewise.
14614         * math/fenv.h: Likewise.
14615         * math/math_private.h: Likewise.
14616         * misc/bits/error.h: Likewise.
14617         * misc/bits/syslog.h: Likewise.
14618         * misc/err.h: Likewise.
14619         * misc/error.h: Likewise.
14620         * misc/fstab.h: Likewise.
14621         * misc/mntent.h: Likewise.
14622         * misc/regexp.h: Likewise.
14623         * misc/search.h: Likewise.
14624         * misc/sgtty.h: Likewise.
14625         * misc/sys/mman.h: Likewise.
14626         * misc/sys/syslog.h: Likewise.
14627         * misc/sys/uio.h: Likewise.
14628         * misc/sys/xattr.h: Likewise.
14629         * misc/ttyent.h: Likewise.
14630         * nis/rpcsvc/ypclnt.h: Likewise.
14631         * nss/nss.h: Likewise.
14632         * posix/bits/unistd.h: Likewise.
14633         * posix/fnmatch.h: Likewise.
14634         * posix/glob.h: Likewise.
14635         * posix/sched.h: Likewise.
14636         * posix/spawn.h: Likewise.
14637         * posix/sys/wait.h: Likewise.
14638         * posix/unistd.h: Likewise.
14639         * posix/wordexp.h: Likewise.
14640         * pwd/pwd.h: Likewise.
14641         * resolv/netdb.h: Likewise.
14642         * resource/sys/resource.h: Likewise.
14643         * rt/aio.h: Likewise.
14644         * rt/bits/mqueue2.h: Likewise.
14645         * rt/mqueue.h: Likewise.
14646         * shadow/shadow.h: Likewise.
14647         * signal/signal.h: Likewise.
14648         * socket/send.c: Likewise.
14649         * socket/sendto.c: Likewise.
14650         * socket/sys/socket.h: Likewise.
14651         * stdio-common/printf.h: Likewise.
14652         * stdlib/bits/stdlib.h: Likewise.
14653         * stdlib/fmtmsg.h: Likewise.
14654         * stdlib/monetary.h: Likewise.
14655         * stdlib/stdlib.h: Likewise.
14656         * stdlib/ucontext.h: Likewise.
14657         * streams/stropts.h: Likewise.
14658         * string/argz.h: Likewise.
14659         * string/bits/string2.h: Likewise.
14660         * string/string.h: Likewise.
14661         * string/strings.h: Likewise.
14662         * sunrpc/rpc/auth.h: Likewise.
14663         * sunrpc/rpc/auth_des.h: Likewise.
14664         * sunrpc/rpc/clnt.h: Likewise.
14665         * sunrpc/rpc/netdb.h: Likewise.
14666         * sunrpc/rpc/pmap_clnt.h: Likewise.
14667         * sunrpc/rpc/xdr.h: Likewise.
14668         * sysdeps/generic/inttypes.h: Likewise.
14669         * sysdeps/generic/net/if.h: Likewise.
14670         * sysdeps/generic/sys/swap.h: Likewise.
14671         * sysdeps/gnu/net/if.h: Likewise.
14672         * sysdeps/gnu/utmpx.h: Likewise.
14673         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14674         * sysdeps/i386/i486/bits/string.h: Likewise.
14675         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14676         * sysdeps/s390/bits/string.h: Likewise.
14677         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14678         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14679         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14680         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14681         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14682         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14683         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14684         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14685         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14686         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14687         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14688         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14689         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14690         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14691         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14692         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14693         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14694         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14695         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14696         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14697         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14698         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14699         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14700         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14701         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14702         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14703         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14704         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14705         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14706         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14707         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14708         * sysvipc/sys/ipc.h: Likewise.
14709         * sysvipc/sys/msg.h: Likewise.
14710         * sysvipc/sys/sem.h: Likewise.
14711         * sysvipc/sys/shm.h: Likewise.
14712         * termios/termios.h: Likewise.
14713         * time/sys/time.h: Likewise.
14714         * time/time.h: Likewise.
14715         * wcsmbs/bits/wchar2.h: Likewise.
14716         * wcsmbs/uchar.h: Likewise.
14717         * wcsmbs/wchar.h: Likewise.
14718         * wctype/wctype.h: Likewise.
14719
14720         [BZ #13551]
14721         * Makeconfig: Remove all but ELF support including AIX support.
14722         * Makerules: Likewise.
14723         * config.h.in: Likewise.
14724         * config.make.in: Likewise.
14725         * configure: Likewise.
14726         * configure.in: Likewise.
14727         * csu/Makefile: Likewise.
14728         * csu/version.c: Likewise.
14729         * debug/Makefile: Likewise.
14730         * dlfcn/Makefile: Likewise.
14731         * elf/Makefile: Likewise.
14732         * extra-lib.mk: Likewise.
14733         * iconv/Makefile: Likewise.
14734         * include/libc-symbols.h: Likewise.
14735         * include/shlib-compat.h: Likewise.
14736         * resolv/Makefile: Likewise.
14737         * resolv/res_libc.c: Likewise.
14738         * rt/Makefile: Likewise.
14739         * sysdeps/i386/asm-syntax.h: Likewise.
14740         * sysdeps/i386/sysdep.h: Likewise.
14741         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14742         * sysdeps/mach/sysdep.h: Likewise.
14743         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14744         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14745         * sysdeps/s390/asm-syntax.h: Likewise.
14746         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14747         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14748         * sysdeps/sh/sysdep.h: Likewise.
14749         * sysdeps/unix/sparc/sysdep.h: Likewise.
14750         * sysdeps/wordsize-32/divdi3.c: Likewise.
14751         * sysdeps/x86_64/sysdep.h: Likewise.
14752
14753         * argp/Versions: Remove _argp_unlock_xxx.
14754
14755         [BZ #13559]
14756         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14757         * abilist/libBrokenLocale.abilist: Likewise.
14758         * abilist/libanl.abilist: Likewise.
14759         * abilist/libc.abilist: Likewise.
14760         * abilist/libcrypt.abilist: Likewise.
14761         * abilist/libdl.abilist: Likewise.
14762         * abilist/libm.abilist: Likewise.
14763         * abilist/libnsl.abilist: Likewise.
14764         * abilist/libpthread.abilist: Likewise.
14765         * abilist/libresolv.abilist: Likewise.
14766         * abilist/librt.abilist: Likewise.
14767         * abilist/libthread_db.abilist: Likewise.
14768         * abilist/libutil.abilist: Likewise.
14769         * abilist/libnss_db.abilist: New file.
14770
14771         * scripts/abilist.awk: Add support for indirect functions.
14772
14773         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14774
14775         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14776
14777         * shlib-versions: Remove entries for ports architectures.
14778
14779         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14780         files in ports.
14781         * elf/stackguard-macros.h: Remove support for IA-64.
14782         * elf/tst-auditmod1.c: Likewise.
14783         * sysdeps/generic/ldsodefs.h: Likewise.
14784
14785         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14786         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14787         configure files.
14788
14789         [BZ #13552]
14790         * configure.in: Remove --enable-omitfp support.
14791         * FAQ.in: Adjust.
14792         * config.make.in: Likewise.
14793         * Makeconfig: Likewise.
14794         * manual/install.texi: Likewise.
14795
14796         In case anyone cares, the IA-64 architecture could move to ports.
14797         * sysdeps/ia64/*: Removed.
14798         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14799         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14800
14801         [BZ #13555]
14802         * configure.in: Remove entries for unsupported architectures.
14803
14804         [BZ #13533]
14805         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14806         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14807         routines.
14808         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14809         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14810         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14811         fall back to using wcrtomb.
14812         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14813         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14814         renaming.
14815         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14816         * wcsmbs/tst-c16c32-1.c: New file.
14817
14818         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14819         local variable.
14820
14821         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14822
14823         * elf/tst-unique3.cc: Add explicit declaration of gets.
14824         * elf/tst-unique3lib.cc: Likewise.
14825         * elf/tst-unique3lib2.cc: Likewise.
14826         * elf/tst-unique4.cc: Likewise.
14827
14828         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14829
14830 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14831
14832         [BZ #13566]
14833         * assert/assert.h (static_assert): Don't define for C++.
14834         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14835         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14836
14837 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14838
14839         * iconv/loop.c (single loop): Fix assertion in storing of
14840         remaining bytes.
14841
14842         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14843
14844 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14845
14846         * posix/getconf.c: Update copyright year.
14847         * nss/getent.c: Likewise.
14848         * nss/makedb.c: Likewise.
14849         * iconv/iconvconfig.c: Likewise.
14850         * iconv/iconv_prog.c: Likewise.
14851         * elf/ldconfig.c: Likewise.
14852         * elf/pldd.c: Likewise.
14853         * elf/sotruss.ksh: Likewise.
14854         * catgets/gencat.c: Likewise.
14855         * csu/version.c: Likewise.
14856         * elf/ldd.bash.in: Likewise.
14857         * elf/sprof.c (print_version): Likewise.
14858         * locale/programs/locale.c: Likewise.
14859         * locale/programs/localedef.c: Likewise.
14860         * login/programs/pt_chown.c: Likewise.
14861         * nscd/nscd.c (print_version): Likewise.
14862         * debug/xtrace.sh: Likewise.
14863         * malloc/memusage.sh: Likewise.
14864         * malloc/mtrace.pl: Likewise.
14865         * debug/catchsegv.sh: Likewise.
14866
14867 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14868
14869         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14870         pure attribute.
14871
14872 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14873
14874         [BZ #13533]
14875         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14876         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14877         transformations.
14878         * iconv/gconv_int.h: Likewise.
14879         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14880         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14881         from libc for GLIBC_2.16.
14882         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14883         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14884         * wcsmbs/uchar.h: Really define mbstate_t.
14885         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14886         * wcsmbs/c16rtomb.c: New file.
14887         * wcsmbs/mbrtoc16.c: New file.
14888         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14889         for C/POSIX locale.
14890         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14891         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14892
14893         * wcsmbs/wchar.h: Add missing __restrict.
14894
14895 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14896
14897         [BZ #13532]
14898         * time/Makefile (routines): Add timespec_get.
14899         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14900         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14901         timespec for ISO C11.
14902         * time/timespec_get.c: New file.
14903         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14904         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14905
14906         [BZ #13531]
14907         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14908         * stdlib/stdlib.h: Declare aligned_alloc.
14909         * Versions.def: Add GLIBC_2.16 for libc.
14910         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14911
14912         [BZ 13527]
14913         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14914         ISO C11.
14915
14916         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14917         code.
14918
14919         [BZ #13528]
14920         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14921
14922         [BZ #13529]
14923         * assert/assert.h (static_assert): Define.
14924
14925         * version.h: Update for 2.16 development version.
14926
14927         [BZ #13526]
14928         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14929         _ISOC11_SOURCE.
14930
14931         * version.h (RELEASE): Bump for 2.15 release.
14932         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14933
14934         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14935         Patch by Marek Polacek <mpolacek@redhat.com>.
14936
14937         * bits/byteswap.h: Protect long long constants with __extension__.
14938         * sysdeps/i386/bits/byteswap.h: Likewise.
14939         * sysdeps/ia64/bits/byteswap.h: Likewise.
14940         * sysdeps/s390/bits/byteswap.h: Likewise.
14941         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14942
14943 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14944
14945         [BZ #13540]
14946         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14947         destination buffer.
14948         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14949
14950 2011-12-23  Marek Polacek  <polacek@redhat.com>
14951
14952         * elf/dl-addr.c (determine_info): Add inline keyword.
14953         * elf/tst-auditmod4b.c (check_avx): Likewise.
14954         * elf/tst-auditmod6b.c (check_avx): Likewise.
14955         * elf/tst-auditmod6c.c (check_avx): Likewise.
14956         * elf/tst-auditmod7b.c (check_avx): Likewise.
14957
14958 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14959
14960         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14961         !__SSE_MATH__.
14962
14963 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14964
14965         [BZ #13540]
14966         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14967         processing for last bytes.
14968
14969 2011-08-06  Bruno Haible  <bruno@clisp.org>
14970
14971         [BZ #13061]
14972         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14973         U+0385, not to U+1FEE.
14974
14975         [BZ #13062]
14976         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14977         entry for U+00A5 U+0301.
14978
14979 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14980
14981         [BZ #13166]
14982         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14983         buffer for the output is too small.
14984
14985         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14986         optimization.
14987
14988         [BZ #13185]
14989         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14990         SSE flags if possible.
14991
14992 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14993
14994         [BZ #13540]
14995         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14996         processing for last bytes.
14997
14998 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14999
15000         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15001         (syscall-list-default-options, syscall-list-default-condition)
15002         (syscall-list-includes): Define.
15003         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15004         list of ABIs and options and #if conditions for each ABI.  Do not
15005         handle common syscalls between ABIs specially.
15006         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15007         Remove.
15008         (syscall-list-variants, syscall-list-32bit-options)
15009         (syscall-list-32bit-condition, syscall-list-64bit-options)
15010         (syscall-list-64bit-condition): Define.
15011         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15012         (syscall-list-variants, syscall-list-32bit-options)
15013         (syscall-list-32bit-condition, syscall-list-64bit-options)
15014         (syscall-list-64bit-condition): Define.
15015         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15016         Remove.
15017         (syscall-list-variants, syscall-list-32bit-options)
15018         (syscall-list-32bit-condition, syscall-list-64bit-options)
15019         (syscall-list-64bit-condition): Define.
15020         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15021         Remove.
15022         (syscall-list-variants, syscall-list-32bit-options)
15023         (syscall-list-32bit-condition, syscall-list-64bit-options)
15024         (syscall-list-64bit-condition): Define.
15025
15026 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15027
15028         * locale/iso-639.def: Add brx entry.
15029
15030         [BZ #13328]
15031         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15032         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15033
15034         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15035         __feraiseexcept_renamed.
15036
15037 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15038
15039         [BZ #13538]
15040         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15041         EPOLLET with unsigned values.
15042         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15043         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15044
15045         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15046         to large cancellation.
15047         * math/s_cacoshf.c: Likewise.
15048         * math/s_cacoshl.c: Likewise.
15049
15050 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15051
15052         [BZ #13305]
15053         [BZ #12786]
15054         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15055         * math/s_cacoshf.c: Likewise.
15056         * math/s_cacoshl.c: Likewise.
15057
15058 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15059
15060         [BZ #13439]
15061         * iconv/gconv.h: Define __GCONV_SWAP.
15062         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15063         * iconvdata/utf-16.c: Likewise.
15064         * iconvdata/utf-32.c: Likewise.
15065
15066 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15067
15068         [BZ #13524]
15069         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15070         numerator after shifting it by one limb.
15071
15072 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15073
15074         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15075         under [__USE_EXTERN_INLINES].
15076
15077 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15078
15079         [BZ #13446]
15080         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15081
15082 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15083
15084         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15085         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15086         optimized code.
15087         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15088         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15089         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15090         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15091         for strncasecmp/strncasecmp_l compilation.
15092         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15093         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15094
15095 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15096
15097         [BZ #13484]
15098         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15099         of __asm__.
15100
15101 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15102
15103         [BZ #13506]
15104         * time/tzfile.c (__tzfile_read): Check values from file header.
15105
15106 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15107
15108         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15109         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15110         * powerpc/powerpc32/dl-start.S: Likewise.
15111         * powerpc/powerpc32/elf/start.S: Likewise.
15112         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15113         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15114         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15115         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15116         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15117         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15118         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15119         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15120         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15121         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15122         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15123         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15124         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15125         * powerpc/powerpc32/memset.S: Likewise.
15126         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15127         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15128         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15129         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15130         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15131         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15132         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15133         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15134         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15135         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15136         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15137         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15138         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15139
15140 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15141
15142         * math/libm-test.inc: Added more nearbyint tests.
15143         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15144         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15145         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15146         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15147
15148 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15149
15150         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15151         FD_CLOEXEC.
15152
15153 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15154
15155         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15156         Add wcscpy-ssse3 wcscpy-c.
15157         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15158         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15159         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15160         * sysdeps/x86_64/wcschr.S: New file.
15161         * sysdeps/x86_64/wcsrchr.S: New file.
15162         * string/test-strcmp.c: Remove checking of wcscmp function for
15163         wrong alignments.
15164         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15165         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15166         wcsrchr-sse2 wcsrchr-c.
15167         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15168         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15169         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15170         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15171         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15172         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15173         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15174         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15175         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15176         * wcsmbc/wcschr.c (WCSCHR): New macro.
15177
15178 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15179
15180         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15181         * wcsmbs/test-wcsrchr.c: New file.
15182         * string/test-strrchr.c: Add wcsrchr support.
15183         (WIDE): New macro.
15184         * wcsmbs/test-wcscpy.c: New file.
15185         * string/test-strcpy.c: Add wcscpy support.
15186         (WIDE): New macro.
15187
15188 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15189
15190         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15191         the inner loop.
15192
15193 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15194
15195         [BZ #13472]
15196         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15197
15198 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15199
15200         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15201         Minor optimizations.
15202
15203         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15204         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15205         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15206
15207 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15208
15209         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15210         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15211         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15212         for gcc to avoid warnings.
15213         * inet/Makefile (tests): Add tst-checks.
15214         * inet/tst-checks.c: New file.
15215
15216         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15217         warning.
15218
15219         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15220         __wmemcmp_sse2.
15221
15222         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15223         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15224
15225         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15226
15227 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15228
15229         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15230         problem.
15231
15232         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15233
15234 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15235
15236         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15237         conditional on GCC version.
15238         (__arch_compare_and_exchange_val_8_acq)
15239         (__arch_compare_and_exchange_val_16_acq)
15240         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15241         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15242         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15243
15244 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15245
15246         * sysdeps/sh/backtrace.c: New file.
15247
15248 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15249
15250         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15251         parenthesis.
15252
15253 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15254
15255         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15256         falling back to utime.
15257
15258 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15259
15260         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15261         expectations for float.
15262
15263 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15264
15265         * locale/weight.h (findidx): Add parameter len.
15266         * locale/weightwc.h (findidx): Likewise.
15267         * posix/fnmatch_loop.c (FCT): Adjust caller.
15268         * posix/regcomp.c (build_equiv_class): Likewise.
15269         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15270         * posix/regexec.c (check_node_accept_bytes): Likewise.
15271         * string/strcoll_l.c (STRCOLL): Likewise.
15272         * string/strxfrm_l.c (STRXFRM): Likewise.
15273
15274 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
15275
15276         * Makefile.in: Remove CVSOPT handling.
15277         * configure.in: Remove use of AC_REVISION.
15278         * iconvdata/Makefile (distribute): No need to filter out CVS.
15279         * scripts/list-sources.sh: Remove CVS, subversion and monotone
15280         handling.
15281
15282 2011-11-16  Andreas Schwab  <schwab@redhat.com>
15283
15284         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
15285         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
15286         [USE_AS_STRNCASECMP_L]: Likewise.
15287         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
15288         NO_TLS_DIRECT_SEG_REFS.
15289         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
15290         Fix argument offsets for non-PIC.
15291         [USE_AS_STRNCASECMP_L]: Likewise.
15292         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
15293         NO_TLS_DIRECT_SEG_REFS.
15294
15295 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15296
15297         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
15298         O_CLOEXEC.
15299         * locale/loadlocale.c (_nl_load_locale): Likewise.
15300
15301 2011-11-15  Andreas Schwab  <schwab@redhat.com>
15302
15303         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
15304         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
15305         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
15306         (SYSCALL_GETTIME): Set errno on error.
15307
15308         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
15309         count references to noai6ai_cached.
15310
15311 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15312
15313         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
15314
15315         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
15316         FD_CLOEXEC for /proc/self/maps.
15317
15318         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
15319         FD_CLOEXEC for /proc/meminfo.
15320
15321         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
15322         gai.conf.
15323
15324         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
15325         FD_CLOEXEC for given file.
15326
15327         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
15328
15329         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
15330         FD_CLOEXEC for /etc/hosts.
15331         (_gethtent): Likewise.
15332
15333         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
15334
15335         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
15336         cancellation and set FD_CLOEXEC for /etc/netgroup.
15337
15338         * nss/nss_files/files-key.c (search): Don't allow cancellation when
15339         reading /etc/publickey.
15340
15341         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
15342         allow cancellation when reading /etc/group.
15343
15344         * nss/nss_files/files-alias.c (internal_setent): Don't allow
15345         cancellation.
15346         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
15347
15348         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
15349         when using data file.
15350
15351         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
15352
15353         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
15354         (write_nis_obj): Use "c" and "e" in fopen.
15355
15356         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
15357
15358         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
15359
15360         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
15361
15362         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
15363
15364         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
15365         locale.alias.
15366
15367         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
15368
15369         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
15370
15371         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
15372
15373         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
15374         file parsing and set FD_CLOEXEC.
15375
15376 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15377
15378         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
15379
15380 2011-11-14  Andreas Schwab  <schwab@redhat.com>
15381
15382         * malloc/arena.c (arena_get2): Don't call reused_arena when
15383         _int_new_arena failed.
15384
15385 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15386
15387         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
15388         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
15389         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
15390         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15391         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15392         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
15393         to compile strcasecmp and strncasecmp.
15394         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
15395         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
15396
15397         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
15398
15399 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
15400
15401         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
15402         locale-defines.sym to gen-as-const-headers.
15403         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
15404         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
15405         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
15406         to compile strcasecmp and strncasecmp.
15407         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
15408         strcasecmp_l and strncasecmp_l.
15409         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
15410         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
15411         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
15412         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
15413         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
15414         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
15415         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
15416         * sysdeps/i386/i686/multiarch/strncase.S: New file.
15417         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
15418         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
15419         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
15420
15421 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
15422
15423         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
15424         result of SYSDEP_GETTIME_CPU to retval.
15425         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
15426         parameter list to macro.  Remove trailing semicolon.  Adjust users.
15427
15428         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
15429         variable.
15430
15431         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
15432         mantissa words.
15433         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15434
15435         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
15436         from unused variable.
15437
15438         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
15439         DWARF definitions.
15440         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
15441         for assembling.
15442
15443         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
15444         over namespaces.
15445
15446         * sunrpc/rpc_prot.c (rejected): Fix case value.
15447
15448         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
15449         unsigned long long int to avoid warnings in shift.
15450
15451         * posix/regex_internal.c (re_string_reconstruct): Actually use result
15452         of use of trans.
15453         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
15454         variable tmp.
15455
15456         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
15457         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
15458         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
15459
15460         * nis/nis_table.c (nis_list): Use variable of correct type for
15461         result of __follow_path call.
15462
15463 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15464
15465         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
15466         of math functions ceil, trunc, floor, round, and sqrt, when
15467         avaliable on the platform.
15468         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
15469         name clash.
15470         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15471         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15472         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15473
15474 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
15475
15476         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
15477         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
15478
15479 2011-11-11  Roland McGrath  <roland@hack.frob.com>
15480
15481         * include/unistd.h: Fix __readlink return type.
15482         Reported by Chris Metcalf <cmetcalf@tilera.com>.
15483
15484 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
15485
15486         * stdlib/ucontext.h: Undo last change for makecontext.
15487
15488 2011-11-11  Andreas Schwab  <schwab@redhat.com>
15489
15490         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
15491
15492         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
15493         * setjmp/setjmp.h: Mark functions as non-leaf.
15494         * setjmp/bits/setjmp2.h: Likewise.
15495         * stdlib/ucontext.h: Likewise.
15496
15497 2011-11-10  Andreas Schwab  <schwab@redhat.com>
15498
15499         * malloc/arena.c (_int_new_arena): Don't increment narenas.
15500         (reused_arena): Don't check arena limit.
15501         (arena_get2): Atomically check arena limit.
15502
15503 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
15504
15505         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
15506         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
15507
15508         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
15509         instructions.
15510
15511 2011-11-07  Andreas Schwab  <schwab@redhat.com>
15512
15513         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
15514         handler when locking.
15515
15516         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15517         Fix size of allocated buffer.
15518
15519 2011-11-04  Andreas Schwab  <schwab@redhat.com>
15520
15521         [BZ #10103]
15522         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
15523         declarations for long double functions.
15524         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
15525
15526         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
15527
15528 2011-11-03  Andreas Schwab  <schwab@redhat.com>
15529
15530         * nscd/nscd.c (main): Don't start AVC thread until credentials are
15531         installed.
15532
15533         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
15534         is disabled.
15535
15536 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15537
15538         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
15539
15540 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
15541
15542         * include/alloca.h (stackinfo_alloca_round): Define.
15543         (extend_alloca): Use it.
15544         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
15545         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
15546         here.
15547
15548         * scripts/check-local-headers.sh: Ignore libaudit.h.
15549
15550         * nscd/Makefile (extra-objs): Make recursively expanded.
15551
15552 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
15553
15554         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
15555         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
15556
15557         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
15558         * posix/tst-rfc3484-2.c: Likewise.
15559         * posix/tst-rfc3484-3.c: Likewise.
15560
15561         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
15562         process_vm_writev.
15563         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
15564         process_vm_writev.
15565         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
15566         process_vm_writev from libc using GLIBC_2.15 version.
15567
15568         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
15569
15570 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
15571
15572         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
15573         stack usage.
15574
15575 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
15576
15577         [BZ #13367]
15578         * nss/getent.c (initgroups_keys): Show error message in case no group
15579         names are given.
15580
15581         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
15582         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
15583         __bump_nl_timestamp.
15584         * nscd/connections (nscd_init): When host database is served open
15585         netlink socket and request notification about configuration changes.
15586         (main_loop_poll): Track netlink file descriptor and bump timestamp
15587         in case data becomes available.
15588         (main_loop_epoll): Likewise.
15589         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
15590         (database_pers_head): Add extra_data fileds.
15591         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
15592         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
15593         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
15594         Adjust caller.
15595         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
15596         in6ai data, call __free_in6ai.
15597         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
15598         Add -DHAVE_NETLINK.
15599         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
15600         interface information.  Reuse previous data if netlink timestamp
15601         is not changed.
15602         (__bump_nl_timestamp): New function.
15603         (__free_in6ai): New function.
15604
15605 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
15606
15607         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
15608         close_not_cancel_no_status here.
15609         (__check_pf): Reorganize code a bit to not call close twice if OOM.
15610
15611 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15612
15613         [BZ #13276]
15614         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
15615         return value.
15616
15617         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
15618         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
15619         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
15620
15621 2011-07-03  Andreas Jaeger  <aj@suse.de>
15622
15623         [BZ #10709]
15624         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
15625         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
15626         * math/libm-test.inc (sin_test): Add test case.
15627
15628 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15629
15630         [BZ #13337]
15631         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
15632         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15633
15634         * elf/chroot_canon.c (chroot_canon): Cleanups.
15635
15636         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
15637
15638         [BZ #13335]
15639         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
15640         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15641
15642         * string/test-strchr.c: Make usable for strchrnul testing.
15643         * string/test-strchrnul.c: New file.
15644         * string/Makefile (strop-tests): Add strchrnul.
15645
15646         * po/it.po: Update from translation team.
15647         * po/es.po: Likewise.
15648
15649 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
15650
15651         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
15652         the three constants needed as parameters.  Drop the others.
15653         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
15654         __m128i_strloadu_tolower.
15655         Create and initialize variable zero and use it in all the places
15656         where _mm_setzero_si128 was used.
15657
15658         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
15659         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15660         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15661         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15662         anymore.
15663         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15664         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15665         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15666         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15667         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15668         __mpranred, __mptan.
15669         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15670         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15671         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15672         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15673         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15674         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15675         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15676         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15677         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15678
15679 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15680
15681         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15682         redefine if SHARED.
15683         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15684
15685         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15686         wide char related routines to wcsmbs subdir.
15687
15688 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15689
15690         [BZ #13344]
15691         * misc/sys/cdefs.h (__THROWNL): Define.
15692         * posix/unistd.h: Use __THREADNL instead of __THREAD
15693         for memory synchronization functions.
15694
15695 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15696
15697         [BZ #13349]
15698         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15699         doesn't exist.
15700         * manual/stdio.texi (Obstack Streams): Node removed.
15701
15702 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15703
15704         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15705         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15706         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15707
15708         * math/math_private.h (math_force_eval): Allow non-addressable
15709         arguments.
15710         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15711
15712 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15713
15714         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15715         file is not needed.
15716
15717         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15718         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15719         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15720         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15721         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15722         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15723         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15724         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15725         Add AVX variants.
15726         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15727         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15728         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15729         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15730         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15731         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15732         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15733         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15734         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15735         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15736         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15737         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15738         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15739         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15740         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15741         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15742         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15743         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15744         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15745
15746         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15747         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15748
15749         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15750         place.  Use VEX encoding when compiling for AVX.
15751
15752 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15753
15754         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15755         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15756
15757         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15758
15759 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15760
15761         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15762         useless if() expression.
15763         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15764         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15765         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15766         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15767         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15768         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15769         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15770         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15771         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15772         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15773         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15774         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15775         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15776         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15777         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15778         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15779         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15780         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15781         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15782
15783         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15784
15785 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15786
15787         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15788         condition.
15789         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15790
15791 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15792
15793         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15794         .text section.  Avoid duplicate constants.
15795         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15796         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15797         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15798         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15799         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15800         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15801         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15802         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15803         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15804         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15805         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15806         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15807         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15808         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15809         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15810         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15811         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15812         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15813         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15814         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15815         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15816         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15817         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15818         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15819         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15820         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15821         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15822         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15823         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15824         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15825         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15826         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15827         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15828         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15829         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15830         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15831         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15832         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15833         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15834         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15835         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15836         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15837         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15838         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15839         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15840
15841 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15842
15843         * sysdeps/x86_64/dla.h: Move to ...
15844         * sysdeps/x86_64/fpu/dla.h: ...here.
15845         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15846         situations.  Use __builtin_fma only for gcc 4.6 and up.
15847
15848         * config.make.in: Add have-mfma4 entry.
15849         * configure.in: Substitute libc_cv_cc_fma4.
15850         * math/Makefile (dbl-only-routines): Add sincostab.
15851         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15852         Use __sincostab not sincos.
15853         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15854         name is a macro.
15855         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15856         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15857         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15858         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15859         using __copysign.
15860         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15861         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15862         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15863         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15864         and __inv.
15865         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15866         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15867         __copysign.
15868         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15869         define aliases when function name is a macro.
15870         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15871         sysdeps/ieee754/dbl-64/sincos.tbl.
15872         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15873         fma4-enabled routines.
15874         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15875         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15876         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15877         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15878         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15879         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15880         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15881         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15882         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15883         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15884         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15885         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15886         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15887         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15888         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15889         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15890         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15891         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15892         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15893         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15894         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15895         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15896         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15897         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15898         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15899         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15900         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15901         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15902         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15903         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15904
15905         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15906         rename.
15907         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15908         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15909         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15910         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15911         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15912         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15913         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15914         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15915
15916 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15917
15918         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15919
15920 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15921
15922         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15923
15924         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15925         prediction.
15926         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15927
15928         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15929         Remove unused variable magic_bits.
15930         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15931
15932         * string/strnlen.c: Define and use STRNLEN macro.
15933         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15934         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15935         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15936         * wcsmbs/wcslen.c: Define and use WCSLEN.
15937         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15938         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15939         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15940         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15941         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15942         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15943         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15944
15945 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15946
15947         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15948         strnlen-sse2-no-bsf.
15949         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15950         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15951         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15952         Add strnlen support.
15953         (USE_AS_STRNLEN): New macro.
15954         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15955         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15956         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15957         * sysdeps/x86_64/wcslen.S: New file.
15958
15959 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15960
15961         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15962         XMM-moves are used for copying on small sizes.
15963
15964 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15965
15966         * wcsmbs/Makefile (strop-tests): Add wcschr.
15967         * wcsmbs/test-wcschr.c: New file.
15968         * string/test-strchr.c: Update.
15969         Add wcschr support.
15970         (WIDE): New macro.
15971
15972 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15973
15974         * wcsmbs/Makefile (strop-tests): Add wcslen.
15975         * wcsmbs/test-wcslen.c: New file.
15976         * string/test-strlen.c: Update.
15977         Add wcslen support.
15978         (WIDE): New macro.
15979
15980 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15981
15982         * po/it.po: Update from translation team.
15983
15984 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15985
15986         * sysdeps/x86_64/wcscmp.S: Update.
15987         Fix wrong comparison semantics.
15988         wcscmp shall use signed comparison not unsigned.
15989         Don't use substraction to avoid overflow bug.
15990         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15991         * wcsmbc/wcscmp.c: Likewise.
15992         * string/test-strcmp.c: Likewise.
15993         Add new tests to check cases with negative values.
15994
15995 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15996
15997         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15998         * sysdeps/x86_64/dla.h: ...here.  New file.
15999         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16000         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16001         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16002         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16003         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16004         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16005         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16006         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16007         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16008
16009 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16010
16011         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16012         __ynl_finite aliases.
16013
16014 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16015
16016         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16017
16018         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16019         define DLA_FMA.
16020         [DLA_FMA] (EMULV): Use DLA_FMA.
16021         [DLA_FMA] (MUL12): Use EMULV.
16022         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16023         that are not needed.
16024         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16025         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16026         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16027         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16028         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16029         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16030         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16031
16032 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16033
16034         * math/s_nan.c: Undef __nan.
16035         * math/s_nanf.c: Undef __nanf.
16036         * math/s_nanl.c: Undef __nanl.
16037         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16038         "math_private.h".
16039
16040 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16041
16042         * math/s_catan.c: Add branch predictions.
16043         * math/s_catanf.c: Likewise.
16044         * math/s_catanh.c: Likewise.
16045         * math/s_catanhf.c: Likewise.
16046         * math/s_catanhl.c: Likewise.
16047         * math/s_catanl.c: Likewise.
16048         * math/s_cexp.c: Likewise.
16049         * math/s_cexpf.c: Likewise.
16050         * math/s_cexpl.c: Likewise.
16051         * math/s_clog.c: Likewise.
16052         * math/s_clog10.c: Likewise.
16053         * math/s_clog10f.c: Likewise.
16054         * math/s_clog10l.c: Likewise.
16055         * math/s_clogf.c: Likewise.
16056         * math/s_clogl.c: Likewise.
16057         * math/s_csqrt.c: Likewise.
16058         * math/s_csqrtf.c: Likewise.
16059         * math/s_csqrtl.c: Likewise.
16060         * math/s_ctanf.c: Likewise.
16061         * math/s_ctanh.c: Likewise.
16062         * math/s_ctanhf.c: Likewise.
16063         * math/s_ctanhl.c: Likewise.
16064         * math/s_ctanl.c: Likewise.
16065
16066         * math/math_private.h: Define __nan, __nanf, __nanl.
16067         * math/s_cacosh.c: Include <math_private.h>.
16068         * math/s_cacoshl.c: Likewise.
16069         * math/s_casinh.c: Likewise.
16070         * math/s_casinhf.c: Likewise.
16071         * math/s_casinhl.c: Likewise.
16072         * math/s_ccos.c: Rely entire on ccosh.
16073         * math/s_ccosf.c: Rely entire on ccoshf.
16074         * math/s_ccosl.c: Rely entirely on ccoshl.
16075         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16076         Remove tests for FE_INVALID.
16077         * math/s_ccoshf.c: Likewise.
16078         * math/s_ccoshl.c: Likewise.
16079         * math/s_csin.c: Likewise.
16080         * math/s_csinf.c: Likewise.
16081         * math/s_csinh.c Likewise.
16082         * math/s_csinhf.c: Likewise.
16083         * math/s_csinhl.c: Likewise.
16084         * math/s_csinl.c: Likewise.
16085         * math/s_ctan.c: Likewise.
16086         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16087         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16088         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16089
16090 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16091
16092         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16093         compilation problems.
16094
16095         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16096         __builtin_expect.
16097
16098 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16099
16100         * sysdeps/i386/configure.in: Test for -mfma4 option.
16101         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16102         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16103         COMMON_CPUID_INDEX_80000001.
16104         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16105         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16106         use it if FMA3 is not supported.
16107         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16108
16109         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16110         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16111
16112 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16113
16114         [BZ #12892]
16115         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16116         it would create a cycle with a link time dependency.
16117
16118 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16119
16120         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16121         instruction.
16122         * string/Makefile (strop-tests): Add rawmemchr.
16123         * string/test-rawmemchr.c: New file.
16124
16125         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16126         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16127         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16128         when compiling str{,n}casecmp and when AVX is available.  Hook up
16129         new optimized code in initializers.
16130
16131 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16132
16133         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16134         __feraiseexcept instead of feraiseexcept.
16135
16136 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16137
16138         * math/math_private.h: Define defaults for libc_fetestexcept and
16139         libc_feupdateenv.
16140         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16141         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16142         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16143         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16144         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16145         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16146         libc_fetestexcept and libc_feupdateenv.
16147
16148         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16149         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16150         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16151         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16152         libc_feholdexcept_setround.
16153
16154         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16155         Add s_nearbyint-c and s_nearbyintf-c.
16156         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16157         nearbyintf inlines.
16158         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16159         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16160         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16161         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16162
16163         * math/math_private.h: Define defaults for libc_fegetround,
16164         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16165         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16166         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16167         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16168         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16169         standard functions.
16170         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16171         Remove comments and hacks for old compiler versions.
16172         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16173         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16174         libc_feholdexceptl.
16175
16176 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16177
16178         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16179         (__feraiseexcept_renamed): Add __NTH.
16180         (feraiseexcept): Add __NTH.  Rename local variables to fix
16181         namespace violations.
16182
16183 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16184
16185         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16186
16187         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16188
16189         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16190         recently added interfaces.
16191         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16192
16193         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16194         about macro parameter expansion.
16195
16196         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16197         __NO_MATH_INLINES is defined.  Cleanups.
16198
16199         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16200         and __floorf is target has SSE4.1.
16201         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16202         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16203         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16204         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16205
16206         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16207         name.
16208         (floorf): Likewise.
16209
16210         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16211
16212 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16213
16214         * misc/sys/cdefs.h: Fix last change.
16215
16216         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16217         database lookup.
16218
16219 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16220
16221         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16222
16223         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16224         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16225         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16226         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16227         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16228         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16229         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16230         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16231         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16232         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16233         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16234         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16235         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16236         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16237         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16238         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16239         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16240         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16241         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16242         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16243         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16244         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16245
16246         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16247         ceil, ceilf, floor, floorf.
16248
16249         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16250         Perform IRELATIVE relocations last.
16251
16252         * elf/do-rel.h: Add another parameter nrelative, replacing the
16253         local variable with the same name.  Change name of the function
16254         to end in Rel or Rela (uppercase).
16255         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16256         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16257         elf_dynamic_do_##reloc function.
16258
16259 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16260
16261         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16262         is sufficient, at least on modern CPUs.
16263
16264         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16265
16266         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16267         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16268
16269         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16270         __expl_finite.
16271         * math/bits/math-finite.h: Add entries for exp.
16272         * math/e_expl.c: Add __*_finite alias.
16273         * sysdeps/i386/fpu/e_exp.S: Likewise.
16274         * sysdeps/i386/fpu/e_expf.S: Likewise.
16275         * sysdeps/i386/fpu/e_expl.c: Likewise.
16276         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16277         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16278         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16279         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16280         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
16281         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16282         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16283
16284         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
16285         is sufficient, at least on modern CPUs.
16286
16287         * ctype/ctype-info.c (__ctype_init): Define.
16288         * include/ctype.h (__ctype_init): Declare.
16289         (__ctype_b_loc): The variable is always initialized.
16290         (__ctype_toupper_loc): Likewise.
16291         (__ctype_tolower_loc): Likewise.
16292         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
16293         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
16294
16295 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
16296
16297         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
16298
16299         * configure.in: Also look in $cxxmachine/include for C++ system
16300         headers.
16301
16302 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16303
16304         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
16305         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
16306         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
16307         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
16308         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
16309         (USE_AS_WMEMCMP): New macro.
16310         Fixing indents.
16311         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
16312         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
16313         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
16314         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
16315         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16316         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
16317         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
16318         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
16319         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
16320         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
16321         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
16322         (USE_AS_WMEMCMP): New macro.
16323         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
16324         * sysdeps/string/test-memcmp.c: Update.
16325         Fix simple_wmemcmp.
16326         Add new tests.
16327         * wcsmbs/wmemcmp.c: Update.
16328         (WMEMCMP): New macro.
16329         Fix overflow bug.
16330
16331 2011-10-12  Andreas Jaeger  <aj@suse.de>
16332
16333         [BZ #13268]
16334         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
16335
16336 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16337
16338         * libio/iofwide.c (do_length): Avoid warning.
16339
16340         * ctype/ctype.h (__isctype_f): Add missing __THROW.
16341
16342 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
16343
16344         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
16345
16346         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
16347         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
16348         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
16349         * sysdeps/i386/i686/fpu/e_log.S: New file.
16350         * sysdeps/i386/i686/fpu/e_logf.S: New file.
16351         * sysdeps/i386/i686/fpu/e_logl.S: New file.
16352
16353         * ctype/ctype.h: Add support for inlined isXXX functions when
16354         compiling C++ code.
16355
16356 2011-10-14  Andreas Schwab  <schwab@redhat.com>
16357
16358         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16359
16360         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
16361
16362 2011-10-13  Roland McGrath  <roland@hack.frob.com>
16363
16364         [BZ #13291]
16365         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
16366
16367 2011-10-13  Andreas Schwab  <schwab@redhat.com>
16368
16369         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
16370         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
16371         feraiseexcept.
16372
16373         * sysdeps/x86_64/memrchr.S: Check for zero size.
16374
16375         * string/stratcliff.c: Add memrchr tests.
16376
16377 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16378
16379         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16380         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
16381         rawmemchr-sse2 rawmemchr-sse2-bsf.
16382         * sysdeps/i386/i686/multiarch/memchr.S: New file.
16383         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
16384         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
16385         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
16386         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
16387         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
16388         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
16389         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
16390         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
16391         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
16392         * string/memrchr.c (MEMRCHR): New macro.
16393
16394 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
16395
16396         Add integration with gcc's -ffinite-math-only and optimize wrapper
16397         functions in libm.
16398         * Versions.def: Define GLIBC_2.15 version for libm.
16399         * math/Makefile (headers): Add bits/math-finite.h.
16400         * math/bits/math-finite.h: New file.
16401         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
16402         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
16403         * math/e_acoshl.c: Add __*_finite alias.
16404         * math/e_acosl.c: Likewise.
16405         * math/e_asinl.c: Likewise.
16406         * math/e_atan2l.c: Likewise.
16407         * math/e_atanhl.c: Likewise.
16408         * math/e_coshl.c: Likewise.
16409         * math/e_exp10.c: Likewise.
16410         * math/e_exp10f.c: Likewise.
16411         * math/e_exp10l.c: Likewise.
16412         * math/e_exp2l.c: Likewise.
16413         * math/e_fmodl.c: Likewise.
16414         * math/e_gammal_r.c: Likewise.
16415         * math/e_hypotl.c: Likewise.
16416         * math/e_j0l.c: Likewise.
16417         * math/e_j1l.c: Likewise.
16418         * math/e_jnl.c: Likewise.
16419         * math/e_lgammal_r.c: Likewise.
16420         * math/e_log10l.c: Likewise.
16421         * math/e_log2l.c: Likewise.
16422         * math/e_logl.c: Likewise.
16423         * math/e_powl.c: Likewise.
16424         * math/e_sinhl.c: Likewise.
16425         * math/e_sqrtl.c: Likewise.
16426         * math/e_scalb.c: Completely rewritten and optimized.
16427         * math/e_scalbf.c: Likewise.
16428         * math/e_scalbl.c: Likewise.
16429         * math/w_acos.c: Likewise.
16430         * math/w_acosf.c: Likewise.
16431         * math/w_acosl.c: Likewise.
16432         * math/w_acosh.c: Likewise.
16433         * math/w_acoshf.c: Likewise.
16434         * math/w_acoshl.c: Likewise.
16435         * math/w_asin.c: Likewise.
16436         * math/w_asinf.c: Likewise.
16437         * math/w_asinl.c: Likewise.
16438         * math/w_atan2.c: Likewise.
16439         * math/w_atan2f.c: Likewise.
16440         * math/w_atan2l.c: Likewise.
16441         * math/w_atanh.c: Likewise.
16442         * math/w_atanhf.c: Likewise.
16443         * math/w_atanhl.c: Likewise.
16444         * math/w_exp10.c: Likewise.
16445         * math/w_exp10f.c: Likewise.
16446         * math/w_exp10l.c: Likewise.
16447         * math/w_fmod.c: Likewise.
16448         * math/w_fmodf.c: Likewise.
16449         * math/w_fmodl.c: Likewise.
16450         * math/w_j0.c: Likewise.
16451         * math/w_j0f.c: Likewise.
16452         * math/w_j0l.c: Likewise.
16453         * math/w_j1.c: Likewise.
16454         * math/w_j1f.c: Likewise.
16455         * math/w_j1l.c: Likewise.
16456         * math/w_jn.c: Likewise.
16457         * math/w_jnf.c: Likewise.
16458         * math/w_log.c: Likewise.
16459         * math/w_logf.c: Likewise.
16460         * math/w_logl.c: Likewise.
16461         * math/w_log10.c: Likewise.
16462         * math/w_log10f.c: Likewise.
16463         * math/w_log10l.c: Likewise.
16464         * math/w_log2.c: Likewise.
16465         * math/w_log2f.c: Likewise.
16466         * math/w_log2l.c: Likewise.
16467         * math/w_pow.c: Likewise.
16468         * math/w_powf.c: Likewise.
16469         * math/w_powl.c: Likewise.
16470         * math/w_remainder.c: Likewise.
16471         * math/w_remainderf.c: Likewise.
16472         * math/w_remainderl.c: Likewise.
16473         * math/w_scalb.c: Likewise.
16474         * math/w_scalbf.c: Likewise.
16475         * math/w_scalbl.c: Likewise.
16476         * math/w_sqrt.c: Likewise.
16477         * math/w_sqrtf.c: Likewise.
16478         * math/w_sqrtl.c: Likewise.
16479         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
16480         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
16481         used.
16482         * math/math_private.h: Declare __kernel_standard_f.
16483         * math/w_cosh.c: Remove cruft and optimize a bit.
16484         * math/w_coshf.c: Likewise.
16485         * math/w_coshl.c: Likewise.
16486         * math/w_exp2.c: Likewise.
16487         * math/w_exp2f.c: Likewise.
16488         * math/w_exp2l.c: Likewise.
16489         * math/w_hypot.c: Likewise.
16490         * math/w_hypotf.c: Likewise.
16491         * math/w_hypotl.c: Likewise.
16492         * math/w_lgamma.c: Likewise.
16493         * math/w_lgamma_r.c: Likewise.
16494         * math/w_lgammaf.c: Likewise.
16495         * math/w_lgammaf_r.c: Likewise.
16496         * math/w_lgammal.c: Likewise.
16497         * math/w_lgammal_r.c: Likewise.
16498         * math/w_sinh.c: Likewise.
16499         * math/w_sinhf.c: Likewise.
16500         * math/w_sinhl.c: Likewise.
16501         * math/w_tgamma.c: Likewise.
16502         * math/w_tgammaf.c: Likewise.
16503         * math/w_tgammal.c: Likewise.
16504         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16505         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16506         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
16507         Minor optimizations.  Pretty printing.  Remove cruft.
16508         * sysdeps/i386/fpu/e_acosf.S: Likewise.
16509         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16510         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16511         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16512         * sysdeps/i386/fpu/e_acosl.c: Likewise.
16513         * sysdeps/i386/fpu/e_asin.S: Likewise.
16514         * sysdeps/i386/fpu/e_asinf.S: Likewise.
16515         * sysdeps/i386/fpu/e_atan2.S: Likewise.
16516         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
16517         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
16518         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16519         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16520         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16521         * sysdeps/i386/fpu/e_exp10.S: Likewise.
16522         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
16523         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
16524         * sysdeps/i386/fpu/e_exp2.S: Likewise.
16525         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
16526         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
16527         * sysdeps/i386/fpu/e_fmod.S: Likewise.
16528         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
16529         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
16530         * sysdeps/i386/fpu/e_hypot.S: Likewise.
16531         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
16532         * sysdeps/i386/fpu/e_log.S: Likewise.
16533         * sysdeps/i386/fpu/e_log10.S: Likewise.
16534         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16535         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16536         * sysdeps/i386/fpu/e_log2.S: Likewise.
16537         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16538         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16539         * sysdeps/i386/fpu/e_logf.S: Likewise.
16540         * sysdeps/i386/fpu/e_logl.S: Likewise.
16541         * sysdeps/i386/fpu/e_pow.S: Likewise.
16542         * sysdeps/i386/fpu/e_powf.S: Likewise.
16543         * sysdeps/i386/fpu/e_powl.S: Likewise.
16544         * sysdeps/i386/fpu/e_remainder.S: Likewise.
16545         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
16546         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
16547         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16548         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16549         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16550         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
16551         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
16552         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
16553         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
16554         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16555         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16556         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16557         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16558         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
16559         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16560         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16561         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16562         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16563         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16564         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16565         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16566         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
16567         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
16568         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16569         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16570         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16571         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16572         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16573         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16574         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16575         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16576         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16577         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16578         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16579         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16580         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16581         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16582         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16583         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16584         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16585         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16586         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16587         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16588         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16589         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16590         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16591         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16592         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16593         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16594         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16595         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16596         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16597         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16598         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16599         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16600         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16601         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16602         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16603         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16604         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16605         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16606         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16607         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16608         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16609         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16610         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16611         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16612         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16613         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16614         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16615         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16616         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16617         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16618         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16619         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16620         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16621         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
16622         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16623         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16624         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16625         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16626         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16627         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16628         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16629         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
16630         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16631         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16632         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16633         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16634         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16635         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
16636         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16637         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16638         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16639         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16640         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16641         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16642         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16643         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16644         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16645         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16646         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
16647         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16648         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16649         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16650         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
16651         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
16652         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
16653         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
16654         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
16655         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
16656         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
16657         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16658         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16659         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16660         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16661         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16662         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16663         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16664         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16665         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16666         (__isnanf): Likewise.
16667         (__isinf_ns): Likewise.
16668         (__isinf_nsf): Likewise.
16669         (__finite): Likewise.
16670         (__finitef): Likewise.
16671         (__ieee754_sqrt): Define as macro.
16672         (__ieee754_sqrtf): Define as macro.
16673         (__ieee754_sqrtl): Define as macro.
16674         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16675         inlined copy.
16676         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16677         __FINITE_MATH_ONLY__ consistent.
16678         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16679
16680 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16681
16682         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16683         of rawmemchr.
16684
16685         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16686
16687 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16688
16689         * po/ja.po: Update from translation team.
16690
16691 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16692
16693         * locale/programs/locarchive.c (prepare_address_space): New function.
16694         (create_archive, enlarge_archive, open_archive): Use it.
16695
16696         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16697         inside [SHARED], where it is used.
16698
16699         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16700
16701         * nss/getent.c (netgroup_keys): Remove unused variable.
16702         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16703
16704 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16705
16706         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16707         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16708         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16709         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16710         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16711         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16712         * math/Makefile (libm-calls): Add s_isinf_ns.
16713         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16714         * math/multc3.c: Likewise.
16715         * math/s_casin.c: Likewise.
16716         * math/s_casinf.c: Likewise.
16717         * math/s_casinl.c: Likewise.
16718         * math/s_ccos.c: Likewise.
16719         * math/s_ccosf.c: Likewise.
16720         * math/s_ccosl.c: Likewise.
16721         * math/s_ctan.c: Likewise.
16722         * math/s_ctanf.c: Likewise.
16723         * math/s_ctanh.c: Likewise.
16724         * math/s_ctanhf.c: Likewise.
16725         * math/s_ctanhl.c: Likewise.
16726         * math/s_ctanl.c: Likewise.
16727         * math/w_fmod.c: Likewise.
16728         * math/w_fmodf.c: Likewise.
16729         * math/w_fmodl.c: Likewise.
16730         * math/w_remainder.c: Likewise.
16731         * math/w_remainderf.c: Likewise.
16732         * math/w_remainderl.c: Likewise.
16733         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16734         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16735         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16736         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16737         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16738         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16739         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16740         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16741
16742         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16743         of the number.
16744         * stdio-common/printf_fphex.c: Likewise.
16745         * stdio-common/printf_size.c: Likewise.
16746
16747         * math/e_exp10.c: Include math_private.h using <...> not "...".
16748         * math/e_exp10f.c: Likewise.
16749         * math/e_exp10l.c: Likewise.
16750         * math/e_exp2l.c: Likewise.
16751         * math/e_j0l.c: Likewise.
16752         * math/e_j1l.c: Likewise.
16753         * math/e_jnl.c: Likewise.
16754         * math/e_lgammal_r.c: Likewise.
16755         * math/e_rem_pio2l.c: Likewise.
16756         * math/e_scalb.c: Likewise.
16757         * math/e_scalbf.c: Likewise.
16758         * math/e_scalbl.c: Likewise.
16759         * math/k_cosl.c: Likewise.
16760         * math/k_sinl.c: Likewise.
16761         * math/k_tanl.c: Likewise.
16762         * math/s_cacoshf.c: Likewise.
16763         * math/s_catan.c: Likewise.
16764         * math/s_catanf.c: Likewise.
16765         * math/s_catanh.c: Likewise.
16766         * math/s_catanhf.c: Likewise.
16767         * math/s_catanhl.c: Likewise.
16768         * math/s_catanl.c: Likewise.
16769         * math/s_ccosh.c: Likewise.
16770         * math/s_ccoshf.c: Likewise.
16771         * math/s_ccoshl.c: Likewise.
16772         * math/s_cexp.c: Likewise.
16773         * math/s_cexpf.c: Likewise.
16774         * math/s_cexpl.c: Likewise.
16775         * math/s_clog.c: Likewise.
16776         * math/s_clog10.c: Likewise.
16777         * math/s_clog10f.c: Likewise.
16778         * math/s_clog10l.c: Likewise.
16779         * math/s_clogf.c: Likewise.
16780         * math/s_clogl.c: Likewise.
16781         * math/s_csin.c: Likewise.
16782         * math/s_csinf.c: Likewise.
16783         * math/s_csinh.c: Likewise.
16784         * math/s_csinhf.c: Likewise.
16785         * math/s_csinhl.c: Likewise.
16786         * math/s_csinl.c: Likewise.
16787         * math/s_csqrt.c: Likewise.
16788         * math/s_csqrtf.c: Likewise.
16789         * math/s_csqrtl.c: Likewise.
16790         * math/s_ctan.c: Likewise.
16791         * math/s_ctanf.c: Likewise.
16792         * math/s_ctanh.c: Likewise.
16793         * math/s_ctanhf.c: Likewise.
16794         * math/s_ctanhl.c: Likewise.
16795         * math/s_ctanl.c: Likewise.
16796         * math/s_ldexp.c: Likewise.
16797         * math/s_ldexpf.c: Likewise.
16798         * math/s_ldexpl.c: Likewise.
16799         * math/s_significand.c: Likewise.
16800         * math/s_significandf.c: Likewise.
16801         * math/s_significandl.c: Likewise.
16802         * math/w_acos.c: Likewise.
16803         * math/w_acosf.c: Likewise.
16804         * math/w_acosh.c: Likewise.
16805         * math/w_acoshf.c: Likewise.
16806         * math/w_acoshl.c: Likewise.
16807         * math/w_acosl.c: Likewise.
16808         * math/w_asin.c: Likewise.
16809         * math/w_asinf.c: Likewise.
16810         * math/w_asinl.c: Likewise.
16811         * math/w_atan2.c: Likewise.
16812         * math/w_atan2f.c: Likewise.
16813         * math/w_atan2l.c: Likewise.
16814         * math/w_atanh.c: Likewise.
16815         * math/w_atanhf.c: Likewise.
16816         * math/w_atanhl.c: Likewise.
16817         * math/w_cosh.c: Likewise.
16818         * math/w_coshf.c: Likewise.
16819         * math/w_coshl.c: Likewise.
16820         * math/w_dremf.c: Likewise.
16821         * math/w_exp10.c: Likewise.
16822         * math/w_exp10f.c: Likewise.
16823         * math/w_exp10l.c: Likewise.
16824         * math/w_exp2.c: Likewise.
16825         * math/w_exp2f.c: Likewise.
16826         * math/w_fmod.c: Likewise.
16827         * math/w_fmodf.c: Likewise.
16828         * math/w_fmodl.c: Likewise.
16829         * math/w_hypot.c: Likewise.
16830         * math/w_hypotf.c: Likewise.
16831         * math/w_hypotl.c: Likewise.
16832         * math/w_j0.c: Likewise.
16833         * math/w_j0f.c: Likewise.
16834         * math/w_j0l.c: Likewise.
16835         * math/w_j1.c: Likewise.
16836         * math/w_j1f.c: Likewise.
16837         * math/w_j1l.c: Likewise.
16838         * math/w_jn.c: Likewise.
16839         * math/w_jnf.c: Likewise.
16840         * math/w_jnl.c: Likewise.
16841         * math/w_lgamma.c: Likewise.
16842         * math/w_lgamma_r.c: Likewise.
16843         * math/w_lgammaf.c: Likewise.
16844         * math/w_lgammaf_r.c: Likewise.
16845         * math/w_lgammal.c: Likewise.
16846         * math/w_lgammal_r.c: Likewise.
16847         * math/w_log.c: Likewise.
16848         * math/w_log10.c: Likewise.
16849         * math/w_log10f.c: Likewise.
16850         * math/w_log10l.c: Likewise.
16851         * math/w_log2.c: Likewise.
16852         * math/w_log2f.c: Likewise.
16853         * math/w_log2l.c: Likewise.
16854         * math/w_logf.c: Likewise.
16855         * math/w_logl.c: Likewise.
16856         * math/w_pow.c: Likewise.
16857         * math/w_powf.c: Likewise.
16858         * math/w_powl.c: Likewise.
16859         * math/w_remainder.c: Likewise.
16860         * math/w_remainderf.c: Likewise.
16861         * math/w_remainderl.c: Likewise.
16862         * math/w_scalb.c: Likewise.
16863         * math/w_scalbf.c: Likewise.
16864         * math/w_scalbl.c: Likewise.
16865         * math/w_sinh.c: Likewise.
16866         * math/w_sinhf.c: Likewise.
16867         * math/w_sinhl.c: Likewise.
16868         * math/w_sqrt.c: Likewise.
16869         * math/w_sqrtf.c: Likewise.
16870         * math/w_sqrtl.c: Likewise.
16871         * math/w_tgamma.c: Likewise.
16872         * math/w_tgammaf.c: Likewise.
16873         * math/w_tgammal.c: Likewise.
16874
16875         * po/ja.po: Update from translation team.
16876
16877 2011-09-29  Andreas Jaeger  <aj@suse.de>
16878
16879         [BZ #13179]
16880         * sunrpc/netname.c (netname2host): Fix logic.
16881
16882         [BZ #6779]
16883         [BZ #6783]
16884         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16885         correctly.
16886         * math/w_remainder.c (__remainder): Likewise.
16887         * math/w_remainderf.c (__remainderf): Likewise.
16888         * math/libm-test.inc (remainder_test): Add test cases.
16889
16890 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16891
16892         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16893         sdiv_qrnnd.
16894
16895 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16896
16897         * string/test-memcmp.c: Avoid unncessary #defines.
16898         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16899
16900 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16901
16902         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16903         Use new sse2 version for core i3 - i7 as it's faster
16904         than sse42 version.
16905         (bit_Prefer_PMINUB_for_stringop): New.
16906         * sysdeps/x86_64/rawmemchr.S: Update.
16907         Replace with faster SSE2 version.
16908         * sysdeps/x86_64/memrchr.S: New file.
16909         * sysdeps/x86_64/memchr.S: Update.
16910         Replace with faster SSE2 version.
16911
16912 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16913
16914         * elf/dl-load.c (lose): Add cast to avoid warning.
16915
16916 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16917
16918         * po/ca.po: Update from translation team.
16919
16920         * inet/getnetgrent_r.c: Hook up nscd.
16921         * nscd/Makefile (routines): Add nscd_netgroup.
16922         (nscd-modules): Add netgroupcache.
16923         (CFLAGS-netgroupcache.c): Define.
16924         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16925         (cache_search): Add const to second parameter.
16926         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16927         INNETGR.
16928         (dbs): Add netgrdb entry.
16929         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16930         (verify_persistent_db): Handle netgrdb.
16931         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16932         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16933         GETFDNETGR.
16934         (netgroup_response_header): Define.
16935         (innetgroup_response_header): Define.
16936         (datahead): Add netgroup_response_header and innetgroup_response_header
16937         elements.
16938         * nscd/nscd.conf: Add entries for netgroup cache.
16939         * nscd/nscd.h (dbtype): Add netgrdb.
16940         (_PATH_NSCD_NETGROUP_DB): Define.
16941         (netgroup_iov_disabled): Declare.
16942         (xmalloc, xcalloc, xrealloc): Move declarations here.
16943         (cache_search): Adjust prototype.
16944         Add netgroup-related prototypes.
16945         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16946         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16947         (__nscd_innetgr): Declare.
16948         * nscd/selinux.c (perms): Use access_vector_t as element type and
16949         add netgroup-related initializers.
16950         * nscd/netgroupcache.c: New file.
16951         * nscd/nscd_netgroup.c: New file.
16952         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16953         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16954         For four parameters use innetgr.
16955         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16956         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16957         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16958         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16959
16960         * nscd/connections.c (register_traced_file): Don't register file
16961         for disabled databases.
16962
16963 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16964
16965         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16966
16967         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16968         from tree and freeing node.
16969
16970 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16971
16972         * nss/nsswitch.c (__nss_database_lookup): Handle
16973         nss_parse_service_list out of memory case.
16974
16975 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16976
16977         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16978         out of memory case.
16979
16980 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16981
16982         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16983         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16984         pass it down.
16985         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16986         elf_machine_rela, elf_machine_lazy_rel.
16987         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16988         (ELF_DYNAMIC_DO_REL): Likewise.
16989         (ELF_DYNAMIC_DO_RELA): Likewise.
16990         (ELF_DYNAMIC_RELOCATE): Likewise.
16991         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16992         to ELF_DYNAMIC_DO_REL.
16993         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16994         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16995         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16996         elf_machine_rela.
16997         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16998         skip_ifunc, don't call ifunc function if non-zero.
16999         (elf_machine_rela): Likewise.
17000         (elf_machine_lazy_rel): Likewise.
17001         (elf_machine_lazy_rela): Likewise.
17002         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17003         (elf_machine_lazy_rel): Likewise.
17004         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17005         Likewise.
17006         (elf_machine_lazy_rel): Likewise.
17007         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17008         Likewise.
17009         (elf_machine_lazy_rel): Likewise.
17010         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17011         (elf_machine_lazy_rel): Likewise.
17012         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17013         (elf_machine_lazy_rel): Likewise.
17014         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17015         (elf_machine_lazy_rel): Likewise.
17016         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17017         (elf_machine_lazy_rel): Likewise.
17018         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17019         (elf_machine_lazy_rel): Likewise.
17020         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17021         (elf_machine_lazy_rel): Likewise.
17022
17023 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17024
17025         * nss/nss_files/files-init.c (_nss_files_init): Use static
17026         initialization for all the *_traced_file variables.
17027
17028 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17029
17030         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17031
17032 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17033
17034         [BZ #13226]
17035         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17036
17037 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17038
17039         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17040         Reread the line before reparsing it.
17041
17042 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17043
17044         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17045
17046 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17047             Maxim Kuvyrkov  <maxim@codesourcery.com>
17048             Joseph Myers  <joseph@codesourcery.com>
17049
17050         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17051         if needed for __stack_chk_guard.
17052
17053 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17054
17055         * sysdeps/posix/spawni.c (script_execute): Always define it.
17056         It will be optimized away if unused.
17057         (maybe_script_execute): New function.
17058         (__spawni): Call it.
17059
17060         * Makerules: Don't include tls.make.
17061         (config-tls): Always set to thread.
17062         * tls.make.c: File removed.
17063
17064 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17065
17066         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17067         * config.make.in (CPPFLAGS-config): New substituted variable.
17068
17069 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17070
17071         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17072
17073         [BZ #13192]
17074         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17075         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17076
17077 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17078
17079         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17080         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17081         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17082         (CALL_FAIL): Likewise.
17083         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17084         (CALL_FAIL): Macro removed.
17085         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17086
17087 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17088
17089         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17090         for __FINITE_MATH_ONLY__ == 1.
17091
17092 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17093
17094         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17095         __ieee754_sqrt instead of sqrt.
17096         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17097         __ieee754_sqrtf instead of sqrtf.
17098         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17099         __floorf instead of floorf.
17100         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17101         __floorf, __truncf instead of floorf, truncf.
17102
17103 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17104
17105         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17106
17107         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17108         __extern_always_inline.
17109         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17110         32-bit.
17111
17112 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17113
17114         * elf/rtld.c (dl_main): Also relocate in dependency order when
17115         doing symbol dependency testing.
17116
17117 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17118
17119         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17120         Always define `refsym'.
17121
17122 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17123
17124         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17125         (__FD_ELT): Renamed from __FDELT.
17126         * misc/bits/select2.h (__FD_ELT): Likewise.
17127         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17128         __FD_MASK instead of __FDELT, __FDMASK.
17129         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17130         Likewise.
17131         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17132         Likewise.
17133
17134         * elf/Makefile (gen-ldd): Fix pattern.
17135
17136         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17137         (init_tls): Likewise.
17138
17139 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17140
17141         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17142
17143 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17144
17145         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17146         `struct cmsghdr *' instead of `void *'.
17147         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17148         Likewise.
17149
17150 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17151
17152         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17153         if non-absolute.
17154         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17155         ldd_rewrite_script.
17156
17157 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17158
17159         * configure.in: Remove --with-tls option.
17160         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17161         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17162         out in case it is missing.
17163         * sysdeps/ia64/elf/configure.in: Likewise.
17164         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17165         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17166         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17167         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17168         * sysdeps/sh/elf/configure.in: Likewise.
17169         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17170         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17171         * sysdeps/x86_64/elf/configure.in: Likewise.
17172         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17173         * sysdeps/mach/hurd/tls.h: Likewise.
17174
17175         [BZ #13067]
17176         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17177
17178         [BZ #13090]
17179         * configure.in: Fix use of AC_INIT.
17180
17181         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17182
17183 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17184
17185         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17186         __set_errno.
17187         * malloc/hooks.c: Likewise.
17188
17189         [BZ #11929]
17190         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17191         variables statically.
17192         (narenas): Initialize.
17193         (list_lock): Initialize.
17194         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17195         initializtion of main_arena and list_lock.  Small cleanups.
17196         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17197         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17198         Add initializers to main_arena and mp_.
17199         (malloc_state): Remove pagesize member.  Change all users to use
17200         GLRO(dl_pagesize).
17201
17202         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17203         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17204         is always initialized.
17205
17206         * malloc/malloc.c: Removed unused configurations and dead code.
17207         * malloc/arena.c: Likewise.
17208         * malloc/hooks.c: Likewise.
17209         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17210
17211         * include/tls.h: Removed.  USE___THREAD must always be defined.
17212         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17213         * elf/dl-libc.c: Likewise.
17214         * elf/dl-tsd.c: Likewise.
17215         * include/errno.h: Likewise.
17216         * include/netdb.h: Likewise.
17217         * include/resolv.h: Likewise.
17218         * inet/herrno-loc.c: Likewise.
17219         * inet/herrno.c: Likewise.
17220         * malloc/arena.c: Likewise.
17221         * malloc/hooks.c: Likewise.
17222         * malloc/malloc.c: Likewise.
17223         * resolv/res-state.c: Likewise.
17224         * resolv/res_libc.c: Likewise.
17225         * sysdeps/i386/dl-machine.h: Likewise.
17226         * sysdeps/ia64/dl-machine.h: Likewise.
17227         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17228         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17229         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17230         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17231         * sysdeps/sh/dl-machine.h: Likewise.
17232         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17233         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17234         * sysdeps/unix/i386/sysdep.S: Likewise.
17235         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17236         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17237         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17238         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17239         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17240         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17241         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17242         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17243         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17244         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17245         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17246         * sysdeps/x86_64/dl-machine.h: Likewise.
17247         * tls.make.c: Likewise.
17248
17249         * configure.in: Remove --with-__thread option.  Make tests for
17250         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17251         tls_model attribute fail if no support is available.  Remove
17252         USE_IN_LIBIO.
17253         * Makeconfig: Adjust for dropped configure option.  All features are
17254         now mandatory.
17255         * Makerules: Likewise.
17256         * Versions.def: Likewise.
17257         * argp/argp-fmtstream.c: Likewise.
17258         * argp/argp-fmtstream.h: Likewise.
17259         * argp/argp-help.c: Likewise.
17260         * assert/assert.c: Likewise.
17261         * config.h.in: Likewise.
17262         * config.make.in: Likewise.
17263         * configure: Likewise.
17264         * configure.in: Likewise.
17265         * csu/Versions: Likewise.
17266         * csu/init.c: Likewise.
17267         * elf/tst-audit2.c: Likewise.
17268         * elf/tst-tls10.c: Likewise.
17269         * elf/tst-tls10.h: Likewise.
17270         * elf/tst-tls11.c: Likewise.
17271         * elf/tst-tls12.c: Likewise.
17272         * elf/tst-tls14.c: Likewise.
17273         * elf/tst-tlsmod11.c: Likewise.
17274         * elf/tst-tlsmod12.c: Likewise.
17275         * elf/tst-tlsmod13.c: Likewise.
17276         * elf/tst-tlsmod13a.c: Likewise.
17277         * elf/tst-tlsmod14a.c: Likewise.
17278         * elf/tst-tlsmod15b.c: Likewise.
17279         * elf/tst-tlsmod16a.c: Likewise.
17280         * elf/tst-tlsmod16b.c: Likewise.
17281         * elf/tst-tlsmod7.c: Likewise.
17282         * elf/tst-tlsmod8.c: Likewise.
17283         * elf/tst-tlsmod9.c: Likewise.
17284         * gmon/gmon.c: Likewise.
17285         * grp/fgetgrent_r.c: Likewise.
17286         * grp/putgrent.c: Likewise.
17287         * hurd/fopenport.c: Likewise.
17288         * include/libc-symbols.h: Likewise.
17289         * include/tls.h: Likewise.
17290         * intl/gettextP.h: Likewise.
17291         * intl/loadinfo.h: Likewise.
17292         * locale/global-locale.c: Likewise.
17293         * locale/localeinfo.h: Likewise.
17294         * mach/devstream.c: Likewise.
17295         * malloc/arena.c: Likewise.
17296         * malloc/set-freeres.c: Likewise.
17297         * misc/err.c: Likewise.
17298         * misc/getttyent.c: Likewise.
17299         * misc/mntent_r.c: Likewise.
17300         * posix/getopt.c: Likewise.
17301         * posix/wordexp.c: Likewise.
17302         * pwd/fgetpwent_r.c: Likewise.
17303         * resolv/Versions: Likewise.
17304         * resolv/res_hconf.c: Likewise.
17305         * shadow/fgetspent_r.c: Likewise.
17306         * shadow/putspent.c: Likewise.
17307         * stdio-common/printf_fphex.c: Likewise.
17308         * stdio-common/tmpfile.c: Likewise.
17309         * stdlib/abort.c: Likewise.
17310         * stdlib/fmtmsg.c: Likewise.
17311         * sunrpc/auth_unix.c: Likewise.
17312         * sunrpc/clnt_perr.c: Likewise.
17313         * sunrpc/clnt_tcp.c: Likewise.
17314         * sunrpc/clnt_udp.c: Likewise.
17315         * sunrpc/clnt_unix.c: Likewise.
17316         * sunrpc/openchild.c: Likewise.
17317         * sunrpc/svc_simple.c: Likewise.
17318         * sunrpc/svc_tcp.c: Likewise.
17319         * sunrpc/svc_udp.c: Likewise.
17320         * sunrpc/svc_unix.c: Likewise.
17321         * sunrpc/xdr.c: Likewise.
17322         * sunrpc/xdr_array.c: Likewise.
17323         * sunrpc/xdr_rec.c: Likewise.
17324         * sunrpc/xdr_ref.c: Likewise.
17325         * sunrpc/xdr_stdio.c: Likewise.
17326
17327 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17328
17329         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17330
17331 2011-07-03  Andreas Jaeger  <aj@suse.de>
17332
17333         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
17334         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
17335         regenerate with gen-libm-tests.pl.
17336
17337 2010-05-12  Petr Baudis  <pasky@suse.cz>
17338
17339         [BZ #11589]
17340         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
17341         around j0() zero points by switching to j1().
17342         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17343         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17344         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17345         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17346
17347 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17348
17349         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
17350         instead of 0.
17351         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
17352         instead of 0.                              .
17353         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17354         Patch in part by Pavel Roskin <proski@gnu.org>.
17355
17356         [BZ #13138]
17357         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
17358         realloc.
17359         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
17360         Free memory block if necessary.
17361
17362         [BZ #12847]
17363         * libio/genops.c (INTDEF): For string streams the _lock pointer can
17364         be NULL.  Don't lock in this case.
17365
17366 2011-09-09  Roland McGrath  <roland@hack.frob.com>
17367
17368         * elf/elf.h (ELFOSABI_GNU): New macro.
17369         (ELFOSABI_LINUX): Define to that.
17370
17371 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
17372
17373         * string/strncat.c (strncat): Undef the symbol in case it has been
17374         defined in bits/string.h.
17375
17376 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17377
17378         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
17379
17380         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
17381         link map.
17382
17383 2011-08-17  Andreas Jaeger  <aj@suse.de>
17384
17385         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
17386
17387 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
17388             Ian Lance Taylor  <iant@google.com>
17389
17390         * math/libm-test.inc (lround_test): New testcase.
17391         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
17392
17393 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
17394
17395         * Makefile: Remove support for automatic cvs check-ins.
17396         * Makerules: Likewise.
17397         * config.make.in: Likewise.
17398         * configure.in: Likewise.
17399         * intl/Makefile: Likewise.
17400         * locale/Makefile: Likewise.
17401         * po/Makefile: Likewise.
17402         * posix/Makefile: Likewise.
17403         * sysdeps/gnu/Makefile: Likewise.
17404         * sysdeps/mach/hurd/Makefile: Likewise.
17405         * sysdeps/sparc/sparc32/Makefile: Likewise.
17406
17407         [BZ #13118]
17408         * posix/Makefile (bug-regex32-ENV): Define.
17409         Patch by John Stanley <jpsinthemix@verizon.net>.
17410
17411         * misc/Makefile (headers): Add bits/select2.h.
17412         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
17413         * misc/bits/select2.h: New file.
17414         * include/bits/select2.h: New file.
17415         * debug/Makefile (routines): Add fdelt_chk.
17416         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
17417         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
17418         FD_ISSET.
17419         * debug/fdelt_chk.c: New file.
17420
17421         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
17422         * wcsmbs/test-wmemcmp.c: Likewise.
17423         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
17424         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
17425
17426 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17427
17428         * string/Makefile (strop-tests): Add memcmp.
17429         * string/test-wmemcmp.c: New file.
17430         * string/test-memcmp.c: Add wmemcmp support.
17431
17432 2011-09-08  Roland McGrath  <roland@hack.frob.com>
17433
17434         [BZ #13153]
17435         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
17436         2011-07-19 change.
17437
17438         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
17439         garbage value in a __mach_port_mod_refs call in the cases of the
17440         task-self and thread-self ports.
17441
17442 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17443
17444         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
17445
17446 2011-09-08  Andreas Schwab  <schwab@redhat.com>
17447
17448         * elf/dl-load.c (lose): Check for non-null L.
17449
17450 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17451
17452         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
17453
17454         * elf/dl-libc.c (dlerror_run): Pass back error code from
17455         dl_catch_error.
17456
17457         [BZ #13123]
17458         * elf/dl-load.c (lose): Free l_origin if it is valid.
17459
17460         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
17461         names.
17462         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
17463         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17464         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17465         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17466         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
17467         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
17468
17469 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17470
17471         * sysdeps/powerpc/fpu/e_hypot.c: New file.
17472         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
17473         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
17474         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
17475         * sysdeps/powerpc/fpu/k_cosf.c: New file.
17476         * sysdeps/powerpc/fpu/k_sinf.c: New file.
17477         * sysdeps/powerpc/fpu/s_cosf.c: New file.
17478         * sysdeps/powerpc/fpu/s_sinf.c: New file.
17479         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
17480         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
17481
17482 2011-08-15  Alan Modra  <amodra@gmail.com>
17483
17484         [BZ #13092]
17485         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
17486         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
17487         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
17488         ppc_mcount to static-only-routines.
17489         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
17490         __mcount_internal.
17491         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
17492         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
17493
17494 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
17495
17496         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
17497         for finite and infinity parameters.
17498
17499 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
17500
17501         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
17502         and add nop instructions for throughput optimization.
17503         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17504
17505 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
17506
17507         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
17508         aligned copy for power7 with vector-scalar instructions.
17509         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
17510
17511 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
17512
17513         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
17514         AVX check.
17515
17516 2011-09-07  Andreas Schwab  <schwab@redhat.com>
17517
17518         [BZ #13144]
17519         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
17520         last change.
17521
17522 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17523
17524         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17525         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
17526         syscall wrapper around clock_gettime in __vdso_clock_gettime.
17527         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
17528         clock_gettime.
17529
17530 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17531
17532         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
17533         Forgot to demangle the pointer.
17534
17535         * sysdeps/i386/sysdep.h: Define atom_text_section.
17536         * sysdeps/x86_64/sysdep.h: Likewise.
17537         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
17538         section with atom_text_section.
17539         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17540         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17541         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
17542         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17543         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
17544
17545         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
17546         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
17547         already be defined.  Change to take two parameters and don't assign
17548         result to variable.  Adjust all users.
17549         Define INTERNAL_GETTIME if not already defined.
17550         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
17551         call.
17552         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
17553         HAVE_CLOCK_GETTIME_VSYSCALL.
17554         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
17555
17556         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
17557         gettimeofday vsyscall, just use time.
17558
17559 2011-09-06  Andreas Schwab  <schwab@redhat.com>
17560
17561         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
17562         <errno.h>.
17563
17564 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17565
17566         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
17567         syscall on x86-64.
17568         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
17569         syscall.
17570         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17571         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
17572         syscall if possible.
17573
17574 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17575
17576         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
17577         e_ident.  Don't pass to find_mapsXX.
17578         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
17579
17580 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17581
17582         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17583         strchr-sse2-no-bsf strrchr-sse2-no-bsf
17584         * sysdeps/x86_64/multiarch/strchr.S: Update.
17585         Check bit_slow_BSF bit.
17586         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17587         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
17588         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
17589
17590 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17591
17592         [BZ #13134]
17593         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
17594         before glibc 2.15.
17595         (tryshell): Define.
17596         (__spawni): Change last parameter to be flag.  Test
17597         SPAWN_XFLAGS_USE_PATH flag to use path or not.
17598         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
17599         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
17600         * posix/spawni.c: Likewise.
17601         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
17602         * posix/spawnp.c: Likewise.  Change normal version to use
17603         SPAWN_XFLAGS_USE_PATH.
17604         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
17605         SPAWN_XFLAGS_TRY_SHELL.
17606
17607         [BZ #13150]
17608         * posix/glob.h: Remove gcc 1.x support.
17609
17610         [BZ #13068]
17611         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
17612
17613 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17614
17615         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17616         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
17617         strrchr-sse2-bsf
17618         * sysdeps/i386/i686/multiarch/strchr.S: New file.
17619         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
17620         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
17621         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
17622         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
17623         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
17624
17625 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17626
17627         * sysdeps/x86_64/wcscmp.S: New file.
17628
17629         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
17630         wcscmp-c wcscmp-sse2
17631         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
17632         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
17633         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
17634         * wcsmbs/wcscmp.c: Allow renaming.
17635
17636 2011-09-05  David S. Miller  <davem@davemloft.net>
17637
17638         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
17639         stack slot, rather than the struct return pointer slot.
17640         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
17641         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
17642         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
17643         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
17644
17645 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17646
17647         * po/ja.po: Update from translation team.
17648
17649         [BZ #13144]
17650         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
17651         kernel in 64-bit binaries.
17652
17653 2011-09-01  David S. Miller  <davem@davemloft.net>
17654
17655         * elf/elf.h (HWCAP_SPARC_*): Move to..
17656         * sysdeps/sparc/sysdep.h: this new file and add new values.
17657         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
17658         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
17659         _DL_HWCAP_COUNT to 24.
17660         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17661         entries.
17662         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17663         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17664         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17665         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17666         instead of magic constants.
17667         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17668
17669 2011-08-31  David S. Miller  <davem@davemloft.net>
17670
17671         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17672         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17673         Reimplement to do errno handling inline.
17674         (SYSCALL_ERROR_HANDLER): New macro.
17675         (__SYSCALL_STRING): Do not do errno handling in asm.
17676         (__CLONE_SYSCALL_STRING): Delete.
17677         (__INTERNAL_SYSCALL_STRING): Delete.
17678         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17679         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17680         (PSEUDO): Reimplement to do errno handling inline.
17681         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17682         (SYSCALL_ERROR_HANDLER): New macro.
17683         (__SYSCALL_STRING): Do not do errno handling in asm.
17684         (__CLONE_SYSCALL_STRING): Delete.
17685         (__INTERNAL_SYSCALL_STRING): Delete.
17686         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17687         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17688         i386.
17689         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17690         (inline_syscall*): Add 'err' argument.
17691         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17692         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17693         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17694         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17695
17696         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17697         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17698
17699 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17700
17701         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17702
17703 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17704
17705         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17706         directive.
17707
17708 2011-08-24  David S. Miller  <davem@davemloft.net>
17709
17710         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17711
17712 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17713
17714         * elf/Makefile: Add rules to build and run unload8 test.
17715         * elf/unload8.c: New file.
17716         * elf/unload8mod1.c: New file.
17717         * elf/unload8mod1x.c: New file.
17718         * elf/unload8mod2.c: New file.
17719         * elf/unload8mod3.c: New file.
17720
17721         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17722         it wasn't used.
17723
17724 2011-08-23  David S. Miller  <davem@davemloft.net>
17725
17726         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17727         subtract stack bias.
17728         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17729         %sp not %fp in calculations.
17730         (_JMPBUF_UNWINDS_ADJ): Likewise.
17731
17732         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17733         (aio_suspend): Call it to force an exception region around the
17734         AIO_MISC_WAIT() invocation.
17735
17736 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17737
17738         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17739         backslash.
17740
17741 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17742
17743         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17744         protection macro.
17745         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17746         and <dl-machine.h>.
17747         (Elf64_FuncDesc): Remove.
17748
17749 2011-08-22  David S. Miller  <davem@davemloft.net>
17750
17751         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17752         sigaltstack check, add missing cfi directives.
17753         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17754         missing cfi directives, and sigaltstack handling.
17755
17756 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17757
17758         [BZ #11724]
17759         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17760         object is seen twice.
17761         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17762
17763         * elf/Makefile (distribute): Add tst-initorder2.c.
17764         (tests): Add tst-initorder2.
17765         (modules-names): Add tst-initorder2a tst-initorder2b
17766         tst-initorder2c tst-initorder2d.  Add rules to build them.
17767         ($(objpfx)tst-initorder2.out): New rule.
17768         * elf/tst-initorder2.c: New file.
17769         * elf/tst-initorder2.exp: New file.
17770
17771 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17772
17773         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17774
17775         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17776         dependencies back to end of function.
17777
17778         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17779         $(elfobjdir)/ld.so.
17780
17781 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17782
17783         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17784         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17785         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17786         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17787         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17788         of __vdso_gettimeofday.
17789         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17790         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17791         attribute_hidden.
17792         (_libc_vdso_platform_setup): Remove initialization of
17793         __vdso_gettimeofday and __vdso_time.
17794
17795 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17796
17797         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17798         and fgetc_unlocked.
17799         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17800         getc_unlocked.
17801
17802         * elf/dl-open.c (add_to_global): Report additions to the global scope
17803         for LD_DEBUG=scopes.
17804         (dl_open_worker): Also print scope of newly loaded dependencies.
17805         (_dl_show_scope): Indicate if there is no scope.
17806
17807         [BZ #13114]
17808         * stdio-common/Makefile (tests): Add bug24.
17809         * stdio-common/bug24.c: New file.
17810
17811 2011-08-19  Andreas Jaeger  <aj@suse.de>
17812
17813         [BZ #13114]
17814         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17815         non-existant file when using close-on-exec mode.
17816
17817 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17818
17819         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17820         the very first instruction.
17821
17822         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17823         the CFI state in the end.
17824         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17825         inclusion of dl-trampoline.h.
17826         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17827
17828 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17829
17830         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17831         expectations for long double.
17832
17833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17834         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17835
17836 2011-08-14  David S. Miller  <davem@davemloft.net>
17837
17838         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17839         artificual limit depends upon the system page size.
17840
17841 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17842
17843         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17844         * resolv/Makefile: Define CFLAGS-libresolv.
17845
17846 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17847
17848         * nss/makedb.c (compute_tables): Make variables used in nested
17849         function static.
17850
17851 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17852
17853         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17854         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17855         if buffer was too small.
17856
17857         * elf/pldd.c (main): Attach to all threads in the process.
17858         Rewrite /proc handling to use *at functions.
17859
17860 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17861
17862         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17863         specifies first scope to show.
17864         (dl_open_worker): Update callers.  Move printing scope of new
17865         object to before the relocation.
17866         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17867         * sysdeps/generic/ldsodefs.h: Update declaration.
17868
17869         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17870         string for the scope number.
17871
17872 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17873
17874         * nscd/servicescache.c (cache_addserv): Make sure written is always
17875         initialized.
17876
17877 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17878
17879         * sysdeps/i386/i486/bits/atomic.h
17880         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17881         statement expression, so as to suppress "set but not used" warning.
17882         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17883
17884         * string/strncat.c (STRNCAT): Use prototype definition.
17885
17886         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17887         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17888         -Iprograms here.
17889         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17890         (localedef-modules): Add localedef.
17891         (locale-modules): Add locale.
17892
17893         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17894         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17895         to avoid a warning.
17896
17897 2011-08-14  David S. Miller  <davem@davemloft.net>
17898
17899         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17900         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17901
17902 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17903
17904         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17905         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17906         * elf/rtld.c (dl_main): Set l_name of vDSO.
17907         Call _dl_show_scope when DL_DEBUG_SCOPES.
17908         (process_dl_debug): Recognize scopes flag and also set it for all.
17909         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17910         Declare _dl_show_scope.
17911
17912         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17913         (do_dlopen): Pass caller_dlopen to dl_open.
17914         (__libc_dlopen_mode): Initialize caller_dlopen.
17915
17916         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17917         of libc.  Make tolower call locale-independent.  Optimize a bit by
17918         using isdigit instead of isalnum.
17919         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17920
17921 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17922
17923         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17924         was a dependency or dynamically loaded.
17925
17926 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17927
17928         * intl/l10nflist.c: Allow architecture-specific pop function.
17929         * sysdeps/x86_64/l10nflist.c: New file.
17930
17931         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17932         classification.
17933
17934 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17935
17936         * include/dirent.h: Add libc_hidden_proto for scandirat and
17937         scandirat64.  Don't declare __scandirat64.
17938         * dirent/scandirat.c: Add libc_hidden_def.
17939         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17940         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17941
17942 2011-08-10  David S. Miller  <davem@davemloft.net>
17943
17944         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17945         enum.
17946         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17947         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17948         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17949
17950 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17951
17952         * Versions.def [libc]: Add GLIBC_2.15.
17953         * dirent/Makefile (routines): Add scandirat and scandirat64.
17954         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17955         GLIBC_2.15.
17956         * dirent/dirent.h: Declare scandirat and scandirat64.
17957         * dirent/scandirat.c: New file.
17958         * dirent/scandirat64.c: New file.
17959         * sysdeps/wordsize-64/scandirat.c: New file.
17960         * sysdeps/wordsize-64/scandirat64.c: New file.
17961         * dirent/opendir.c: Define opendirat.
17962         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17963         using scandirat.
17964         * dirent/scandir64.c: Adjust for scandir.c change.
17965         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17966         __scandirat64, and __scandir_cancel_handler.
17967         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17968         additional parameter and use openat instead of open (outside of ld.so).
17969         Add new __opendir as wrapper around __opendirat.
17970         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17971         here without requiring old scandirat implementation.
17972
17973 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17974
17975         * dirent/scandir.c (cancel_handler): Renamed to
17976         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17977         defined.  Adjust users.
17978         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17979         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17980
17981 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17982
17983         * string/test-string.h (IMPL): Use __STRING to expand name and then
17984         stringify it.
17985
17986         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17987         of cleanups.
17988
17989 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17990
17991         * string/Makefile: Update.
17992         (strop-tests): Append strncat.
17993         * string/test-wcscmp.c: New file.
17994         New comprehensive test for wcscmp.
17995         * string/test-strcmp.c: Update.
17996         (WIDE): New define.
17997
17998 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17999
18000         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18001         line.
18002
18003 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18004
18005         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18006         encoding to ACE if AI_IDN.
18007
18008 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18009
18010         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18011         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18012
18013 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18014
18015         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18016         Fix overflow bug in strncat.
18017         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18018
18019         * string/test-strncat.c: Update.
18020         Add new tests for checking overflow bugs.
18021
18022 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18023
18024         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18025         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18026         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18027         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18028         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18029         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18030         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18031         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18032         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18033
18034         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18035         (USE_AS_STRCAT): Define.
18036         Add strcat and strncat support.
18037         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18038
18039 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18040
18041         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18042         __n bigger than INT_MAX+1.
18043         (__strncmp_g): Likewise.
18044
18045 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18046
18047         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18048         * libio/stido.h: Likewise.
18049
18050         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18051         (AF_NFC): Define.
18052         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18053         (AF_NFC): Define.
18054
18055         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18056         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18057         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18058         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18059         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18060
18061         [BZ #13021]
18062         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18063         installed.
18064
18065         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18066         typo.
18067         (_dl_x86_64_save_sse): Likewise.
18068
18069 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18070
18071         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18072         OSXSAVE.
18073         (_dl_x86_64_save_sse): Likewise.
18074
18075         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18076
18077         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18078
18079 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18080
18081         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18082         change.
18083         (_dl_x86_64_save_sse): Use correct AVX check.
18084
18085 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18086
18087         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18088         bug in strncpy/strncat.
18089         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18090
18091 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18092
18093         * string/tester.c (test_strcat): Add tests for different alignments
18094         of source and destination.
18095         (test_strncat): Likewise.
18096
18097 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18098
18099         [BZ #12852]
18100         * posix/glob.c (glob): Check passed in values before using them in
18101         expressions to avoid some overflows.
18102         (glob_in_dir): Likewise.
18103
18104         [BZ #13007]
18105         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18106         check for AVX enablement so that we don't crash with old kernels and
18107         new hardware.
18108         * elf/tst-audit4.c: Add same checks here.
18109         * elf/tst-audit6.c: Likewise.
18110
18111         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18112
18113 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18114
18115         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18116
18117 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18118
18119         * po/cs.po: Update from translation team.
18120         * po/bg.po: Likewise.
18121
18122 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18123
18124         * misc/sys/cdefs.h: Add support for const attribute.
18125         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18126         to gnu_dev_{major,minor,makedev} functions.
18127
18128 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18129
18130         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18131
18132 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18133
18134         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18135         strlen results.
18136
18137 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18138
18139         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18140         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18141         register in order to avoid conflicts with the soft frame pointer
18142         being held in r11 when necessary.
18143         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18144         (INTERNAL_VSYSCALL_NCS): Likewise.
18145
18146 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18147
18148         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18149         * elf/dl-fini.c (_dl_fini): Adjust caller.
18150         * elf/dl-close.c (_dl_close_worker): Likewise.
18151         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18152
18153 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18154
18155         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18156         "aux_cache->nlibs < 0".
18157
18158         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18159         in the reload-count case.
18160
18161 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18162
18163         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18164         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18165         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18166         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18167         * sysdeps/x86_64/multiarch/strcat.S: New file.
18168         * sysdeps/x86_64/multiarch/strncat.S: New file.
18169         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18170         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18171         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18172         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18173         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18174         (USE_AS_STRCAT): Define.
18175         Add strcat and strncat support.
18176         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18177         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18178         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18179         * string/strncat.c: Update.
18180         (USE_AS_STRNCAT): Define.
18181         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18182         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18183         and i7.
18184         * sysdeps/x86_64/multiarch/init-arch.h
18185         (bit_Prefer_PMINUB_for_stringop): New.
18186         (index_Prefer_PMINUB_for_stringop): Likewise.
18187         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18188         bit_Prefer_PMINUB_for_stringop.
18189
18190 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18191
18192         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18193         buffer64.
18194         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18195         of casting of buffer.
18196         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18197         buffer32 and buffer64.
18198         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18199         writes instead of casting of buffer.
18200         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18201         buffer32.
18202         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18203         casting of buffer.
18204
18205 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18206
18207         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18208
18209 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18210
18211         * nscd/nscd.c (termination_handler): Don't do anything for a database
18212         if it has not yet been initialized.
18213
18214 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18215
18216         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18217
18218 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18219
18220         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18221
18222 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18223
18224         * po/nl.po: Update from translation team.
18225         * po/sv.po: Likewise.
18226
18227 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18228
18229         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18230         now disallowed by GCC.
18231
18232         * configure.in (use-default-link): Default to yes if a test -shared
18233         link meets our qualifications.
18234         * configure: Regenerated.
18235
18236         * config.make.in (output-format): New variable.
18237         * configure.in: Check for ld --print-output-format support.
18238         * configure: Regenerated.
18239         * Makerules ($(common-objpfx)format.lds)
18240         [$(output-format) != unknown]: Just use $(output-format),
18241         instead of the linker-script munging.
18242
18243 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18244
18245         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18246         of $(common-objpfx)shlib.lds.
18247         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18248
18249         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18250         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18251
18252         * configure.in (-z relro check): Adjust test code to add a large
18253         writable data section after it.
18254         * configure: Regenerated.
18255
18256 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18257
18258         * configure.in (-z relro check): Fix test code to make the variable
18259         truly const.
18260         * configure: Regenerated.
18261
18262 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18263
18264         * nscd/nscd.h (struct traced_file): Define.
18265         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18266         elements.  Add traced_files.
18267         (inotify_fd): Declare.
18268         (register_traced_file): Declare.
18269         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18270         (inotify_fd): Export.
18271         (resolv_conf_descr): Remove.
18272         (nscd_init): Move inotify descriptor creation to main.
18273         Don't register files for notification here.
18274         (register_traced_file): New function.
18275         (invalidate_cache): Don't use reset_res to determine whether to call
18276         res_init, go through the list of registered files.
18277         (main_loop_poll): The inotify descriptors are now stored in the
18278         structures for the traced files.
18279         (main_loop_epoll): Likewise
18280         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
18281         to __nss_disable_nscd.
18282         * nscd/cache.c (prune_cache): There is no single inotify descriptor
18283         for a database anymore.  Check the records for all the registered
18284         files instead.
18285         * nss/Makefile (libnss_files-routines): Add files-init.
18286         (libnss_db-routines): Add db-init.
18287         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
18288         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
18289         * nss/nss_db/db-init.c: New file.
18290         * nss/nss_files/files-init.c: New file.
18291         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
18292         __nss_lookup_function.
18293         (__nss_lookup_function): Call nss_load_library.
18294         (nss_load_all_libraries): New function.
18295         (__nss_disable_nscd): Take parameter with callback function for files
18296         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
18297         used for the cached services.
18298         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
18299         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
18300         options for features to all the files in nscd.
18301
18302         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
18303
18304 2011-07-10  Roland McGrath  <roland@hack.frob.com>
18305
18306         * csu/elf-init.c (__libc_csu_init): Comment typo.
18307
18308 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
18309
18310         * po/pl.po: Update from translation team.
18311         * po/ja.po: Likewise.
18312         * po/ru.po: Likewise.
18313         * po/ko.po: Likewise.
18314         * po/fr.po: Likewise.
18315
18316 2011-07-09  Roland McGrath  <roland@hack.frob.com>
18317
18318         * configure.in (.ctors/.dtors header and trailer check):
18319         Use an empirical test on a built program.
18320         * configure: Regenerated.
18321
18322         * configure.in (-z relro check): Use an empirical test on a built DSO.
18323         Detect, but do not require, on ia64.
18324         * configure: Regenerated.
18325
18326         * configure.in (READELF): Find it with AC_CHECK_TOOL.
18327         Update tests that use readelf to use $READELF instead.
18328         * configure: Regenerated.
18329
18330 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
18331
18332         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
18333         if the result is not used.
18334
18335 2011-07-05  Andreas Jaeger  <aj@suse.de>
18336
18337         [BZ#9696]
18338         * stdlib/tst-strtod.c: Add testcase.
18339
18340 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
18341
18342         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
18343         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
18344         The latter has a higher limit.  Take additional parameter to pass to
18345         the new function.
18346         (__pathconf): Pass file to __statfs_link_max.
18347         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
18348         __statfs_link_max.
18349         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
18350         __statfs_link_max.
18351
18352         [BZ #12868]
18353         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
18354         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18355         Handle Lustre.
18356         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
18357         (__statfs_filesize_max): Likewise.
18358         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
18359
18360 2011-07-05  Andreas Jaeger  <aj@suse.de>
18361
18362         * resolv/res_comp.c (dn_skipname): Remove unused variable.
18363
18364 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
18365
18366         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
18367         `status' variable.
18368         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
18369         Likewise.
18370
18371 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
18372
18373         * Makefile (strop-tests): Add strncat.
18374         * string/test-strncat.c: New file.
18375
18376 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
18377
18378         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
18379
18380 2011-06-21  Andreas Jaeger  <aj@suse.de>
18381
18382         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
18383         Copy rule from iconvdata/Makefile.
18384
18385 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18386
18387         [BZ #12922]
18388         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
18389         but no long options are defined, just return 'W'.
18390
18391 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
18392
18393         [BZ #9696]
18394         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
18395
18396 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18397
18398         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
18399         netgroups to read.
18400         (innetgr): Likewise.
18401
18402 2011-07-05  Roland McGrath  <roland@hack.frob.com>
18403
18404         * config.make.in (install_root): Default to $(DESTDIR).
18405
18406 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
18407
18408         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
18409
18410 2011-07-02  Roland McGrath  <roland@hack.frob.com>
18411
18412         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
18413
18414         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
18415         containing directory rather than embedding absolute directory names.
18416
18417         * scripts/check-local-headers.sh: Rewritten using awk.
18418         Match by word, not by line.  Print error messages for matches.
18419         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
18420
18421         * Makerules [shlib-lds-flags empty]:
18422         ($(common-objpfx)libc_pic.opts): New target.
18423         ($(common-objpfx)libc_pic.os.clean): New target.
18424         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
18425
18426         * config.make.in (OBJCOPY): New variable.
18427         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
18428         * configure: Regenerated.
18429
18430         * config.make.in (use-default-link): New variable.
18431         * configure.in (use_default_link): Grok --with-default-link to set it.
18432         * configure: Regenerated.
18433         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
18434         (shlib-lds, shlib-lds-flags): Define to empty.
18435
18436         * Makerules (shlib-lds): New variable.
18437         (shlib-lds-flags): New variable.
18438         (build-shlib, build-moduile, build-module-asneeded): Use it.
18439         ($(common-objpfx)libc.so): Use $(shlib-lds).
18440         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
18441         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
18442
18443         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
18444         DT_FLAGS/DT_FLAGS_1 with zero flags.
18445
18446         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
18447         linker script munging.
18448
18449 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
18450
18451         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
18452         as 128-bit value.
18453         * crypt/sha512.c (sha512_process_block): Perform total addition using
18454         128-bit if possible.
18455         (__sha512_finish_ctx): Likewise.
18456         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
18457         as 64-bit value.
18458         * crypt/sha256.c (SWAP64): Define.
18459         (sha256_process_block): Perform total addition using 64-bit if
18460         possible.
18461         (__sha256_finish_ctx): Likewise.
18462
18463 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
18464
18465         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
18466         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18467         * nscd/hstcache.c (cache_addhst): Likewise.
18468         * nscd/grpcache.c (cache_addgr): Likewise.
18469         * nscd/aicache.c (addhstaiX): Likewise
18470         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
18471
18472 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
18473
18474         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
18475         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18476         * nscd/hstcache.c (cache_addhst): Likewise.
18477         * nscd/grpcache.c (cache_addgr): Likewise.
18478         * nscd/aicache.c (addhstaiX): Likewise
18479
18480 2011-07-01  Andreas Schwab  <schwab@redhat.com>
18481
18482         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
18483         domain only when needed.
18484
18485 2011-06-30  Andreas Schwab  <schwab@redhat.com>
18486
18487         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
18488         is always restored.
18489
18490 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
18491
18492         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
18493         are re-adding the entry.
18494         * nscd/servicescache.c (cache_addserv): Likewise.
18495
18496 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
18497
18498         * sysdeps/generic/dl-irel.h: fix protection against multiple
18499         inclusions.
18500         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
18501
18502 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
18503
18504         [BZ #12935]
18505         * malloc/memusage.sh: Fix quoting in message.
18506         * debug/xtrace.sh: Likewise.
18507
18508         * configure.in: Remove support for --experimental-malloc option, make
18509         it the default.
18510         * config.make.in: Likewise.
18511         * malloc/Makefile: Likewise.
18512
18513 2011-06-27  Andreas Schwab  <schwab@redhat.com>
18514
18515         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
18516         two-byte characters.
18517
18518 2011-06-27  Roland McGrath  <roland@hack.frob.com>
18519
18520         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
18521         AC_CACHE_CHECK invocation.
18522         * configure: Regenerated.
18523
18524         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
18525
18526 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
18527
18528         [BZ #12350]
18529         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
18530         bit from old_res_options.
18531
18532         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
18533
18534         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
18535         value type for setfct.
18536
18537 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18538
18539         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18540         __gettimeofday instead of gettimeofday.
18541
18542 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
18543
18544         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
18545
18546 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18547
18548         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
18549
18550         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
18551         info.
18552
18553 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18554
18555         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18556         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18557         strcpy-sse2-unaligned strncpy-sse2-unaligned
18558         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
18559         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
18560         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
18561         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
18562         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
18563         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
18564         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
18565         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
18566         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
18567         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
18568         (STRCPY): Support SSE2 and SSSE3 versions.
18569
18570 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
18571
18572         [BZ #12874]
18573         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
18574         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
18575         kernels which artificially limit size of requests.
18576
18577 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18578
18579         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18580         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18581         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
18582         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
18583         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
18584         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
18585         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
18586         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
18587         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
18588         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
18589         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
18590         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
18591         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
18592         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
18593         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
18594         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18595         Enable unaligned load optimization for Intel Core i3, i5 and i7
18596         processors.
18597         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
18598         Define.
18599         (index_Fast_Unaligned_Load): Define.
18600         (HAS_FAST_UNALIGNED_LOAD): Define.
18601
18602 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
18603
18604         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
18605
18606 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18607
18608         [BZ #12907]
18609         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
18610         until it is clear that the information is realy needed.
18611         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
18612
18613 2011-06-22  Andreas Schwab  <schwab@redhat.com>
18614
18615         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
18616
18617 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18618
18619         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18620         /sys/devices/system/cpu/online if it is usable.
18621
18622         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
18623         reading the information from the /proc filesystem to once a second.
18624
18625 2011-06-21  Andreas Jaeger  <aj@suse.de>
18626
18627         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
18628         NULL after inclusion of kernel headers.
18629
18630 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
18631
18632         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
18633         calls to internal_setent.
18634
18635         [BZ #12885]
18636         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
18637         addresses using gethostbyname4_r ignore IPv4 addresses.
18638
18639         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
18640         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
18641
18642         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
18643
18644 2011-06-20  David S. Miller  <davem@davemloft.net>
18645
18646         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
18647         inclusions.
18648         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
18649
18650         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
18651         (elf_irel): Use it.
18652         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
18653         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
18654         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
18655         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
18656         * sysdeps/x86_64/dl-irel.h: Likewise.
18657
18658         * elf/dl-runtime.c: Use elf_ifunc_invoke.
18659         * elf/dl-sym.c: Likewise.
18660
18661 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18662
18663         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18664         need to dereference resplen2.
18665
18666 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18667
18668         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18669
18670 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18671
18672         * Makeconfig: Define vardbdir and inst_vardbdir.
18673         * nss/Makefile: Add rules to install db-Makefile.
18674
18675         * nss/nss_db/db-XXX.c: Cleanup.
18676
18677         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18678         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18679         GLIBC_PRIVATE.
18680         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18681         * nss/makedb.c: Implement -g option to specify that value strings
18682         are generated and should not be added to table iterated over for
18683         get*ent calls.
18684         * nss/nss_db/db-initgroups.c: New file.
18685
18686         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18687         interface.
18688
18689         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18690         (internal_getgrouplist): Adjust to name change.
18691         Update use_initgroups_entry if this is not the first call.
18692         * nss/databases.def: Add initgroups entry.
18693
18694         * nss/makedb.c (compute_tables): Check result of multiple hash table
18695         sizes to minimize maximum chain length.
18696
18697 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18698
18699         * Versions.def: Add entry for libnss_db.
18700         * shlib-versions: Likewise.
18701         * nss/Makefile: Add rules to build libnss_db.
18702         * nss/Versions: Add libnss_db information.  Organize libnss_files
18703         entries better.
18704         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18705         makedb progra.  Some minor improvements to generate smaller files.
18706         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18707         here from...
18708         * nss/makedb.c: ...here.
18709         Improve database format to be smaller and require less memory at
18710         runtime.
18711         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18712         db anymore.
18713         * nss/nss_db/db-netgrp.c: Likewise.
18714         * nss/nss_db/db-open.c: Likewise.
18715         * nss/nss_files/flies-XXX.x: Adjust comments.
18716         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18717         * nss/nss_files/files-grp.c: Likewise.
18718         * nss/nss_files/files-hosts.c: Likewise.
18719         * nss/nss_files/files-network.c: Likewise.
18720         * nss/nss_files/files-proto.c: Likewise.
18721         * nss/nss_files/files-pwd.c: Likewise.
18722         * nss/nss_files/files-rpc.c: Likewise.
18723         * nss/nss_files/files-service.c: Likewise.
18724         * nss/nss_files/files-sgrp.c: Likewise.
18725         * nss/nss_files/files-spwd.c: Likewise.
18726         * nss/nss_db/db-alias.c: Removed.
18727         * nss/nss_db/dummy-db.h: Removed.
18728
18729 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18730
18731         * nss/makedb.c: Rewritten to not use database library.
18732         * nss/Makefile: Update to build new makedb program.
18733
18734 2011-06-14  Andreas Jaeger  <aj@suse.de>
18735
18736         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18737         memset declaration.
18738
18739 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18740
18741         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18742         tmpbuf.
18743
18744 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18745
18746         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18747         * elf/Makefile ($(objpfx)ld.so): Likewise.
18748
18749         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18750         Don't list ld.so twice in dependencies.
18751
18752         * posix/bug-regex31.c: Include <stdlib.h>.
18753
18754         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18755
18756         * nis/nss_compat/compat-spwd.c
18757         (getspent_next_nss_netgr): Remove unused variable.
18758         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18759
18760         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18761         nonmembers" output to use the right array.
18762
18763         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18764
18765         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18766
18767         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18768         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18769         * catgets/gencat.c (read_input_file): Likewise.
18770         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18771
18772         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18773         variable definition inside #if's controlling its use.
18774
18775         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18776
18777         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18778
18779         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18780
18781         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18782         unreachable code.
18783
18784         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18785
18786         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18787         * configure: Regenerated.
18788
18789         * Makerules: Revert last change.
18790         * elf/Makefile: Likewise.
18791
18792 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18793
18794         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18795         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18796         (reloc-link): Likewise.
18797
18798 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18799
18800         * elf/Makefile: Add rules to build pldd.
18801         * elf/pldd.c: New file.
18802         * elf/pldd-xx.c: New file.
18803
18804 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18805
18806         * version.h: Update for 2.15 development version.
18807
18808 2011-06-07  David S. Miller  <davem@davemloft.net>
18809
18810         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18811         ifuncs.
18812         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18813         elf_machine_lazy_rel): Likewise.
18814         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18815         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18816         elf_machine_lazy_rel): Likewise.
18817         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18818         dl_hwcap via passed in argument.
18819         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18820         Likewise.
18821
18822 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18823
18824         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18825
18826 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18827
18828         [BZ #12849]
18829         * manual/fdl-1.1.texi: New file, verbatim from:
18830         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18831         * manual/lgpl-2.1.texi: New file, verbatim from:
18832         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18833         * manual/Makefile (licenses): New variable, list those new file names.
18834         (texis): Use it.
18835         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18836
18837         * manual/fdl.texi: File removed.
18838         * manual/lesser.texi: File removed.
18839         * manual/libc.texinfo (Copying, Documentation License):
18840         Use new @include file names, put @appendix directive before @include.
18841
18842 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18843
18844         [BZ #12841]
18845         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18846         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18847         (mq_open): Add __NTH.
18848
18849 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18850
18851         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18852         Assume Intel Core i3/i5/i7 processor if AVX is available.
18853
18854 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18855
18856         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18857         typo.
18858
18859 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18860
18861         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18862         memory.  Use alloca_account.  Fix memory leak when retrying.
18863
18864 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18865
18866         * version.h (RELEASE): Bump for 2.14 release.
18867         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18868
18869         * config.make.in (RANLIB): Remove entry.
18870
18871 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18872
18873         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18874         (libc.pot): Work around missing support for .ksh extension in xgettext.
18875
18876         [BZ #12684]
18877         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18878         if both request failed.
18879         (send_dg): In case of server errors clear resplen or *resplen2.
18880
18881         [BZ #12454]
18882         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18883         when there are multiple maps.
18884         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18885         (_dl_fini): Remove test here.
18886
18887         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18888
18889 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18890
18891         [BZ #12350]
18892         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18893         bit from old_res_options.
18894         (gaih_inet): Likewise.
18895
18896         [BZ #11099]
18897         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18898         as signed.
18899
18900         * resolv/res_init.c (res_setoptions): Make the code more compact.
18901
18902         [BZ #11558]
18903         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18904         set RES_USEVC.
18905
18906         [BZ #11634]
18907         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18908
18909         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18910
18911         [BZ #11781]
18912         * malloc/malloc.h: Declare malloc hook variables as volatile.
18913
18914         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18915         in last patch.
18916
18917         [BZ #11799]
18918         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18919         raise in the comment.
18920         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18921         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18922         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18923
18924 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18925
18926         [BZ #12811]
18927         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18928         grow the buffers more if it already has to be sufficient.
18929         (build_wcs_upper_buffer): Likewise.
18930         * posix/regexec.c (check_matching): Likewise.
18931         (clean_state_log_if_needed): Likewise.
18932         (extend_buffers): Don't enlarge buffers beyond size of the input
18933         buffer.
18934         Patches mostly by Emil Wojak <emil@wojak.eu>.
18935         * posix/bug-regex32.c: New file.
18936         * posix/Makefile (tests): Add bug-regex32.
18937
18938         * locale/findlocale.c (_nl_find_locale): Return right away if
18939         _nl_explode_name failed.
18940         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18941
18942         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18943
18944         * debug/xtrace.sh: Unify messages.
18945         * malloc/memusage.sh: Likewise.
18946
18947         [BZ #12813]
18948         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18949         time symbol from vDSO.  Substitute with vsyscall if not available.
18950         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18951         __vdso_time.
18952
18953         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18954         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18955         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18956         Add sendmmsg and internal_sendmmsg.
18957         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18958         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18959         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18960
18961         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18962         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18963         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18964
18965 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18966
18967         [BZ #12813]
18968         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18969         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18970         available.
18971         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18972         __vdso_getcpu.
18973
18974         [BZ #12814]
18975         * iconvdata/Makefile (tests): Add bug-iconv9.
18976         * iconvdata/bug-iconv9.c: New file.
18977
18978 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18979
18980         [BZ #12814]
18981         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18982
18983 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18984
18985         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18986         (struct user_regs_struct): Change intcs field back to cs.
18987
18988 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18989
18990         * po/ja.po: Update from translation team.
18991
18992 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18993
18994         [BZ #12795]
18995         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18996         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18997
18998 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18999
19000         * stdlib/longlong.h: Update from GCC.
19001
19002 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19003
19004         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19005         parameter name.
19006         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19007         Add parameter name.
19008         (__sysconf): Pass it down.
19009
19010 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19011
19012         [BZ #12671]
19013         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19014         some situations.
19015         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19016         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19017         add in in __libc_use_alloca calls.  Adjust callers.
19018         (glob): Use malloc in some situations.
19019
19020         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19021         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19022         pltexit.
19023
19024 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19025
19026         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19027         and CLOCK_BOOTTIME_ALARM.
19028
19029         [BZ #12782]
19030         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19031         is returned.
19032
19033         * string/_strerror.c (__strerror_r): Print negative errors as signed
19034         numbers.
19035
19036         [BZ #12777]
19037         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19038         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19039         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19040
19041         * configure.in: Fix typo in redirection and correct removal of test
19042         files in two cases.
19043
19044         [BZ #12788]
19045         * locale/setlocale.c (new_composite_name): Fix test to check for
19046         identical name of all categories.
19047
19048         [BZ #12792]
19049         * libio/filedoalloc.c (local_isatty): New function.
19050         (_IO_file_doallocate): Use local_isatty.
19051         * stdio-common/perror.c (perror): In case a new stream is used
19052         forward the stream error.
19053         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19054         error flag.
19055
19056 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19057
19058         [BZ #11869]
19059         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19060         alloca.
19061         * include/alloca.h (extend_alloca_account): Define.
19062
19063         [BZ #11857]
19064         * posix/regex.h: Fix comments with documentation of user-accessible
19065         fields after compilation and describe correct free'ing of pattern
19066         after re_compile_pattern.
19067         Patch by Reuben Thomas <rrt@sc3d.org>.
19068
19069 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19070
19071         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19072         and -mno-altivec to prevent the compiler from using Altivec and/or
19073         VSX instructions when the corresponding registers are not available.
19074
19075 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19076
19077         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19078
19079 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19080
19081         * libio/freopen.c (freopen): Use __dup2, not dup2.
19082         * libio/freopen64.c (freopen64): Likewise.
19083
19084 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19085
19086         [BZ #12775]
19087         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19088         * math/Makefile (tests): Add test-powl.
19089         (CFLAGS-test-powl.c): Define.
19090         * math/test-powl.c: New file.
19091
19092 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19093
19094         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19095
19096 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19097
19098         [BZ #11837]
19099         * iconvdata/gb18030.c: Update to GB18020-2005.
19100
19101 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19102
19103         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19104         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19105         Patch by Aharon Robbins <arnold@skeeve.com>.
19106
19107         [BZ #11892]
19108         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19109         on the stack.
19110
19111         [BZ #11895]
19112         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19113         through underflows.
19114
19115         [BZ #12766]
19116         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19117         point to strings before performing equality test for error_one_per_line
19118         mode.
19119
19120         [BZ #11697]
19121         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19122
19123         [BZ #11820]
19124         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19125         (struct user_fpregs_struct): Avoid __uint*_t types.
19126
19127         [BZ #6420]
19128         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19129         symbol info.  Use it instead of calling _dl_addr locally.
19130         (lock_and_info): New function.
19131         (tr_freehook): Call lock_and_info and pass symbol info as additional
19132         parameter to tr_where.
19133         (tr_mallochook): Likewise.
19134         (tr_reallochook): Likewise.
19135         (tr_memalignhook): Likewise.
19136
19137         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19138         used and couldn't be at all thread-safe.
19139
19140 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19141
19142         * libio/freopen.c (freopen): Don't close old file descriptor
19143         before the new one is opened.  Instead dup the new file descriptor
19144         to the old one after the new stream is created.
19145         * libio/freopen64.c (freopen64): Likewise.
19146         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19147         * libio/fileops.c (_IO_new_file_close_it): Handle new
19148         _IO_FLAGS2_NOCLOSE flag.
19149         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19150         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19151         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19152         _IO_FLAGS2_NOCLOSE flag.
19153         * include/unistd.h: Add hidden_proto for dup3.
19154         Define __have_dup3.
19155         * io/dup3.c: Define hidden symbol.
19156         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19157
19158         [BZ #7101]
19159         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19160         when an incomplete long option is used.
19161         * posix/tst-getopt_long1.c: New file.
19162         * posix/Makefile (tests): Add tst-getopt_long1.
19163
19164         [BZ #10138]
19165         * scripts/config.guess: Update from autoconf-2.68.
19166         * scripts/config.sub: Likewise.
19167
19168         [BZ #10157]
19169         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19170         tests into ...
19171         (has_cpuclock): ...this.  New function.
19172         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19173         macro here based on has_cpuclock code.
19174
19175         [BZ #10149]
19176         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19177         First byte (not low byte) is now always NUL.
19178         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19179
19180         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19181         Use non-cancelable interfaces.
19182
19183         [BZ #9809]
19184         * locale/iso-639.def: Add entry for Sorani.
19185
19186         [BZ #11901]
19187         * include/stdlib.h: Move include protection to the right place.
19188         Define abort_msg_s.  Declare __abort_msg with it.
19189         * stdlib/abort.c (__abort_msg): Adjust type.
19190         * assert/assert.c (__assert_fail_base): New function.  Majority
19191         of code from __assert_fail.  Allocate memory for __abort_msg with
19192         mmap.
19193         (__assert_fail): Now call __assert_fail_base.
19194         * assert/assert-perr.c: Remove bulk of implementation.  Use
19195         __assert_fail_base.
19196         * include/assert.hL Declare __assert_fail_base.
19197         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19198         mmap.
19199         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19200
19201 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19202
19203         [BZ #11952]
19204         [BZ #12453]
19205         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19206         until all modules are registered in the DTV.
19207         * elf/Makefile: Add rules to build and run tst-tls19.
19208         * elf/tst-tls19.c: New file.
19209         * elf/tst-tls19mod1.c: New file.
19210         * elf/tst-tls19mod2.c: New file.
19211         * elf/tst-tls19mod3.c: New file.
19212         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19213
19214         [BZ #12083]
19215         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19216         correctly.
19217
19218         [BZ #12601]
19219         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19220         two-byte sequence errors.
19221         * iconvdata/Makefile (tests): Add bug-iconv8.
19222         * iconvdata/bug-iconv8.c: New file.
19223
19224         [BZ #12626]
19225         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19226         buf2 definition.
19227
19228         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19229
19230         [BZ #12432]
19231         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19232         (dummy_getcfa): New function.
19233         (init): Get _Unwind_GetCFA address, use dummy if not found.
19234         (backtrace_helper): In recursion check, also check whether CFA changes.
19235         (__backtrace): Completely initialize arg.
19236
19237         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19238         storing incomplete byte sequence in state object.  Avoid testing for
19239         guaranteed too small input if we know there is enough data available.
19240
19241 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19242
19243         * Makeconfig (+link-pie): Indent.
19244         * Rules (binaries-pie): Define if $(have-fpie) and
19245         $(build-shared).
19246         (binaries-shared): Also filter out $(binaries-pie).
19247         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19248         * nscd/Makefile (others-pie): Add nscd.
19249         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19250         ($(objpfx)nscd): Remove command override.
19251         * login/Makefile (others-pie): Add pt_chown.
19252         ($(objpfx)pt_chown): Remove command override.
19253         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19254         remove command overrides.
19255
19256 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19257
19258         * libio/tst_putwc.c: Fix error messages.
19259
19260         [BZ #12724]
19261         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19262         currently writing and seek to current position when not.
19263         * libio/Makefile (tests): Add bug-fclose1.
19264         * libio/bug-fclose1.c: New file.
19265
19266 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19267
19268         [BZ #12511]
19269         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19270         don't set DF_1_NODELETE here.
19271         (do_lookup_x): When entering new entry test for copy relocation
19272         and if necessary set DF_1_NODELETE flag.
19273         * elf/tst-unique4.cc: New file.
19274         * elf/tst-unique4.h: New file.
19275         * elf/tst-unique4lib.cc: New file.
19276         * elf/Makefile: Add rules to build and run tst-unique4.
19277         Patch by Piotr Bury <pbury@goahead.com>.
19278
19279 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19280
19281         [BZ #12052]
19282         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
19283
19284         [BZ #12625]
19285         * misc/mntent_r.c (addmntent): Flush the stream after the output
19286
19287         [BZ #12393]
19288         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
19289         (is_trusted_path_normalize): Skip initial colon.  Append slash
19290         to empty buffer.  Duplicate is_trusted_path code but allow
19291         constructed patch to be prefix.
19292         (is_dst): Allow $ORIGIN followed by /.
19293         (_dl_dst_substitute): Correct clearing of check_for_trusted.
19294         Correct testing of result of is_trusted_path_normalize
19295         (decompose_rpath): Fix warning.
19296
19297 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
19298
19299         [BZ #11257]
19300         * grp/initgroups.c (internal_getgrouplist): When we found the service
19301         list through the initgroups entry in nsswitch.conf do not always
19302         continue on a successful lookup.  Don't always use the
19303         __nss_group_database value if it is set.
19304         * nss/nsswitch.conf (initgroups): Change action for successful db
19305         lookup to continue for compatibility.
19306
19307 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
19308
19309         [BZ #11532]
19310         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
19311         and CP774 modules.
19312         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
19313         and CP774 modules.
19314         * iconvdata/tst-tables.sh: Likewise.
19315         * iconvdata/cp770.c: New file.
19316         * iconvdata/cp771.c: New file.
19317         * iconvdata/cp772.c: New file.
19318         * iconvdata/cp773.c: New file.
19319         * iconvdata/cp774.c: New file.
19320         * iconvdata/testdata/CP770: New file.
19321         * iconvdata/testdata/CP770..UTF8: New file.
19322         * iconvdata/testdata/CP771: New file.
19323         * iconvdata/testdata/CP771..UTF8: New file.
19324         * iconvdata/testdata/CP772: New file.
19325         * iconvdata/testdata/CP772..UTF8: New file.
19326         * iconvdata/testdata/CP773: New file.
19327         * iconvdata/testdata/CP773..UTF8: New file.
19328         * iconvdata/testdata/CP774: New file.
19329         * iconvdata/testdata/CP774..UTF8: New file.
19330
19331         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
19332         END CHARMAP line.
19333         * iconvdata/gen-8bit-gap.sh: Likewise.
19334         * iconvdata/gen-8bit.sh: Likewise.
19335
19336         * locale/iso-639.def: Add ary entry.
19337
19338         [BZ #11258]
19339         * locale/C-translit.h.in: Add U20A1 transliteration.
19340
19341         [BZ #12178]
19342         * locale/iso-639.def: Add wae entry.
19343         Patch by Kevin Bortis <bortis@translate-wae.ch>.
19344
19345         [BZ #12545]
19346         * locale/programs/localedef.c (construct_output_path): Use ssize_t
19347         for n.
19348
19349         [BZ #12711]
19350         * locale/C-translit.h.in: Add entry for U20B9.
19351         Patch by pravin.d.s@gmail.com.
19352
19353 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
19354
19355         [BZ #12713]
19356         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
19357         ENAMETOOLONG use generic getcwd.
19358         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
19359         in rtld.  Use *stat64.
19360         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
19361         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
19362         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
19363         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
19364         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
19365         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
19366         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
19367         __fstatat64 macros.
19368         * include/dirent.h: Add libc_hidden_proto for rewinddir.
19369         * dirent/rewinddir.c: Add libc_hidden_def.
19370         * sysdeps/mach/hurd/rewinddir.c: Likewise.
19371         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
19372
19373         * include/dirent.h (__alloc_dir): Add flags parameter.
19374         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
19375         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
19376         __alloc_dir.
19377         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
19378         from fdopendir if O_CLOEXEC is already set.
19379
19380 2011-03-15  Alan Modra  <amodra@gmail.com>
19381
19382         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
19383         l_tls_firstbyte_offset non-zero.  Save padding offset in
19384         l_tls_firstbyte_offset for later use.
19385         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
19386         freeing static tls block.
19387
19388 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
19389
19390         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
19391         where #ifdef was intended.  The intent is to prevent ARG_MAX from
19392         being defined by the kernel headers.
19393
19394 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
19395
19396         [BZ #12734]
19397         * resolv/resolv.h: Define RES_NOTLDQUERY.
19398         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
19399         no-tld-query and set RES_NOTLDQUERY.
19400         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
19401         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
19402         modern BIND to search name as TLD unless forbidden.
19403
19404 2011-05-07  Petr Baudis  <pasky@suse.cz>
19405             Ulrich Drepper  <drepper@gmail.com>
19406
19407         [BZ #12393]
19408         * elf/dl-load.c (fillin_rpath): Move trusted path check...
19409         (is_trusted_path): ...to here.
19410         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
19411         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
19412         using is_trusted_path_normalize() in setuid scripts.
19413
19414 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19415
19416         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
19417         __BEGIN/__END_DECLS.
19418
19419 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
19420
19421         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
19422         NSS_STATUS_NOTFOUND if no record was found.
19423
19424 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19425
19426         * sunrpc/Makefile (headers): Add rpc/netdb.h.
19427         (headers-not-in-tirpc): Remove rpc/netdb.h
19428         * resolv/netdb.h: Revert last change.
19429
19430 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19431
19432         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
19433         circular dependency between libgcc.a and libc.a.
19434
19435 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19436
19437         * resolv/netdb.h: Don't include <rpc/netdb.h>.
19438         * nis/Makefile: Don't install rpcsvc/*.
19439         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
19440         instead of <rpc/types.h>.
19441         (MAXHOSTNAMELEN): Define.
19442
19443 2011-05-03  Andreas Schwab  <schwab@redhat.com>
19444
19445         * elf/ldconfig.c (add_dir): Don't crash on empty path.
19446
19447 2011-04-28  Maciej Babinski  <mbabinski@google.com>
19448
19449         [BZ #12714]
19450         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
19451         gethostbyname4_r when IPv6 results are possible.
19452
19453 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
19454
19455         [BZ #12723]
19456         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
19457         _PC_PIPE_BUF handling.
19458
19459 2011-04-30  Bruno Haible  <bruno@clisp.org>
19460
19461         [BZ #12717]
19462         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
19463         * resolv/netdb.h (getnameinfo): Change type of flags parameter
19464         to 'int'.
19465         * inet/getnameinfo.c (getnameinfo): Likewise.
19466
19467 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
19468
19469         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
19470         to groups setting in database lookup.
19471         * nss/nsswitch.conf: Add initgroups entry.
19472
19473 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
19474
19475         [BZ #12685]
19476         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
19477         mode string.
19478         Patch by Eric Blake <eblake@redhat.com>.
19479
19480 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
19481
19482         * sunrpc/Makefile (need-export-routines): Add svc_run.
19483         (routines): Remove svc_run.
19484         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
19485         * sunrpc/clnt_perr.c (clnt_perrno): Export.
19486         * sunrpc/svc_run.c (svc_run): Likewise.
19487         * sunrpc/svc_udp.c (svcudp_create): Likewise.
19488
19489 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
19490
19491         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
19492         problem in reallocation in last patch.
19493
19494 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
19495
19496         * sunrpc/Makefile: Move inclusion of Rules.
19497
19498 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19499
19500         * nss/nss_files/files-initgroups.c: New file.
19501         * nss/Makefile (libnss_files-routines): Add files-initgroups.
19502         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
19503         _nss_files_initgroups_dyn.
19504
19505 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
19506
19507         * elf/elf.h (R_ARM_IRELATIVE): Define.
19508
19509 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19510
19511         * po/ru.po: Update from translation team.
19512
19513 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19514
19515         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
19516         dependencies.
19517
19518 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
19519
19520         [BZ #12653]
19521         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
19522         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
19523         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19524         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
19525         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
19526
19527 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
19528
19529         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
19530         differing bytes.
19531         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
19532         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
19533         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
19534
19535 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19536
19537         [BZ #12420]
19538         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
19539         storing it.
19540         * stdlib/bug-getcontext.c: New file.
19541         * stdlib/Makefile: Add rules to build and run bug-getcontext.
19542
19543 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19544
19545         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
19546         instructions into .machine "z9-109".
19547         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
19548         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
19549
19550 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19551
19552         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
19553         between environment variables and auxiliary vector.
19554
19555 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
19556
19557         * Makefile: Add rules to build linkobj/libc.so.
19558         * include/libc-symbols.h: Define libc_hidden_nolink.
19559         * include/rpc/auth.h: Mark functions which are to be hidden.
19560         * include/rpc/auth_des.h: Likewise.
19561         * include/rpc/auth_unix.h: Likewise.
19562         * include/rpc/clnt.h: Likewise.
19563         * include/rpc/des_crypt.h: Likewise.
19564         * include/rpc/key_prot.h: Likewise.
19565         * include/rpc/pmap_clnt.h: Likewise.
19566         * include/rpc/pmap_prot.h: Likewise.
19567         * include/rpc/pmap_rmt.h: Likewise.
19568         * include/rpc/rpc_msg.h: Likewise.
19569         * include/rpc/svc.h: Likewise.
19570         * include/rpc/svc_auth.h: Likewise.
19571         * include/rpc/xdr.h: Likewise.
19572         * nis/Makefile: Link all DSOs against linkobj/libc.so.
19573         * nss/Makefile: Likewise.
19574         * sunrpc/Makefile: Don't install headers.  Build library with normal
19575         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
19576         * sunrpc/auth_des.c: Hide exported symbols by default, export some
19577         for the compat linking library.  Remove use of INTDEF/INTUSE.
19578         * sunrpc/auth_none.c: Likewise.
19579         * sunrpc/auth_unix.c: Likewise.
19580         * sunrpc/authdes_prot.c: Likewise.
19581         * sunrpc/authuxprot.c: Likewise.
19582         * sunrpc/clnt_gen.c: Likewise.
19583         * sunrpc/clnt_perr.c: Likewise.
19584         * sunrpc/clnt_raw.c: Likewise.
19585         * sunrpc/clnt_simp.c: Likewise.
19586         * sunrpc/clnt_tcp.c: Likewise.
19587         * sunrpc/clnt_udp.c: Likewise.
19588         * sunrpc/clnt_unix.c: Likewise.
19589         * sunrpc/des_crypt.c: Likewise.
19590         * sunrpc/des_soft.c: Likewise.
19591         * sunrpc/get_myaddr.c: Likewise.
19592         * sunrpc/key_call.c: Likewise.
19593         * sunrpc/key_prot.c: Likewise.
19594         * sunrpc/netname.c: Likewise.
19595         * sunrpc/pm_getmaps.c: Likewise.
19596         * sunrpc/pm_getport.c: Likewise.
19597         * sunrpc/pmap_clnt.c: Likewise.
19598         * sunrpc/pmap_prot.c: Likewise.
19599         * sunrpc/pmap_prot2.c: Likewise.
19600         * sunrpc/pmap_rmt.c: Likewise.
19601         * sunrpc/publickey.c: Likewise.
19602         * sunrpc/rpc_cmsg.c: Likewise.
19603         * sunrpc/rpc_common.c: Likewise.
19604         * sunrpc/rpc_dtable.c: Likewise.
19605         * sunrpc/rpc_prot.c: Likewise.
19606         * sunrpc/rpc_thread.c: Likewise.
19607         * sunrpc/rtime.c: Likewise.
19608         * sunrpc/svc.c: Likewise.
19609         * sunrpc/svc_auth.c: Likewise.
19610         * sunrpc/svc_authux.c: Likewise.
19611         * sunrpc/svc_raw.c: Likewise.
19612         * sunrpc/svc_run.c: Likewise.
19613         * sunrpc/svc_simple.c: Likewise.
19614         * sunrpc/svc_tcp.c: Likewise.
19615         * sunrpc/svc_udp.c: Likewise.
19616         * sunrpc/svc_unix.c: Likewise.
19617         * sunrpc/svcauth_des.c: Likewise.
19618         * sunrpc/xcrypt.c: Likewise.
19619         * sunrpc/xdr.c: Likewise.
19620         * sunrpc/xdr_array.c: Likewise.
19621         * sunrpc/xdr_float.c: Likewise.
19622         * sunrpc/xdr_intXX_t.c: Likewise.
19623         * sunrpc/xdr_mem.c: Likewise.
19624         * sunrpc/xdr_rec.c: Likewise.
19625         * sunrpc/xdr_ref.c: Likewise.
19626         * sunrpc/xdr_sizeof.c: Likewise.
19627         * sunrpc/xdr_stdio.c: Likewise.
19628
19629 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
19630
19631         [BZ #12650]
19632         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
19633         * sysdeps/ia64/dl-tls.h: Likewise.
19634         * sysdeps/powerpc/dl-tls.h: Likewise.
19635         * sysdeps/s390/dl-tls.h: Likewise.
19636         * sysdeps/sh/dl-tls.h: Likewise.
19637         * sysdeps/sparc/dl-tls.h: Likewise.
19638         * sysdeps/x86_64/dl-tls.h: Likewise.
19639         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
19640
19641 2011-03-14  Andreas Schwab  <schwab@redhat.com>
19642
19643         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
19644         rpath element also skip the following colon.
19645         (expand_dynamic_string_token): Add is_path parameter and pass
19646         down to DL_DST_REQUIRED and _dl_dst_substitute.
19647         (decompose_rpath): Call expand_dynamic_string_token with
19648         non-zero is_path.  Ignore empty rpaths.
19649         (_dl_map_object_from_fd): Call expand_dynamic_string_token
19650         with zero is_path.
19651
19652 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
19653
19654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
19655         Make cancelable.
19656
19657 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
19658
19659         [BZ #12655]
19660         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19661         Patch by Filipe David Manana <fdmanana@apache.org>.
19662
19663 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19664
19665         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19666         Maintain aligned stack.
19667         (CHECK_RSP): Remove unused macro.
19668
19669 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19670
19671         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19672         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19673
19674 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19675
19676         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19677
19678         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19679
19680 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19681
19682         [BZ #12518]
19683         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19684         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19685         * sysdeps/x86_64/memmove.c: New file.
19686         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19687         (memcpy): Renamed to ...
19688         (__new_memcpy): This.
19689         (memcpy): Provide GLIBC_2_14 memcpy.
19690         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19691         (memcpy): Provide GLIBC_2_2_5 memcpy.
19692
19693 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19694
19695         [BZ #12631]
19696         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19697
19698 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19699
19700         * misc/syncfs.c: New file.
19701         * misc/Makefile (routines): Add syncfs.
19702         * posix/unistd.h: Declare syncfs.
19703         * sysdeps/unix/syscalls.list: Add syncfs.
19704
19705 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19706
19707         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19708         open_by_handle_at.
19709         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19710         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19711         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19712         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19713         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19714         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19715         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19716
19717 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19718
19719         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19720         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19721         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19722         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19723         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19724         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19725         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19726
19727         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19728         sync_file_range.c with -fexceptions.
19729         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19730         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19731         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19732         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19733         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19734         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19735         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19736         sync_file_range as cancellation point
19737         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19738         now a wrapper around __call_sync_file_range with cancellation handling.
19739         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19740         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19741         function name to __call_sync_file_range.
19742         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19743         Add call_sync_file_range.
19744
19745 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19746
19747         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19748         bits/timex.h.
19749
19750 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19751
19752         * iconv/iconv.h: Fix typo in comment.
19753         * io/fcntl.h: Likewise.
19754         * libio/stdio.h: Likewise.
19755         * posix/spawn.h: Likewise.
19756         * posix/unistd.h: Likewise.
19757         * stdlib/stdlib.h: Likewise.
19758         * time/time.h: Likewise.
19759         * wcsmbs/wchar.h: Likewise.
19760
19761         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19762         open_by_handle): Add.
19763         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19764         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19765         Augment a few comments.
19766         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19767         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19768         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19769         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19770         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19771         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19772         open_by_handle.
19773
19774         * io/fcntl.h (AT_EMPTY_PATH): Define.
19775
19776 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19777
19778         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19779         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19780         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19781         to...
19782         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19783         * Versions.def: Add GLIBC_2.14.
19784         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19785         Export.
19786
19787 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19788
19789         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19790         round counter.
19791         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19792
19793 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19794
19795         [BZ #12597]
19796         * string/test-strncmp.c (do_page_test): New function.
19797         (check2): Likewise.
19798         (test_main): Call check2.
19799         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19800
19801 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19802
19803         [BZ #12587]
19804         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19805         Handle cache information in CPU leaf 4.
19806         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19807
19808 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19809
19810         [BZ #12583]
19811         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19812         character representation.
19813         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19814
19815 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19816
19817         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19818         END(__isnan) to END(__isnanf) to match function entry point/label
19819         EALIGN(__isnanf,...).
19820
19821 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19822
19823         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19824
19825 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19826
19827         [BZ #12510]
19828         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19829         copy from the symbol referenced in the relocation to initialize the
19830         used variable.
19831         Patch by Piotr Bury <pbury@goahead.com>.
19832         * elf/Makefile: Add rules to build and tst-unique3.
19833         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19834         * elf/tst-unique3.cc: New file.
19835         * elf/tst-unique3.h: New file.
19836         * elf/tst-unique3lib.cc: New file.
19837         * elf/tst-unique3lib2.cc: New file.
19838
19839         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19840
19841 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19842
19843         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19844         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19845         to _start.
19846
19847 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19848
19849         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19850         to-be-loaded object along a path to loader is ld.so.
19851
19852 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19853             Ulrich Drepper  <drepper@gmail.com>
19854
19855         * sysdeps/x86_64/memset.S: After aligning destination, code
19856         branches to different locations depending on the value of
19857         misalignment, when multiarch is enabled. Fix this.
19858
19859 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19860
19861         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19862         Set _x86_64_preferred_memory_instruction for AMD processsors.
19863         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19864         Set bit_Prefer_SSE_for_memop for AMD processors.
19865
19866 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19867
19868         * libio/fmemopen.c (fmemopen): Optimize a bit.
19869
19870 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19871
19872         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19873
19874 2011-03-03  Roland McGrath  <roland@redhat.com>
19875
19876         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19877
19878 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19879
19880         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19881         __bzero_ultra1 instead of __memset_ultra1.
19882
19883 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19884             Ulrich Drepper  <drepper@gmail.com>
19885
19886         [BZ #12509]
19887         * include/link.h (struct link_map): Add l_orig_initfini.
19888         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19889         returning unsuccessfully.
19890         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19891         close of a file loaded at startup, restore the original l_initfini
19892         list.
19893         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19894         list, store the pointer.
19895         * elf/Makefile ($(objpfx)noload-mem): New rule.
19896         (noload-ENV): Define.
19897         (tests): Add $(objpfx)noload-mem.
19898         * elf/noload.c: Include <memcheck.h>.
19899         (main): Call mtrace.  Close all opened handles.
19900
19901 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19902
19903         [BZ #12454]
19904         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19905         dependencies are missing.
19906
19907 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19908
19909         Fix __if_freereq crash: Unlike the generic version which uses free,
19910         Hurd needs munmap.
19911         * sysdeps/mach/hurd/ifreq.h: New file.
19912
19913 2011-01-27  Petr Baudis  <pasky@suse.cz>
19914             Ulrich Drepper  <drepper@gmail.com>
19915
19916         [BZ 12445]#
19917         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19918         to extend_alloca().
19919         * stdio-common/bug23.c: New file.
19920         * stdio-common/Makefile (tests): Add bug23.
19921
19922 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19923             Ulrich Drepper  <drepper@gmail.com>
19924
19925         [BZ #12489]
19926         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19927         before performing relro protection.  At old place add assertion
19928         to make sure nothing changed.
19929
19930 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19931             Glauber de Oliveira Costa  <glommer@gmail.com>
19932
19933         * elf/elf.h: Add new ARM TLS relocs.
19934
19935 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19936
19937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19938         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19939         cast from r3.
19940         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19941         'tests' variable.
19942         * sysdeps/wordsize-64/tst-writev.c: New file.
19943
19944 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19945
19946         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19947         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19948         insns in _dl_start to prevent a TOC reference before relocs are
19949         resolved.
19950
19951 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19952
19953         [BZ #12469]
19954         * Makeconfig: Remove RANLIB definition.
19955         * Makerules: Don't use RANLIB.
19956         * aclocal.m4: Remove ranlib test.
19957         * configure.in: No need to check for ranlib.
19958         * elf/rtld-Rules: Don't use RANLIB.
19959
19960 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19961
19962         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19963         protection macro.
19964         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19965         inclusion protection macro.
19966
19967         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19968         SIGRTMIN and SIGRTMAX and print information in that case only when
19969         SIGRTMIN is defined.
19970
19971 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19972
19973         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19974         arginfo fn returning -1.
19975
19976         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19977         and thousands string is zero terminated.
19978
19979 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19980
19981         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19982         sysdeps/unix/sysv/linux/bits/socket.h.
19983
19984 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19985
19986         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19987         (__CPU_COUNT): Remove old macros.
19988         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19989         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19990         (__CPU_ALLOC, __CPU_FREE): Add macros.
19991         (__sched_cpualloc, __sched_cpufree): Add declarations.
19992
19993 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19994
19995         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19996         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19997         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19998         (readdhstai): Return value of addhstaiX call.
19999         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20000         (addgrbyX): Return value returned by cache_addgr.
20001         (readdgrbyname): Return value returned by addgrbyX.
20002         (readdgrbygid): Likewise.
20003         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20004         (addpwbyX): Return value returned by cache_addpw.
20005         (readdpwbyname): Return value returned by addhstbyX.
20006         (readdpwbyuid): Likewise.
20007         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20008         (addservbyX): Return value returned by cache_addserv.
20009         (readdservbyname): Return value returned by addservbyX:
20010         (readdservbyport): Likewise.
20011         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20012         (addhstbyX): Return value returned by cache_addhst.
20013         (readdhstbyname): Return value returned by addhstbyX.
20014         (readdhstbyaddr): Likewise.
20015         (readdhstbynamev6): Likewise.
20016         (readdhstbyaddrv6): Likewise.
20017         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20018         (readdinitgroups): Return value returned by addinitgroupsX.
20019         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20020         (prune_cache): Keep track of timeout value of re-added entries.
20021         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20022         * nscd/nscd.h: Adjust prototypes of readd* functions.
20023
20024 2011-02-04  Roland McGrath  <roland@redhat.com>
20025
20026         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20027         (nis_stats): Likewise.
20028         * nis/nis_modify.c (nis_modify): Likewise.
20029         * nis/nis_remove.c (nis_remove): Likewise.
20030         * nis/nis_add.c (nis_add): Likewise.
20031
20032         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20033
20034         * posix/fnmatch_loop.c: Add some consts.
20035
20036         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20037
20038 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20039
20040         [BZ #12460]
20041         * config.make.in (config-cflags-novzeroupper): Define.
20042         * configure.in: Substitute libc_cv_cc_novzeroupper.
20043         * elf/Makefile (AVX-CFLAGS): Define.
20044         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20045         (CFLAGS-tst-auditmod4a.c): Likewise.
20046         (CFLAGS-tst-auditmod4b.c): Likewise.
20047         (CFLAGS-tst-auditmod6b.c): Likewise.
20048         (CFLAGS-tst-auditmod6c.c): Likewise.
20049         (CFLAGS-tst-auditmod7b.c): Likewise.
20050         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20051
20052 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20053
20054         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20055         function to the callback.
20056         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20057
20058 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20059
20060         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20061         of errno.
20062
20063 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20064
20065         [BZ #11724]
20066         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20067         of constructors.
20068         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20069         of destructors.
20070         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20071
20072         [BZ #11724]
20073         * elf/Makefile: Add rules to build and run new test.
20074         * elf/tst-initorder.c: New file.
20075         * elf/tst-initorder.exp: New file.
20076         * elf/tst-initordera1.c: New file.
20077         * elf/tst-initordera2.c: New file.
20078         * elf/tst-initordera3.c: New file.
20079         * elf/tst-initordera4.c: New file.
20080         * elf/tst-initorderb1.c: New file.
20081         * elf/tst-initorderb2.c: New file.
20082         * elf/tst-order-a1.c: New file.
20083         * elf/tst-order-a2.c: New file.
20084         * elf/tst-order-a3.c: New file.
20085         * elf/tst-order-a4.c: New file.
20086         * elf/tst-order-b1.c: New file.
20087         * elf/tst-order-b2.c: New file.
20088         * elf/tst-order-main.c: New file.
20089         New test case by George Gensure <werkt0@gmail.com>.
20090
20091 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20092
20093         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20094         decoding ACE if AI_CANONIDN.
20095
20096 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20097
20098         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20099
20100 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20101
20102         * version.h (RELEASE): Bump for 2.13 release.
20103         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20104
20105         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20106
20107         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20108         MADV_NOHUGEPAGE.
20109         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20110         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20111         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20112         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20113         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20114         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20115
20116         * posix/getconf.c: Update copyright year.
20117         * catgets/gencat.c: Likewise.
20118         * csu/version.c: Likewise.
20119         * debug/catchsegv.sh: Likewise.
20120         * debug/xtrace.sh: Likewise.
20121         * elf/ldconfig.c: Likewise.
20122         * elf/ldd.bash.in: Likewise.
20123         * elf/sprof.c (print_version): Likewise.
20124         * iconv/iconv_prog.c: Likewise.
20125         * iconv/iconvconfig.c: Likewise.
20126         * locale/programs/locale.c: Likewise.
20127         * locale/programs/localedef.c: Likewise.
20128         * malloc/memusage.sh: Likewise.
20129         * malloc/mtrace.pl: Likewise.
20130         * nscd/nscd.c (print_version): Likewise.
20131         * nss/getent.c: Likewise.
20132
20133         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20134         PF_CAIF, and PF_ALG.
20135         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20136
20137 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20138
20139         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20140         (modules-names): Use them.
20141         (ifunc-test-modules, ifunc-pie-tests): Define.
20142         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20143         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20144         (test-extras): Likewise.
20145         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20146         $(compile-command.c).
20147         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20148         (all-built-dso): Define.
20149         (check-textrel.out, check-execstack.out): Depend on it.
20150
20151         * configure.in: Don't override --enable-multi-arch.
20152
20153 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20154
20155         [BZ #6812]
20156         * nscd/hstcache.c (tryagain): Define.
20157         (cache_addhst): Return tryagain not notfound for temporary errors.
20158         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20159         failed.
20160
20161 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20162
20163         [BZ #10563]
20164         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20165         to make the syscall.
20166         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20167
20168         [BZ #12378]
20169         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20170         and fall back to matching as normal character if the string ends before
20171         the matching ']' is found.  This is what POSIX requires.
20172         * posix/testfnm.c: Adjust test result.
20173         * posix/globtest.sh: Adjust test result.  Add new test.
20174         * posix/tst-fnmatch.input: Likewise.
20175         * posix/tst-fnmatch2.c: Add new test.
20176
20177 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20178
20179         * elf/Makefile (check-execstack): Revert last change.  Depend on
20180         check-execstack.h.
20181         (check-execstack.h): New target.
20182         (generated): Add check-execstack.h.
20183         * elf/check-execstack.c: Include "check-execstack.h".
20184         (main): Revert last change.
20185         (handle_file): Return zero if GNU_STACK is absent and
20186         DEFAULT_STACK_PERMS doesn't include PF_X.
20187
20188 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20189
20190         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20191         in child fails because the descriptor is already closed.
20192         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20193         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20194         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20195
20196         [BZ #12397]
20197         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20198         syscall.
20199
20200         [BZ #10484]
20201         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20202         temporary buffer used to handle multi lookups locally.
20203         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20204
20205 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20206
20207         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20208         loader is ld.so.
20209
20210 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20211
20212         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20213         alignment for SSE2.
20214
20215 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20216
20217         [BZ #12394]
20218         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20219         characters.  When rounding increased number of integer digits recompute
20220         number of groups.
20221         * stdio-common/tst-grouping.c: New file.
20222         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20223
20224 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20225
20226         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20227         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20228
20229         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20230         void.
20231         * bits/select.h: Likewise.
20232
20233 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20234
20235         * po/ja.po: Update from translation team.
20236
20237 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20238
20239         [BZ #11155]
20240         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20241         implementation just like for lxstat, fxstatat, et al.
20242
20243 2010-12-27  Jim Meyering  <meyering@redhat.com>
20244
20245         [BZ #12348]
20246         * posix/regexec.c (build_trtable): Return failure indication upon
20247         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20248
20249 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20250
20251         [BZ #12201]
20252         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20253         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20254         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20255         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20256
20257         [BZ #12207]
20258         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20259
20260         [BZ #12204]
20261         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20262         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20263
20264 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20265
20266         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20267         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20268         script has SORT_BY_INIT_PRIORITY.
20269         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20270         NO_CTORS_DTORS_SECTIONS is defined.
20271         * elf/soinit.c: Likewise.
20272         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20273         NO_CTORS_DTORS_SECTIONS is defined.
20274         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
20275         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
20276         * sysdeps/sh/init-first.c: Likewise.
20277         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
20278
20279 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
20280
20281         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
20282         always use the slow path.
20283
20284 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
20285
20286         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
20287         similar rule which adds the sysdep directories to the header search in
20288         order to pick up the correct platform stackinfo.h.
20289         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
20290         perform test if it is, otherwise return successfully without testing.
20291         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
20292         DEFAULT_STACK_PERMS define in stackinfo.h.
20293         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
20294         defined in stackinfo.h.
20295         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
20296         DEFAULT_STACK_PERMS defined in stackinfo.h.
20297         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
20298         * sysdeps/ia64/stackinfo.h: Likewise.
20299         * sysdeps/s390/stackinfo.h: Likewise.
20300         * sysdeps/sh/stackinfo.h: Likewise.
20301         * sysdeps/sparc/stackinfo.h: Likewise.
20302         * sysdeps/x86_64/stackinfo.h: Likewise.
20303         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
20304         PF_X for powerpc64.  Retain PF_X for powerpc32.
20305
20306 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
20307
20308         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
20309         accurately.
20310         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
20311         GETDENTS_64BIT_ALIGNED.
20312
20313 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
20314
20315         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
20316
20317 2010-12-10  Andreas Schwab  <schwab@redhat.com>
20318
20319         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
20320         _GNU_SOURCE.
20321
20322         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
20323         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
20324         Remove __restrict.
20325         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
20326         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
20327
20328 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
20329
20330         [BZ #11655]
20331         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
20332         are initialized.
20333
20334 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
20335
20336         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
20337
20338 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
20339
20340         * po/it.po: Update from translation team.
20341
20342 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20343
20344         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
20345         unused codes.
20346
20347 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
20348
20349         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
20350
20351 2010-11-24  Andreas Schwab  <schwab@redhat.com>
20352
20353         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
20354         specially.
20355         (gaih_getanswer_slice): Likewise.
20356
20357 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
20358
20359         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
20360
20361 2010-05-31  Petr Baudis  <pasky@suse.cz>
20362
20363         [BZ #11149]
20364         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
20365         silently even in the chroot mode.
20366
20367 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
20368
20369         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
20370         last patch a bit.  Pretty printing
20371
20372 2010-05-31  Petr Baudis <pasky@suse.cz>
20373
20374         [BZ #10085]
20375         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
20376         initialization of skip_initgroups_dyn.
20377
20378 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
20379
20380         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
20381         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20382
20383 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
20384
20385         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
20386
20387 2010-11-11  Andreas Schwab  <schwab@redhat.com>
20388
20389         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
20390         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
20391         (tst-fnmatch-ENV): Set MALLOC_TRACE.
20392         ($(objpfx)tst-fnmatch-mem): New rule.
20393         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
20394         * posix/tst-fnmatch.c (main): Call mtrace.
20395
20396 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
20397
20398         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20399         Support Intel processor model 6 and model 0x2c.
20400
20401 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
20402
20403         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
20404           signed comparison.
20405
20406 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
20407
20408         [BZ #12205]
20409         * string/test-strncasecmp.c (check_result): New function.
20410         (do_one_test): Use it.
20411         (check1): New function.
20412         (test_main): Use it.
20413         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
20414         Support strcasecmp and strncasecmp.
20415
20416 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
20417
20418         [BZ #12194]
20419         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
20420         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20421
20422 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20423
20424         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
20425         IFUNC support.
20426         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20427         memset-x86-64.
20428         * sysdeps/x86_64/multiarch/bzero.S: New file.
20429         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
20430         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
20431         * sysdeps/x86_64/multiarch/memset.S: New file.
20432         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
20433         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20434         Set bit_Prefer_SSE_for_memop for Intel processors.
20435         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
20436         Define.
20437         (index_Prefer_SSE_for_memop): Define.
20438         (HAS_PREFER_SSE_FOR_MEMOP): Define.
20439
20440 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
20441
20442         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
20443         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
20444
20445 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
20446
20447         [BZ #12191]
20448         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20449         (__x86_64_raw_data_cache_size_half): Likewise.
20450         (__x86_64_raw_shared_cache_size): Likewise.
20451         (__x86_64_raw_shared_cache_size_half): Likewise.
20452
20453         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20454         (__x86_64_raw_data_cache_size_half): Likewise.
20455         (__x86_64_raw_shared_cache_size): Likewise.
20456         (__x86_64_raw_shared_cache_size_half): Likewise.
20457         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
20458         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
20459         and __x86_64_raw_shared_cache_size_half.  Round
20460         __x86_64_data_cache_size_half, __x86_64_data_cache_size
20461         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
20462         to multiple of 256 bytes.
20463
20464 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
20465
20466         [BZ #12167]
20467         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
20468         of inacessible symlinks.  Verify result of symlink before returning it.
20469         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
20470         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
20471
20472 2010-10-28  Erich Ritz  <erichritz@gmail.com>
20473
20474         * math/math.h (isinf): Fix typo in comment.
20475
20476 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
20477
20478         * po/da.po: Update from translation team.
20479
20480 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
20481
20482         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
20483         is added to the list.
20484
20485 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20486             Ulrich Drepper  <drepper@gmail.com>
20487
20488         * elf/dl-object.c (_dl_new_object): Don't append the new object to
20489         the global list here.  Move code to...
20490         (_dl_add_to_namespace_list): ...here.  New function.
20491         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
20492         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
20493         * elf/dl-load.c (lose): Don't remove the element from the list.
20494         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
20495         (_dl_map_object): Likewise.
20496
20497 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
20498
20499         [BZ #12159]
20500         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
20501         into all bytes of SSE register.
20502         Patch by Richard Li <richardpku@gmail.com>.
20503
20504 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
20505
20506         [BZ #12140]
20507         * malloc/malloc.c (_int_free): Fill correct number of bytes when
20508         perturbing.
20509
20510 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
20511
20512         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
20513         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
20514         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
20515         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
20517         submachine.
20518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
20519
20520 2010-10-22  Andreas Schwab  <schwab@redhat.com>
20521
20522         * include/dlfcn.h (__RTLD_SECURE): Define.
20523         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
20524         mode & __RTLD_SECURE instead.
20525         (open_path): Rename preloaded parameter to secure.
20526         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
20527         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
20528         * elf/dl-deps.c (openaux): Likewise.
20529         * elf/rtld.c (struct map_args): Remove is_preloaded.
20530         (map_doit): Don't use it.
20531         (dl_main): Likewise.
20532         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
20533         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
20534
20535 2010-09-09  Andreas Schwab  <schwab@redhat.com>
20536
20537         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
20538         (sysd-rules-targets): Remove duplicates.
20539         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
20540         rtld-%.$o dependency.
20541
20542 2010-10-18  Andreas Schwab  <schwab@redhat.com>
20543
20544         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
20545         _dl_map_object do it.
20546
20547 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
20548
20549         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
20550         fast fma builtins, define the macros in the C99 standard.
20551         (FP_FAST_FMAF): Likewise.
20552         (FP_FAST_FMAL): Likewise.
20553         * sysdeps/x86_64/bits/mathdef.h: Likewise.
20554
20555         * bits/mathdef.h: Update copyright year.
20556         * sysdeps/powerpc/bits/mathdef.h: Likewise.
20557
20558 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20559
20560         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
20561         builtins, define the macros in the C99 standard.
20562         (FP_FAST_FMAF): Likewise.
20563         (FP_FAST_FMAL): Likewise.
20564         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
20565         multiply/add.
20566         (FP_FAST_FMAF): Likewise.
20567
20568 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
20569
20570         [BZ #3268]
20571         * math/libm-test.inc (fma_test): Some new testcases.
20572         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
20573         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
20574         y and infinite z.  Do multiplication by C already in long double.
20575         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
20576         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
20577         y and infinite z.  Do bitwise or of inexact bit into u.d.
20578         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
20579         * sysdeps/i386/fpu/s_fmaf.S: Removed.
20580         * sysdeps/i386/fpu/s_fma.S: Removed.
20581         * sysdeps/i386/fpu/s_fmal.S: Removed.
20582
20583 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
20584
20585         [BZ #3268]
20586         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
20587         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
20588         computation is not scheduled after fetestexcept.  Fix value
20589         of minimum denormal long double.
20590
20591 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
20592
20593         [BZ #3268]
20594         * math/libm-test.inc (fma_test): Add some more tests.
20595         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
20596         correctly.
20597
20598 2010-10-15  Andreas Schwab  <schwab@redhat.com>
20599
20600         * scripts/data/localplt-s390-linux-gnu.data: New file.
20601         * scripts/data/localplt-s390x-linux-gnu.data: New file.
20602
20603 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
20604
20605         [BZ #3268]
20606         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
20607         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
20608         instead of dbl-64.
20609         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
20610         inlines.
20611         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
20612         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
20613         if one of x and y is very large and the other is subnormal.
20614         * sysdeps/s390/fpu/s_fmaf.c: New file.
20615         * sysdeps/s390/fpu/s_fma.c: New file.
20616         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
20617         * sysdeps/powerpc/fpu/s_fma.S: New file.
20618         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
20619         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
20620         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
20621
20622 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
20623
20624         [BZ #3268]
20625         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
20626         fma tests.
20627         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
20628         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
20629         * sysdeps/i386/i686/multiarch/s_fma.c: Include
20630         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
20631         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
20632         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
20633         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
20634
20635 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
20636
20637         [BZ #12078]
20638         * posix/regcomp.c (parse_branch): One more memory leak plugged.
20639         * posix/bug-regex31.input: Add test case.
20640
20641 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20642
20643         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
20644         * posix/bug-regex31.input: New file.
20645
20646         [BZ #12078]
20647         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
20648         (parse_sub_exp): Fix last change, use postorder.
20649
20650         * posix/bug-regex31.c: New file.
20651         * posix/Makefile: Add rules to build and run bug-regex31.
20652
20653         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
20654
20655         [BZ #12078]
20656         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
20657
20658         [BZ #12108]
20659         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20660         to have entries in sys_siglist.
20661
20662         [BZ #12093]
20663         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20664         be NULL.
20665
20666 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20667
20668         [BZ #3268]
20669         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20670         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20671         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20672         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20673         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20674         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20675         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20676         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20677         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20678         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20679         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20680         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20681         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20682         * math/ftestexcept.c (fetestexcept): Likewise.
20683         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20684         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20685         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20686         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20687         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20688         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20689         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20690
20691 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20692
20693         [BZ #12107]
20694         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20695         newline.
20696
20697 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20698
20699         * string/bug-strstr1.c: New file.
20700         * string/Makefile: Add rules to build and run bug-strstr1.
20701
20702 2010-10-05  Eric Blake  <eblake@redhat.com>
20703
20704         [BZ #12092]
20705         * string/str-two-way.h (two_way_long_needle): Always clear memory
20706         when skipping input due to the shift table.
20707
20708 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20709
20710         [BZ #12005]
20711         * malloc/mcheck.c: Handle large requests.
20712
20713         [BZ #12077]
20714         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20715         for strncmp and strncasecmp.
20716         * string/stratcliff.c: Add tests for strcmp and strncmp.
20717         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20718
20719 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20720
20721         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20722         __set_fpscr.
20723
20724 2010-09-30  Andreas Jaeger  <aj@suse.de>
20725
20726         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20727         (CGROUP_SUPER_MAGIC): Define.
20728         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20729         Handle btrfs and cgroup file systems.
20730         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20731         Likewise.
20732
20733 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20734
20735         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20736         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20737
20738 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20739
20740         [BZ #12067]
20741         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20742         trying to locate the ELF header.
20743
20744 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20745
20746         [BZ #11611]
20747         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20748         Mask out sign-bit copies when constructing f_fsid.
20749
20750 2010-09-24  Petr Baudis <pasky@suse.cz>
20751
20752         * debug/stack_chk_fail_local.c: Add missing licence exception.
20753         * debug/warning-nop.c: Likewise.
20754
20755 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20756
20757         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20758         implementing getdents64 using getdents syscall, set d_type if
20759         __ASSUME_GETDENTS32_D_TYPE.
20760
20761 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20762
20763         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20764         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20765
20766 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20767
20768         [BZ #12037]
20769         * posix/unistd.h: Undo change of feature selection for ftruncate from
20770         2010-01-11.
20771
20772 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20773
20774         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20775         detection.
20776
20777 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20778
20779         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20780         fanotify_mark.
20781         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20782
20783 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20784
20785         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20786         variables after CHECK_SP call.
20787         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20788
20789 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20790             Ulrich Drepper  <drepper@redhat.com>
20791
20792         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20793         re-relocationg ld.so.
20794         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20795         _dl_init_paths call.
20796         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20797         here anymore.
20798
20799 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20800
20801         * resolv/res_init.c (__res_vinit): Count the default server we added.
20802
20803 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20804             Ulrich Drepper  <drepper@redhat.com>
20805
20806         [BZ #11968]
20807         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20808         (____longjmp_chk): Use %ebx for saving value across system call.
20809         Add unwind info.
20810
20811 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20812
20813         * manual/Makefile: Don't mix pattern rules with normal rules.
20814
20815 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20816
20817         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20818         operation.
20819         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20820         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20821         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20822         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20823         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20824         Likewise.
20825
20826 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20827
20828         [BZ #11979]
20829         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20830         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20831
20832 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20833
20834         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20835         * sysdeps/x86_64/addmul_1.S: Likewise.
20836         * sysdeps/x86_64/lshift.S: Likewise.
20837         * sysdeps/x86_64/mul_1.S: Likewise.
20838         * sysdeps/x86_64/rshift.S: Likewise.
20839         * sysdeps/x86_64/sub_n.S: Likewise.
20840         * sysdeps/x86_64/submul_1.S: Likewise.
20841
20842 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20843
20844         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20845         Define __sched_param instead of SCHED_* and sched_param when
20846         <bits/sched.h> is included with __need_schedparam defined.
20847         * bits/sched.h [__need_schedparam]
20848         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20849         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20850         (__defined_schedparam): Define to 1.
20851         (__sched_param): New structure, identical to sched_param.
20852         (__need_schedparam): Undefine.
20853
20854 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20855
20856         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20857         (epoll_create1): Declare.
20858
20859         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20860
20861 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20862
20863         [BZ #7066]
20864         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20865         shifting retval into place.
20866
20867 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20868
20869         * nis/rpcsvc/nis.h: Update copyright notice.
20870         * nis/rpcsvc/nis.x: Likewise.
20871         * nis/rpcsvc/nis_callback.h: Likewise.
20872         * nis/rpcsvc/nis_callback.x: Likewise.
20873         * nis/rpcsvc/nis_object.x: Likewise.
20874         * nis/rpcsvc/nis_tags.h: Likewise.
20875         * nis/rpcsvc/yp.h: Likewise.
20876         * nis/rpcsvc/yp.x: Likewise.
20877         * nis/rpcsvc/ypupd.h: Likewise.
20878         * nis/yp_xdr.c: Likewise.
20879         * nis/ypupdate_xdr.c: Likewise.
20880
20881         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20882         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20883         (pmap_getport): Use __libc_rpc_getport.
20884         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20885         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20886         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20887
20888 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20889
20890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20891         fanotify_mark.
20892
20893 2010-08-27  Roland McGrath  <roland@redhat.com>
20894
20895         * sysdeps/i386/i686/multiarch/Makefile
20896         (CFLAGS-varshift.c): New variable.
20897
20898 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20899
20900         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20901         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20902
20903         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20904
20905         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20906
20907 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20908
20909         * sysdeps/x86_64/strlen.S: Unroll the loop.
20910         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20911         strlen-sse2 strlen-sse2-bsf.
20912         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20913         __strlen_no_bsf if bit_Slow_BSF is set.
20914         (__strlen_sse42): Removed.
20915         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20916         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20917
20918 2010-08-25  Roland McGrath  <roland@redhat.com>
20919
20920         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20921         * sysdeps/x86_64/multiarch/varshift.c: New file.
20922         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20923         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20924         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20925         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20926
20927 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20928
20929         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20930         strlen-sse2 strlen-sse2-bsf.
20931         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20932         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20933         (__strlen_sse2): Removed.
20934         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20935         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20936         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20937         bit_Slow_BSF for Atom.
20938         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20939         (index_Slow_BSF): Define.
20940         (HAS_SLOW_BSF): Define.
20941
20942 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20943
20944         [BZ #10851]
20945         * resolv/res_init.c (__res_vinit): When no server address at all
20946         is given default to loopback.
20947
20948 2010-08-24  Roland McGrath  <roland@redhat.com>
20949
20950         * configure.in: Remove config-name.h generation.
20951         * configure: Regenerated.
20952         * config-name.in: File removed.
20953         * scripts/config-uname.sh: New file.
20954         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20955         ($(objdir)config-name.h): New target.
20956
20957         * sunrpc/rpc_parse.h: Avoid nested comment.
20958
20959 2010-08-24  Richard Henderson  <rth@redhat.com>
20960             Ulrich Drepper  <drepper@redhat.com>
20961             H.J. Lu  <hongjiu.lu@intel.com>
20962
20963         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20964         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20965         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20966         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20967         _mm_alignr_epi8 with _mm_loadu_si128.
20968         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20969         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20970         (__m128i_shift_right): Removed.
20971         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20972         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20973         * sysdeps/x86_64/multiarch/varshift.h: New file.
20974         * sysdeps/x86_64/multiarch/varshift.S: New file.
20975
20976 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20977
20978         * configure.in: Move assembler checks to before sysdep dir checking.
20979
20980 2010-08-20  Petr Baudis  <pasky@suse.cz>
20981
20982         * LICENSES: Sync the sunrpc license.
20983
20984 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20985
20986         * sunrpc/auth_des.c: Update copyright notice once again.
20987         * sunrpc/auth_none.c: Likewise.
20988         * sunrpc/auth_unix.c: Likewise.
20989         * sunrpc/authdes_prot.c: Likewise.
20990         * sunrpc/authuxprot.c: Likewise.
20991         * sunrpc/bindrsvprt.c: Likewise.
20992         * sunrpc/clnt_gen.c: Likewise.
20993         * sunrpc/clnt_perr.c: Likewise.
20994         * sunrpc/clnt_raw.c: Likewise.
20995         * sunrpc/clnt_simp.c: Likewise.
20996         * sunrpc/clnt_tcp.c: Likewise.
20997         * sunrpc/clnt_udp.c: Likewise.
20998         * sunrpc/clnt_unix.c: Likewise.
20999         * sunrpc/des_crypt.c: Likewise.
21000         * sunrpc/des_soft.c: Likewise.
21001         * sunrpc/get_myaddr.c: Likewise.
21002         * sunrpc/getrpcport.c: Likewise.
21003         * sunrpc/key_call.c: Likewise.
21004         * sunrpc/key_prot.c: Likewise.
21005         * sunrpc/openchild.c: Likewise.
21006         * sunrpc/pm_getmaps.c: Likewise.
21007         * sunrpc/pm_getport.c: Likewise.
21008         * sunrpc/pmap_clnt.c: Likewise.
21009         * sunrpc/pmap_prot.c: Likewise.
21010         * sunrpc/pmap_prot2.c: Likewise.
21011         * sunrpc/pmap_rmt.c: Likewise.
21012         * sunrpc/rpc/auth.h: Likewise.
21013         * sunrpc/rpc/auth_unix.h: Likewise.
21014         * sunrpc/rpc/clnt.h: Likewise.
21015         * sunrpc/rpc/des_crypt.h: Likewise.
21016         * sunrpc/rpc/key_prot.h: Likewise.
21017         * sunrpc/rpc/netdb.h: Likewise.
21018         * sunrpc/rpc/pmap_clnt.h: Likewise.
21019         * sunrpc/rpc/pmap_prot.h: Likewise.
21020         * sunrpc/rpc/pmap_rmt.h: Likewise.
21021         * sunrpc/rpc/rpc.h: Likewise.
21022         * sunrpc/rpc/rpc_des.h: Likewise.
21023         * sunrpc/rpc/rpc_msg.h: Likewise.
21024         * sunrpc/rpc/svc.h: Likewise.
21025         * sunrpc/rpc/svc_auth.h: Likewise.
21026         * sunrpc/rpc/types.h: Likewise.
21027         * sunrpc/rpc/xdr.h: Likewise.
21028         * sunrpc/rpc_clntout.c: Likewise.
21029         * sunrpc/rpc_cmsg.c: Likewise.
21030         * sunrpc/rpc_common.c: Likewise.
21031         * sunrpc/rpc_cout.c: Likewise.
21032         * sunrpc/rpc_dtable.c: Likewise.
21033         * sunrpc/rpc_hout.c: Likewise.
21034         * sunrpc/rpc_main.c: Likewise.
21035         * sunrpc/rpc_parse.c: Likewise.
21036         * sunrpc/rpc_parse.h: Likewise.
21037         * sunrpc/rpc_prot.c: Likewise.
21038         * sunrpc/rpc_sample.c: Likewise.
21039         * sunrpc/rpc_scan.c: Likewise.
21040         * sunrpc/rpc_scan.h: Likewise.
21041         * sunrpc/rpc_svcout.c: Likewise.
21042         * sunrpc/rpc_tblout.c: Likewise.
21043         * sunrpc/rpc_util.c: Likewise.
21044         * sunrpc/rpc_util.h: Likewise.
21045         * sunrpc/rpcinfo.c: Likewise.
21046         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21047         * sunrpc/rpcsvc/key_prot.x: Likewise.
21048         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21049         * sunrpc/rpcsvc/mount.x: Likewise.
21050         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21051         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21052         * sunrpc/rpcsvc/rex.x: Likewise.
21053         * sunrpc/rpcsvc/rstat.x: Likewise.
21054         * sunrpc/rpcsvc/rusers.x: Likewise.
21055         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21056         * sunrpc/rpcsvc/spray.x: Likewise.
21057         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21058         * sunrpc/rtime.c: Likewise.
21059         * sunrpc/svc.c: Likewise.
21060         * sunrpc/svc_auth.c: Likewise.
21061         * sunrpc/svc_authux.c: Likewise.
21062         * sunrpc/svc_raw.c: Likewise.
21063         * sunrpc/svc_run.c: Likewise.
21064         * sunrpc/svc_simple.c: Likewise.
21065         * sunrpc/svc_tcp.c: Likewise.
21066         * sunrpc/svc_udp.c: Likewise.
21067         * sunrpc/svc_unix.c: Likewise.
21068         * sunrpc/svcauth_des.c: Likewise.
21069         * sunrpc/xcrypt.c: Likewise.
21070         * sunrpc/xdr.c: Likewise.
21071         * sunrpc/xdr_array.c: Likewise.
21072         * sunrpc/xdr_float.c: Likewise.
21073         * sunrpc/xdr_mem.c: Likewise.
21074         * sunrpc/xdr_rec.c: Likewise.
21075         * sunrpc/xdr_ref.c: Likewise.
21076         * sunrpc/xdr_sizeof.c: Likewise.
21077         * sunrpc/xdr_stdio.c: Likewise.
21078
21079         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21080         handling.
21081
21082 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21083
21084         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21085
21086 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21087
21088         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21089         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21090         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21091         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21092         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21093         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21094         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21095         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21096         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21097         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21098         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21099         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21100         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21101         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21102
21103 2010-07-26  Anton Blanchard  <anton@samba.org>
21104
21105         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21106         * malloc/arena.c (heap_trim): Likewise.
21107
21108 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21109
21110         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21111         here.  Not...
21112         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21113         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21114
21115 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21116
21117         * sysdeps/i386/elf/Makefile: New file.
21118
21119 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21120
21121         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21122         from fanotify_init.
21123         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21124         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21125
21126 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21127
21128         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21129         of strncasecmp_l.
21130         * sysdeps/multiarch/strcmp.S: Likewise.
21131
21132 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21133
21134         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21135         strncase_l-nonascii.
21136         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21137         Add strncase_l-ssse3.
21138         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21139         * sysdeps/x86_64/strcmp.S: Likewise.
21140         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21141         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21142         * sysdeps/x86_64/strncase.S: New file.
21143         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21144         * sysdeps/x86_64/strncase_l.S: New file.
21145         * string/Makefile (strop-tests): Add strncasecmp.
21146         * string/test-strncasecmp.c: New file.
21147
21148         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21149         warning.
21150
21151         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21152         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21153
21154 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21155
21156         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21157
21158 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21159
21160         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21161         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21162         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21163
21164 2010-05-01  Alan Modra  <amodra@gmail.com>
21165
21166         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21167         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21168         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21169         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21170         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21171         tidying.  Don't tail-call __sigjmp_save for static lib.
21172         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21173         save location.
21174         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21175         (CALL_MCOUNT): Add eh info, and nop after bl.
21176         (TAIL_CALL_SYSCALL_ERROR): New macro.
21177         (PSEUDO_RET): Use it.
21178         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21179         Correct save location of integer regs and cr.
21180         (_dl_profile_resolve): Correct cr save location.  Delete nops
21181         after bl when SHARED.  Reduce cfi size a little by better
21182         placement of cfi directives.
21183         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21184         make a stack frame.  Instead use parm save area as a temp.
21185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21186         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21188         Don't make a stack frame for parent, use parm save area.
21189         Increase child stack frame to 112 bytes.  Don't save unused reg,
21190         and adjust reg usage.  Set up cfi on error recovery and
21191         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21193         (__makecontext): Add dummy nop after jump to exit.
21194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21195         Use correct parm save area and cr save, reduce stack frame.
21196         Correct cfi for possible PSEUDO_RET frame setup.
21197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21198         Branch to local label emitted by PSEUDO_RET rather than
21199         __syscall_error.
21200
21201 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21202
21203         [BZ #11904]
21204         * locale/programs/locale.c (print_assignment): New function.
21205         (show_locale_vars): Use it.
21206
21207 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21208
21209         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21210         field.
21211         (struct statfs64): Likewise.
21212         (_STATFS_F_FLAGS): Define.
21213         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21214         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21215         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21216         (ST_VALID): Define locally.
21217         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21218         __statvfs_getflags, use the provided value.
21219         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21220         __ASSUME_STATFS_F_FLAGS.
21221
21222         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21223
21224         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21225         Add sys/fanotify.h.
21226         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21227         fanotify_mask for GLIBC_2.13.
21228         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21229         fanotify_init and fanotify_mark.
21230         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21231         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21232
21233         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21234         Add prlimit.
21235         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21236         prlimit64 for GLIBC_2.13.
21237         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21238         prlimit64.
21239         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21240         syscall.
21241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21242         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21243         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21244         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21245         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21246         add prlimit alias.
21247         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21248
21249         [BZ #11903]
21250         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21251         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21252
21253         * nss/Makefile: Add rules to build and run tst-nss-test1.
21254         * shlib-versions: Add entry for libnss_test1.
21255         * nss/nss_test1.c: New file.
21256         * nss/tst-nss-test1.c: New file.
21257
21258         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21259         (__nss_configure_lookup): Set appropriate entry in
21260         __nss_configure_lookup to true.
21261         * nss/nsswitch.h: Define enum with indeces of databases in
21262         databases and __nss_database_custom arrays.  Declare
21263         __nss_database_custom.
21264         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21265         to avoid using nscd when custom rules are installed.
21266         * nss/getXXbyYY_r.c: Likewise.
21267         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21268
21269         * nss/nss_files/files-parse.c: Whitespace fixes.
21270
21271 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21272
21273         [BZ #11883]
21274         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
21275         * posix/fnmatch_loop.c: Likewise.
21276
21277 2010-07-17  Andi Kleen  <ak@linux.intel.com>
21278
21279         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
21280         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
21281         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
21282         * Versions.def [GLIBC_2.13]: Add.
21283
21284 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
21285
21286         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21287         Also fail if tpwd after pwuid call is NULL.
21288
21289 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21290
21291         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
21292         when converting to ms.
21293
21294 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21295
21296         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
21297         EOPNOTSUPP errors with ENOTTY.
21298         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
21299         EOPNOTSUPP errors with ENOTTY.
21300
21301 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
21302
21303         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21304         Add strcasecmp_l-ssse3.
21305         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
21306         strcasecmp.
21307         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
21308         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
21309         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
21310
21311 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
21312
21313         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
21314
21315         * string/Makefile (strop-tests): Add strcasecmp.
21316         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21317         strcasecmp_l-nonascii.
21318         (gen-as-const-headers): Add locale-defines.sym.
21319         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
21320         * sysdeps/x86_64/strcasecmp.S: New file.
21321         * sysdeps/x86_64/strcasecmp_l.S: New file.
21322         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
21323         * sysdeps/x86_64/locale-defines.sym: New file.
21324         * string/test-strcasecmp.c: New file.
21325
21326         * string/test-strcasestr.c: Test both ends of the range of characters.
21327         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
21328
21329 2010-07-29  Roland McGrath  <roland@redhat.com>
21330
21331         [BZ #11856]
21332         * manual/locale.texi (Yes-or-No Questions): Fix example code.
21333
21334 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
21335
21336         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
21337         for ld.so.
21338
21339 2010-07-27  Andreas Schwab  <schwab@redhat.com>
21340
21341         * manual/memory.texi (Malloc Tunable Parameters): Document
21342         M_PERTURB.
21343
21344 2010-07-26  Roland McGrath  <roland@redhat.com>
21345
21346         [BZ #11840]
21347         * configure.in (-fgnu89-inline check): Set and substitute
21348         gnu89_inline, not libc_cv_gnu89_inline.
21349         * configure: Regenerated.
21350         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
21351
21352 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
21353
21354         * string/test-strnlen.c: New file.
21355         * string/Makefile (strop-tests): Add strnlen.
21356         * string/tester.c (test_strnlen): Add a few more test cases.
21357         * string/tst-strlen.c: Better error reporting.
21358
21359         * sysdeps/x86_64/strnlen.S: New file.
21360
21361 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
21362
21363         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
21364         lower-latency instructions.
21365
21366 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
21367
21368         * string/test-strcasestr.c: New file.
21369         * string/test-strstr.c: New file.
21370         * string/Makefile (strop-tests): Add strstr and strcasestr.
21371         * string/str-two-way.h: Don't undefine MAX.
21372         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
21373
21374 2010-07-21  Andreas Schwab  <schwab@redhat.com>
21375
21376         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21377         strcasestr-nonascii.
21378         (CFLAGS-strcasestr-nonascii.c): Define.
21379         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
21380         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
21381         Remove unused attribute.
21382
21383 2010-07-20  Roland McGrath  <roland@redhat.com>
21384
21385         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
21386         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
21387         ld.so.cache was broken.  With it, there is no way to disable dsocaps
21388         like LD_HWCAP_MASK can disable hwcaps.
21389
21390 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21391
21392         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
21393
21394 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
21395
21396         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
21397         call in strcasestr.
21398         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
21399         __strcasestr_sse42_nonascii.
21400         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
21401         strcasestr-nonascii.c.
21402         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
21403
21404 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
21405
21406         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
21407         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
21408         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
21409         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
21410
21411 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
21412
21413         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
21414         fcntl.
21415
21416 2010-07-06  Andreas Schwab  <schwab@redhat.com>
21417
21418         [BZ #11577]
21419         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
21420         dl_signal_cerror.
21421
21422 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
21423
21424         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
21425         _PC_PIPE_BUF using F_GETPIPE_SZ.
21426
21427 2010-07-05  Roland McGrath  <roland@redhat.com>
21428
21429         * manual/arith.texi (Rounding Functions): Fix rint description
21430         implicit in round description.
21431
21432 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
21433
21434         * elf/Makefile: Fix linking for a few tests to make recent linker
21435         happy.
21436
21437 2010-06-30  Andreas Schwab  <schwab@redhat.com>
21438
21439         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
21440         $(common-objpfx)libc_nonshared.a.
21441
21442 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
21443
21444         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
21445         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
21446         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21447         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21448         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
21449         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
21450         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21451         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
21453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
21454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
21455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
21457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
21459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
21460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
21461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
21462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
21464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
21466         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
21467         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
21468         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
21469         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
21470         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
21471         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
21472         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
21473         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
21474         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
21475         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
21476         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
21477         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
21478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
21479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
21480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
21481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
21482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
21483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
21484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
21485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
21486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
21487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
21488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
21489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
21490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
21491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
21492
21493 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21494
21495         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
21496         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
21497         * string/memmove.c (memmove): Renamed to ...
21498         (MEMMOVE): ...this.  Default to memmove.
21499         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
21500         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
21501         (END_CHK): Define.
21502         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21503         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
21504         mempcpy-ssse3-back memmove-ssse3-back.
21505         * sysdeps/x86_64/multiarch/bcopy.S: New file .
21506         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
21507         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
21508         * sysdeps/x86_64/multiarch/memcpy.S: New file.
21509         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
21510         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
21511         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
21512         * sysdeps/x86_64/multiarch/memmove.c: New file.
21513         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
21514         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
21515         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
21516         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
21517         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
21518         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
21519         Define.
21520         (index_Fast_Copy_Backward): Define.
21521         (HAS_ARCH_FEATURE): Define.
21522         (HAS_FAST_REP_STRING): Define.
21523         (HAS_FAST_COPY_BACKWARD): Define.
21524
21525 2010-06-21  Andreas Schwab  <schwab@redhat.com>
21526
21527         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21528         Restore proper fallback handling.
21529
21530 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
21531
21532         [BZ #11701]
21533         * posix/group_member.c (__group_member): Correct checking loop.
21534
21535         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
21536         OOM in getpwuid_r correctly.  Return error number when the caller
21537         should return, otherwise -1.
21538         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
21539         call returning > 0 value.
21540         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
21541
21542 2010-06-07  Andreas Schwab  <schwab@redhat.com>
21543
21544         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
21545         libc_nonshared.a from targets in modules-names.
21546
21547 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
21548
21549         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
21550         requires it.
21551
21552 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
21553
21554         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
21555         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
21556         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
21557         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
21558
21559 2010-06-02  Andreas Schwab  <schwab@redhat.com>
21560
21561         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
21562
21563 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
21564
21565         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
21566         and F_GETPIPE_SZ.
21567         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
21568         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21569         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21570         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21571         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21572         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
21573
21574 2010-06-14  Roland McGrath  <roland@redhat.com>
21575
21576         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
21577
21578 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
21579
21580         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
21581         __REDIRECT followed by __THROW.
21582         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
21583         * posix/getopt.h (getopt): Likewise.
21584
21585 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21586
21587         * hurd/lookup-at.c (__file_name_lookup_at): Accept
21588         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
21589         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
21590         in AT_FLAGS.
21591         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
21592         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
21593
21594 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
21595
21596         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
21597
21598 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
21599
21600         [BZ #11640]
21601         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21602         Properly check family and model.
21603
21604 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
21605
21606         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
21607
21608 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
21609
21610         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
21611
21612 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
21613
21614         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
21615         symbol reference.
21616
21617 2010-05-19  Andreas Schwab  <schwab@redhat.com>
21618
21619         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
21620         symbol reference.
21621
21622 2010-05-21  Andreas Schwab  <schwab@redhat.com>
21623
21624         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
21625         and internal_recvmmsg.
21626         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
21627         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
21628         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
21629         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
21630
21631         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
21632         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
21633         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
21634
21635 2010-05-20  Andreas Schwab  <schwab@redhat.com>
21636
21637         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
21638
21639 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
21640
21641         POWER7 optimizations.
21642         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
21643         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
21644
21645 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
21646
21647         * version.h: Update for 2.13 development version.
21648
21649 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
21650
21651         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
21652         exceptions.  Return 0.
21653
21654 2010-05-07  Roland McGrath  <roland@redhat.com>
21655
21656         * elf/ldconfig.c (main): Add a const.
21657
21658 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
21659
21660         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21661         (args_options): Add no-idn option.
21662         (ahosts_keys_int): Add idn_flags to ai_flags.
21663         (parse_option): Handle 'i' option to clear idn_flags.
21664
21665         * malloc/malloc.c (_int_free): Possible race in the most recently
21666         added check.  Only act on the data if no current modification
21667         happened.
21668
21669 See ChangeLog.17 for earlier changes.