Update from translation team for Esperanto
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-06  Andreas Jaeger  <aj@suse.de>
2
3         * po/eo.po: Update from translation team.
4
5 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
6
7         [BZ #14793]
8         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
9         exponent and small x and y exponents, scale x or y up.  Increase
10         by 2 the exponent used in scaling up.
11         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13         * math/libm-test.inc (fma_test): Add more tests.
14         (fma_test_towardzero): Likewise.
15         (fma_test_downward): Likewise.
16         (fma_test_upward): Likewise.
17
18 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
19
20         [BZ #14805]
21         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
22         fenv_t *.
23
24         [BZ #14801]
25         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
26         namespace for names of struct fields.
27         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
28         fenv_t fields.
29         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
30         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
31
32 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33
34         [BZ #3665]
35         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
36
37 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
38
39         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
40         PTR_DEMANGLE.
41
42         [BZ #5246]
43         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
44         PTR_DEMANGLE.
45
46 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
47
48         [BZ #14797]
49         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
50         definitely overflow as x * y not x * y + z.
51         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
52         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
53         * math/libm-test.inc (fma_test): Add more tests.
54         (fma_test_towardzero): Likewise.
55         (fma_test_downward): Likewise.
56         (fma_test_upward): Likewise.
57
58 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
59
60         [BZ #157]
61
62         * include/stub-tag.h: Remove file.
63         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
64         '#include' of it.
65         * manual/maint.texi (Porting): Don't reference it.
66         * Makerules ($(objpfx)stubs): Likewise.
67         * dirent/closedir.c: Don't include <stub-tag.h>.
68         * dirent/dirfd.c: Likewise.
69         * dirent/fdopendir.c: Likewise.
70         * dirent/getdents.c: Likewise.
71         * dirent/getdents64.c: Likewise.
72         * dirent/opendir.c: Likewise.
73         * dirent/readdir.c: Likewise.
74         * dirent/readdir64.c: Likewise.
75         * dirent/readdir64_r.c: Likewise.
76         * dirent/readdir_r.c: Likewise.
77         * dirent/rewinddir.c: Likewise.
78         * dirent/seekdir.c: Likewise.
79         * dirent/telldir.c: Likewise.
80         * gmon/profil.c: Likewise.
81         * grp/setgroups.c: Likewise.
82         * inet/if_index.c: Likewise.
83         * io/access.c: Likewise.
84         * io/chdir.c: Likewise.
85         * io/chmod.c: Likewise.
86         * io/chown.c: Likewise.
87         * io/close.c: Likewise.
88         * io/dup.c: Likewise.
89         * io/dup2.c: Likewise.
90         * io/dup3.c: Likewise.
91         * io/euidaccess.c: Likewise.
92         * io/faccessat.c: Likewise.
93         * io/fchdir.c: Likewise.
94         * io/fchmod.c: Likewise.
95         * io/fchmodat.c: Likewise.
96         * io/fchown.c: Likewise.
97         * io/fchownat.c: Likewise.
98         * io/fcntl.c: Likewise.
99         * io/flock.c: Likewise.
100         * io/fstatfs.c: Likewise.
101         * io/fstatfs64.c: Likewise.
102         * io/fstatvfs.c: Likewise.
103         * io/fstatvfs64.c: Likewise.
104         * io/futimens.c: Likewise.
105         * io/fxstat.c: Likewise.
106         * io/fxstat64.c: Likewise.
107         * io/fxstatat.c: Likewise.
108         * io/fxstatat64.c: Likewise.
109         * io/getcwd.c: Likewise.
110         * io/isatty.c: Likewise.
111         * io/lchmod.c: Likewise.
112         * io/lchown.c: Likewise.
113         * io/link.c: Likewise.
114         * io/linkat.c: Likewise.
115         * io/lseek.c: Likewise.
116         * io/lseek64.c: Likewise.
117         * io/lxstat64.c: Likewise.
118         * io/mkdir.c: Likewise.
119         * io/mkdirat.c: Likewise.
120         * io/mkfifo.c: Likewise.
121         * io/mkfifoat.c: Likewise.
122         * io/open.c: Likewise.
123         * io/open64.c: Likewise.
124         * io/openat.c: Likewise.
125         * io/openat64.c: Likewise.
126         * io/pipe.c: Likewise.
127         * io/pipe2.c: Likewise.
128         * io/poll.c: Likewise.
129         * io/posix_fadvise.c: Likewise.
130         * io/posix_fadvise64.c: Likewise.
131         * io/posix_fallocate.c: Likewise.
132         * io/posix_fallocate64.c: Likewise.
133         * io/read.c: Likewise.
134         * io/readlink.c: Likewise.
135         * io/readlinkat.c: Likewise.
136         * io/rmdir.c: Likewise.
137         * io/sendfile.c: Likewise.
138         * io/sendfile64.c: Likewise.
139         * io/statfs.c: Likewise.
140         * io/statfs64.c: Likewise.
141         * io/statvfs.c: Likewise.
142         * io/statvfs64.c: Likewise.
143         * io/symlink.c: Likewise.
144         * io/symlinkat.c: Likewise.
145         * io/ttyname.c: Likewise.
146         * io/ttyname_r.c: Likewise.
147         * io/umask.c: Likewise.
148         * io/unlink.c: Likewise.
149         * io/unlinkat.c: Likewise.
150         * io/utime.c: Likewise.
151         * io/utimensat.c: Likewise.
152         * io/write.c: Likewise.
153         * io/xmknod.c: Likewise.
154         * io/xmknodat.c: Likewise.
155         * io/xstat.c: Likewise.
156         * io/xstat64.c: Likewise.
157         * login/getpt.c: Likewise.
158         * login/grantpt.c: Likewise.
159         * login/unlockpt.c: Likewise.
160         * math/e_acoshl.c: Likewise.
161         * math/e_acosl.c: Likewise.
162         * math/e_asinl.c: Likewise.
163         * math/e_atan2l.c: Likewise.
164         * math/e_atanhl.c: Likewise.
165         * math/e_coshl.c: Likewise.
166         * math/e_expl.c: Likewise.
167         * math/e_fmodl.c: Likewise.
168         * math/e_gammal_r.c: Likewise.
169         * math/e_hypotl.c: Likewise.
170         * math/e_j0l.c: Likewise.
171         * math/e_j1l.c: Likewise.
172         * math/e_jnl.c: Likewise.
173         * math/e_lgammal_r.c: Likewise.
174         * math/e_log10l.c: Likewise.
175         * math/e_log2l.c: Likewise.
176         * math/e_logl.c: Likewise.
177         * math/e_powl.c: Likewise.
178         * math/e_rem_pio2l.c: Likewise.
179         * math/e_sinhl.c: Likewise.
180         * math/e_sqrtl.c: Likewise.
181         * math/fclrexcpt.c: Likewise.
182         * math/fedisblxcpt.c: Likewise.
183         * math/feenablxcpt.c: Likewise.
184         * math/fegetenv.c: Likewise.
185         * math/fegetexcept.c: Likewise.
186         * math/fegetround.c: Likewise.
187         * math/feholdexcpt.c: Likewise.
188         * math/fesetenv.c: Likewise.
189         * math/fesetround.c: Likewise.
190         * math/feupdateenv.c: Likewise.
191         * math/fgetexcptflg.c: Likewise.
192         * math/fraiseexcpt.c: Likewise.
193         * math/fsetexcptflg.c: Likewise.
194         * math/ftestexcept.c: Likewise.
195         * math/k_cosl.c: Likewise.
196         * math/k_rem_pio2l.c: Likewise.
197         * math/k_sinl.c: Likewise.
198         * math/k_tanl.c: Likewise.
199         * math/s_asinhl.c: Likewise.
200         * math/s_atanl.c: Likewise.
201         * math/s_cbrtl.c: Likewise.
202         * math/s_erfl.c: Likewise.
203         * math/s_expm1l.c: Likewise.
204         * math/s_log1pl.c: Likewise.
205         * math/s_tanhl.c: Likewise.
206         * misc/acct.c: Likewise.
207         * misc/brk.c: Likewise.
208         * misc/chflags.c: Likewise.
209         * misc/chroot.c: Likewise.
210         * misc/fchflags.c: Likewise.
211         * misc/fgetxattr.c: Likewise.
212         * misc/flistxattr.c: Likewise.
213         * misc/fremovexattr.c: Likewise.
214         * misc/fsetxattr.c: Likewise.
215         * misc/fsync.c: Likewise.
216         * misc/ftruncate.c: Likewise.
217         * misc/futimes.c: Likewise.
218         * misc/futimesat.c: Likewise.
219         * misc/getdomain.c: Likewise.
220         * misc/getdtsz.c: Likewise.
221         * misc/gethostid.c: Likewise.
222         * misc/gethostname.c: Likewise.
223         * misc/getloadavg.c: Likewise.
224         * misc/getpagesize.c: Likewise.
225         * misc/getsysstats.c: Likewise.
226         * misc/getxattr.c: Likewise.
227         * misc/gtty.c: Likewise.
228         * misc/ioctl.c: Likewise.
229         * misc/lgetxattr.c: Likewise.
230         * misc/listxattr.c: Likewise.
231         * misc/llistxattr.c: Likewise.
232         * misc/lremovexattr.c: Likewise.
233         * misc/lsetxattr.c: Likewise.
234         * misc/lutimes.c: Likewise.
235         * misc/madvise.c: Likewise.
236         * misc/mincore.c: Likewise.
237         * misc/mlock.c: Likewise.
238         * misc/mlockall.c: Likewise.
239         * misc/mmap.c: Likewise.
240         * misc/mprotect.c: Likewise.
241         * misc/msync.c: Likewise.
242         * misc/munlock.c: Likewise.
243         * misc/munlockall.c: Likewise.
244         * misc/munmap.c: Likewise.
245         * misc/preadv.c: Likewise.
246         * misc/preadv64.c: Likewise.
247         * misc/ptrace.c: Likewise.
248         * misc/pwritev.c: Likewise.
249         * misc/pwritev64.c: Likewise.
250         * misc/readv.c: Likewise.
251         * misc/reboot.c: Likewise.
252         * misc/remap_file_pages.c: Likewise.
253         * misc/removexattr.c: Likewise.
254         * misc/revoke.c: Likewise.
255         * misc/select.c: Likewise.
256         * misc/setdomain.c: Likewise.
257         * misc/setegid.c: Likewise.
258         * misc/seteuid.c: Likewise.
259         * misc/sethostid.c: Likewise.
260         * misc/sethostname.c: Likewise.
261         * misc/setregid.c: Likewise.
262         * misc/setreuid.c: Likewise.
263         * misc/setxattr.c: Likewise.
264         * misc/sstk.c: Likewise.
265         * misc/stty.c: Likewise.
266         * misc/swapoff.c: Likewise.
267         * misc/swapon.c: Likewise.
268         * misc/sync.c: Likewise.
269         * misc/syncfs.c: Likewise.
270         * misc/syscall.c: Likewise.
271         * misc/truncate.c: Likewise.
272         * misc/ualarm.c: Likewise.
273         * misc/usleep.c: Likewise.
274         * misc/ustat.c: Likewise.
275         * misc/utimes.c: Likewise.
276         * misc/vhangup.c: Likewise.
277         * misc/writev.c: Likewise.
278         * posix/_exit.c: Likewise.
279         * posix/alarm.c: Likewise.
280         * posix/execve.c: Likewise.
281         * posix/fexecve.c: Likewise.
282         * posix/fork.c: Likewise.
283         * posix/fpathconf.c: Likewise.
284         * posix/getaddrinfo.c: Likewise.
285         * posix/getegid.c: Likewise.
286         * posix/geteuid.c: Likewise.
287         * posix/getgid.c: Likewise.
288         * posix/getgroups.c: Likewise.
289         * posix/getlogin.c: Likewise.
290         * posix/getlogin_r.c: Likewise.
291         * posix/getpgid.c: Likewise.
292         * posix/getpid.c: Likewise.
293         * posix/getppid.c: Likewise.
294         * posix/getresgid.c: Likewise.
295         * posix/getresuid.c: Likewise.
296         * posix/getsid.c: Likewise.
297         * posix/getuid.c: Likewise.
298         * posix/glob64.c: Likewise.
299         * posix/nanosleep.c: Likewise.
300         * posix/pathconf.c: Likewise.
301         * posix/pause.c: Likewise.
302         * posix/posix_madvise.c: Likewise.
303         * posix/pread.c: Likewise.
304         * posix/pread64.c: Likewise.
305         * posix/pwrite.c: Likewise.
306         * posix/pwrite64.c: Likewise.
307         * posix/sched_getaffinity.c: Likewise.
308         * posix/sched_getp.c: Likewise.
309         * posix/sched_gets.c: Likewise.
310         * posix/sched_primax.c: Likewise.
311         * posix/sched_primin.c: Likewise.
312         * posix/sched_rr_gi.c: Likewise.
313         * posix/sched_setaffinity.c: Likewise.
314         * posix/sched_setp.c: Likewise.
315         * posix/sched_sets.c: Likewise.
316         * posix/sched_yield.c: Likewise.
317         * posix/setgid.c: Likewise.
318         * posix/setlogin.c: Likewise.
319         * posix/setpgid.c: Likewise.
320         * posix/setresgid.c: Likewise.
321         * posix/setresuid.c: Likewise.
322         * posix/setsid.c: Likewise.
323         * posix/setuid.c: Likewise.
324         * posix/sleep.c: Likewise.
325         * posix/spawni.c: Likewise.
326         * posix/sysconf.c: Likewise.
327         * posix/times.c: Likewise.
328         * posix/wait.c: Likewise.
329         * posix/wait3.c: Likewise.
330         * posix/wait4.c: Likewise.
331         * posix/waitpid.c: Likewise.
332         * resolv/gai_sigqueue.c: Likewise.
333         * resource/getpriority.c: Likewise.
334         * resource/getrlimit.c: Likewise.
335         * resource/getrusage.c: Likewise.
336         * resource/nice.c: Likewise.
337         * resource/setpriority.c: Likewise.
338         * resource/setrlimit.c: Likewise.
339         * resource/ulimit.c: Likewise.
340         * rt/aio_cancel.c: Likewise.
341         * rt/aio_fsync.c: Likewise.
342         * rt/aio_read.c: Likewise.
343         * rt/aio_sigqueue.c: Likewise.
344         * rt/aio_suspend.c: Likewise.
345         * rt/aio_write.c: Likewise.
346         * rt/clock_getres.c: Likewise.
347         * rt/clock_gettime.c: Likewise.
348         * rt/clock_nanosleep.c: Likewise.
349         * rt/clock_settime.c: Likewise.
350         * rt/lio_listio.c: Likewise.
351         * rt/mq_close.c: Likewise.
352         * rt/mq_getattr.c: Likewise.
353         * rt/mq_notify.c: Likewise.
354         * rt/mq_open.c: Likewise.
355         * rt/mq_receive.c: Likewise.
356         * rt/mq_send.c: Likewise.
357         * rt/mq_setattr.c: Likewise.
358         * rt/mq_timedreceive.c: Likewise.
359         * rt/mq_timedsend.c: Likewise.
360         * rt/mq_unlink.c: Likewise.
361         * rt/shm_open.c: Likewise.
362         * rt/shm_unlink.c: Likewise.
363         * rt/timer_create.c: Likewise.
364         * rt/timer_delete.c: Likewise.
365         * rt/timer_getoverr.c: Likewise.
366         * rt/timer_gettime.c: Likewise.
367         * rt/timer_settime.c: Likewise.
368         * setjmp/__longjmp.c: Likewise.
369         * setjmp/setjmp.c: Likewise.
370         * signal/kill.c: Likewise.
371         * signal/killpg.c: Likewise.
372         * signal/raise.c: Likewise.
373         * signal/sigaction.c: Likewise.
374         * signal/sigaltstack.c: Likewise.
375         * signal/sigblock.c: Likewise.
376         * signal/sigignore.c: Likewise.
377         * signal/sigintr.c: Likewise.
378         * signal/signal.c: Likewise.
379         * signal/sigpause.c: Likewise.
380         * signal/sigpending.c: Likewise.
381         * signal/sigqueue.c: Likewise.
382         * signal/sigreturn.c: Likewise.
383         * signal/sigset.c: Likewise.
384         * signal/sigsetmask.c: Likewise.
385         * signal/sigstack.c: Likewise.
386         * signal/sigsuspend.c: Likewise.
387         * signal/sigtimedwait.c: Likewise.
388         * signal/sigvec.c: Likewise.
389         * signal/sigwait.c: Likewise.
390         * signal/sigwaitinfo.c: Likewise.
391         * signal/sysv_signal.c: Likewise.
392         * socket/accept.c: Likewise.
393         * socket/accept4.c: Likewise.
394         * socket/bind.c: Likewise.
395         * socket/connect.c: Likewise.
396         * socket/getpeername.c: Likewise.
397         * socket/getsockname.c: Likewise.
398         * socket/getsockopt.c: Likewise.
399         * socket/isfdtype.c: Likewise.
400         * socket/listen.c: Likewise.
401         * socket/recv.c: Likewise.
402         * socket/recvfrom.c: Likewise.
403         * socket/recvmsg.c: Likewise.
404         * socket/send.c: Likewise.
405         * socket/sendmsg.c: Likewise.
406         * socket/sendto.c: Likewise.
407         * socket/setsockopt.c: Likewise.
408         * socket/shutdown.c: Likewise.
409         * socket/sockatmark.c: Likewise.
410         * socket/socket.c: Likewise.
411         * socket/socketpair.c: Likewise.
412         * stdio-common/ctermid.c: Likewise.
413         * stdio-common/cuserid.c: Likewise.
414         * stdio-common/remove.c: Likewise.
415         * stdio-common/rename.c: Likewise.
416         * stdio-common/renameat.c: Likewise.
417         * stdio-common/tempname.c: Likewise.
418         * stdlib/getcontext.c: Likewise.
419         * stdlib/makecontext.c: Likewise.
420         * stdlib/setcontext.c: Likewise.
421         * stdlib/swapcontext.c: Likewise.
422         * stdlib/system.c: Likewise.
423         * streams/fattach.c: Likewise.
424         * streams/fdetach.c: Likewise.
425         * streams/getmsg.c: Likewise.
426         * streams/getpmsg.c: Likewise.
427         * streams/putmsg.c: Likewise.
428         * streams/putpmsg.c: Likewise.
429         * sysdeps/unix/bsd/getpt.c: Likewise.
430         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
431         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
432         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
434         Likewise.
435         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
436         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
437         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
438         * sysvipc/msgctl.c: Likewise.
439         * sysvipc/msgget.c: Likewise.
440         * sysvipc/msgrcv.c: Likewise.
441         * sysvipc/msgsnd.c: Likewise.
442         * sysvipc/semctl.c: Likewise.
443         * sysvipc/semget.c: Likewise.
444         * sysvipc/semop.c: Likewise.
445         * sysvipc/semtimedop.c: Likewise.
446         * sysvipc/shmat.c: Likewise.
447         * sysvipc/shmctl.c: Likewise.
448         * sysvipc/shmdt.c: Likewise.
449         * sysvipc/shmget.c: Likewise.
450         * termios/tcdrain.c: Likewise.
451         * termios/tcflow.c: Likewise.
452         * termios/tcflush.c: Likewise.
453         * termios/tcgetattr.c: Likewise.
454         * termios/tcgetpgrp.c: Likewise.
455         * termios/tcsendbrk.c: Likewise.
456         * termios/tcsetattr.c: Likewise.
457         * termios/tcsetpgrp.c: Likewise.
458         * time/adjtime.c: Likewise.
459         * time/clock.c: Likewise.
460         * time/getitimer.c: Likewise.
461         * time/gettimeofday.c: Likewise.
462         * time/setitimer.c: Likewise.
463         * time/settimeofday.c: Likewise.
464         * time/stime.c: Likewise.
465         * time/time.c: Likewise.
466
467 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
468
469         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
470         /usr/old/bin.
471
472         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
473         instead of spaces.
474         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
475
476 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
477
478         [BZ #14796]
479         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
480         FE_TONEAREST before applying Dekker multiplication and Knuth
481         addition.  Clear inexact exceptions and check for exact zero
482         results afterwards.
483         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
484         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
485         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
486         * math/libm-test.inc (fma_test): Add more tests.
487         (fma_test_towardzero): Likewise.
488         (fma_test_downward): Likewise.
489         (fma_test_upward): Likewise.
490         * sysdeps/generic/math_private.h (default_libc_fesetround): New
491         function.
492         (libc_fesetround): New macro.
493         (libc_fesetroundf): Likewise.
494         (libc_fesetroundl): Likewise.
495         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
496         function.
497         (libc_fesetround_387): Likewise.
498         (libc_fesetroundf): New macro.
499         (libc_fesetround): Likewise.
500         (libc_fesetroundl): Likewise.
501         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
502         function.
503         (libc_fesetroundf): New macro.
504         (libc_fesetround): Likewise.
505         (libc_fesetroundl): Likewise.
506         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
507         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
508         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
509         libm_hidden_ver.
510         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
511         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
512         libm_hidden_def.
513         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
514         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
515         libm_hidden_ver.
516         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
517         libm_hidden_def.
518
519         [BZ #3439]
520         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
521         integer constant usable in #if and use that to give value to enum
522         constant.
523         (FE_DIVBYZERO): Likewise.
524         (FE_UNDERFLOW): Likewise.
525         (FE_OVERFLOW): Likewise.
526         (FE_INVALID): Likewise.
527         (FE_INVALID_SNAN): Likewise.
528         (FE_INVALID_ISI): Likewise.
529         (FE_INVALID_IDI): Likewise.
530         (FE_INVALID_ZDZ): Likewise.
531         (FE_INVALID_IMZ): Likewise.
532         (FE_INVALID_COMPARE): Likewise.
533         (FE_INVALID_SOFTWARE): Likewise.
534         (FE_INVALID_SQRT): Likewise.
535         (FE_INVALID_INTEGER_CONVERSION): Likewise.
536         (FE_TONEAREST): Likewise.
537         (FE_TOWARDZERO): Likewise.
538         (FE_UPWARD): Likewise.
539         (FE_DOWNWARD): Likewise.
540         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
541         (FE_DIVBYZERO): Likewise.
542         (FE_OVERFLOW): Likewise.
543         (FE_UNDERFLOW): Likewise.
544         (FE_INEXACT): Likewise.
545         (FE_TONEAREST): Likewise.
546         (FE_DOWNWARD): Likewise.
547         (FE_UPWARD): Likewise.
548         (FE_TOWARDZERO): Likewise.
549         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
550         (FE_UNDERFLOW): Likewise.
551         (FE_OVERFLOW): Likewise.
552         (FE_DIVBYZERO): Likewise.
553         (FE_INVALID): Likewise.
554         (FE_TONEAREST): Likewise.
555         (FE_TOWARDZERO): Likewise.
556         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
557         (FE_OVERFLOW): Likewise.
558         (FE_UNDERFLOW): Likewise.
559         (FE_DIVBYZERO): Likewise.
560         (FE_INEXACT): Likewise.
561         (FE_TONEAREST): Likewise.
562         (FE_TOWARDZERO): Likewise.
563         (FE_UPWARD): Likewise.
564         (FE_DOWNWARD): Likewise.
565         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
566         (FE_DIVBYZERO): Likewise.
567         (FE_OVERFLOW): Likewise.
568         (FE_UNDERFLOW): Likewise.
569         (FE_INEXACT): Likewise.
570         (FE_TONEAREST): Likewise.
571         (FE_DOWNWARD): Likewise.
572         (FE_UPWARD): Likewise.
573         (FE_TOWARDZERO): Likewise.
574
575 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
576
577         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
578
579 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
580
581         * scripts/cross-test-ssh.sh (command): Use newlines to separate
582         commands.  Quote $PWD.
583         (blacklist_exports): Don't use remove_newlines.  Replace "declare
584         -x" by "export".
585         (remove_newlines): Remove.
586
587 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
588
589         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
590         * stdlib/stdlib.h (atof): Moved to ...
591         * include/bits/stdlib-float.h: Here.  New file.
592         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
593         * stdlib/bits/stdlib-float.h: New file.
594         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
595         -mno-sse -mno-mmx.
596         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
597         <xmmintrin.h>.
598
599 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
600
601         * conform/conformtest.pl (@headers): Add fenv.h.
602         * conform/data/fenv.h-data: New file.
603         * include/fenv.h [_ISOMAC]: Disable all contents of file except
604         include of <math/fenv.h>.
605
606         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
607         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
608         && !UNIX98].  Enables tests for XOPEN2K8.
609         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
610         POSIX2008]: Likewise.
611
612         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
613         (struct rusage): Do not expect type or its members.
614
615         [BZ #3439]
616         * math/math.h (FP_NAN): Define macro to integer constant usable in
617         #if and use that to give value to enum constant.
618         (FP_INFINITE): Likewise.
619         (FP_ZERO): Likewise.
620         (FP_SUBNORMAL): Likewise.
621         (FP_NORMAL): Likewise.
622
623 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
624
625         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
626         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
627         arguments.
628
629 2012-11-02  Roland McGrath  <roland@hack.frob.com>
630
631         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
632         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
633         autoconf-time if not.
634         * configure.in: Remove AC_PREREQ.
635
636 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
637
638         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
639         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
640         of the internal implementation.
641
642 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
643
644         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
645         except include of <misc/sys/syslog.h>.
646
647 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
648
649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
650         function returns with a NULL context exit with zero.
651
652 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
653
654         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
655
656 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
657
658         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
659         (run_program_cmd): This.
660         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
661         (tst_langinfo): New variable.  Use it.
662
663 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
664
665         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
666         floating point opcodes.
667
668 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
669
670         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
671         variable.
672
673         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
674
675         * sysdeps/mach/hurd/powerpc: Remove directory.
676         * sysdeps/mach/powerpc: Likewise.
677
678 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
679
680         * scripts/check-local-headers.sh: Ignore c++ headers.
681
682 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
683
684         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
685         __libc_cleanup_region_start argument.
686
687 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
688
689         [BZ #14784]
690         [BZ #14785]
691         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
692         x * y using scaling, not as x * y + z.
693         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
694         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
695         * math/libm-test.inc (fma_test): Add more tests.
696         (fma_test_towardzero): Likewise.
697         (fma_test_downward): Likewise.
698         (fma_test_upward): Likewise.
699
700 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
701
702         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
703
704 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
705
706         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
707         New variable.
708
709 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
710
711         * rt/tst-shm.c (worker): Correct checking for mmap failure.
712
713 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
714
715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
716         Fix sort order.
717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
718         Likewise.
719
720 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
721
722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
723         Fix the order of the list for glibc 2.17.
724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
725         Likewise.
726
727 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
728
729         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
730
731 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
732
733         [BZ #14610]
734         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
735         for low part of x being zero before using __atanl (y).
736         * math/libm-test.inc (atan2_test): Add another test.
737
738         * manual/install.texi (Configuring and compiling): Document
739         general use of test-wrapper and test-wrapper-env.
740         * INSTALL: Regenerated.
741
742         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
743         (__fma): Do not extract and scale down low bits on after-rounding
744         systems when result rounded to normal precision would have normal
745         exponent.
746         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
747         (__fmal): Do not extract and scale down low bits on after-rounding
748         systems when result rounded to normal precision would have normal
749         exponent.
750         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
751         (__fmal): Do not extract and scale down low bits on after-rounding
752         systems when result rounded to normal precision would have normal
753         exponent.
754         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
755         macro.
756         (fma_test): Add more tests.
757         (fma_test_towardzero): Likewise.
758         (fma_test_downward): Likewise.
759         (fma_test_upward): Likewise.
760
761 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
762
763         * sysdeps/i386/tininess.h: Renamed to ...
764         * sysdeps/x86/tininess.h: This.
765         * sysdeps/x86_64/tininess.h: Removed.
766
767 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
768
769         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
770         input.  Use $(build-program-cmd).
771         ($(objpfx)tst-array1-static.out): Likewise.
772         ($(objpfx)tst-array2.out): Likewise.
773         ($(objpfx)tst-array3.out): Likewise.
774         ($(objpfx)tst-array4.out): Likewise.
775         ($(objpfx)tst-array5.out): Likewise.
776         ($(objpfx)tst-array5-static.out): Likewise.
777
778 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
779
780         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
781         if defined.
782
783         * nss/nsswitch.h (nss_interface_function): Provide new
784         macro for use with NSS functions.
785         * grp/initgroups.c: Use new macro.
786         * nss/getXXbyYY.c: Likewise.
787         * nss/getXXbyYY_r.c: Likewise.
788         * nss/getXXent.c: Likewise.
789         * nss/getXXent_r.c: Likewise.
790         * sysdeps/posix/getaddrinfo.c: Likewise.
791
792 2012-10-30  Andreas Jaeger  <aj@suse.de>
793
794         * po/ru.po: Update Russion translation from translation project.
795
796 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
797
798         [BZ #14152]
799         [BZ #14783]
800         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
801         result and shift together with sticky bit instead of replicating
802         round-to-nearest rounding.
803         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
804         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
805         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
806         missing underflow exceptions.
807         (fma_test_towardzero): Add more tests.
808         (fma_test_downward): Likewise.
809         (fma_test_upward): Likewise.
810
811         [BZ #14047]
812         * sysdeps/generic/tininess.h: New file.
813         * sysdeps/i386/tininess.h: Likewise.
814         * sysdeps/sh/tininess.h: Likewise.
815         * sysdeps/x86_64/tininess.h: Likewise.
816         * stdlib/tst-strtod-underflow.c: Likewise.
817         * stdlib/tst-tininess.c: Likewise.
818         * stdlib/strtod_l.c: Include <tininess.h>.
819         (round_and_return): Do not set errno for exact underflow cases.
820         Force an underflow exception when setting errno for underflow.
821         Determine underflow based on rounding to normal precision if
822         TININESS_AFTER_ROUNDING.
823         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
824         ERANGE for exact underflow cases.
825         * stdlib/Makefile (tests): Add tst-tininess and
826         tst-strtod-underflow.
827         ($(objpfx)tst-tininess): Use $(link-libm).
828         ($(objpfx)tst-strtod-underflow): Likewise.
829
830 2012-10-30  Andreas Jaeger  <aj@suse.de>
831
832         [BZ#14767]
833         * elf/Makefile (tests): Remove conditional for have-initfini-array
834         since this is now always required and the variable does not exist
835         anymore.
836         (tests-static): Likewise.
837         (modules-names): Likewise.
838
839         * po/eo.po: Add Esperanto translation from translation project.
840
841         * elf/tst-array1.c (fini_array): Make writeable so that it can be
842         merged with constructor/destructor.
843         (init_array): Likewise.
844         * elf/tst-array2dep.c (fini_array): Likewise.
845         (init_array): Likewise.
846
847 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
848
849         * manual/message.texi: Delete @cartouche tags.
850
851 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
852
853         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
854         EOPNOTSUPP.
855         * sysdeps/mach/hurd/fsync.c: Likewise.
856
857         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
858         [_POSIX_REALTIME_SIGNALS]: Change condition to
859         [_POSIX_REALTIME_SIGNALS > 0].
860
861 2012-10-27  Andreas Jaeger  <aj@suse.de>
862
863         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
864         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
865         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
866         [__WORDSIZE != 64]: Likewise.
867
868 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
869
870         *  iconvdata/tst-table.sh: Remove ${SHELL}.
871         *  iconvdata/tst-tables.sh: Likewise.
872
873 2012-10-25  David S. Miller  <davem@davemloft.net>
874
875         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
876         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
877         of strtoull.
878
879         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
880         ifunc-impl-list.c
881         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
882         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
883         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
884         file.
885
886 2012-10-25  Roland McGrath  <roland@hack.frob.com>
887
888         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
889         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
890         __getdirentries.
891
892 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
893             Jim Blandy  <jimb@codesourcery.com>
894
895         * scripts/cross-test-ssh.sh: New file.
896         * manual/install.texi (Configuring and compiling): Document use of
897         cross-test-ssh.sh.
898         * INSTALL: Regenerated.
899
900 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
901
902         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
903         EOPNOTSUPP.
904
905 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
906
907         * Makeconfig (run-program-prefix): Fix comment.
908
909 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
910             Jim Blandy  <jimb@codesourcery.com>
911
912         * Makeconfig (test-wrapper): New variable,
913         (test-wrapper-env): Likewise.
914         [$(cross-compiling) = yes && $(test-wrapper) != ""]
915         (run-built-tests): Define to yes.
916         (run-program-prefix): Use $(test-wrapper).
917         (built-program-cmd): Likewise.
918         * Rules (make-test-out): Use $(test-wrapper-env) and
919         $(host-built-program-cmd).
920         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
921         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
922         tst-pathopt.sh.
923         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
924         $(test-wrapper-env) to tst-rtld-load-self.sh.
925         ($(objpfx)order2.out): Use $(test-wrapper).
926         ($(objpfx)tst-initorder.out): Likewise.
927         ($(objpfx)tst-initorder2.out): Likewise.
928         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
929         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
930         (test_wrapper_env): New variable.  Use it to run ld.so.
931         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
932         Use it to run ld.so.
933         (test_wrapper_env): Likewise.
934         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
935         $(test-wrapper) to run-iconv-test.sh.
936         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
937         (ICONV): Use $test_wrapper.
938         * posix/Makefile ($(objpfx)globtest.out): Pass
939         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
940         globtest.sh, not $(run-program-prefix).
941         * posix/globtest.sh (run_via_rtld_prefix): New variable.
942         (test_wrapper): Likewise.
943         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
944         set together with run_via_rtld_prefix.
945         (run_program_prefix): Define in terms of test_wrapper and
946         run_via_rtld_prefix.
947
948 2012-10-24  Roland McGrath  <roland@hack.frob.com>
949
950         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
951         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
952         Targets removed.
953
954         [BZ #14743]
955         * include/time.h: Remove librt_hidden_proto (clock_gettime).
956         Declare __clock_getres, __clock_gettime, __clock_settime,
957         __clock_nanosleep, and __clock_getcpuclockid.
958         * rt/clock_gettime.c: Define __clock_gettime as an alias.
959         Remove librt_hidden_def (clock_gettime).
960         * sysdeps/unix/clock_gettime.c: Likewise.
961         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
962         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
963         * rt/clock_getres.c: Define __clock_getres as an alias.
964         * sysdeps/posix/clock_getres.c: Likewise.
965         * rt/clock_settime.c: Define __clock_settime as an alias.
966         * sysdeps/unix/clock_settime.c: Likewise.
967         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
968         * sysdeps/unix/clock_nanosleep.c: Likewise.
969         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
970         * rt/clock-compat.c: New file.
971         * rt/Makefile (librt-routines): Add clock-compat and move
972         $(clock-routines) to ...
973         (routines): ... here, new variable.
974         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
975         Don't add get_clockfreq here.
976         * rt/Versions (libc: GLIBC_2.17): New version set.
977         Add clock_* symbols here.
978         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
979         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
980         (GLIBC_2.17): Add clock_* symbols.
981         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
982         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
983         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
985         Likewise.
986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
987         Likewise.
988         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
989         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
990         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
991         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
992         * NEWS: Mention the move.
993
994         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
995         Use __open, __read, __close rather than their public counterparts.
996         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
997         (__get_clockfreq_via_cpuinfo): Likewise.
998         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
999         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1000
1001         * config.h.in (HAVE_IFUNC): New #undef.
1002         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1003         was successful.
1004         * configure: Regenerated.
1005
1006 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1007
1008         * configure.in: Move READELF check to start of file.
1009         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1010         libc_cv_asm_gnu_indirect_function in the process.
1011         * configure: Regenerated.
1012
1013 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1014
1015         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1016         send the output to /dev/null.
1017         (libc_cv_cc_with_libunwind): Likewise.
1018         (libc_cv_as_noexecstack): Likewise.
1019         * configure: Regenerate.
1020
1021 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1022
1023         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1024
1025         * posix/globtest.sh (TMPDIR): Do not set.
1026         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1027         (testout): Likewise.
1028
1029 2012-10-24  Andreas Jaeger  <aj@suse.de>
1030
1031         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1032         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1033         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1034         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1035         posix_fadvise64, posix_fallocate64.
1036
1037         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1038         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1039         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1040         Likewise.
1041         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1042         Likewise.
1043         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1044
1045         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1046         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1047         <bits/fcntl-linux.h>.
1048         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1049
1050         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1051         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1052         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1053         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1054         [__WORDSIZE != 64]: Likewise.
1055
1056 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1057
1058         * Makeconfig (run-built-tests): New variable.
1059         * Rules [$(cross-compiling) = yes]: Change condition to
1060         [$(run-built-tests) = no].
1061         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1062         to [$(run-built-tests) = yes].
1063         * elf/Makefile [$(cross-compiling) = no]: Likewise
1064         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1065         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1066         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1067         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1068         * io/Makefile [$(cross-compiling) = no]: Likewise.
1069         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1070         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1071         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1072         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1073         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1074         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1075         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1076         * string/Makefile [$(cross-compiling) = no]: Likewise.
1077
1078         * posix/Makefile ($(objpfx)globtest.out): Pass
1079         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1080         $(rtld-installed-name).
1081         * posix/globtest.sh (elf_objpfx): Remove variable.
1082         (rtld_installed_name): Likewise.
1083         (library_path): Likewise.
1084         (run_program_prefix): New variable.  Use for running globtest
1085         binary.
1086
1087 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1088             Joseph Myers  <joseph@codesourcery.com>
1089
1090         * Makeconfig (host-built-program-cmd): New variable.
1091         * elf/Makefile (tst-stackguard1-ARGS): Use
1092         $(host-built-program-cmd).
1093         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1094         (tst-spawn-ARGS): Likewise.
1095         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1096
1097 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1098             Jim Blandy  <jimb@codesourcery.com>
1099
1100         * Makeconfig (run-via-rtld-prefix): New variable.
1101         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1102         (built-program-cmd): Likewise.
1103
1104 2012-10-22  Andreas Jaeger  <aj@suse.de>
1105
1106         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1107         __O_RSYNC if it exists, otherwise to O_SYNC.
1108
1109 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1110             Joseph Myers  <joseph@codesourcery.com>
1111
1112         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1113         /dev/null.
1114         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1115         from /dev/null
1116         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1117         /dev/null.
1118
1119 2012-10-22  Andreas Jaeger  <aj@suse.de>
1120
1121         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1122         Define always.
1123         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1124
1125         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1126         bits/fcntl-linux.h.
1127
1128         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1129         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1130
1131         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1132         to __O_LARGEFILE.
1133         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1134         to __O_LARGEFILE.
1135
1136 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1137             Joseph Myers  <joseph@codesourcery.com>
1138
1139         * config.make.in (NM): New variable.
1140
1141 2012-10-21  Andreas Jaeger  <aj@suse.de>
1142
1143         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1144         definitions and declarations that are provided by
1145         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1146
1147 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1148
1149         [BZ #14683]
1150         * elf/Makefile (tests-static): Add tst-leaks1-static.
1151         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1152         ($(objpfx)tst-leaks1-static): New rule.
1153         ($(objpfx)tst-leaks1-static-mem): Likewise.
1154         (tst-leaks1-static-ENV): New macro.
1155         * elf/dl-open.c (dl_open_worker): Check the main application
1156         only if SHARED is defined.
1157         * elf/tst-leaks1-static.c: New file.
1158
1159 2012-10-20  Andreas Jaeger  <aj@suse.de>
1160
1161         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1162         generic values for Linux.
1163         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1164         and declarations that are provided by <bits/fcntl-linux.h> and
1165         include <bits/fcntl-linux.h>.
1166         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1167         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1168
1169 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1170
1171         * io/fcntl.h: Move include of <bits/types.h> to the top and
1172         include it unconditionally.
1173
1174 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1175
1176         * wcsmbs/Makefile (tests-ifunc): New variable.
1177         (tests): Add $(tests-ifunc).
1178         * wcsmbs/test-wcschr-ifunc.c: New file.
1179         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1180         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1181         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1182         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1183         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1184
1185         * string/Makefile (tests-ifunc): New variable.
1186         (tests): Add $(tests-ifunc).
1187         * string/test-memccpy.c (TEST_NAME): New macro.
1188         * string/test-memchr.c (TEST_NAME): Likewise.
1189         * string/test-memcmp.c (TEST_NAME): Likewise.
1190         * string/test-memcpy.c (TEST_NAME): Likewise.
1191         * string/test-memmem.c (TEST_NAME): Likewise.
1192         * string/test-memmove.c (TEST_NAME): Likewise.
1193         * string/test-memset.c (TEST_NAME): Likewise.
1194         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1195         * string/test-stpcpy.c (TEST_NAME): Likewise.
1196         * string/test-stpncpy.c (TEST_NAME): Likewise.
1197         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1198         * string/test-strcasestr.c (TEST_NAME): Likewise.
1199         * string/test-strcat.c (TEST_NAME): Likewise.
1200         * string/test-strchr.c (TEST_NAME): Likewise.
1201         * string/test-strcmp.c(TEST_NAME): Likewise.
1202         * string/test-strcpy.c (TEST_NAME): Likewise.
1203         * string/test-strcspn.c (TEST_NAME): Likewise.
1204         * string/test-strlen.c (TEST_NAME): Likewise.
1205         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1206         * string/test-strncmp.c (TEST_NAME): Likewise.
1207         * string/test-strncpy.c (TEST_NAME): Likewise.
1208         * string/test-strnlen.c (TEST_NAME): Likewise.
1209         * string/test-strpbrk.c (TEST_NAME): Likewise.
1210         * string/test-strrchr.c (TEST_NAME): Likewise.
1211         * string/test-strspn.c (TEST_NAME): Likewise.
1212         * string/test-strstr.c (TEST_NAME): Likewise.
1213         * string/test-bcopy-ifunc.c: New file.
1214         * string/test-bzero-ifunc.c: Likewise.
1215         * string/test-memccpy-ifunc.c: Likewise.
1216         * string/test-memchr-ifunc.c: Likewise.
1217         * string/test-memcmp-ifunc.c: Likewise.
1218         * string/test-memcpy-ifunc.c: Likewise.
1219         * string/test-memmem-ifunc.c: Likewise.
1220         * string/test-memmove-ifunc.c: Likewise.
1221         * string/test-mempcpy-ifunc.c: Likewise.
1222         * string/test-memset-ifunc.c: Likewise.
1223         * string/test-rawmemchr-ifunc.c: Likewise.
1224         * string/test-stpcpy-ifunc.c: Likewise.
1225         * string/test-stpncpy-ifunc.c: Likewise.
1226         * string/test-strcasecmp-ifunc.c: Likewise.
1227         * string/test-strcasestr-ifunc.c: Likewise.
1228         * string/test-strcat-ifunc.c: Likewise.
1229         * string/test-strchr-ifunc.c: Likewise.
1230         * string/test-strchrnul-ifunc.c: Likewise.
1231         * string/test-strcmp-ifunc.c: Likewise.
1232         * string/test-strcpy-ifunc.c: Likewise.
1233         * string/test-strcspn-ifunc.c: Likewise.
1234         * string/test-strlen-ifunc.c: Likewise.
1235         * string/test-strncasecmp-ifunc.c: Likewise.
1236         * string/test-strncat-ifunc.c: Likewise.
1237         * string/test-strncmp-ifunc.c: Likewise.
1238         * string/test-strncpy-ifunc.c: Likewise.
1239         * string/test-strnlen-ifunc.c: Likewise.
1240         * string/test-strpbrk-ifunc.c: Likewise.
1241         * string/test-strrchr-ifunc.c: Likewise.
1242         * string/test-strspn-ifunc.c: Likewise.
1243         * string/test-strstr-ifunc.c: Likewise.
1244
1245         * debug/Makefile (tests-ifunc): New variable.
1246         (tests): Add $(tests-ifunc).
1247         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1248         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1249         * debug/test-stpcpy_chk-ifunc.c: New file.
1250         * debug/test-strcpy_chk-ifunc.c: Likewise.
1251
1252 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1253
1254         [BZ #13601]
1255         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1256         header is not read in.
1257
1258 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1259
1260         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1261         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1262         directly.  Pass built executable to script as
1263         $(built-program-cmd).
1264         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1265         $testprogram without using LD_LIBRARY_PATH and $ldso.
1266
1267         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1268         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1269         $(rtld-installed-name).
1270         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1271         (rtld_installed_name): Likewise.
1272         (library_path): Likewise.
1273         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1274         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1275         $(run-program-prefix) to tst-tables.sh.
1276         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1277         it to run tst-table-from and tst-table-to.
1278         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1279         Pass it to tst-table.sh.
1280         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1281         $(run-program-prefix) to tst-gettext.sh.
1282         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1283         tst-translit.sh.
1284         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1285         tst-gettext2.sh.
1286         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1287         to run tst-gettext.
1288         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1289         to run tst-gettext2.
1290         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1291         to run tst-translit.
1292         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
1293         $(run-program-prefix) to tst-mtrace.sh.
1294         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
1295         to run tst-mtrace.
1296         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
1297         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
1298         $(rtld-installed-name).
1299         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
1300         (rtld_installed_name): Likewise.
1301         (run_program_prefix): New variable.  Use it to run wordexp-test.
1302
1303         * Makeconfig (ARCH): Remove all definitions.
1304         (machine): Likewise.
1305         [ARCH]: Remove conditional code.
1306         [!objdir]: Give error.
1307         [!objdir] (objpfx): Remove.
1308         [!objdir] (common-objpfx): Likewise.
1309         [!objdir] (common-objdir): Likewise.
1310         * configure.in (config_makefile): Remove.  Hardcode Makefile in
1311         AC_CONFIG_FILES call.
1312         * configure: Regenerated.
1313
1314         [BZ #13888]
1315         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
1316         or TMPDIR.
1317         (testout): Likewise.
1318
1319         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
1320         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
1321         $(rtld-installed-name).
1322         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
1323         (rtld_installed_name): Likwise.
1324         (runit): Remove function.
1325         (run_getconf): New variable,  Use it for running getconf binary.
1326
1327 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
1328
1329         [BZ #14716]
1330         * string/test-memmem.c (check_result): New function.
1331         (do_one_test): Use it.
1332         (check1): New function.
1333         (test_main): Use it.
1334
1335 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1336
1337         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
1338
1339 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
1340
1341         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
1342         (_G_LSEEK64): Likewise.
1343         (_G_MMAP64): Likewise.
1344         (_G_FSTAT64): Likewise.
1345         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
1346         (_G_LSEEK64): Likewise.
1347         (_G_MMAP64): Likewise.
1348         (_G_FSTAT64): Likewise.
1349         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
1350         unconditional.  Call __mmap64 directly.
1351         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
1352         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
1353         __lseek64 directly.
1354         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
1355         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
1356         __mmap64 directly.
1357         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
1358         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1359         __lseek64 directly.
1360         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
1361         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1362         __lseek64 directly.
1363         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
1364         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
1365         __lseek64 directly.
1366         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
1367         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
1368         __fxstat64 directly.
1369         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
1370         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
1371         unconditional.
1372         (freopen64) [!_G_OPEN64]: Remove conditional code.
1373         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
1374         unconditional.
1375         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
1376         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
1377         unconditional.
1378         (ftello64) [!_G_LSEEK64]: Remove conditional code.
1379         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
1380         unconditional.
1381         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1382         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
1383         unconditional.
1384         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
1385         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
1386         unconditional.
1387         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1388         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
1389         unconditional.
1390         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1391         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
1392         unconditional.
1393         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1394
1395 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1396
1397         [BZ #12140]
1398         * manual/memory.texi (Malloc Tunable Parameters): Add note
1399         about free list pointers overwriting some perturb bytes.
1400         Wording suggested by Roland McGrath.
1401
1402 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
1403
1404         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
1405         (lgamma_test): Likewise.
1406         (tgamma_test): Likewise.
1407
1408 2012-10-16  Florian Weimer  <fweimer@redhat.com>
1409
1410         [BZ #14700]
1411         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
1412         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
1413
1414 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
1415
1416         * NEWS: Mention BZ #14716.
1417         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
1418         when removing AVAILABLE1_USES_J macro.
1419
1420 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1421
1422         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
1423         (__bswap_64): __uint64_t for unsigned 64-bit int.
1424
1425 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
1426
1427         * include/string.h (memmem): Declare libc hidden alias.
1428         * string/memmem.c (memmem): Define libc hidden alias.
1429         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
1430         __read, __close instead of open, read, close.
1431
1432 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1433
1434         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
1435         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
1436         global and hidden.
1437         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
1438         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
1439         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
1440         Likewise.
1441         (__rawmemchr_sse2): Likewise.
1442         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
1443         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
1444         (__strchr_sse2): Likewise.
1445         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
1446         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
1447         (__strcasecmp_sse2): Likewise.
1448         (__strncasecmp_sse2): Likewise.
1449         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
1450         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
1451         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
1452         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
1453         (__strrchr_sse2): Likewise.
1454         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
1455         ifunc-impl-list.c.
1456         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
1457         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
1458         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1459         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1460         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
1461         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
1462         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1463         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1464         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1465         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
1466         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
1467         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
1468         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
1469         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
1470         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1471         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1472         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1473         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1474         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1475         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
1476         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
1477         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
1478         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
1479         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1480         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
1481         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1482         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1483         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1484         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
1485         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
1486
1487         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
1488         global and hidden.
1489         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
1490         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
1491         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
1492         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
1493         Likewise.
1494         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
1495         Likewise.
1496         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
1497         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
1498         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
1499         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
1500         ifunc-impl-list.c.
1501         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
1502         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
1503         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
1504         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
1505         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
1506         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
1507         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
1508         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
1509         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
1510         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
1511         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
1512         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
1513         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
1514         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
1515         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
1516         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1517         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
1518         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
1519         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
1520         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
1521         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
1522         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
1523         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
1524         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1525         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1526         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
1527         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
1528         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
1529         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
1530         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
1531         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
1532         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
1533         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1534         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
1535         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
1536         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
1537         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
1538         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
1539         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
1540         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
1541         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
1542
1543         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
1544         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
1545         * include/ifunc-impl-list.h: New file.
1546         * misc/ifunc-impl-list.c: Likewise.
1547         * misc/Makefile (routines): Add ifunc-impl-list.
1548         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
1549         * string/test-string.h: Include <ifunc-impl-list.h>.
1550         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
1551         impl_array): New variables.
1552         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
1553         are defined.
1554         (test_init): Call __libc_ifunc_impl_list to initialize
1555         func_list if TEST_IFUNC and TEST_NAME are defined.
1556
1557         * string/Makefile (strop-tests): Add bcopy and bzero.
1558         * string/test-bcopy.c: New file.
1559         * string/test-bzero.c: Likewise.
1560         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
1561         defined.
1562         * string/test-memset.c: Support bzero test if TEST_BZERO is
1563         defined.
1564         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
1565         __libc_memmove.
1566         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
1567         __libc_memset.
1568         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
1569         of memset.
1570
1571 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
1572
1573         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
1574         * configure: Regenerated.
1575
1576         * Makeconfig (+link-static-before-libc): Don't include
1577         $(link-static-libc).
1578
1579         * libio/libio.h (_IO_pos_t): Remove.
1580
1581 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1582
1583         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
1584         McGrath.
1585
1586 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1587
1588         * crypt/crypt-entry.c: Include fips-private.h.
1589         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
1590         * crypt/md5c-test.c (main): Tolerate disabled MD5.
1591         * sysdeps/unix/sysv/linux/fips-private.h: New file.
1592         * sysdeps/generic/fips-private.h: New file, dummy fallback.
1593
1594 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1595
1596         * crypt/crypt-private.h: Include stdbool.h.
1597         (_ufc_setup_salt_r): Return bool.
1598         * crypt/crypt-entry.c: Include errno.h.
1599         (__crypt_r): Return NULL with EINVAL for bad salt.
1600         * crypt/crypt_util.c (bad_for_salt): New.
1601         (_ufc_setup_salt_r): Check that salt is long enough and within
1602         the specified alphabet.
1603         * crypt/badsalttest.c: New file.
1604         * crypt/Makefile (tests): Add it.
1605         ($(objpfx)badsalttest): New.
1606
1607 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1608
1609         * NEWS: Add entry for BZ #14602.
1610
1611 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1612
1613         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
1614         type-generic.
1615         * math/libm-test.inc: Update comment listing what functions and
1616         macros are tested.
1617         (isgreater_test): New function.
1618         (isgreaterequal_test): Likewise.
1619         (isless_test): Likewise.
1620         (islessequal_test): Likewise.
1621         (islessgreater_test): Likewise.
1622         (isunordered_test): Likewise.
1623         (main): Call the new functions.
1624
1625 2012-10-09  Roland McGrath  <roland@hack.frob.com>
1626
1627         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
1628         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
1629         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
1630         * sysdeps/i386/configure: Regenerated.
1631         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
1632         * sysdeps/mach/configure: Regenerated.
1633         * sysdeps/mach/hurd/configure: Regenerated.
1634         * sysdeps/powerpc/configure: Regenerated.
1635         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1636         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1637         * sysdeps/s390/s390-32/configure: Regenerated.
1638         * sysdeps/s390/s390-64/configure: Regenerated.
1639         * sysdeps/sh/configure: Regenerated.
1640         * sysdeps/sparc/configure: Regenerated.
1641         * sysdeps/unix/sysv/linux/configure: Regenerated.
1642         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
1643         * sysdeps/x86_64/configure: Regenerated.
1644
1645         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
1646         defined.  Don't check if MAP is NULL.
1647
1648 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1649
1650         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
1651         (_G_stat64): Likewise.
1652         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
1653         (_G_stat64): Likewise.
1654         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
1655         instead of struct _G_stat64.
1656         * libio/fileops.c (mmap_remap_check): Likewise.
1657         (decide_maybe_mmap): Likewise.
1658         (_IO_new_file_seekoff): Likewise.
1659         (_IO_file_stat): Likewise.
1660         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
1661         _G_off64_t.
1662         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
1663         instead of struct _G_stat64.
1664         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1665
1666 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
1667
1668         [BZ #14602]
1669         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1670         Replace with ...
1671         (CHECK_EOL): New macro.
1672         (two_way_short_needle): Check beginning of haystack for EOL.  Use
1673         CHECK_EOL.
1674         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1675         Replace with CHECK_EOL.
1676         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1677         Replace with CHECK_EOL.
1678
1679 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1680
1681         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1682         type-generic.
1683         * math/libm-test.inc: Update comment listing what functions and
1684         macros are tested.
1685         (finite_test): New function.
1686         (isinf_test): Likewise.
1687         (isnan_test): Likewise.
1688         (fpclassify_test): Test subnormal input.
1689         (isfinite_test): Likewise.
1690         (isnormal_test): Likewise.
1691         (main): Call the new functions.
1692
1693 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1694
1695         [BZ #14660]
1696         * Makerules (%.dynsym): Force C locale when running
1697         $(OBJDUMP) --dynamic-syms.
1698
1699 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1700
1701         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1702         <stdint.h>.
1703
1704 2012-10-06  David S. Miller  <davem@davemloft.net>
1705
1706         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1707         upper 32-bits of the length value in %o2 since we use branch-on-register
1708         tests which consider the entire 64-bit register.
1709
1710 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1711
1712         * string/test-strstr.c (check2): Add a test for page boundary.
1713
1714 2012-10-05  David S. Miller  <davem@davemloft.net>
1715
1716         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1717         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1718         file.
1719         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1720         sysdep_routines.
1721         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1722         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1723         and bzero when HWCAP_SPARC_CRYPTO is present.
1724
1725 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1726
1727         [BZ #14602]
1728         * string/test-strstr.c (check2): New function.
1729         (test_main): Call check2.
1730
1731         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1732         and bug-strchr1.
1733         * string/bug-strcasestr1.c (do_test): Moved to ...
1734         * string/test-strcasestr.c (check1): Here.  New function.
1735         (do_one_test): Break out result checking code into ...
1736         (check_result): This.  New function.
1737         (do_one_test): Call check_result.
1738         (test_main): Call check1.
1739         * string/bug-strchr1.c (do_test): Moved to ...
1740         * string/test-strchr.c (check1): Here.  New function.
1741         (do_one_test): Break out result checking code into ...
1742         (check_result): This.  New function.
1743         (do_one_test): Call check_result.
1744         (test_main): Call check1.
1745         * string/bug-strstr1.c (main): Moved to ...
1746         * string/test-strchr.c (check1): Here.  New function.
1747         (do_one_test): Break out result checking code into ...
1748         (check_result): This.  New function.
1749         (do_one_test): Call check_result.
1750         (test_main): Call check1.
1751         * string/bug-strcasestr1.c: Removed.
1752         * string/bug-strchr1.c: Likewise.
1753         * string/bug-strstr1.c: Likewise.
1754
1755         * elf/Makefile (dl-routines): Add hwcaps.
1756         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1757         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1758         (_dl_important_hwcaps): Moved to ...
1759         * elf/dl-hwcaps.c: Here.  New file.
1760         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1761
1762         [BZ #14557]
1763         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1764         if IS_IN_rtld isn't defined.
1765
1766         * elf/dl-support.c (_dl_sysinfo_map): New.
1767         Include "get-dynamic-info.h" and "setup-vdso.h".
1768         (_dl_non_dynamic_init): Call setup_vdso.
1769         * elf/dynamic-link.h: Don't include <assert.h>.
1770         (elf_get_dynamic_info): Moved to ...
1771         * elf/get-dynamic-info.h: Here.  New file.
1772         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1773         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1774         * elf/setup-vdso.h: Here.  New file.
1775         * elf/rtld.c: Include "setup-vdso.h".
1776         (dl_main): Call setup_vdso.
1777
1778 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1779
1780         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1781         creal in comment listing functions tested.  List finite, isinf,
1782         isnan, isless, islessequal, isgreater, isgreaterequal,
1783         islessgreater, isunordered, lgamma_r and pow10 as functions and
1784         macros not tested.  Mention which functions not tested are aliases
1785         for other functions.  Fix typo.  Note that signs of NaNs are not
1786         tested.
1787
1788         * scripts/config.guess: Update from config.git.
1789         * scripts/config.sub: Likewise.
1790
1791 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1792
1793         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1794         * misc/madvise.c (madvise): Renamed to __madvise.
1795         Make madvise a weak alias.
1796         * include/sys/mman.h: Declare __madvise.
1797         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1798         * sysdeps/unix/syscalls.list
1799         (madvise): Make __madvise the strong name, and madvise a weak alias.
1800         * sysdeps/unix/sysv/linux/syscalls.list
1801         (madvise, mmap): Remove redundant entries.
1802         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1803         * malloc/malloc.c (mtrim): Likewise.
1804         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1805
1806 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1807
1808         * sysdeps/mach/hurd/dl-cache.c: File removed.
1809         * config.h.in (USE_LDCONFIG): New #undef.
1810         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1811         * configure: Regenerated.
1812         * elf/Makefile (dl-routines): Add dl-cache only under
1813         [$(use-ldconfig) = yes].
1814         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1815         cache on [USE_LDCONFIG].
1816         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1817         [USE_LDCONFIG].
1818         * elf/rtld.c (dl_main): Likewise.
1819
1820 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1821
1822         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1823         _SC_LEVEL4_CACHE_LINESIZE.
1824
1825 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1826
1827         * sysdeps/unix/bsd/confstr.h: File removed.
1828
1829 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1830
1831         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1832         sys/sdt-config.h.
1833
1834 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1835
1836         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1837         Make 'mapoff' field ElfW(Off) rather than off_t.
1838
1839 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1840
1841         * nscd/Makefile: Remove nscd-cflags and all its users.
1842         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1843         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1844
1845         [BZ #10631]
1846         * malloc.c (malloc_printerr): Clarify error message.
1847
1848 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1849
1850         [BZ #14648]
1851         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1852         Set bit_FMA_Usable if FMA is supported.
1853         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1854         macro.
1855         (bit_FMA4_Usable): Updated.
1856         (index_FMA_Usable): New macro.
1857         (CPUID_FMA): Likewise
1858         (HAS_FMA): Defined with bit_FMA_Usable.
1859
1860 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1861
1862         * bits/types.h (__swblk_t): Type removed.
1863         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1864         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1865         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1866         (__SWBLK_T_TYPE): Likewise.
1867         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1868         (__SWBLK_T_TYPE): Likewise.
1869         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1870         (__SWBLK_T_TYPE): Likewise.
1871         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1872         (__SWBLK_T_TYPE): Likewise.
1873
1874 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1875             Honza Horak <hhorak@redhat.com>
1876
1877         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1878         (xdr_mapname): Use YPMAXMAP as maxsize.
1879         (xdr_peername): Use YPMAXPEER as maxsize.
1880         (xdr_keydat): Use YPAXRECORD as maxsize.
1881         (xdr_valdat): Use YPMAXRECORD as maxsize.
1882
1883 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1884
1885         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1886
1887         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1888         * csu/init-first.c: ... here.
1889         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1890         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1891         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1892         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1893         * sysdeps/i386/init-first.c: File removed.
1894         * sysdeps/sh/init-first.c: File removed.
1895
1896 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1897
1898         [BZ #14645]
1899         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1900         if x * y might underflow to zero and z is zero.
1901         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1902         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1903         * math/libm-test.inc (min_subnorm_value): New variable.
1904         (fma_test): Add more tests.
1905         (fma_test_towardzero): Likewise.
1906         (fma_test_downward): Likewise
1907         (fma_test_upward): Likewise.
1908         (initialize): Set min_subnorm_value.
1909
1910 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1911
1912         [BZ #14638]
1913         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1914         0 + 0.
1915         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1916         mode for addition resulting in exact zero.
1917         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1918         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1919         exact 0 + 0.
1920         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1921         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1922         * math/libm-test.inc (fma_test): Add more tests.
1923         (fma_test_towardzero): New function.
1924         (fma_test_downward): Likewise.
1925         (fma_test_upward): Likewise.
1926         (main): Call the new functions.
1927
1928 2012-09-28  David S. Miller  <davem@davemloft.net>
1929
1930         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1931
1932 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1933
1934         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1935         instead of SIGALRM.
1936
1937         * sysdeps/gnu/_G_config.h: Moved to ...
1938         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1939         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1940         * sysdeps/generic/_G_config.h: ... here.
1941
1942         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1943
1944         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1945
1946         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1947         Conditionalize target on [libnss_test1.so-version].
1948
1949         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1950
1951         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1952         (elfobjdir): Move out of conditionals.
1953
1954         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1955         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1956         (__nss_lookup_function): Conditionalize label remove_from_tree on
1957         [!DO_STATIC_NSS || SHARED], matching its only use.
1958
1959 2012-09-28  David S. Miller  <davem@davemloft.net>
1960
1961         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1962         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1963         file.
1964         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1965         sysdep_routines.
1966         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1967         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1968         when HWCAP_SPARC_CRYPTO is present.
1969
1970 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1971
1972         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1973
1974 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1975
1976         [BZ #6530]
1977         * stdio-common/vfprintf.c (process_string_arg): Revert
1978         2000-07-22 change.
1979
1980 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1981
1982         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1983         for testcase.
1984         * stdio-common/tst-sprintf.c: Include <locale.h>
1985         (main): Test sprintf's handling of incomplete multibyte
1986         characters.
1987
1988 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1989
1990         * elf/dl-runtime.c (VERSYMIDX): Removed.
1991         * elf/dl-version.c (VERSYMIDX): Likewise.
1992         * elf/do-rel.h (VERSYMIDX): Likewise.
1993         (VALIDX): Likewise.
1994         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1995         * elf/rtld.c (VALIDX): Likewise.
1996         (ADDRIDX): Likewise.
1997         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1998         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1999         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2000         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2001         (VALIDX): Likewise.
2002         (ADDRIDX): Likewise.
2003
2004 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2005
2006         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2007
2008 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2009
2010         [BZ #11438]
2011         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2012         to global scope.
2013         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2014         addresses are in the same scope as 192.0.2/24.
2015         * posix/gai.conf: Document new scope table defaults.
2016
2017 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2018
2019         [BZ #5298]
2020         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2021         for ftell.  Compute offsets from write pointers instead.
2022         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2023
2024 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2025
2026         [BZ #14543]
2027         * libio/Makefile (tests): New test case tst-fseek.
2028         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2029         combination works in wide mode.
2030         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2031         state when the external buffer state changes.
2032
2033 2012-09-27  David S. Miller  <davem@davemloft.net>
2034
2035         [BZ #14376]
2036         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2037         pass reloc->r_addend in as the 'high' argument to
2038         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2039
2040         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2041
2042 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2043
2044         * rt/tst-aio2.c: Include <pthread.h>.
2045         * rt/tst-aio3.c: Likewise.
2046
2047 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2048
2049         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2050
2051 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2052
2053         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2054         contents on [SHARED].
2055
2056 2012-09-26  Marek Polacek  <polacek@redhat.com>
2057
2058         [BZ #14530]
2059         [BZ #13741]
2060         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2061         for C++ and GCC <4.3 as well as for non GCC compilers.
2062
2063 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2064
2065         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2066
2067 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2068
2069         * Makefile.in (all, install): Declare with .PHONY.
2070         Reported by Michael Hope <michael.hope@linaro.org>.
2071
2072 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2073
2074         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2075         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2076         system header.
2077         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2078         Likewise.
2079         (sydep_routines): Add the new and the internal functions.
2080         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2081         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2083         (GLIBC_2.17): Add the new function.
2084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2085         (GLIBC_2.17): Likewise.
2086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2087         (GLIBC_2.17): Likewise.
2088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2089         (GLIBC_2.17): Likewise.
2090         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2091
2092 2012-09-25  Alan Modra  <amodra@gmail.com>
2093
2094         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2095         Add release barrier before setting once_control to say
2096         initialisation is done.  Add hints on lwarx.  Use macro in
2097         place of isync.
2098         (clear_once_control): Add release barrier.
2099
2100 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2101
2102         [BZ #13629]
2103         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2104         specially.
2105         * math/s_clog10.c (__clog10): Likewise.
2106         * math/s_clog10f.c (__clog10f): Likewise.
2107         * math/s_clog10l.c (__clog10l): Likewise.
2108         * math/s_clogf.c (__clogf): Likewise.
2109         * math/s_clogl.c (__clogl): Likewise.
2110         * math/Makefile (libm-calls): Add x2y2m1.
2111         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2112         (__x2y2m1): Likewise.
2113         (__x2y2m1l): Likewise.
2114         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2115         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2116         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2117         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2118         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2119         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2120         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2121         * sysdeps/i386/fpu/libm-test-ulps: Update.
2122         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2123
2124         [BZ #14621]
2125         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2126         int as type of variable DEPTH.
2127         (glob): Use size_t instead of int as type of variables NEWCOUNT
2128         and OLD_PATHC.
2129
2130 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2131
2132         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2133         Add s_sincosf-sse2.
2134         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2135         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2136         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2137         macros for using routine as __sincosf_ia32.
2138         Use macro for function declaration and weak_alias.
2139         * sysdeps/i386/fpu/libm-test-ulps: Update.
2140
2141         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2142         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2143
2144         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2145         subnormal argument.
2146         * math/s_cexpf.c (__cexpf): Likewise.
2147         * math/s_csinf.c (__csinf): Likewise.
2148         * math/s_csinhf.c (__csinhf): Likewise.
2149         * math/s_ctanf.c (__ctanf): Likewise.
2150         * math/s_ctanhf.c (__ctanhf): Likewise.
2151         * math/s_ccosh.c (__ccoshf): Likewise.
2152         * math/s_cexp.c (__cexpl): Likewise.
2153         * math/s_csin.c (__csin): Likewise.
2154         * math/s_csinh.c (__csinh): Likewise.
2155         * math/s_ctan.c (__ctan): Likewise.
2156         * math/s_ctanh.c (ctanh): Likewise.
2157         * math/s_ccoshl.c (__ccoshl): Likewise.
2158         * math/s_cexpl.c (__cexpl): Likewise.
2159         * math/s_csinl.c (__csinl): Likewise.
2160         * math/s_csinhl.c (__csinhl): Likewise.
2161         * math/s_ctanl.c (__ctanl): Likewise.
2162         * math/s_ctanhl.c (__ctanhl): Likewise.
2163
2164 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2165
2166         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2167         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2168         (_IO_off_t): Define to __off_t, not _G_off_t.
2169         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2170         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2171         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2172         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2173         type of __dummy and __dummy2 fields.
2174         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2175         (_G_ssize_t): Likewise.
2176         (_G_off_t): Likewise.
2177         (_G_pid_t): Likewise.
2178         (_G_uid_t): Likewise.
2179         (_G_wchar_t): Likewise.
2180         (_G_wint_t): Likewise.
2181         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2182         (_G_ssize_t): Likewise.
2183         (_G_off_t): Likewise.
2184         (_G_pid_t): Likewise.
2185         (_G_uid_t): Likewise.
2186         (_G_wchar_t): Likewise.
2187         (_G_wint_t): Likewise.
2188         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2189         (_G_ssize_t): Likewise.
2190         (_G_off_t): Likewise.
2191         (_G_pid_t): Likewise.
2192         (_G_uid_t): Likewise.
2193         (_G_wchar_t): Likewise.
2194         (_G_wint_t): Likewise.
2195
2196 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2197
2198         * malloc/arena.c: Include malloc-sysdep.h.
2199         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2200         is sufficient to shrink the heap or an unmap is needed.
2201         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2202         new function check_may_shrink_heap.
2203         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2204         new function check_may_shrink_heap.
2205
2206 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2207
2208         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2209         comments.
2210
2211 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2212
2213         * catgets/test-gencat.sh: Add "set -e".
2214         * elf/tst-pathopt.sh: Likewise.
2215         * grp/tst_fgetgrent.sh: Likewise.
2216         * iconvdata/run-iconv-test.sh: Likewise.
2217         * intl/tst-gettext.sh: Likewise.
2218         * intl/tst-gettext2.sh: Likewise.
2219         * intl/tst-gettext4.sh: Likewise.
2220         * intl/tst-gettext6.sh: Likewise.
2221         * intl/tst-translit.sh: Likewise.
2222         * io/ftwtest-sh: Likewise.
2223         * libio/test-freopen.sh: Likewise.
2224         * malloc/tst-mtrace.sh: Likewise.
2225         * posix/globtest.sh: Likewise.
2226         * posix/tst-getconf.sh: Likewise.
2227         * posix/wordexp-tst.sh: Likewise.
2228         * stdio-common/tst-printf.sh: Likewise.
2229         * stdio-common/tst-unbputc.sh: Likewise.
2230         * stdlib/tst-fmtmsg.sh: Likewise.
2231         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2232         * catgets/Makefile: Do not specify -e option when running
2233         testsuite shell scripts.
2234         * elf/Makefile: Likewise.
2235         * grp/Makefile: Likewise.
2236         * iconvdata/Makefile: Likewise.
2237         * intl/Makefile: Likewise.
2238         * io/Makefile: Likewise.
2239         * libio/Makefile: Likewise.
2240         * malloc/Makefile: Likewise.
2241         * posix/Makefile: Likewise.
2242         * stdio-common/Makefile: Likewise.
2243         * stdlib/Makefile: Likewise.
2244         * sysdeps/x86_64/Makefile: Likewise.
2245
2246         * io/ftwtest-sh: Add copyright header.
2247         * posix/globtest.sh: Likewise.
2248         * posix/tst-getconf.sh: Likewise.
2249         * posix/wordexp-tst.sh: Likewise.
2250         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2251
2252 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2253
2254         [BZ #13679]
2255         * Makeconfig (+link): Defined as $(+link-static) if
2256         $(build-shared) isn't yes.
2257         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2258         isn't yes.
2259         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2260
2261         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2262
2263         [BZ #14562]
2264         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2265         new chunk size with MALLOC_ALIGN_MASK.
2266
2267 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2268
2269         [BZ #5044]
2270         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2271         <rounding-mode.h>.
2272         (__printf_fphex): Determine rounding using get_rounding_mode and
2273         round_away.
2274         * stdio-common/tst-printf-round.c (struct hex_test): New
2275         structure.
2276         (hex_tests): New variable.
2277         (test_hex_in_one_mode): New function.
2278         (do_test): Also run tests for hex float output.
2279
2280 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2281
2282         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2283         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2284         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2285         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2286         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2287         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2288         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2289         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2290
2291 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2292
2293         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
2294         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
2295         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
2296         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
2297
2298 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
2299
2300         [BZ #14579]
2301         * elf/rtld.c (dl_main): Limit the check for self loading to normal
2302         mode only.
2303         * elf/tst-rtld-load-self.sh: New test.
2304         * elf/Makefile: Run it.
2305
2306 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
2307
2308         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
2309         (tst-writev-ENV): Remove.
2310         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
2311
2312 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
2313
2314         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
2315
2316 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
2317
2318         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
2319         unconditional.
2320         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
2321         Likewise.
2322         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
2323         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
2324         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
2325         Likewise.
2326
2327 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2328
2329         [BZ #14587]
2330         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
2331         * config.make.in (have-cpp-asm-debuginfo): Removed.
2332         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
2333         * configure: Regenerated.
2334
2335 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2336
2337         [BZ #5044]
2338         * stdio-common/printf_fp.c: Include <stdbool.h> and
2339         <rounding-mode.h>.
2340         (___printf_fp): Determine rounding using get_rounding_mode and
2341         round_away.
2342         * stdio-common/tst-printf-round.c: New file.
2343         * stdio-common/Makefile (tests): Add tst-printf-round.
2344         (link-libm): New variable.
2345         ($(objpfx)tst-printf-round): Depend in $(link-libm).
2346
2347 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2348
2349         [BZ #14576]
2350         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
2351         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
2352         Likewise.
2353         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
2354         Likewise.
2355
2356 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
2357
2358         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
2359         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2360         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2361         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2362
2363 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
2364
2365         [BZ #14518]
2366         * include/rounding-mode.h: New file.
2367         * sysdeps/generic/get-rounding-mode.h: Likewise.
2368         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
2369         * stdlib/strtod_l.c: Include <rounding-mode.h>.
2370         (MAX_VALUE): New macro.
2371         (MIN_VALUE): Likewise.
2372         (overflow_value): New function.
2373         (underflow_value): Likewise.
2374         (round_and_return): Use overflow_value and underflow_value to
2375         determine return values in overflow and underflow cases.  Use
2376         round_away to determine rounding depending on rounding mode.
2377         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
2378         determine return values in overflow and underflow cases.
2379         * stdlib/tst-strtod-round.c: Include <fenv.h>.
2380         (struct test_results): New structure.
2381         (struct test): Use struct test_results to store expected results
2382         for all rounding modes.
2383         (TEST): Include expected results for all rounding modes.
2384         (test_in_one_mode): New function.
2385         (do_test): Use test_in_one_mode to compute and check results.
2386         Check results for all rounding modes.
2387         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
2388         $(link-libm).
2389
2390 2012-12-09  Allan McRae  <allan@archlinux.org>
2391
2392         * sysdeps/i386/fpu/libm-test-ulps: Update
2393
2394 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
2395
2396         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
2397         (_G_int32_t): Likewise.
2398         (_G_uint16_t): Likewise.
2399         (_G_uint32_t): Likewise.
2400         (_G_HAVE_BOOL): Likewise.
2401         (_G_HAVE_ATEXIT): Likewise.
2402         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2403         (_G_HAVE_IO_FILE_OPEN): Likewise.
2404         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
2405         (_G_int32_t): Likewise.
2406         (_G_uint16_t): Likewise.
2407         (_G_uint32_t): Likewise.
2408         (_G_HAVE_BOOL): Likewise.
2409         (_G_HAVE_ATEXIT): Likewise.
2410         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2411         (_G_HAVE_IO_FILE_OPEN): Likewise.
2412         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
2413         (_G_int32_t): Likewise.
2414         (_G_uint16_t): Likewise.
2415         (_G_uint32_t): Likewise.
2416         (_G_HAVE_BOOL): Likewise.
2417         (_G_HAVE_ATEXIT): Likewise.
2418         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2419         (_G_HAVE_IO_FILE_OPEN): Likewise.
2420
2421 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2422
2423         * csu/libc-tls.c: Update copyright years.
2424
2425 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
2426
2427         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
2428         [!_G_USING_THUNKS]: Remove conditional code.
2429         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
2430         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
2431
2432         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
2433         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
2434         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2435         (_G_VTABLE_LABEL_PREFIX): Likewise.
2436         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2437         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2438         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2439         (_G_VTABLE_LABEL_PREFIX): Likewise.
2440         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2441         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2442         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2443         (_G_VTABLE_LABEL_PREFIX): Likewise.
2444         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2445
2446 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2447
2448         * libio/Makefile: Include ../Makeconfig before tests.
2449         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
2450         only if $(build-shared) is yes.
2451
2452         * iconv/gconv_db.c: Update copyright years.
2453
2454 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2455
2456         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
2457         unwind info if defined PIC. Fix special cases description.
2458         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
2459
2460         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
2461         DP_HI_MASK entry.
2462         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
2463
2464 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2465
2466         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
2467
2468         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
2469         is NULL.
2470
2471         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
2472         (LDLIBS-tst-chk4): This.
2473         (LDFLAGS-tst-chk5): Renamed to ...
2474         (LDLIBS-tst-chk5): This.
2475         (LDFLAGS-tst-chk6): Renamed to ...
2476         (LDLIBS-tst-chk6): This.
2477         (LDFLAGS-tst-lfschk4): Renamed to ...
2478         (LDLIBS-tst-lfschk4): This.
2479         (LDFLAGS-tst-lfschk5): Renamed to ...
2480         (LDLIBS-tst-lfschk5): This.
2481         (LDFLAGS-tst-lfschk6): Renamed to ...
2482         (LDLIBS-tst-lfschk6): This.
2483
2484         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
2485         on $(common-objpfx)soversions.mk.
2486
2487 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
2488
2489         [BZ #10014]
2490         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
2491         example host name.
2492
2493 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2494
2495         * malloc/arena.c (arena_get_retry): New function that gets
2496         another arena for the caller to try its request on.
2497         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
2498         current arena cannot fulfill the request.
2499         (__libc_memalign): Likewise.
2500         (__libc_memalign): Likewise.
2501         (__libc_pvalloc): Likewise.
2502         (__libc_calloc): Likewise.
2503
2504 2012-09-05  John Tobey  <john.tobey@gmail.com>
2505
2506         [BZ #13542]
2507         * manual/arith.texi (Operations on Complex): Fix description
2508         of carg branch cut.
2509
2510 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2511
2512         [BZ #10014]
2513         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
2514         host name.
2515
2516         [BZ #10038]
2517         * manual/memory.texi (Memory): Make order of menu items match
2518         order of sections.
2519
2520 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2521
2522         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
2523         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
2524         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
2525
2526 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2527
2528         * csu/libc-tls.c (static_dtv): Renamed to ...
2529         (_dl_static_dtv): This.  Make it global.
2530         (_dl_initial_dtv): Removed.
2531         (__libc_setup_tls): Updated.
2532         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
2533         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
2534         DL_INITIAL_DTV.
2535
2536 2012-09-06  Petr Machata  <pmachata@redhat.com>
2537
2538         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
2539         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
2540         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
2541         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
2542
2543 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2544
2545         [BZ #14545]
2546         * csu/libc-tls.c (_dl_initial_dtv): New variable.
2547         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
2548         freeing dtv[-1].
2549
2550 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2551
2552         [BZ #14544]
2553         * Makeconfig (link-static-before-libc): Replace $(+prector)
2554         with $(+prectorT).
2555         (link-static-after-libc): Replace $(+postctor) with
2556         $(+postctorT).
2557         (link-bounded): Replace $(+prector)/$(+postctor) with
2558         $(+prectorT)/$(+postctorT).
2559         (+prectorT): New macro.
2560         (+postctorT): Likewise.
2561
2562 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2563
2564         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
2565         (round_str): Handle values above the maximum for IBM long double
2566         as inexact.
2567         * stdlib/tst-strtod-round.c (tests): Regenerated.
2568
2569 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2570
2571         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
2572         assembler flag.
2573         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
2574         zarch_nohighgprs around the zarch optimized routines.
2575         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
2576         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
2577         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
2578         for zarch.
2579
2580 2012-09-05  David S. Miller  <davem@davemloft.net>
2581
2582         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2583
2584         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
2585         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
2586         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
2587         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
2588         entries.
2589
2590 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2591
2592         * malloc/arena.c: Fold copyright years.
2593         * malloc/mcheck.c, malloc/memusage.c: Likewise.
2594
2595 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2596
2597         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
2598
2599 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2600
2601         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
2602
2603 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2604
2605         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
2606         change internal state upon failure.
2607
2608 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2609
2610         * malloc/mcheck.c (mcheck_check_all): Fix typo.
2611         * malloc/memusage.c (mmap): Likewise.
2612         (mmap64, mremap): Likewise.  Adjust name in comment.
2613
2614 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2615
2616         * libio/fileops.c: Fix typos in comments.
2617         * libio/oldfileops.c: Likewise.
2618         * libio/wfileops.c: Likewise.
2619
2620 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2621
2622         [BZ #1349]
2623         * malloc/Makefile (tests): Add tst-malloc-usable test case.
2624         (tst-malloc-usable-ENV): Set environment for test case.
2625         * malloc/hooks.c (malloc_check_get_size): New function to get
2626         requested size.
2627         * malloc/malloc.c (musable): Use malloc_check_get_size.
2628         * malloc/tst-malloc-usable.c: New test case.
2629
2630 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2631
2632         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
2633
2634 2012-09-05  Allan McRae  <allan@archlinux.org>
2635
2636         [BZ #13966]
2637         * configure.in (CXX_SYSINCLUDES): Use compiler output to
2638         determine header location.
2639         * configure: Regenerated.
2640
2641 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2642
2643         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
2644         float format.
2645         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
2646         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
2647         format.
2648         (test): Regenerate.
2649
2650 2012-09-04  David S. Miller  <davem@davemloft.net>
2651
2652         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
2653         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
2654         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
2655
2656 2012-09-04  Florian Weimer  <fweimer@redhat.com>
2657
2658         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
2659         failures.
2660
2661         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
2662
2663 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
2664
2665         [BZ #9914]
2666         * libio/iogetdelim.c: Include <limits.h>.
2667         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
2668         + len + 1 would overflow.
2669
2670 2012-09-03  Andreas Jaeger  <aj@suse.de>
2671
2672         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2673         * sysdeps/i386/fpu/libm-test-ulps: Update.
2674
2675 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2676
2677         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2678         Add s_sinf-sse2, s_conf-sse2.
2679
2680         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2681         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2682         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2683         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2684
2685         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2686         for using routine as __sinf_ia32.
2687         Use macro for function declaration and weak_alias.
2688         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2689         for using routine as __cosf_ia32.
2690         Use macro for function declaration and weak_alias.
2691
2692         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2693         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2694
2695         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2696         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2697         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2698
2699         * math/libm-test.inc (cos_test): Add more test cases.
2700         (sin_test): Likewise.
2701         (sincos_test): Likewise.
2702
2703 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2704
2705         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2706         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2707         hidden.
2708         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2709
2710 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2711
2712         [BZ #14538]
2713         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2714         first element of the GOT.
2715         (elf_machine_load_address): Return the difference between
2716         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2717
2718 2012-09-01  Allan McRae  <allan@archlinux.org>
2719
2720         [BZ #13412]
2721         * configure.in (AWK): Require gawk version 3.0 or later.
2722         * configure: Regenerated.
2723
2724 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2725
2726         * sysdeps/unix/sysv/linux/kernel-features.h
2727         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2728         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2729         [__NR_clock_getres]: Make code unconditional.
2730         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2731         (clock_getcpuclockid): Remove code left unreachable by removal of
2732         conditionals.
2733         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2734         code unconditional.
2735         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2736         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2737         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2738         Make code unconditional.
2739         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2740         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2741         * sysdeps/unix/sysv/linux/clock_settime.c
2742         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2743         conditional code.
2744         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2745         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2746
2747 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2748
2749         [BZ #14476]
2750         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2751         scripts/test-installation.pl.
2752
2753         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2754         and $ld_so_version if it is set.
2755
2756 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2757
2758         [BZ #14516]
2759         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2760         failure if reading from procfs failed.
2761         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2762
2763 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2764
2765         * sysdeps/unix/sysv/linux/kernel-features.h
2766         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2767         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2768         Remove conditional code.
2769         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2770         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2771         Remove conditional code.
2772         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2773         * sysdeps/unix/sysv/linux/i386/fxstat.c
2774         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2775         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2776         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2777         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2778         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2779         * sysdeps/unix/sysv/linux/i386/lxstat.c
2780         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2781         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2782         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2783         Remove conditional code.
2784         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2785         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2786         Remove conditional code.
2787         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2788         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2789         <kernel-features.h>.
2790         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2791         Remove.
2792         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2793         Remove conditional code.
2794         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2795         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2796         Remove conditional.
2797
2798 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2799
2800         [BZ #5400]
2801         * NEWS: Add fixed bug number.
2802
2803 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2804
2805         [BZ #14519]
2806         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2807         underflowing exponent in case of negative sign.
2808         * stdlib/tst-strtod-round-data: Add more tests.
2809         * stdlib/tst-strtod-round.c (tests): Regenerated.
2810
2811         [BZ #3479]
2812         * stdlib/strtod_l.c (NDIG): Remove.
2813         (HEXNDIG): Likewise.
2814         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2815         smallest representable value.
2816         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2817         lie within an exact representation of 1/2 ulp of the result.
2818         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2819         unconditionally.
2820         (TENS_P9_IDX): Define unconditionally.
2821         (TENS_P9_SIZE): Likewise.
2822         (TENS_P10_IDX): Likewise.
2823         (TENS_P10_SIZE): Likewise.
2824         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2825         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2826         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2827         entries for 10^2^13 and 10^2^14.
2828         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2829         (TENS_P13_IDX): Define.
2830         (TENS_P13_SIZE): Likewise.
2831         (TENS_P14_IDX): Likewise.
2832         (TENS_P14_SIZE): Likewise.
2833         (_fpioconst_pow10): Change array size to
2834         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2835         unconditional.
2836         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2837         1024]: Add entries for 10^2^13 and 10^2^14.
2838         [LAST_POW10 > _LAST_POW10]: Remove #error.
2839         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2840         (_fpioconst_pow10): Change array size to
2841         FPIOCONST_POW10_ARRAY_SIZE.
2842         * stdlib/gen-fpioconst.c: New file.
2843         * stdlib/gen-tst-strtod-round.c: Likewise.
2844         * stdlib/tst-strtod-round-data: Likewise.
2845         * stdlib/tst-strtod-round.c: Likewise.
2846         * stdlib/Makefile (tests): Add tst-strtod-round.
2847
2848         [BZ #14459]
2849         * stdlib/strtod_l.c: Include <stdint.h>.
2850         (NDEBUG): Do not define.
2851         (round_and_return): Change EXPONENT parameter to type intmax_t.
2852         Rearrange calculations to avoid internal overflow possibilities.
2853         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2854         Rearrange calculations to avoid internal overflow possibilities.
2855         Assert that number fits inside MPNSIZE limbs.
2856         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2857         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2858         calculations and add assertions to avoid internal overflow
2859         possibilities.  Add casts to avoid signed/unsigned operations.
2860         * stdlib/tst-strtod-overflow.c: New file.
2861         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2862
2863 2012-08-25  Marek Polacek  <polacek@redhat.com>
2864
2865         * time/time.h: Fix some typos in comments.
2866
2867 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2868
2869         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2870         * posix/tst-rfc3484-2.c: Likewise.
2871         * posix/tst-rfc3484-3.c: Likewise.
2872
2873 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2874
2875         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2876         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2877
2878 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2879
2880         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2881         #include of fxstatat64.c.
2882
2883 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2884
2885         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2886         * shadow/getspent_r.c: Likewise.
2887         * shadow/getspnam.c: Likewise.
2888         * shadow/getspnam_r.c: Likewise.
2889         * gshadow/getsgent.c: Likewise.
2890         * gshadow/getsgent_r.c: Likewise.
2891         * gshadow/getsgnam.c: Likewise.
2892         * gshadow/getsgnam_r.c: Likewise.
2893         * inet/getnetbyad.c: Likewise.
2894         * inet/getnetbyad_r.c: Likewise.
2895         * inet/getnetbynm.c: Likewise.
2896         * inet/getnetbynm_r.c: Likewise.
2897         * inet/getnetent.c: Likewise.
2898         * inet/getnetent_r.c: Likewise.
2899         * inet/getproto.c: Likewise.
2900         * inet/getproto_r.c: Likewise.
2901         * inet/getprtent.c: Likewise.
2902         * inet/getprtent_r.c: Likewise.
2903         * inet/getprtname.c: Likewise.
2904         * inet/getprtname_r.c: Likewise.
2905         * inet/getrpcbyname.c: Likewise.
2906         * inet/getrpcbyname_r.c: Likewise.
2907         * inet/getrpcbynumber.c: Likewise.
2908         * inet/getrpcbynumber_r.c: Likewise.
2909         * inet/getrpcent.c: Likewise.
2910         * inet/getrpcent_r.c: Likewise.
2911         * inet/getaliasent.c: Likewise.
2912         * inet/getaliasent_r.c: Likewise.
2913         * inet/getaliasname.c: Likewise.
2914         * inet/getaliasname_r.c: Likewise.
2915         * nscd/getgrgid_r.c: Likewise.
2916         * nscd/getgrnam_r.c: Likewise.
2917         * nscd/gethstbyad_r.c: Likewise.
2918         * nscd/gethstbynm3_r.c: Likewise.
2919         * nscd/getpwnam_r.c: Likewise.
2920         * nscd/getpwuid_r.c: Likewise.
2921         * nscd/getsrvbynm_r.c: Likewise.
2922         * nscd/getsrvbypt_r.c: Likewise.
2923         * nscd/gai.c: Likewise.
2924
2925         * configure.in (build_nscd): New substituted variable, set
2926         by --disable-build-nscd and defaults to $use_nscd.
2927         * configure: Regenerated.
2928         * config.make.in (build-nscd): New substituted variable.
2929         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2930         Change conditional to require [$(build-nscd) = yes] as well.
2931         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2932
2933         [BZ# 13696]
2934         * configure.in (use_nscd): New substituted variable, set by
2935         --disable-nscd.  If enabled, define USE_NSCD.
2936         * configure: Regenerated.
2937         * config.h.in: Add USE_NSCD.
2938         * config.make.in (use-nscd): New substituted variable.
2939         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2940         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2941         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2942         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2943         (CFLAGS-getgrnam_r.c): Likewise.
2944         (CFLAGS-initgroups.c): Likewise.
2945         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2946         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2947         Variables removed.
2948         * inet/getnetgrent_r.c
2949         (nscd_setnetgrent): New function, broken out of ...
2950         (setnetgrent): ... here.  Call it.
2951         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2952         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2953         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2954         * nscd/Makefile (routines, aux): Move definitions after include of
2955         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2956         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2957         Conditionalize on [USE_NSCD].
2958         (is_nscd, nscd_init_cb): Likewise.
2959         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2960         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2961         * nss/nss_db/db-init.c: Likewise.
2962         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2963         [USE_NSCD].
2964         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2965         (make_request): Use it.
2966         (cache_valid_p): New function.
2967         (__check_pf): Use it.
2968         * NEWS: Add item for --disable-nscd.
2969
2970 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2971
2972         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2973         to support sed >= 4.2.1-20-ga9bf076.
2974         * configure: Regenerated.
2975
2976 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2977
2978         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2979         Conditionalize whole body on [IREL].
2980
2981 2012-08-22  Jeff Law <law@redhat.com>
2982
2983         [BZ #14505]
2984         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2985         if the family is PF_UNSPEC.
2986
2987 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2988
2989         * Makerules (lib-version): Rename from V.
2990         (install-lib-nosubdir): Change V to lib-version.
2991
2992 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2993
2994         [BZ #14252]
2995         * powerpc32/power6/wcschr.c: New file.
2996         * powerpc32/power6/wcscpy.c: New file.
2997         * powerpc32/power6/wcsrchr.c: New file.
2998         * powerpc64/power6/wcschr.c: New file.
2999         * powerpc64/power6/wcscpy.c: New file.
3000         * powerpc64/power6/wcsrchr.c: New file.
3001
3002 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3003
3004         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3005         (two_way_short_needle): Use it.
3006         * string/strstr.c (AVAILABLE1_USES_J): Define.
3007         * string/strcasestr.c: Likewise.
3008
3009         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3010         array references.
3011         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3012
3013         [BZ #11607]
3014         * NEWS: Add an entry.
3015         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3016         define their defaults.
3017         (two_way_short_needle): Detect end-of-string on-the-fly.
3018         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3019         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3020         * string/bug-strcasestr1.c: New test.
3021         * string/Makefile: Run it.
3022
3023 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3024
3025         [BZ #11607]
3026         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3027         the first character.
3028
3029 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3030
3031         * csu/elf-init.c (__libc_csu_irel): Function removed.
3032         * csu/libc-start.c (apply_irel): New function.
3033         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3034
3035 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3036
3037         * sysdeps/unix/sysv/linux/kernel-features.h
3038         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3039         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3040         <kernel-features.h>.
3041         [__NR_fadvise64_64]: Make code unconditional.
3042         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3043         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3044         !__NR_fadvise64_64)]: Likewise.
3045         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3046         !__NR_fadvise64_64))]: Likewise.
3047         [__NR_fadvise64]: Make code unconditional.
3048         [!__NR_fadvise64]: Remove conditional code.
3049         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3050         <kernel-features.h>.
3051         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3052         unconditional.
3053         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3054         conditional code.
3055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3056         not include <kernel-features.h>.
3057         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3058         unconditional.
3059         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3060         conditional code.
3061         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3062         include <kernel-features.h>.
3063         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3064         unconditional.
3065         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3066         conditional code.
3067
3068 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3069
3070         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3071         slight instruction rearrangements per scrollpipe analysis.
3072         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3073
3074 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3075
3076         * manual/syslog.texi (syslog; vsyslog, closelog):
3077         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3078         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3079
3080         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3081         DSOCAPS to match condition on defining it.
3082
3083 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3084
3085         * sysdeps/unix/sysv/linux/kernel-features.h
3086         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3088         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3089         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3091         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3092         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3094         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3095         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3096
3097         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3098         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3099
3100         * sysdeps/unix/sysv/linux/kernel-features.h
3101         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3102         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3103         unconditional.
3104         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3105         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3106         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3107         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3108         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3109         Make code unconditional.
3110         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3111         (__mmap64) [!__NR_mmap2]: Likewise.
3112         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3113         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3114         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3115         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3116         [__NR_mmap2]: Make code unconditional.
3117         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3118         (__mmap64) [!__NR_mmap2]: Likewise.
3119
3120 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3121
3122         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3123
3124 2012-08-18  Andreas Jaeger  <aj@suse.de>
3125
3126         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3127
3128 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3129
3130         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3131         * include/unistd.h (__have_sock_cloexec): Likewise.
3132         (__have_pipe2): Likewise.
3133         (__have_dup3): Likewise.
3134
3135 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3136
3137         [BZ #9685]
3138         * include/unistd.h (__have_pipe2): Change define into an extern int.
3139         (__have_dup3): Likewise.
3140         * socket/have_sock_cloexec.c: Include fcntl.h.
3141         (__have_pipe2): New variable.
3142         (__have_dup3): Likewise.
3143
3144 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3145
3146         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3147
3148 2012-08-17  Marek Polacek  <polacek@redhat.com>
3149
3150         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3151         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3152
3153 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3154
3155         * configure.in: Add AC_SUBST for sysheaders.
3156         * configure: Regenerated.
3157         * config.make.in (sysheaders): New substituted variable.
3158
3159         * sysdeps/unix/mkfifo.c: Moved ...
3160         * sysdeps/posix/mkfifo.c: ... here.
3161         * sysdeps/unix/mkfifoat.c: Moved ...
3162         * sysdeps/posix/mkfifoat.c: ... here.
3163
3164         * sysdeps/unix/utime.c: Moved ...
3165         * sysdeps/posix/utime.c: ... here.
3166
3167         * sysdeps/unix/time.c: Moved ...
3168         * sysdeps/posix/time.c: ... here.
3169         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3170         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3171
3172         * sysdeps/unix/nice.c: Moved ...
3173         * sysdeps/posix/nice.c: ... here.
3174
3175         * sysdeps/unix/alarm.c: Moved ...
3176         * sysdeps/posix/alarm.c: ... here.
3177
3178         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3179
3180 2012-08-17  Jeff Law <law@redhat.com>
3181
3182         * intl/Makefile (codeset_mo): New variable.
3183         ($(codeset_mo)): New target.
3184         (tst-codeset.out): Depend on that.  Remove explicit rule.
3185         (tst-gettext3.out, tst-gettext5.out): Likewise.
3186         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3187         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3188         * intl/tst-codeset.sh: Remove.
3189         * intl/tst-gettext3.sh: Likewise.
3190         * intl/tst-gettext5.sh: Likewise.
3191
3192 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3193
3194         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3195         * sysdeps/unix/syscalls.list: ... here.
3196
3197         * sysdeps/posix/getaddrinfo.c
3198         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3199         (gaiconf_init, gaiconf_reload): Use them.
3200         [!_STATBUF_ST_NSEC]
3201         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3202         Define using time_t rather than struct timespec.
3203
3204         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3205         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3206         Macros removed.
3207         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3208         [!NO_THREADS].
3209         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3210         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3211         Likewise.
3212
3213         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3214         __libc_cleanup_push argument.
3215
3216         * bits/param.h: New file.
3217         * misc/sys/param.h: New file.
3218         * include/sys/param.h: New file.
3219         * misc/Makefile (headers): Add bits/param.h.
3220         * sysdeps/generic/sys/param.h: File removed.
3221         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3222         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3223         * sysdeps/mach/hurd/bits/param.h: New file.
3224         * sysdeps/mach/hurd/sys/param.h: File removed.
3225
3226         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3227         last change.
3228
3229         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3230         [_IO_MTSAFE_IO].
3231         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3232         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3233         New macros.
3234
3235         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3236         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3237         rather than -D_IO_MTSAFE_IO conditionally.
3238         * stdio-common/Makefile (CPPFLAGS): Likewise.
3239         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3240         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3241         Use $(libio-mtsafe).
3242         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3243         of -D_IO_MTSAFE_IO.
3244         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3245         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3246         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3247         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3248         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3249         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3250         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3251         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3252         (CFLAGS-fread_u_chk.c): Likewise.
3253         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3254         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3255         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3256         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3257         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3258         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3259         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3260         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3261         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3262
3263         * libio/Makefile: Test [$(libc-reentrant) = yes]
3264         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3265
3266         * Makeconfig
3267         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3268         * sysdeps/pthread/configure: File removed.
3269         * sysdeps/pthread/Makeconfig: New file.
3270         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3271         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3272
3273 2012-08-16  Gary Benson  <gbenson@redhat.com>
3274
3275         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3276         unmapping the first object in a namespace.
3277
3278 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3279
3280         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3281         (__internal_setnetgrent): ... this.  Add internal_function to
3282         definition.  Add libc_hidden_def.
3283         (setnetgrent): Update caller.
3284         (internal_endnetgrent): Renamed to ...
3285         (__internal_endnetgrent): ... this.  Add internal_function to
3286         definition.  Add libc_hidden_def.
3287         (endnetgrent): Update caller.
3288         (internal_getnetgrent_r): Renamed to ...
3289         (__internal_getnetgrent_r): ... this.  Add internal_function to
3290         definition.  Add libc_hidden_def.
3291         (__getnetgrent_r): Update caller.
3292         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
3293
3294 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3295
3296         * stdlib/longlong.h: Update from GCC.
3297
3298 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3299
3300         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
3301         on _QL, which is set by umul_ppmm but never used.
3302         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
3303         variables, which are set by GMP macros but never used.
3304         * stdio-common/_itowa.c (_itowa): Likewise.
3305         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
3306         * stdlib/mod_1.c (mpn_mod_1): Likewise.
3307
3308 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
3309
3310         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
3311         struct La_sh_regs is not constant.
3312         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
3313         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
3314         and struct La_sparc64_regs are not constant.
3315
3316 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3317
3318         * sysdeps/unix/sysv/linux/kernel-features.h
3319         (__ASSUME_POSIX_TIMERS): Remove.
3320         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3321         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3322         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
3323         Make code unconditional.
3324         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3325         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
3326         Make code unconditional.
3327         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3328         * sysdeps/unix/sysv/linux/clock_nanosleep.c
3329         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
3330         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3331         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
3332         Make code unconditional.
3333         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3334         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
3335         (__libc_missing_posix_timers): Remove.
3336
3337 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3338
3339         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
3340         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
3341
3342         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
3343
3344         * elf/dl-sym.c: Include <stdlib.h>.
3345
3346         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
3347         constants, which avoids warnings in 32-bit builds.
3348
3349         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
3350         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
3351
3352         * misc/lseek.c: File moved to ...
3353         * io/lseek.c: ... here.
3354
3355         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
3356
3357         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
3358         shifting LEN more than 31 bits at once.
3359
3360 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3361
3362         [BZ #14195]
3363         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
3364         segmentation fault for a case of two empty input strings.
3365         * string/test-strncasecmp.c (check1): Renamed to...
3366         (bz12205): ...this.
3367         (bz14195): Add new testcase for two empty input strings and N > 0.
3368         (test_main): Call new testcase, adapt for renamed function.
3369
3370 2012-08-15  Andreas Jaeger  <aj@suse.de>
3371
3372         [BZ #14090]
3373         * crypt/md5test2.c: New test, based on test supplied by Serge
3374         Belyshev <belyshev@depni.sinp.msu.ru>.
3375         * crypt/Makefile (xtests): Add md5test-giant..
3376         * crypt/Makefile ($(objpfx)md5test-giant): Add.
3377
3378 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3379
3380         [BZ #14090]
3381         * crypt/md5.c (md5_process_block): Don't assume the buffer
3382         length is less than 2**32.
3383         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
3384         length is less than 2**64.
3385
3386 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3387
3388         * string/str-two-way.h: Include <sys/param.h>.
3389         (MAX): Macro removed.
3390
3391         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
3392         Move #define and #undef of memmove to just before and after
3393         including <string.h>.
3394
3395         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
3396         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
3397         and after including <string.h>.  Move declarations of
3398         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
3399         to before #include "string/memmove.c".
3400
3401         * include/dirent.h: Declare __getdirentries.
3402
3403         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
3404         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
3405
3406 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3407
3408         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
3409         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
3410         * sysdeps/i386/configure: Regenerated.
3411         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
3412         STABS_CURRENT_FILE, and STABS_FUN.
3413         (END): Remove call to STABS_FUN_END.
3414         (STABS_CURRENT_FILE1): Delete.
3415         (STABS_CURRENT_FILE): Likewise.
3416         (STABS_FUN): Likewise.
3417         (STABS_FUN_END): Likewise.
3418         (STABS_FUN2): Likewise.
3419         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
3420         * sysdeps/x86_64/configure: Regenerated.
3421
3422 2012-08-14  Roland McGrath  <roland@hack.frob.com>
3423
3424         * elf/dl-open.c: Include <atomic.h>.
3425         * elf/dl-lookup.c: Likewise.
3426
3427 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
3428
3429         * sysdeps/unix/sysv/linux/kernel-features.h
3430         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
3431         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
3432         unconditionally.
3433         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
3434         unconditionally.
3435         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
3436         condition on __ASSUME_CLONE_THREAD_FLAGS.
3437
3438 2012-08-14  Andreas Jaeger  <aj@suse.de>
3439
3440         * sysdeps/i386/fpu/libm-test-ulps: Update.
3441
3442 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
3443
3444         * include/atomic.h (atomic_exchange_and_add): Split into ...
3445         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
3446         New atomic macros.
3447
3448 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
3449
3450         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3451
3452 2012-08-13  Jeff Law <law@redhat.com>
3453
3454         * manual/stdio.texi (snprintf): Clarify handling of the trailing
3455         null byte in the output string.
3456
3457 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
3458
3459         * sysdeps/unix/sysv/linux/kernel-features.h
3460         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
3461         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
3462         (__ASSUME_ARG_MAX_STACK_BASED): Define.
3463         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3464         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
3465         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
3466         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
3467
3468 2012-08-09  Jeff Law <law@redhat.com>
3469
3470         [BZ #13939]
3471         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
3472         When avoid_arena is set, don't retry in the that arena.  Pick the
3473         next one, whatever it might be.
3474         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
3475         (arena_lock): Pass in new parameter to arena_get2.
3476         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
3477         arena_get2.
3478         (__libc_malloc): Unify retrying after main arena failure with
3479         __libc_memalign version.
3480         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
3481
3482 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3483
3484         [BZ #14166]
3485         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
3486         to __redirect_strstr.
3487         (__strstr_sse42): Use typeof __redirect_strstr.
3488         (__strstr_ia32): Likewise.
3489         (__libc_strstr): New prototype.
3490         (strstr): Renamed to ...
3491         (__libc_strstr): This.
3492         (strstr): New strong alias of __libc_strstr.
3493         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
3494         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
3495         __redirect_time.
3496         Include <time.h>.
3497         (__libc_time): New prototype.
3498         (time_ifunc): Replace time with __libc_time.
3499         (time): New strong alias and hidden definition of __libc_time.
3500         (__GI_time): Remove strong alias.
3501         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
3502         Include <stddef.h>.
3503         (memmove): Redefined to __redirect_memmove.
3504         (__memmove_sse2): Use typeof __redirect_memmove.
3505         (__memmove_ssse3): Likewise.
3506         (__memmove_ssse3_back): Likewise.
3507         (__libc_memmove): New prototype.
3508         (memmove): Renamed to ...
3509         (__libc_memmove): This.
3510         (memmove): New strong alias of __libc_memmove.
3511
3512 2012-08-08  Mark Salter  <msalter@redhat.com>
3513
3514         * elf/elf.h
3515         (R_MN10300_TLS_GD): Define.
3516         (R_MN10300_TLS_LD): Likewise.
3517         (R_MN10300_TLS_LDO): Likewise.
3518         (R_MN10300_TLS_GOTIE): Likewise.
3519         (R_MN10300_TLS_IE): Likewise.
3520         (R_MN10300_TLS_LE): Likewise.
3521         (R_MN10300_TLS_DTPMOD): Likewise.
3522         (R_MN10300_TLS_DTPOFF): Likewise.
3523         (R_MN10300_TLS_TPOFF): Likewise.
3524         (R_MN10300_SYM_DIFF): Likewise.
3525         (R_MN10300_ALIGN): Likewise.
3526         (R_MN10300_NUM): Update.
3527
3528 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
3529
3530         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
3531         Remove.
3532
3533 2012-08-08  Roland McGrath  <roland@hack.frob.com>
3534
3535         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
3536
3537         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
3538         sysdeps/unix -> sysdeps/posix move.
3539         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3540
3541 2012-08-07      Allan McRae     <allan@archlinux.org>
3542
3543         [BZ #14303]
3544         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
3545         (SUNOS_CPP): Likewise.
3546         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
3547         not found.
3548         (open_input): Call CPP using execvp.
3549
3550 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3551
3552         * sysdeps/unix/sysv/linux/kernel-features.h
3553         (__ASSUME_PROT_GROWSUPDOWN): Remove.
3554         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3555         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3556         (__ASSUME_WAITID_SYSCALL): Likewise.
3557         * sysdeps/unix/sysv/linux/dl-execstack.c
3558         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
3559         code unconditional.
3560         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
3561         conditional code.
3562         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
3563         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
3564         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
3565         code.
3566         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
3567         unconditional.
3568         [__ASSUME_WAITID_SYSCALL]: Likewise.
3569         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
3570
3571 2012-08-07  Roland McGrath  <roland@hack.frob.com>
3572
3573         * sysdeps/unix/closedir.c: Renamed to ...
3574         * sysdeps/posix/closedir.c: ... here.
3575         * sysdeps/unix/dirfd.c: Renamed to ...
3576         * sysdeps/posix/dirfd.c: ... here.
3577         * sysdeps/unix/dirstream.h: Renamed to ...
3578         * sysdeps/posix/dirstream.h: ... here.
3579         * sysdeps/unix/fdopendir.c: Renamed to ...
3580         * sysdeps/posix/fdopendir.c: ... here.
3581         * sysdeps/unix/opendir.c: Renamed to ...
3582         * sysdeps/posix/opendir.c: ... here.
3583         * sysdeps/unix/readdir.c: Renamed to ...
3584         * sysdeps/posix/readdir.c: ... here.
3585         * sysdeps/unix/readdir_r.c: Renamed to ...
3586         * sysdeps/posix/readdir_r.c: ... here.
3587         * sysdeps/unix/rewinddir.c: Renamed to ...
3588         * sysdeps/posix/rewinddir.c: ... here.
3589         * sysdeps/unix/seekdir.c: Renamed to ...
3590         * sysdeps/posix/seekdir.c: ... here.
3591         * sysdeps/unix/telldir.c: Renamed to ...
3592         * sysdeps/posix/telldir.c: ... here.
3593         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
3594         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
3595         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3596         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
3597
3598         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
3599         * bits/fcntl.h: ... here.
3600
3601         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
3602         not 0.
3603         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
3604         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
3605         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
3606         (struct flock): Move l_start, l_len to the beginning.
3607         Use __pid_t for l_pid.
3608         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
3609         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
3610         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
3611         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
3612         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
3613         [__USE_LARGEFILE64] (struct flock64): New type.
3614         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
3615
3616         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
3617         * bits/dirent.h: ... here.
3618
3619         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
3620         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
3621
3622 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3623
3624         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3625         Change from 2.6.0 to 2.6.16.
3626         * sysdeps/unix/sysv/linux/configure: Regenerated.
3627         * sysdeps/unix/sysv/linux/kernel-features.h
3628         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
3629         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
3630         version.
3631         (__ASSUME_UTIMES): Likewise.
3632         (__ASSUME_CLONE_STOPPED): Remove.
3633         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
3634         architectures, not kernel version.
3635         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
3636         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3637         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3638         (__ASSUME_WAITID_SYSCALL): Likewise.
3639         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
3640         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
3641         * README: State 2.6.16 as minimum Linux kernel version.  Do not
3642         refer to older versions.
3643
3644 2012-08-06  Roland McGrath  <roland@hack.frob.com>
3645
3646         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
3647         Define alphasort64 as an alias.
3648         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
3649         Define versionsort64 as an alias.
3650         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
3651         Define scandir64 as an alias.
3652         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
3653         Define scandirat64 as an alias.
3654         * dirent/alphasort64.c (alphasort64):
3655         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
3656         * dirent/versionsort64.c: Likewise.
3657         * dirent/scandir64.c: Likewise.
3658         * dirent/scandirat64.c: Likewise.
3659         * sysdeps/wordsize-64/alphasort.c: File removed.
3660         * sysdeps/wordsize-64/alphasort64.c: File removed.
3661         * sysdeps/wordsize-64/scandir.c: File removed.
3662         * sysdeps/wordsize-64/scandir64.c: File removed.
3663         * sysdeps/wordsize-64/scandirat.c: File removed.
3664         * sysdeps/wordsize-64/scandirat64.c: File removed.
3665         * sysdeps/wordsize-64/versionsort.c: File removed.
3666         * sysdeps/wordsize-64/versionsort64.c: File removed.
3667         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
3668         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
3669         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
3670         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
3671         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
3672         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
3673         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
3674         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
3675
3676         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3677         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3678         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3679         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3680         [defined __arch64__ || defined __sparcv9]
3681         (__INO_T_MATCHES_INO64_T): New macro.
3682         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3683         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3684         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3685         * sysdeps/unix/sysv/linux/bits/dirent.h
3686         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3687         (_DIRENT_MATCHES_DIRENT64): New macro.
3688
3689         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3690         Define lockf64 as an alias.
3691         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3692         Define fseeko64 as an alias.
3693         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3694         Define ftello64 as an alias.
3695         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3696         Define _IO_fgetpos64 and fgetpos64 as aliases.
3697         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3698         Define _IO_fsetpos64 and fsetpos64 as aliases.
3699         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3700         Conditionalize body on this.
3701         * libio/fseeko64.c: Likewise.
3702         * libio/ftello64.c: Likewise.
3703         * libio/iofgetpos64.c: Likewise.
3704         * libio/iofsetpos64.c: Likewise.
3705         * sysdeps/wordsize-64/lockf.c: File removed.
3706         * sysdeps/wordsize-64/lockf64.c: File removed.
3707         * sysdeps/wordsize-64/fseeko.c: File removed.
3708         * sysdeps/wordsize-64/fseeko64.c: File removed.
3709         * sysdeps/wordsize-64/ftello.c: File removed.
3710         * sysdeps/wordsize-64/ftello64.c: File removed.
3711         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3712         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3713         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3714         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3715         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3716         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3717         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3718         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3719         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3720         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3721         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3722         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3723         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3724         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3725
3726         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3727         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3728         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3729         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3730         [defined __arch64__ || defined __sparcv9]
3731         (__OFF_T_MATCHES_OFF64_T): New macro.
3732         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3733         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3734         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3735         (__OFF_T_MATCHES_OFF64_T): New macro.
3736
3737 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3738
3739         * stdlib/secure-getenv.c (__secure_getenv): Replace
3740         GLIBC_2_16 with GLIBC_2_17.
3741
3742 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3743
3744         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3745         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3746
3747 2012-08-03  David S. Miller  <davem@davemloft.net>
3748
3749         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3750
3751 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3752
3753         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3754         Remove.
3755         (__ASSUME_CORRECT_SI_PID): Likewise.
3756         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3757         (__ASSUME_TMPFS_NAME): Likewise.
3758         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3759         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3760         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3761         (HAVE_AUX_SECURE): Make definition unconditional.
3762         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3763         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3764
3765 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3766
3767         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3768         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3769         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3770         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3771         __eloop_threshold instead of SYMLOOP_MAX.
3772
3773         * sysdeps/generic/eloop-threshold.h: New file.
3774         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3775         of MAXSYMLINKS.
3776         * elf/chroot_canon.c (chroot_canon): Likewise.
3777
3778 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3779
3780         [BZ #13717]
3781         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3782         Change to 2.6.0 everywhere.
3783         * sysdeps/unix/sysv/linux/configure: Regenerated.
3784         * sysdeps/unix/sysv/linux/kernel-features.h
3785         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3786         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3787         kernel versions.
3788         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3789         (__ASSUME_FUTEX_REQUEUE): Remove.
3790         (__ASSUME_STATFS64): Define unconditionally.
3791         (__ASSUME_AT_SECURE): Likewise.
3792         (__ASSUME_CORRECT_SI_PID): Likewise.
3793         (__ASSUME_TGKILL): Define without depending on kernel version for
3794         i386.
3795         (__ASSUME_UTIMES): Likewise.
3796         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3797         kernel version.
3798         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3799         (__ASSUME_TMPFS_NAME): Likewise.
3800         * README: Update reference to Linux kernel versions.
3801
3802 2012-08-02  Marek Polacek  <polacek@redhat.com>
3803
3804         [BZ# 14150]
3805         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3806         libc_cv_asm_type_prefix with %.
3807         * configure: Regenerated.
3808         * include/libc-symbols.h: Remove comment about
3809         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3810         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3811         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3812         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3813         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3814         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3815         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3816         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3817         * elf/tst-unique2mod1.c: Likewise.
3818         * elf/tst-unique1mod2.c: Likewise.
3819         * elf/tst-unique1mod1.c: Likewise.
3820         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3821         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3822         Replace ASM_TYPE_DIRECTIVE with .type.
3823         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3824         * sysdeps/i386/sysdep.h: Likewise.
3825         * sysdeps/x86_64/sysdep.h: Likewise.
3826         * sysdeps/sh/sysdep.h: Likewise.
3827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3828         Do not define ASM_TYPE_DIRECTIVE.
3829         * sysdeps/powerpc/sysdep.h: Likewise.
3830         * sysdeps/powerpc/powerpc32/sysdep.h:
3831         Replace ASM_TYPE_DIRECTIVE with .type.
3832         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3833         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3834         * sysdeps/i386/fpu/e_powf.S: Likewise.
3835         * sysdeps/i386/fpu/e_expl.S: Likewise.
3836         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3837         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3838         * sysdeps/i386/fpu/e_pow.S: Likewise.
3839         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3840         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3841         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3842         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3843         * sysdeps/i386/fpu/e_log2.S: Likewise.
3844         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3845         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3846         * sysdeps/i386/fpu/e_powl.S: Likewise.
3847         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3848         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3849         * sysdeps/i386/fpu/e_logl.S: Likewise.
3850         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3851         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3852         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3853         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3854         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3855         * sysdeps/i386/fpu/e_log.S: Likewise.
3856         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3857         * sysdeps/i386/fpu/e_logf.S: Likewise.
3858         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3859         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3860         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3861         * sysdeps/i386/fpu/e_log10.S: Likewise.
3862         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3863         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3864         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3865         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3866         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3867         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3868         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3869         * sysdeps/i386/i686/strtok.S: Likewise.
3870         * sysdeps/i386/i386-mcount.S: Likewise.
3871         * sysdeps/i386/strtok.S: Likewise.
3872         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3873         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3874         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3875         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3876         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3877         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3878         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3879         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3880         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3881         * sysdeps/x86_64/_mcount.S: Likewise.
3882         * sysdeps/x86_64/strtok.S: Likewise.
3883         * sysdeps/sh/_mcount.S: Likewise.
3884
3885 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3886
3887         * libio/iofopen.c: Include <fcntl.h>.
3888         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3889         (_IO_fopen64, fopen64): Define as aliases.
3890         * libio/iofopen64.c: Include <fcntl.h>.
3891         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3892         Conditionalize body on this.
3893         * sysdeps/wordsize-64/iofopen.c: File removed.
3894         * sysdeps/wordsize-64/iofopen64.c: File removed.
3895
3896 2012-08-01  Marek Polacek  <polacek@redhat.com>
3897
3898         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3899         Use dlfcn directly instead of a variable.
3900         (binfmt-subdir): Do not define.
3901         (dlfcn): Likewise.
3902
3903 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3904
3905         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3906         Remove all definitions.
3907         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3908         <kernel-features.h>.
3909         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3910         (miss_F_GETOWN_EX): Remove all definitions.
3911         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3912         macro definition.
3913         [!__ASSUME_FCNTL64]: Remove conditional code.
3914         [__ASSUME_FCNTL64]: Make code unconditional.
3915         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3916         <kernel-features.h>.
3917         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3918         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3919         (lockf64) [__NR_fcntl64]: Make code unconditional.
3920         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3921
3922         * sysdeps/unix/sysv/linux/kernel-features.h
3923         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3924         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3925         Make code unconditional.
3926         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3927         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3929         [__NR_vfork]: Make code unconditional.
3930         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3931         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3933         [__NR_vfork]: Make code unconditional.
3934         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3935         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3936
3937 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3938
3939         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3940         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3941
3942         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3943         Define mkstemp64 as an alias.
3944         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3945         Define mkstemps64 as an alias.
3946         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3947         Define mkostemp64 as an alias.
3948         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3949         Define mkostemps64 as an alias.
3950         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3951         Conditionalize body on this.
3952         * misc/mkostemp64.c: Likewise.
3953         * misc/mkostemps64.c: Likewise.
3954         * misc/mkstemps64.c: Likewise.
3955         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3956         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3957         * sysdeps/wordsize-64/mkostemp.c: File removed.
3958         * sysdeps/wordsize-64/mkstemp.c: File removed.
3959         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3960         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3961         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3962         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3963
3964         [BZ #14138]
3965         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3966         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3967         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3968         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3969
3970         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3971         compat_symbol macros from <shlib-compat.h> rather than the underlying
3972         default_symbol_version and symbol_version macros, so that DEFAULT
3973         lines in shlib-versions are respected.
3974         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3975
3976 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3977
3978         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3979         Declare with warn_unused_result.
3980         (setgid, setregid, setegid, setresgid): Likewise.
3981         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3982         Likewise.
3983         * WUR-REPORT: Remove set*id functions.
3984
3985 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3986
3987         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3988
3989 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3990
3991         * include/sys/socket.h (__libc_accept, __libc_accept4):
3992         Add attribute_hidden.
3993         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3994
3995         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3996         use of PTR_MANGLE.
3997         * inet/getnetgrent_r.c (setup): Likewise.
3998
3999         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4000
4001 2012-07-31  David S. Miller  <davem@davemloft.net>
4002
4003         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4004
4005 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4006
4007         [BZ #13629]
4008         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4009         value between 1.0 and 2.0 and smaller part has absolute value less
4010         than 1.0.
4011         * math/s_clog10.c (__clog10): Likewise.
4012         * math/s_clog10f.c (__clog10f): Likewise.
4013         * math/s_clog10l.c (__clog10l): Likewise.
4014         * math/s_clogf.c (__clogf): Likewise.
4015         * math/s_clogl.c (__clogl): Likewise.
4016         * math/libm-test.inc (clog_test): Add more tests.
4017         (clog10_test): Likewise.
4018         * sysdeps/i386/fpu/libm-test-ulps: Update.
4019         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4020
4021 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4022
4023         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4024         Exit with zero in case no suitable GID is found, and write a
4025         message to standard error.
4026
4027 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4028
4029         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4030         rather than to 1.
4031         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4032         (MAXPATHLEN): Removed.
4033         (NOGROUP, NODEV): New macros.
4034         (setbit, clrbit, isset, isclr): New macros.
4035         (howmany, roundup, powerof2): New macros.
4036         (DEV_BSIZE): New macro.
4037
4038         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4039         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4040
4041         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4042         definition on [!__NO_LONG_DOUBLE_MATH].
4043
4044         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4045         PTR_MANGLE and PTR_DEMANGLE.
4046
4047         * socket/accept4.c (accept4): Rename to __libc_accept4.
4048         Define accept4 as a weak alias.
4049
4050         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4051         on [_DIRENT_HAVE_D_TYPE].
4052         * io/ftw.c (ftw_dir): Likewise.
4053
4054         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4055
4056         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4057
4058         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4059         Use the BSD numbers rather than the arbitrary ones we had.
4060         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4061         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4062         (SIGXCPU, SIGXFSZ): New macros.
4063         (_NSIG): Now 32.
4064
4065         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4066         initializer on [_LIBC_REENTRANT].
4067
4068         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4069         definitions inside [_POSIX_MAPPED_FILES].
4070
4071         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4072
4073         * dirent/opendir.c: Include <fcntl.h>.
4074
4075         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4076         (__libc_getspecific): Likewise.
4077         (__libc_key_create): Likewise.
4078
4079         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4080         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4081         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4082         (tmpfile64): Define as alias.
4083         * sysdeps/wordsize-64/tmpfile.c: File removed.
4084         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4085         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4086         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4087
4088         * stdio-common/vfscanf.c: Include <stdbool.h>.
4089         * nss/makedb.c: Likewise.
4090         * stdio-common/_i18n_number.h: Likewise.
4091         * argp/argp-help.c: Likewise.
4092         * posix/wordexp.c: Likewise.
4093         * sysdeps/posix/spawni.c: Likewise.
4094         * nss/nss_files/files-initgroups.c: Likewise.
4095         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4096         * nss/nss_files/files-initgroups.c: Likewise.
4097         * nss/nss_db/db-netgrp.c: Likewise.
4098         * nss/nss_db/db-initgroups.c: Likewise.
4099         * io/fchmodat.c: Include <sys/stat.h>.
4100
4101         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4102         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4103
4104         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4105         [HAVE_MMAP].
4106
4107         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4108         Add multiple inclusion protection.
4109
4110 2012-07-27  David S. Miller  <davem@davemloft.net>
4111
4112         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4113
4114 2012-07-27  Gary Benson  <gbenson@redhat.com>
4115
4116         [BZ #14298]
4117         * elf/rtld.c: Include <stap-probe.h>.
4118         (dl_main): Added static probes "init_start" and "init_complete".
4119         * elf/dl-load.c: Include <stap-probe.h>.
4120         (lose): Take new parameter "nsid".
4121         Added static probe "map_failed".
4122         (_dl_map_object_from_fd): Pass namespace id to lose.
4123         Added static probe "map_start".
4124         (open_verify): Pass namespace id to lose.
4125         * elf/dl-open.c: Include <stap-probe.h>.
4126         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4127         and "reloc_complete".
4128         * elf/dl-close.c: Include <stap-probe.h>.
4129         (_dl_close_worker): Added static probes "unmap_start" and
4130         "unmap_complete".
4131         * elf/rtld-debugger-interface.txt: New file documenting the above.
4132
4133 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4134
4135         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4136         rather than a string variable.
4137         * sunrpc/rpc_main.c (h_output): Likewise.
4138         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4139
4140 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4141
4142         * inet/check_native.c: New file.
4143
4144 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4145
4146         [BZ #13629]
4147         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4148         if larger part has absolute value 1.0.
4149         * math/s_clog10.c (__clog10): Likewise.
4150         * math/s_clog10f.c (__clog10f): Likewise.
4151         * math/s_clog10l.c (__clog10l): Likewise.
4152         * math/s_clogf.c (__clogf): Likewise.
4153         * math/s_clogl.c (__clogl): Likewise.
4154         * math/libm-test.inc (clog_test): Add more tests.
4155         (clog10_test): Likewise.
4156         * sysdeps/i386/fpu/libm-test-ulps: Update.
4157         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4158
4159         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4160         (pltexit): Likewise.
4161         (La_regs): Likewise.
4162         (La_retval): Likewise.
4163         (int_retval): Likewise.
4164         Update #error for removed macros to refer only to definitions in
4165         tst-audit.h.
4166         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4167         macro.
4168         (pltexit): Likewise.
4169         (La_regs): Likewise.
4170         (La_retval): Likewise.
4171         (int_retval): Likewise.
4172         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4173         macro.
4174         (pltexit): Likewise.
4175         (La_regs): Likewise.
4176         (La_retval): Likewise.
4177         (int_retval): Likewise.
4178         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4179         macro.
4180         (pltexit): Likewise.
4181         (La_regs): Likewise.
4182         (La_retval): Likewise.
4183         (int_retval): Likewise.
4184         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4185         macro.
4186         (pltexit): Likewise.
4187         (La_regs): Likewise.
4188         (La_retval): Likewise.
4189         (int_retval): Likewise.
4190         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4191         macro.
4192         (pltexit): Likewise.
4193         (La_regs): Likewise.
4194         (La_retval): Likewise.
4195         (int_retval): Likewise.
4196         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4197         macro.
4198         (pltexit): Likewise.
4199         (La_regs): Likewise.
4200         (La_retval): Likewise.
4201         (int_retval): Likewise.
4202         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4203         macro definitions in tst-audit.h.
4204         * sysdeps/i386/tst-audit.h: New file.
4205         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4206         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4207         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4208         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4209         * sysdeps/sh/tst-audit.h: Likewise.
4210         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4211         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4212         * sysdeps/x86_64/tst-audit.h: Likewise.
4213
4214 2012-07-26  Andreas Jaeger  <aj@suse.de>
4215
4216         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4217         ptrace.
4218
4219         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4220         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4221         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4222         PTRACE_O_MASK.
4223         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4224         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4225         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4226
4227         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4228         value.
4229
4230         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4231         _sigsys.
4232         (si_call_addr, si_syscall, si_arch): Define new macro.
4233         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4234         _sigsys.
4235         (si_call_addr, si_syscall, si_arch): Define new marcro.
4236         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4237         _sigsys.
4238         (si_call_addr, si_syscall, si_arch): Define new macro.
4239         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4240         _sigsys.
4241         (si_call_addr, si_syscall, si_arch): Define new macro.
4242
4243 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4244
4245         [BZ #13717]
4246         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4247         Change to 2.4.21 where previously 2.4.1.
4248         * sysdeps/unix/sysv/linux/configure: Regenerated.
4249         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4250         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4251         Linux kernel version.
4252         (__ASSUME_STD_AUXV): Remove.
4253         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4254         kernel version.
4255         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4256         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4257         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4258         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4259         (__ASSUME_NETLINK_SUPPORT): Likewise.
4260         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4261         (__no_netlink_support): Remove conditional definition.
4262         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4263         Remove.
4264         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4265         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4266         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4267         (if_nameindex_ioctl): Remove.
4268         (if_nameindex_netlink): Do not handle __no_netlink_support.
4269         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4270         code.
4271         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4272         Remove conditional code.
4273         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4274         code.
4275         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4276         unconditional.
4277         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4278         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4279         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4280         Remove.
4281         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4282         [!__ASSUME_STD_AUXV]: Remove conditional code.
4283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4284         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4285         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4287         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4288         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4289         code.
4290         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
4292         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
4293         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4294         conditional code.
4295         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
4297         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4298         code.
4299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
4300         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4301         conditional code.
4302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4303         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4304         code unconditional.
4305         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4306         conditional code.
4307         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4308         unconditional.
4309         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4310         conditional code.
4311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4312         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4313         unconditional.
4314         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4315         conditional code.
4316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4317         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4318         code unconditional.
4319         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4320         conditional code.
4321         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4322         unconditional.
4323         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4324         conditional code.
4325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4326         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4327         code unconditional.
4328         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4329         conditional code.
4330         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4331         unconditional.
4332         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4333         conditional code.
4334
4335 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
4336
4337         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
4338         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
4339         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4340         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
4341         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
4342         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4343         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4344         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
4345         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
4346         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4347         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
4348         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4349         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
4350         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4351         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4352         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
4353         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
4354         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
4355         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
4356         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
4357         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
4358         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4359         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4360
4361 2012-07-25  Florian Weimer  <fweimer@redhat.com>
4362
4363         * Versions.def: Add GLIBC_2.17.
4364         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
4365         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
4366         Introduce __libc_secure_getenv.
4367         * stdlib/Versions (2.17): Add secure_getenv
4368         (GLIBC_PRIVATE): Add __libc_secure_getenv.
4369         * stdlib/secure-getenv.c: Rename __secure_getenv to
4370         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
4371         symbol __secure_getenv for GLIBC_2.0.
4372         * stdlib/tst-secure-getenv.c: New.
4373         * stdlib/Makefile (tests): Add testcase.
4374         * manual/startup.texi (Environment Access): Document
4375         secure_getenv.
4376         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
4377         __libc_secure_getenv.
4378         * inet/ruserpass.c (ruserpass): Likewise.
4379         * malloc/mtrace.c (mtrace): Likewise.
4380         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
4381         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4382         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
4383         * sysdeps/posix/tempname.c: Likewise.  Evaluate
4384         HAVE_SECURE_GETENV.
4385         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
4386         __secure_getenv to __libc_secure_getenv.
4387         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
4388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4389         Likewise.
4390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4391         Likewise.
4392         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
4393         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
4394         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4395         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
4396         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
4397         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4398         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
4399
4400 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4401
4402         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
4403         (struct La_i86_retval): Likewise.
4404         (struct La_x86_64_regs): Likewise.
4405         (struct La_x86_64_retval): Likewise.
4406         (struct La_x32_regs): Likewise.
4407         (struct La_x32_retval): Likewise.
4408         (struct La_ppc32_regs): Likewise.
4409         (struct La_ppc32_retval): Likewise.
4410         (struct La_ppc64_regs): Likewise.
4411         (struct La_ppc64_retval): Likewise.
4412         (struct La_sh_regs): Likewise.
4413         (struct La_sh_retval): Likewise.
4414         (struct La_s390_32_regs): Likewise.
4415         (struct La_s390_32_retval): Likewise.
4416         (struct La_s390_64_regs): Likewise.
4417         (struct La_s390_64_retval): Likewise.
4418         (struct La_sparc32_regs): Likewise.
4419         (struct La_sparc32_retval): Likewise.
4420         (struct La_sparc64_regs): Likewise.
4421         (struct La_sparc64_retval): Likewise.
4422         (struct audit_ifaces): Remove architecture-specific pltenter and
4423         pltexit members.
4424         * sysdeps/i386/ldsodefs.h: New file.
4425         * sysdeps/powerpc/ldsodefs.h: Likewise.
4426         * sysdeps/s390/ldsodefs.h: Likewise.
4427         * sysdeps/sh/ldsodefs.h: Likewise.
4428         * sysdeps/sparc/ldsodefs.h: Likewise.
4429         * sysdeps/x86_64/ldsodefs.h: Likewise.
4430
4431 2012-07-25  Marek Polacek  <polacek@redhat.com>
4432
4433         [BZ #6808]
4434         * math/libm-test.inc (yn_test): Add another test.
4435         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
4436         to ERANGE when the result is +-Inf.
4437         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
4438         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4439         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
4440         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
4441
4442 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
4443
4444         * conform/data/time.h-data (NULL): Use macro-constant.  Require
4445         equal to 0.
4446         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
4447         clock_t.
4448         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
4449
4450 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
4451
4452         * configure.in <sysdeps resolving>: Correct printing
4453         Implies_before.
4454         * configure: Regenerate.
4455
4456 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
4457
4458         * math/w_ilogb.c: Include <limits.h>.
4459         * math/w_ilogbl.c: Likewise.
4460
4461 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4462
4463         * manual/lang.texi (__va_copy): Document primarily as ISO C99
4464         va_copy.  Document allowing for unavailable va_copy only as
4465         pre-C99 compatibility.
4466         * manual/string.texi (Copying and Concatenation): Use va_copy
4467         instead of __va_copy in concat example.
4468
4469 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
4470
4471         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
4472         (__sendto): Use create_address_port.  Initialize APORT and deallocate
4473         it if not null.
4474
4475         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
4476         with O_NOLINK passed to __file_name_lookup.
4477
4478         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
4479         with O_NOLINK passed to __file_name_lookup.
4480
4481         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
4482         negative N or less than NGIDS.
4483
4484         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
4485         type to string_t.  Set ERANGE as errno and return it if NAME is not big
4486         enough.  Use memcpy instead of strncpy.
4487
4488 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4489
4490         * elf/Makefile (check-data): Remove.
4491         (localplt.data): New vpath directive.
4492         ($(objpfx)check-localplt.out): Use localplt.data from vpath
4493         instead of $(check-data).
4494         * scripts/data/localplt-generic.data: Move to ...
4495         * sysdeps/generic/localplt.data: ... here.
4496         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
4497         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
4498         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
4499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
4500         ... here.
4501         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
4502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
4503         ... here.
4504         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
4505         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
4506         ... here.
4507         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
4508         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
4509         ... here.
4510         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
4511         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
4512         ... here.
4513         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
4514         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
4515         ... here.
4516
4517 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4518
4519         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
4520         PPC32 and PPC64 files.
4521         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
4522         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
4523
4524 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4525
4526         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
4527         __makecontext_ret to ...
4528         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
4529         ... here and call exit if uc_link is NULL.  New file.
4530         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
4531         __makecontext_ret.S.
4532         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
4533         __makecontext_ret to ...
4534         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
4535         ... here and call exit if uc_link is NULL.  New file.
4536         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
4537         __makecontext_ret.S.
4538
4539 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4540
4541         * elf/elf.h (R_390_IRELATIVE): New definition.
4542         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
4543         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
4544         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
4545         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4546         (elf_machine_lazy_rel): Likewise.
4547         * sysdeps/s390/dl-irel.h: New file.
4548         * sysdeps/s390/s390-64/memcpy.S: New asm code.
4549         * sysdeps/s390/s390-64/memset.S: New asm code.
4550         * sysdeps/s390/s390-64/memcmp.S: New asm code.
4551         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
4552         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
4553         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
4554         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
4555         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
4556         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
4557         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
4558         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
4559         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
4560         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
4561         * sysdeps/s390/s390-32/memcpy.S: New asm code.
4562         * sysdeps/s390/s390-32/memset.S: New asm code.
4563         * sysdeps/s390/s390-32/memcmp.S: New asm code.
4564
4565 2012-07-17  Marek Polacek  <polacek@redhat.com>
4566
4567         [BZ #14349]
4568         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
4569         * sysdeps/s390/s390-64/configure.in: Likewise.
4570         * sysdeps/sparc/configure.in: Likewise.
4571         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
4572         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
4573         * sysdeps/i386/configure.in: Likewise.
4574         * sysdeps/x86_64/configure.in: Likewise.
4575         * sysdeps/sh/configure.in: Likewise.
4576         * sysdeps/s390/s390-32/configure: Regenerated.
4577         * sysdeps/s390/s390-64/configure: Likewise.
4578         * sysdeps/x86_64/configure: Likewise.
4579         * sysdeps/sh/configure: Likewise.
4580         * sysdeps/powerpc/powerpc64/configure: Likewise.
4581         * sysdeps/powerpc/powerpc32/configure: Likewise.
4582         * sysdeps/sparc/configure: Likwise.
4583         * sysdeps/i386/configure: Likewise.
4584
4585         * elf/dl-open.c: Comment fixes.
4586
4587 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
4588
4589         * Makefile [CXX] (check-data): Remove.
4590         [CXX] (c++-types.data): New vpath directive.
4591         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
4592         vpath.  Do not allow for C++ type data being missing.
4593         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
4594         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
4595         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
4596         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
4597         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
4598         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
4599         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
4600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
4601         ... here.
4602         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
4603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
4604         ... here.
4605         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
4606         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
4607         ... here.
4608         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
4609         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
4610         ... here.
4611         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
4612         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
4613         ... here.
4614         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
4615         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
4616         ... here.
4617         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
4618         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
4619         ... here.
4620         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
4621         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
4622
4623         * elf/tls-macros.h (TLS_LE): Move architecture-specific
4624         definitions to architecture-specific files.
4625         (TLS_IE): Likewise.
4626         (TLS_LD): Likewise.
4627         (TLS_GD): Likewise.
4628         * sysdeps/i386/tls-macros.h: New file.
4629         * sysdeps/powerpc/tls-macros.h: Likewise.
4630         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
4631         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
4632         * sysdeps/sh/tls-macros.h: Likewise.
4633         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
4634         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
4635         * sysdeps/x86_64/tls-macros.h: Likewise.
4636
4637 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4638
4639         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
4640         zero value for regular exit case.
4641
4642         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4643         (__start_context): Preserve zero value for regular exit case.
4644
4645 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4646             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4647
4648         * manual/setjmp.texi (setcontext): Clarify normal process
4649         termination when uc_link is the null pointer.
4650         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
4651         exit call.
4652
4653 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
4654
4655         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
4656         preprocessor.  Test for each exception mask separately.
4657
4658 2012-07-16  Andreas Jaeger  <aj@suse.de>
4659
4660         * po/ru.po: Update from translation team.
4661
4662 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
4663
4664         * conform/data/string.h-data (NULL): Use macro-constant.  Require
4665         equal to 0.
4666         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4667         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4668         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
4669         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
4670         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4671
4672 2012-07-13  Andreas Jaeger  <aj@suse.de>
4673
4674         * po/fr.po: Update from translation team.
4675
4676 2012-07-12  Marek Polacek  <polacek@redhat.com>
4677
4678         [BZ #14173]
4679         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4680         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4681         loop condition.
4682
4683 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4684
4685         [BZ #13717]
4686         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4687         Change to 2.4.1 where previously 2.4.0.
4688         * sysdeps/unix/sysv/linux/configure: Regenerated.
4689         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4690         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4691         version.
4692         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4693         (__ASSUME_AT_CLKTCK): Remove.
4694         (__ASSUME_AT_PAGESIZE): Likewise.
4695         (__ASSUME_AT_XID): Likewise.
4696         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4697         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4698         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4699         unconditionally.
4700         (HAVE_AUX_PAGESIZE): Likewise.
4701         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4702         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4703         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4704
4705 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4706
4707         [BZ #14307]
4708         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4709         the temporary buffer used to invoke __gethostbyname2_r,
4710         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4711         host_data / struct gaih_addrtuple.
4712         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4713         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4714         header file nss/nsswitch.h.
4715         * nss/nsswitch.h (global scope): Add definition of implementation
4716         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4717         resolv/nss_dns/dns-host.c).
4718
4719 2012-07-11  Andreas Jaeger  <aj@suse.de>
4720
4721         * po/fr.po: Update from translation team.
4722
4723         * po/sv.po: Update from translation team
4724         * po/fr.po: Another update from translation team.
4725
4726 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4727
4728         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4729         for subnormals or multiply small sinh result by itself.
4730         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4731         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4732
4733 2012-07-11  David S. Miller  <davem@davemloft.net>
4734
4735         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4736
4737 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4738
4739         [BZ #14347]
4740         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4741         (INTERNAL_MARK): Shift it here.
4742
4743 2012-07-10  Marek Polacek  <polacek@redhat.com>
4744
4745         [BZ #14151]
4746         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4747         libc_cv_asm_global_directive with .globl.
4748         * configure: Regenerated.
4749         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4750         with .globl.
4751         * sysdeps/i386/configure: Regenerated.
4752         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4753         with .globl.
4754         * sysdeps/x86_64/configure: Regenerated.
4755         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4756         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4757         * elf/tst-unique2mod2.c: Likewise.
4758         * elf/tst-unique2mod1.c: Likewise.
4759         * elf/tst-unique1mod2.c: Likewise.
4760         * elf/tst-unique1mod1.c: Likewise.
4761         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4762         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4763         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4764         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4765         * sysdeps/mach/sysdep.h: Likewise.
4766         * sysdeps/i386/sysdep.h: Likewise.
4767         * sysdeps/i386/i386-mcount.S: Likewise.
4768         * sysdeps/x86_64/_mcount.S: Likewise.
4769         * sysdeps/x86_64/sysdep.h: Likewise.
4770         * sysdeps/sh/_mcount.S: Likewise.
4771         * sysdeps/sh/sysdep.h: Likewise.
4772         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4773         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4774         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4775         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4776         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4777         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4778         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4779         * locale/localeinfo.h: Likewise.
4780         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4781         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4782
4783 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4784
4785         [BZ #14336]
4786         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4787         system".
4788         * manual/message.texi (The Uniforum approach): Likewise.
4789         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4790         (glibc iconv Implementation): Likewise.
4791
4792 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4793
4794         [BZ #14337]
4795         * math/s_clog.c (__clog): Avoid scaling a value down where that
4796         could result in underflow.
4797         * math/s_clog10.c (__clog10): Likewise.
4798         * math/s_clog10f.c (__clog10f): Likewise.
4799         * math/s_clog10l.c (__clog10l): Likewise.
4800         * math/s_clogf.c (__clogf): Likewise.
4801         * math/s_clogl.c (__clogl): Likewise.
4802         * math/libm-test.inc (clog_test): Add more tests.
4803         (clog10_test): Likewise.
4804         * sysdeps/i386/fpu/libm-test-ulps: Update.
4805         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4806
4807 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4808
4809         [BZ #14283]
4810         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4811         by 7 not 8 to examine high bit of fractional part.
4812
4813         [BZ #14042]
4814         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4815         for call to __mcount_internal.
4816         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4817         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4818         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4819
4820 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4821
4822         [BZ #14154]
4823         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4824         approximation for values within 0x1p-13f of an odd multiple of
4825         pi/4.
4826         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4827         exception.  Add more tests.
4828         * sysdeps/i386/fpu/libm-test-ulps: Update.
4829
4830         [BZ #6778]
4831         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4832         inputs and return -1 for them.  Do not check for +Inf in case not
4833         reachable for +Inf.
4834         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4835         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4836         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4837         and return -1 for them.  Do not check for +Inf in case not
4838         reachable for +Inf.
4839         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4840         define.
4841         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4842         and return -1 for them.  Do not check for +Inf in case not
4843         reachable for +Inf.
4844         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4845         spurious underflow.
4846         * sysdeps/i386/fpu/libm-test-ulps: Update.
4847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4848
4849 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4850
4851         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4852
4853 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4854
4855         [BZ #14157]
4856         [BZ #14331]
4857         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4858         could result in spurious underflow.  Scale down values above
4859         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4860         * math/s_csqrtf.c (__csqrtf): Likewise.
4861         * math/s_csqrtl.c (__csqrtl): Likewise.
4862         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4863         spurious underflow.
4864         * sysdeps/i386/fpu/libm-test-ulps: Update.
4865         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4866
4867 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4868
4869         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4870         xopen-msg.sed.
4871         * catgets/xopen-msg.awk: New file.
4872         * catgets/xopen-msg.sed: Removed.
4873
4874         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4875         po2text.sed.
4876         * intl/po2test.awk: New file.
4877         * intl/po2test.sed: Removed.
4878
4879 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4880
4881         [BZ #14328]
4882         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4883         or multiply small sinh result by itself.
4884         * math/s_ctanf.c (__ctanf): Likewise.
4885         * math/s_ctanh.c (__ctanh): Likewise.
4886         * math/s_ctanhf.c (__ctanhf): Likewise.
4887         * math/s_ctanhl.c (__ctanhl): Likewise.
4888         * math/s_ctanl.c (__ctanl): Likewise.
4889         * math/libm-test.inc (ctan_test_tonearest): New function.
4890         (ctan_test_towardzero): Likewise.
4891         (ctan_test_downward): Likewise.
4892         (ctan_test_upward): Likewise.
4893         (ctanh_test_tonearest): Likewise.
4894         (ctanh_test_towardzero): Likewise.
4895         (ctanh_test_downward): Likewise.
4896         (ctanh_test_upward): Likewise.
4897         (main): Call these new functions.
4898         * sysdeps/i386/fpu/libm-test-ulps: Update.
4899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4900
4901 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4902
4903         * .gitignore: Delete /ports entry.
4904
4905 2012-07-03  Andreas Jaeger  <aj@suse.de>
4906
4907         * po/bg.po: Update from translation team.
4908         * po/cs.po: Likewise.
4909         * po/de.po: Likewise.
4910         * po/hr.po: Likewise.
4911         * po/nl.pl: Likewise.
4912         * po/pl.po: Likewise.
4913         * po/vi.po: Likewise.
4914
4915 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4916
4917         * Makeconfig [!+link] (+link-before-libc): New variable.
4918         [!+link] (+link-after-libc): Likewise.
4919         [!+link] (+link-tests): Likewise.
4920         [!+link] (+link): Define in terms of $(+link-before-libc) and
4921         $(+link-after-libc).
4922         [!+link-static] (+link-static-before-libc): New variable.
4923         [!+link-static] (+link-static-after-libc): Likewise.
4924         [!+link-static] (+link-static-tests): Likewise.
4925         [!+link-static] (+link-static): Define in terms of
4926         $(+link-static-before-libc) and $(+link-static-after-libc).
4927         [build-shared] (link-libc-before-gnulib): New variable.
4928         [build-shared] (link-libc-tests): Likewise.
4929         [build-shared] (link-libc): Define in terms of
4930         $(link-libc-before-gnulib).
4931         [!build-shared] (link-libc-tests): New variable.
4932         (link-libc-static-tests): New variable.
4933         [!gnulib] (gnulib-arch): New variable.
4934         [!gnulib] (gnulib-tests): Likewise.
4935         [!gnulib] (static-gnulib-arch): Likewise.
4936         [!gnulib] (static-gnulib-tests): Likewise.
4937         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4938         Define with "=" instead of ":=".
4939         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4940         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4941         * Rules (binaries-all-notests): New variable.
4942         (binaries-all-tests): Likewise.
4943         (binaries-static-notests): Likewise.
4944         (binaries-static-tests): Likewise.
4945         (binaries-all): Define using $(binaries-all-notests) and
4946         $(binaries-all-tests).
4947         (binaries-static): Define using $(binaries-static-notests) and
4948         $(binaries-static-tests).
4949         (binaries-shared-tests): New variable.
4950         (binaries-shared-notests): Likewise.
4951         (binaries-shared): Remove variable.
4952         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4953         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4954         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4955         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4956         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4957         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4958         * elf/Makefile (sln-modules): New variable.
4959         (extra-objs): Add $(sln-modules:=.o).
4960         (ldconfig-modules): Add static-stubs.
4961         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4962         * elf/static-stubs.c: New file.
4963
4964         [BZ #14283]
4965         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4966         by 7 not 8 to examine high bit of fractional part.  Use volatile
4967         variables when splitting into final array of floats if
4968         __FLT_EVAL_METHOD__ != 0.
4969         * math/libm-test.inc (cos_test): Add another test.
4970         (sin_test): Likewise.
4971         * sysdeps/i386/fpu/libm-test-ulps: Update.
4972
4973         [BZ #14273]
4974         * math/libm-test.inc (cosh_test): Add more tests.
4975
4976         * version.h (RELEASE): Set to "development".
4977         (VERSION): Set to "2.16.90".
4978
4979 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4980
4981         * NEWS: Update copyright. Remove last-updated date.
4982         Mention math library bug fixes and timezone data changes.
4983         * README: Mention GNU/Hurd, x32, and HPPA support status.
4984
4985 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4986
4987         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4988
4989 2012-06-27  Andreas Jaeger  <aj@suse.de>
4990
4991         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4992
4993 2012-06-25  Andreas Jaeger  <aj@suse.de>
4994
4995         * sysdeps/s390/fpu/libm-test-ulps: Update.
4996
4997 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4998             Thomas Schwinge  <thomas@codesourcery.com>
4999
5000         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5001         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5002         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5003         fanotify_mark.
5004
5005 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5006
5007         * sysdeps/mach/start.c: Remove file.
5008         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5009         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5010         * sysdeps/sh/init-first.c: Likewise.
5011
5012         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5013         registers for frame unwinding purposes, add CFI directives.
5014         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5015         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5016         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5017         Likewise.
5018
5019         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5020         __fortify_fail returning.
5021         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5022
5023         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5024         sysdeps/sh/____longjmp_chk.S.
5025         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5026         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5027         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5028         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5029
5030         * sysdeps/sh/abort-instr.h: New file.
5031         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5032         process in case exit returns.
5033
5034         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5035         initialize the GOT register before use.
5036
5037         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5038         calculation of ARGC > 4.
5039
5040         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5041         meaningful names to some local labels.
5042
5043 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5044             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5045
5046         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5047         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5048         (__arch_compare_and_exchange_val_16_acq): Likewise.
5049         (__arch_compare_and_exchange_val_32_acq): Likewise.
5050         (atomic_exchange_and_add): Fix gUSA sequence.
5051         (atomic_add): Likewise.
5052         (atomic_add_negative): Likewise.
5053         (atomic_add_zero): Likewise.
5054         (atomic_bit_test_set): Likewise.
5055
5056 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5057
5058         [BZ #13579]
5059         * include/link.h (struct link_map): Add l_free_initfini.
5060         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5061         l_initfini.
5062         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5063         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5064         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5065         set.
5066
5067 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5068
5069         * configure.in: Use AC_LANG_SOURCE.
5070         * configure: Regenerate.
5071
5072 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5073
5074         * configure.in (libc_cv_localstatedir): New substituted variable.
5075         * configure: Regenerated.
5076         * config.make.in (localstatedir): New variable, substituted from
5077         libc_cv_localstatedir.
5078         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5079         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5080         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5081         * sysdeps/gnu/configure: Regenerated.
5082
5083 2012-06-21  Jeff Law  <law@redhat.com>
5084
5085         [BZ #14277]
5086         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5087         free.  Simplify list management for _LIBC case.
5088
5089 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5090
5091         [BZ #14273]
5092         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5093         Clear sign bit of 64-bit integer value before comparing against
5094         overflow value.
5095
5096         * sysdeps/mach/configure: Regenerated.
5097
5098 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5099
5100         [BZ #14278]
5101         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5102
5103 2012-06-21  Jeff Law  <law@redhat.com>
5104
5105         [BZ #13882]
5106         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5107         uint16_t for elements in the "seen" array to avoid char overflows.
5108         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5109         * elf/dl-open.c (dl_open_worker): Likewise.
5110
5111 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5112
5113         * scripts/list-sources.sh: Scan PORTS for translations.
5114         * po/libc.pot: Regenerated.
5115
5116 2012-06-21  Andreas Jaeger  <aj@suse.de>
5117
5118         [BZ #12194]
5119         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5120         warning.
5121         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5122         * bits/byteswap-16.h (__bswap_16): Likewise.
5123         * bits/byteswap.h (__bswap_constant_16): Likewise.
5124
5125 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5126
5127         [BZ #14117]
5128         * sysdeps/i386/fpu_control.h: Removed.
5129         * sysdeps/x86_64/fpu_control.h: Moved to ...
5130         * sysdeps/x86/fpu_control.h: Here.
5131
5132         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5133         (_FPU_SETCW): Likewise.
5134
5135 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5136
5137         [BZ #14117]
5138         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5139         * sysdeps/x86/fpu/bits/mathinline.h: This.
5140         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5141
5142         [BZ #14050]
5143         [BZ #14117]
5144         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5145         functions if __x86_64__ is defined.
5146
5147 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5148
5149         * string/endian.h: Add !__ASSEMBLER__ condition for including
5150         conversion interfaces.
5151
5152 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5153
5154         [BZ #14241]
5155         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5156         of ABS(x) in calculating zero to negative powers other than odd
5157         integers.
5158         * math/libm-test.inc (pow_test): Add more tests.
5159
5160 2012-06-15  Andreas Jaeger  <aj@suse.de>
5161
5162         * manual/contrib.texi (Contributors): Update entry of Liubov
5163         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5164         Machado Filho.
5165
5166 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5167
5168         * string/string.h: Add __wur to GNU version of strerror_r.
5169
5170 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5171
5172         [BZ #14229]
5173         * string/Makefile (tests): Add tst-strtok_r.
5174         * string/tst-strtok_r.c: New file.
5175         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5176         RAX_LP/RDX_LP on SAVE_PTR.
5177
5178 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5179
5180         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5181
5182 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5183
5184         * libm_test.inc (csqrt_test): Allow more spurious underflow
5185         exceptions.
5186         (j0_test): Likewise.
5187         (j1_test): Likewise.
5188         (y0_test): Likewise.
5189         (y1_test): Likewise.
5190
5191 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5192
5193         * po/Makefile (libc.pot): Use UTF-8 charset.
5194
5195 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5196
5197         [BZ #14210]
5198         Suppress sign-conversion warning from FD_SET.
5199         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5200         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5201         not unsigned long int.
5202         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5203
5204 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5205
5206         [BZ #14050]
5207         [BZ #14117]
5208         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5209         __extern_always_inline instead of __extern_inline.
5210         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5211         (__signbit): Likewise.
5212         (__signbitl): Support C++ namespace.
5213         (lrintf): New inline function.
5214         (lrint): Likewise.
5215         (llrintf): Likewise.
5216         (llrint): Likewise.
5217         (fmaxf): Likewise.
5218         (fmax): Likewise.
5219         (fminf): Likewise.
5220         (fmin): Likewise.
5221         (rint): Likewise.
5222         (rintf): Likewise.
5223         (ceil): Likewise.
5224         (ceilf): Likewise.
5225         (floor): Likewise.
5226         (floorf): Likewise.
5227         (nearbyint): Likewise.
5228         (nearbyintf): Likewise.
5229
5230 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5231
5232         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5233         non-default versions.
5234
5235 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5236
5237         [BZ #14218]
5238         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5239
5240 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5241
5242         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5243         (FE_UPWARD, FE_DOWNWARD): Don't define.
5244         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5245         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5246
5247         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5248         reading it.
5249         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5250         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5251
5252 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5253
5254         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5255         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5256         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5257         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5258
5259 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5260
5261         [BZ #14117]
5262         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5263         * sysdeps/i386/fpu/Implies: New file.
5264         * sysdeps/x86_64/fpu/Implies: Likewise.
5265         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5266         * sysdeps/x86/fpu/bits/fenv.h: This.
5267
5268         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5269         __SSE_MATH__.
5270
5271 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5272
5273         [BZ #14134]
5274         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5275         character 0xffff that matches the last element of the
5276         conversion table.
5277
5278 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5279
5280         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5281         fmodl commit.
5282
5283 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5284
5285         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5286         values higher than 25.6283.
5287
5288 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5289
5290         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5291         subnormal exponent extraction and add some __builtin_expect.
5292         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
5293         Fix for subnormal mantissa calculation.
5294
5295 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
5296
5297         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
5298         cpu2 is -1 and errno is not ENOSYS.
5299
5300 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5301
5302         [BZ #14117]
5303         * sysdeps/i386/i486/bits/string.h: Renamed to ...
5304         * sysdeps/x86/bits/string.h: This.
5305         * sysdeps/x86_64/bits/string.h: Removed.
5306
5307         * sysdeps/i386/i486/bits/string.h: Define inline functions only
5308         if not compiling for x86-64, but compiling for >= i486.
5309
5310         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
5311         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
5312
5313         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
5314         New macro from Linux kernel 3.4.0.
5315         (FP_XSTATE_MAGIC2): Likewise.
5316         (FP_XSTATE_MAGIC2_SIZE): Likewise.
5317         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
5318         (struct _fpx_sw_bytes): New struct.
5319         (struct _xsave_hdr): Likewise.
5320         (struct _ymmh_state): Likewise.
5321         (struct _xstate): Likewise.
5322
5323         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
5324         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
5325         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
5326         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
5327         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
5328         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
5329
5330         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
5331         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
5332         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
5333         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
5334         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
5335         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
5336
5337 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5338
5339         [BZ #13743]
5340         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
5341         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
5342         (sysdep_headers): Include sys/platform/ppc.h.
5343         * sysdeps/powerpc/test-gettimebase.c: Test for
5344         __ppc_get_timebase() to catch future ISA opcode/insn changes.
5345         * manual/Makefile (appendices): Include platform.texi.
5346         * manual/contrib.texi (Contributors): Update @node pointers.
5347         * manual/maint.texi (Maintenance): Likewise.
5348         (Platform): New node.
5349         * manual/platform.texi: New file.  Document the new features.
5350
5351 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5352             Jakub Jelinek  <jakub@redhat.com>
5353
5354         [BZ #14188]
5355         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
5356         where __builtin_expect is unavailable.
5357
5358 2012-06-03  David S. Miller  <davem@davemloft.net>
5359
5360         * stdlib/longlong.h: Updated from GCC.
5361
5362 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
5363
5364         [BZ #14042]
5365         * sysdeps/powerpc/powerpc32/mcount.c: New file.
5366         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
5367         __mcount_internal.
5368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
5369         (GLIBC_2.16): Likewise.
5370
5371 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5372
5373         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
5374
5375 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5376
5377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
5378         (default-abi): New variable.
5379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
5380         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
5381         variable.
5382         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
5383         Likewise.
5384         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
5385         Likewise.
5386         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
5387         Likewise.
5388
5389         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
5390         definition.  Document in comment.
5391
5392 2012-06-01  David S. Miller  <davem@davemloft.net>
5393
5394         * stdlib/longlong.h: Updated from GCC.
5395
5396 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5397
5398         [BZ #14117]
5399         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
5400         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
5401         sys/debugreg.h sys/io.h here.
5402         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
5403         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
5404         sys/io.h.
5405         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
5406         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
5407         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
5408         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
5409         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
5410         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
5411
5412         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
5413         Define only if __x86_64__ is defined.
5414
5415 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5416
5417         [BZ #14048]
5418         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
5419         Use int64_t for variable i.
5420         * math/libm-test.inc (fmod_test): Add more tests.
5421
5422         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
5423         z computation is not scheduled after fetestexcept.
5424         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
5425         Use math_force_eval instead of asm to ensure calculation scheduled
5426         before exception test.
5427         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
5428         Ensure a1 + u.d computation is not scheduled after fetestexcept.
5429
5430 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
5431
5432         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
5433         computation is not scheduled after fetestexcept.
5434
5435 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5436
5437         [BZ #14117]
5438         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
5439         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
5440
5441 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5442
5443         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
5444         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5445
5446 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5447
5448         [BZ #14117]
5449         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
5450         <bits/wordsize.h>.
5451         (__WCHAR_MIN): Support __WORDSIZE == 64.
5452         (__WCHAR_MAX): Likewise.
5453
5454         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
5455         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
5456
5457         [BZ #14183]
5458         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
5459         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
5460
5461         [BZ #14117]
5462         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
5463         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
5464
5465         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
5466         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
5467
5468         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
5469         Defined to 1 if __x86_64__ isn't defined.
5470         (_STAT_VER_LINUX_OLD): New.
5471         (st_atime): Remove duplicate.
5472         (st_mtime): Likewise.
5473         (st_ctime): Likewise.
5474
5475 2012-05-31  David S. Miller  <davem@davemloft.net>
5476
5477         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
5478         entries.
5479
5480 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
5481
5482         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
5483         gen-libm-test.pl.
5484
5485         [BZ #14132]
5486         * elf/dl-reloc.c: Include <_itoa.h>.
5487         (_dl_reloc_bad_type): Remove use of INTUSE.
5488         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
5489         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
5490         * stdio-common/psiginfo.c (psiginfo): Likewise.
5491         * stdio-common/psignal.c (psignal): Likewise.
5492         * string/strsignal.c (strsignal): Likewise.
5493         * include/signal.h (_sys_siglist): Declare hidden proto.
5494         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
5495         INTVARDEF with libc_hidden_data_def.
5496         * stdio-common/itoa-udigits.c: Likewise.
5497         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
5498         (_itoa_lower_digits_internal): Remove declaration.
5499         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
5500         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
5501         (_sys_sigabbrev_internal): Remove aliases.
5502         (_sys_siglist): Define hidden alias.
5503
5504 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5505
5506         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5507         bits/sysctl.h.
5508
5509 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5510
5511         [BZ #14117]
5512         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
5513         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
5514
5515         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
5516         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
5517         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
5518         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
5519         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
5520         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
5521
5522         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
5523         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
5524         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
5525
5526         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
5527         with __addr.
5528         (insw): Likewise.
5529         (insl): Likewise.
5530         (outsb): Likewise.
5531         (outsw): Likewise.
5532         (outsl): Likewise.
5533
5534         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
5535         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
5536         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
5537
5538         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
5539         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
5540         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
5541         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
5542         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
5543         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
5544
5545         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
5546         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
5547
5548         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
5549         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
5550
5551         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
5552         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
5553         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
5554
5555         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
5556         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
5557         to ...
5558         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
5559
5560         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
5561         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
5562         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
5563
5564         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
5565         for x86-64.
5566         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
5567
5568 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
5569
5570         * math/math.h (M_El): Use two more decimal places.
5571         (M_LOG2El): Likewise.
5572         (M_LOG10El): Likewise.
5573         (M_LN2l): Likewise.
5574         (M_LN10l): Likewise.
5575         (M_PIl): Likewise.
5576         (M_PI_2l): Likewise.
5577         (M_PI_4l): Likewise.
5578         (M_1_PIl): Likewise.
5579         (M_2_PIl): Likewise.
5580         (M_2_SQRTPIl): Likewise.
5581         (M_SQRT2l): Likewise.
5582         (M_SQRT1_2l): Likewise.
5583
5584 2012-05-31  David S. Miller  <davem@davemloft.net>
5585
5586         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
5587         values between float registers.
5588         * sysdeps/sparc/sparc64/memset.S: Likewise.
5589         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5590
5591 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
5592
5593         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
5594         -D_FORTIFY_SOURCE=1.
5595         (CPPFLAGS-tst-longjmp_chk.c): Define.
5596         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
5597         (CPPFLAGS-tst-longjmp_chk2.c): Define.
5598         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
5599         CFLAGS-tst-wchar-h.c.
5600
5601 2012-05-31  Marek Polacek  <polacek@redhat.com>
5602
5603         [BZ #14132]
5604         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
5605         __endmntent_internal): Remove declaration.
5606         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
5607         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
5608         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
5609
5610 2012-05-30  David S. Miller  <davem@davemloft.net>
5611
5612         * sysdeps/sparc/sparc32/soft-fp/q_util.c
5613         (___Q_simulate_exceptions): Use real FP ops rather than writing
5614         into the %fsr.
5615         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
5616         Likewise.
5617
5618 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5619
5620         [BZ #14117]
5621         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
5622         * sysdeps/x86/bits/xtitypes.h: This.
5623
5624         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
5625         * sysdeps/x86/bits/wordsize.h: This.
5626
5627         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
5628         * sysdeps/x86/bits/huge_vall.h: This.
5629
5630         * sysdeps/i386/bits/select.h: Removed.
5631         * sysdeps/x86_64/bits/select.h: Renamed to ...
5632         * sysdeps/x86/bits/select.h: This.
5633
5634         * sysdeps/i386/bits/setjmp.h: Removed.
5635         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
5636         * sysdeps/x86/bits/setjmp.h: This.
5637
5638         * sysdeps/i386/bits/mathdef.h: Removed.
5639         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
5640         * sysdeps/x86/bits/mathdef.h: This.
5641
5642 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5643
5644         [BZ #14132]
5645         * include/sys/socket.h (__connect_internal)
5646         (__libc_sa_len_internal): Remove declaration.
5647         (__connect, __libc_sa_len): Declare hidden_proto.
5648         (SA_LEN): Remove use of INTUSE.
5649         * socket/connect.c: Add libc_hidden_def.
5650         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
5651         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
5652         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
5653         alias.
5654         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5655         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5656         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
5657         of adding _internal alias.
5658
5659 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5660
5661         [BZ #14117]
5662         * sysdeps/i386/bits/link.h: Removed.
5663         * sysdeps/i386/bits/linkmap.h: Likewise.
5664         * sysdeps/x86_64/bits/link.h: Renamed to ...
5665         * sysdeps/x86/bits/link.h: This.
5666         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
5667         * sysdeps/x86/bits/linkmap.h: This.
5668
5669         * sysdeps/i386/bits/endian.h: Removed.
5670         * sysdeps/x86_64/bits/endian.h: Renamed to ...
5671         * sysdeps/x86/bits/endian.h: This.
5672
5673         * sysdeps/i386/bits/byteswap.h: Removed.
5674         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5675         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
5676         * sysdeps/x86/bits/byteswap.h: This.
5677         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5678         * sysdeps/x86/bits/byteswap-16.h: This.
5679         * sysdeps/i386/Implies: Add x86.
5680         * sysdeps/x86_64/Implies: Likewise.
5681
5682 2012-05-30  David S. Miller  <davem@davemloft.net>
5683
5684         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5685         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5686         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5687         (FP_TRAPPING_EXCEPTIONS): Define.
5688         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5689         (FP_TRAPPING_EXCEPTIONS): Define.
5690         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5691         subnormals only when inexact has been signalled or underflow
5692         exceptions are enabled.
5693         (_FP_PACK_CANONICAL): Likewise.
5694
5695 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5696
5697         [BZ #14183]
5698         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5699         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5700
5701 2012-05-30  Richard Henderson  <rth@twiddle.net>
5702
5703         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5704         with #ifndef NOT_IN_libc.
5705
5706         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5707         marked to avoid plt entry.
5708
5709 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5710
5711         [BZ #14112]
5712         * Makeconfig (default-abi): New macro.
5713         (abi-includes): Likewise.
5714         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5715         $(abi-$(default-abi)-lib-soname) for soname if defined.
5716         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5717         abi-variants.
5718         * Makefile (installed-stubs): Likewise.
5719         * include/stubs-biarch.h: Removed.
5720         * scripts/lib-names.awk: Only handle one library at a time.
5721         * scripts/soversions.awk: Remove WORDSIZE support.
5722         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5723         entries.
5724         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5725         Removed.
5726         (syscall-list-default-condition): Likewise.
5727         (syscall-list-default-condition): Likewise.
5728         (syscall-list-includes): Likewise.
5729         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5730         syscall-list-* with abi-*.  Handle undefined abi-variants.
5731         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5732         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5733         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5734         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5735         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5736         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5737         Removed.
5738         (syscall-list-32-options): Likewise.
5739         (syscall-list-32-condition): Likewise.
5740         (syscall-list-64-options): Likewise.
5741         (syscall-list-64-condition): Likewise.
5742         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5743         macro.
5744         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5745         Renamed to ...
5746         (abi-*): This.
5747         (abi-64-ld-soname): New macro.
5748         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5749         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5750         Renamed to ...
5751         (abi-*): This.
5752         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5753         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5754
5755 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5756
5757         * sysdeps/unix/sysv/linux/kernel-features.h
5758         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5759         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5760         include <kernel-features.h>.
5761         [!__NR_ftruncate64]: Remove conditional code.
5762         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5763         [__NR_ftruncate64]: Make code unconditional.
5764         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5765         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5766         include <kernel-features.h>.
5767         [!__NR_ftruncate64]: Remove conditional code.
5768         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5769         [__NR_ftruncate64]: Make code unconditional.
5770         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5772         include <kernel-features.h>.
5773         [!__NR_ftruncate64]: Remove conditional code.
5774         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5775         [__NR_ftruncate64]: Make code unconditional.
5776         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5778         include <kernel-features.h>.
5779         [!__NR_ftruncate64]: Remove conditional code.
5780         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5781         [__NR_ftruncate64]: Make code unconditional.
5782         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5783
5784         * configure.in (libc_cv_fpie): Weaken to a compile test using
5785         LIBC_TRY_CC_OPTION.
5786         * configure: Regenerated.
5787
5788 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5789
5790         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5791         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5792         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5793         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5794         Refreshed.
5795         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5796         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5797         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5798         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5799         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5800         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5801         Refreshed.
5802
5803 2012-05-27  David S. Miller  <davem@davemloft.net>
5804
5805         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5806         (___Q_zero): New.
5807         (__Q_simulate_exceptions): Return void.  Change to simulate
5808         exceptions by writing into the %fsr.
5809         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5810         (__Qp_handle_exceptions): Likewise.
5811         (numbers): Delete.
5812         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5813         __Qp_handle_exceptions.
5814         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5815         __Qp_handle_exceptions.
5816         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5817         as unused and give dummy FP_RND_NEAREST initializer.
5818         (FP_INHIBIT_RESULTS): Define.
5819         (___Q_simulate_exceptions): Update declaration.
5820         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5821         formatting.
5822         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5823         as unused and give dummy FP_RND_NEAREST initializer.
5824         (__Qp_handle_exceptions): Update declaration.
5825         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5826         formatting.
5827
5828 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5829
5830         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5831         the temporary FPU control word.
5832         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5833         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5834         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5835         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5836         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5837         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5838         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5839         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5840         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5841         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5842         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5843
5844 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5845
5846         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5847         fields.
5848
5849 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5850
5851         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5852         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5853         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5854         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5855         Likewise.
5856         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5857         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5858         Likewise.
5859
5860 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5861
5862         * po/h.po: Update from translation team.
5863
5864 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5865
5866         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5867
5868         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5869         handling of denormals.
5870         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5871         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5872         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5873         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5874         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5875         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5876         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5877         Likewise.
5878
5879 2012-05-26  Marek Polacek  <polacek@redhat.com>
5880
5881         [BZ #14152]
5882         * math/libm-test.inc (fma_test): Don't always expect underflow
5883         exception.
5884
5885 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5886
5887         [BZ #12416]
5888         * elf/tst-execstack.c: Include stackinfo.h.
5889         (do_test): Adjust test case to ensure that pthread_getattr_np
5890         behaviour remains the same after marking stack executable.
5891
5892 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5893
5894         * sysdeps/unix/sysv/linux/kernel-features.h
5895         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5896         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5897         kernel-features.h.
5898         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5899         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5900         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5901         kernel-features.h.
5902         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5903         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5904
5905 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5906
5907         * configure.in: Define the default includes to being none.
5908         * configure: Regenerated.
5909
5910 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5911
5912         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5913         * sysdeps/x86_64/setjmp.S: Likewise.
5914         * sysdeps/i386/bsd-setjmp.S: Likewise.
5915         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5916         * sysdeps/i386/setjmp.S: Likewise.
5917         * sysdeps/i386/__longjmp.S: Likewise.
5918         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5919         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5920
5921         * include/stap-probe.h: New file.
5922         * configure.in: Handle --enable-systemtap.
5923         * configure: Regenerated.
5924         * config.h.in (USE_STAP_PROBE): New #undef.
5925         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5926         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5927         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5928
5929 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5930
5931         [BZ #13717]
5932         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5933         to 2.4.0 where earlier.
5934         * sysdeps/unix/sysv/linux/configure: Regenerated.
5935         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5936         <kernel-features.h>.
5937         [__ASSUME_32BITUIDS]: Make code unconditional.
5938         [!__ASSUME_32BITUIDS]: Remove conditional code.
5939         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5940         <kernel-features.h>.
5941         [__ASSUME_32BITUIDS]: Make code unconditional.
5942         [!__ASSUME_32BITUIDS]: Remove conditional code.
5943         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5944         [__ASSUME_32BITUIDS]: Make code unconditional.
5945         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5946         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5947         <kernel-features.h>.
5948         [__ASSUME_32BITUIDS]: Make code unconditional.
5949         [!__ASSUME_32BITUIDS]: Remove conditional code.
5950         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5951         <kernel-features.h>.
5952         [__ASSUME_32BITUIDS]: Make code unconditional.
5953         [!__ASSUME_32BITUIDS]: Remove conditional code.
5954         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5955         <kernel-features.h>.
5956         [__ASSUME_32BITUIDS]: Make code unconditional.
5957         [!__ASSUME_32BITUIDS]: Remove conditional code.
5958         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5959         <kernel-features.h>.
5960         [__ASSUME_32BITUIDS]: Make code unconditional.
5961         [!__ASSUME_32BITUIDS]: Remove conditional code.
5962         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5963         <kernel-features.h>.
5964         [__ASSUME_32BITUIDS]: Make code unconditional.
5965         [!__ASSUME_32BITUIDS]: Remove conditional code.
5966         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5967         <kernel-features.h>.
5968         [__ASSUME_32BITUIDS]: Make code unconditional.
5969         [!__ASSUME_32BITUIDS]: Remove conditional code.
5970         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5971         <kernel-features.h>.
5972         [__ASSUME_32BITUIDS]: Make code unconditional.
5973         [!__ASSUME_32BITUIDS]: Remove conditional code.
5974         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5975         <kernel-features.h>.
5976         [__ASSUME_32BITUIDS]: Make code unconditional.
5977         [!__ASSUME_32BITUIDS]: Remove conditional code.
5978         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5979         <kernel-features.h>.
5980         [__ASSUME_32BITUIDS]: Make code unconditional.
5981         [!__ASSUME_32BITUIDS]: Remove conditional code.
5982         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5983         <kernel-features.h>.
5984         [__ASSUME_32BITUIDS]: Make code unconditional.
5985         [!__ASSUME_32BITUIDS]: Remove conditional code.
5986         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5987         <kernel-features.h>.
5988         [__NR_setresgid] (__setresgid): Do not declare.
5989         [__ASSUME_32BITUIDS]: Make code unconditional.
5990         [!__ASSUME_32BITUIDS]: Remove conditional code.
5991         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5992         <kernel-features.h>.
5993         [__NR_setresuid] (__setresuid): Do not declare.
5994         [__ASSUME_32BITUIDS]: Make code unconditional.
5995         [!__ASSUME_32BITUIDS]: Remove conditional code.
5996         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5997         <kernel-features.h>.
5998         [__ASSUME_32BITUIDS]: Make code unconditional.
5999         [!__ASSUME_32BITUIDS]: Remove conditional code.
6000         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
6001         <kernel-features.h>.
6002         [__ASSUME_32BITUIDS]: Make code unconditional.
6003         [!__ASSUME_32BITUIDS]: Remove conditional code.
6004         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
6005         <kernel-features.h>.
6006         [__ASSUME_32BITUIDS]: Make code unconditional.
6007         [!__ASSUME_32BITUIDS]: Remove conditional code.
6008         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
6009         <kernel-features.h>.
6010         [__ASSUME_32BITUIDS]: Make code unconditional.
6011         [!__ASSUME_32BITUIDS]: Remove conditional code.
6012         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
6013         <kernel-features.h>.
6014         [__ASSUME_32BITUIDS]: Make code unconditional.
6015         [!__ASSUME_32BITUIDS]: Remove conditional code.
6016         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
6017         <kernel-features.h>.
6018         [__ASSUME_32BITUIDS]: Make code unconditional.
6019         [!__ASSUME_32BITUIDS]: Remove conditional code.
6020         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
6021         <kernel-features.h>.
6022         [__ASSUME_32BITUIDS]: Make code unconditional.
6023         [!__ASSUME_32BITUIDS]: Remove conditional code.
6024         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
6025         <kernel-features.h>.
6026         [__ASSUME_32BITUIDS]: Make code unconditional.
6027         [!__ASSUME_32BITUIDS]: Remove conditional code.
6028         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
6029         <kernel-features.h>.
6030         [__ASSUME_32BITUIDS]: Make code unconditional.
6031         [!__ASSUME_32BITUIDS]: Remove conditional code.
6032         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
6033         <kernel-features.h>.
6034         [__ASSUME_32BITUIDS]: Make code unconditional.
6035         [!__ASSUME_32BITUIDS]: Remove conditional code.
6036         * sysdeps/unix/sysv/linux/kernel-features.h
6037         (__ASSUME_SETRESUID_SYSCALL): Remove.
6038         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6039         (__ASSUME_32BITUIDS): Likewise.
6040         (__ASSUME_LDT_WORKS): Likewise.
6041         (__ASSUME_O_DIRECTORY): Likewise.
6042         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6043         architecture but not kernel version.
6044         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6045         (__ASSUME_MMAP2_SYSCALL): Likewise.
6046         (__ASSUME_STAT64_SYSCALL): Likewise.
6047         (__ASSUME_IPC64): Likewise.
6048         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6049         <kernel-features.h>.
6050         [__ASSUME_32BITUIDS]: Make code unconditional.
6051         [!__ASSUME_32BITUIDS]: Remove conditional code.
6052         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6053         <kernel-features.h>.
6054         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6055         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6056         132096]: Remove conditional code.
6057         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6058         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6059         <kernel-features.h>.
6060         [__ASSUME_32BITUIDS]: Make code unconditional.
6061         [!__ASSUME_32BITUIDS]: Remove conditional code.
6062         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6063         <kernel-features.h>.
6064         [__ASSUME_32BITUIDS]: Make code unconditional.
6065         [!__ASSUME_32BITUIDS]: Remove conditional code.
6066         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6067         <kernel-features.h>.
6068         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6069         unconditional.
6070         (__setresgid): Do not declare.
6071         [__ASSUME_32BITUIDS]: Make code unconditional.
6072         [!__ASSUME_32BITUIDS]: Remove conditional code.
6073         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6074         <kernel-features.h>.
6075         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6076         unconditional.
6077         (__setresuid): Do not declare.
6078         [__ASSUME_32BITUIDS]: Make code unconditional.
6079         [!__ASSUME_32BITUIDS]: Remove conditional code.
6080         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6081         <kernel-features.h>.
6082         [__ASSUME_32BITUIDS]: Make code unconditional.
6083         [!__ASSUME_32BITUIDS]: Remove conditional code.
6084         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6085         <kernel-features.h>.
6086         [__ASSUME_32BITUIDS]: Make code unconditional.
6087         [!__ASSUME_32BITUIDS]: Remove conditional code.
6088
6089 2012-05-25  Richard Henderson  <rth@twiddle.net>
6090
6091         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6092         dl_hwcap to ifunc resolver.
6093         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6094         elf_ifunc_invoke.
6095         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6096         dl_hwcap to ifunc resolver.
6097         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6098
6099 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6100
6101         [BZ #14153]
6102         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6103         for |x| <= 2**-26, not 2**-57.
6104         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6105         exception.
6106
6107 2012-05-24  Jeff Law  <law@redhat.com>
6108
6109         * stdio-common/Makefile (tests): Add bug25.
6110         * stdio-common/bug25.c: New test.
6111
6112 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6113
6114         [BZ #13576]
6115         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6116         multiple of MALLOC_ALIGNMENT in size.
6117         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6118
6119 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6120
6121         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6122         Require >= 256.
6123         (FILENAME_MAX): Use macro-int-constant.
6124         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6125         (_IOFBF): Use macro-int-constant.
6126         (_IOLBF): Likewise.
6127         (_IONBF): Likewise.
6128         (SEEK_CUR): Likewise.
6129         (SEEK_END): Likewise.
6130         (SEEK_SET): Likewise.
6131         (TMP_MAX): Likewise.
6132         (EOF): Use macro-int-constant.  Require < 0.
6133         (NULL): Use macro-constant.  Require == 0.
6134         (stdin): Require type to be FILE *.
6135         (stdout): Likewise.
6136         (stderr): Likewise.
6137         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6138         macro-int-constant.
6139         (EXIT_SUCCESS): Likewise.
6140         (NULL): Use macro-constant.  Require == 0.
6141         (RAND_MAX): Use macro-int-constant.
6142         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6143         [C99-based standards] (strtof): Require function.
6144         [C99-based standards] (strtold): Likewise.
6145         [C99-based standards] (strtoll): Likewise.
6146         [C99-based standards] (strtoull): Likewise.
6147         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6148         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6149         [ISO || ISO99 || ISO11] (math.h): Likewise.
6150         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6151         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6152         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6153
6154 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6155
6156         [BZ #14132]
6157         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6158         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6159         * intl/dgettext.c (DCGETTEXT): Likewise.
6160         * intl/gettext.c (DCGETTEXT): Likewise.
6161         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6162         * posix/regex_internal.h (gettext): Likewise.
6163         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6164         Remove declaration.
6165         * include/argz.h (__argz_count_internal)
6166         (__argz_stringify_internal): Remove declaration.
6167         (__argz_count, __argz_stringify): Declare hidden proto.
6168         * intl/dcgettext.c: Remove use of INTDEF.
6169         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6170         * string/argz-stringify.c: Likewise.
6171         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6172         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6173         Declare hidden proto.
6174         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6175         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6176         Declare hidden proto.
6177         * include/stdio.h (__asprintf_internal): Don't declare.
6178         (__asprintf): Don't define as macro.  Declare hidden proto.
6179         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6180         (__fsetlocking): Declare hidden proto.
6181         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6182         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6183         hidden proto.
6184         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6185         (_IO_setlinebuf): Remove use of INTUSE.
6186         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6187         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6188         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6189         Remove declaration.
6190         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6191         (_IO_do_flush): Remove use of INTUSE.
6192         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6193         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6194         (_IO_adjust_column, _IO_least_wmarker)
6195         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6196         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6197         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6198         (_IO_default_doallocate, _IO_wdefault_doallocate)
6199         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6200         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6201         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6202         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6203         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6204         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6205         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6206         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6207         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6208         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6209         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6210         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6211         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6212         proto.
6213         (_IO_flush_all_internal, _IO_adjust_column_internal)
6214         (_IO_default_uflow_internal, _IO_default_finish_internal)
6215         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6216         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6217         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6218         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6219         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6220         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6221         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6222         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6223         (_IO_file_close_internal, _IO_file_close_it_internal)
6224         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6225         (_IO_file_init_internal, _IO_file_attach_internal)
6226         (_IO_file_fopen_internal, _IO_file_read_internal)
6227         (_IO_file_sync_internal, _IO_file_seek_internal)
6228         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6229         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6230         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6231         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6232         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6233         (_IO_list_all_internal, _IO_link_in_internal)
6234         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6235         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6236         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6237         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6238         (_IO_do_write_internal, _IO_padn_internal)
6239         (_IO_getline_info_internal, _IO_getline_internal)
6240         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6241         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6242         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6243         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6244         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6245         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6246         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6247         with libc_hidden_ver, remove use of INTUSE.
6248         * libio/genops.c: Likewise.
6249         * libio/freopen.c: Likewise.
6250         * libio/freopen64.c: Likewise.
6251         * libio/iofclose.c: Likewise.
6252         * libio/iofdopen.c: Likewise.
6253         * libio/iofflush.c: Likewise.
6254         * libio/iofflush_u.c: Likewise.
6255         * libio/iofgets.c: Likewise.
6256         * libio/iofgets_u.c: Likewise.
6257         * libio/iofopen.c: Likewise.
6258         * libio/iofopncook.c: Likewise.
6259         * libio/iofread.c: Likewise.
6260         * libio/iofread_u.c: Likewise.
6261         * libio/ioftell.c: Likewise.
6262         * libio/iofwrite.c: Likewise.
6263         * libio/iogetline.c: Likewise.
6264         * libio/iogets.c: Likewise.
6265         * libio/iogetwline.c: Likewise.
6266         * libio/iopadn.c: Likewise.
6267         * libio/iopopen.c: Likewise.
6268         * libio/ioseekoff.c: Likewise.
6269         * libio/ioseekpos.c: Likewise.
6270         * libio/iosetbuffer.c: Likewise.
6271         * libio/iosetvbuf.c: Likewise.
6272         * libio/ioungetc.c: Likewise.
6273         * libio/ioungetwc.c: Likewise.
6274         * libio/iovdprintf.c: Likewise.
6275         * libio/iovsprintf.c: Likewise.
6276         * libio/iovsscanf.c: Likewise.
6277         * libio/memstream.c: Likewise.
6278         * libio/obprintf.c: Likewise.
6279         * libio/oldfileops.c: Likewise.
6280         * libio/oldiofclose.c: Likewise.
6281         * libio/oldiofdopen.c: Likewise.
6282         * libio/oldiofopen.c: Likewise.
6283         * libio/oldiopopen.c: Likewise.
6284         * libio/oldstdfiles.c: Likewise.
6285         * libio/putc.c: Likewise.
6286         * libio/setbuf.c: Likewise.
6287         * libio/setlinebuf.c: Likewise.
6288         * libio/stdfiles.c: Likewise.
6289         * libio/strops.c: Likewise.
6290         * libio/vasprintf.c: Likewise.
6291         * libio/vscanf.c: Likewise.
6292         * libio/vsnprintf.c: Likewise.
6293         * libio/vswprintf.c: Likewise.
6294         * libio/wfiledoalloc.c: Likewise.
6295         * libio/wfileops.c: Likewise.
6296         * libio/wgenops.c: Likewise.
6297         * libio/wmemstream.c: Likewise.
6298         * libio/wstrops.c: Likewise.
6299         * libio/__fpurge.c: Likewise.
6300         * libio/__fsetlocking.c: Likewise.
6301         * assert/assert.c: Likewise.
6302         * debug/fgets_chk.c: Likewise.
6303         * debug/fgets_u_chk.c: Likewise.
6304         * debug/fread_chk.c: Likewise.
6305         * debug/fread_u_chk.c: Likewise.
6306         * debug/gets_chk.c: Likewise.
6307         * debug/obprintf_chk.c: Likewise.
6308         * debug/vasprintf_chk.c: Likewise.
6309         * debug/vdprintf_chk.c: Likewise.
6310         * debug/vsnprintf_chk.c: Likewise.
6311         * debug/vsprintf_chk.c: Likewise.
6312         * malloc/mtrace.c: Likewise.
6313         * misc/error.c: Likewise.
6314         * misc/syslog.c: Likewise.
6315         * stdio-common/asprintf.c: Likewise.
6316         * stdio-common/fxprintf.c: Likewise.
6317         * stdio-common/getw.c: Likewise.
6318         * stdio-common/isoc99_fscanf.c: Likewise.
6319         * stdio-common/isoc99_scanf.c: Likewise.
6320         * stdio-common/isoc99_vfscanf.c: Likewise.
6321         * stdio-common/isoc99_vscanf.c: Likewise.
6322         * stdio-common/isoc99_vsscanf.c: Likewise.
6323         * stdio-common/printf-prs.c: Likewise.
6324         * stdio-common/printf_fp.c: Likewise.
6325         * stdio-common/printf_fphex.c: Likewise.
6326         * stdio-common/printf_size.c: Likewise.
6327         * stdio-common/putw.c: Likewise.
6328         * stdio-common/scanf.c: Likewise.
6329         * stdio-common/sprintf.c: Likewise.
6330         * stdio-common/tmpfile.c: Likewise.
6331         * stdio-common/vfprintf.c: Likewise.
6332         * stdio-common/vfscanf.c: Likewise.
6333         * stdlib/strfmon_l.c: Likewise.
6334         * sunrpc/openchild.c: Likewise.
6335         * sunrpc/xdr_stdio.c: Likewise.
6336         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
6337         * sysdeps/mach/hurd/tmpfile.c: Likewise.
6338
6339 2012-05-24  Roland McGrath  <roland@hack.frob.com>
6340
6341         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6342
6343         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
6344         in the third column, to generate for the shared library an IFUNC
6345         that uses _dl_vdso_vsym.
6346         * Makerules (COMPILE.c, compile-stdin.c): New variables.
6347         * Makeconfig (object-suffixes-noshared): New variable.
6348
6349         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
6350         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
6351         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
6352         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
6353
6354         [BZ #14132]
6355         * include/sys/time.h (__gettimeofday): Remove macro.
6356         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
6357         * time/gettimeofday.c (__gettimeofday): Remove #undef.
6358         Remove INTDEF.
6359         (__gettimeofday): Add libc_hidden_def.
6360         (gettimeofday): Add libc_hidden_weak.
6361         * sysdeps/mach/gettimeofday.c: Likewise.
6362         * sysdeps/posix/gettimeofday.c: Likewise.
6363         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
6364         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
6365         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
6366         (__gettimeofday_internal): Remove strong_alias.
6367         (__gettimeofday): Add libc_hidden_def.
6368         (gettimeofday): Add libc_hidden_weak.
6369         * sysdeps/unix/syscalls.list (gettimeofday):
6370         Remove __gettimeofday_internal alias.
6371
6372 2012-05-24  Daniel Jacobowitz  <drow@false.org>
6373             H.J. Lu  <hongjiu.lu@intel.com>
6374
6375         [BZ #12495]
6376         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
6377         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
6378         (largebin_index_32_big): New.
6379         (largebin_index): Use it for 16-byte alignment.
6380         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
6381         correction with front_misalign.
6382
6383 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6384
6385         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
6386         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
6387         Likewise.
6388         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
6389         Likewise.
6390         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
6391         Likewise.
6392         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
6393         Likewise.
6394         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
6395         Likewise.
6396         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
6397         Likewise.
6398         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
6399         Likewise.
6400         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6401         Likewise.
6402         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
6403         Likewise.
6404         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
6405         Likewise.
6406         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
6407         Likewise.
6408         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
6409         Likewise.
6410
6411         * scripts/data/c++-types-x32-linux-gnu.data: New file.
6412         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
6413
6414 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6415
6416         [BZ #10846]
6417         [BZ #14036]
6418         * math/libm-test.inc (exp_test): Add test from bug 14036.
6419         (pow_test): Add test from bug 10846.
6420
6421         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
6422         and other flags.
6423         (special_function): Do not include flags in test name.
6424         (parse_args): Likewise.
6425         * sysdeps/i386/fpu/libm-test-ulps: Update.
6426         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6427         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6428         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6429         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6430
6431         * math/gen-libm-test.pl (%beautify): Add entries for underflow
6432         exceptions.
6433         * math/libm-test.inc ("Philosophy"): Update comment about
6434         exception testing.
6435         (UNDERFLOW_EXCEPTION): New macro.
6436         (UNDERFLOW_EXCEPTION_OK): Likewise.
6437         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
6438         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
6439         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
6440         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
6441         (INVALID_EXCEPTION_OK): Update value.
6442         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6443         (OVERFLOW_EXCEPTION_OK): Likewise.
6444         (IGNORE_ZERO_INF_SIGN): Likewise.
6445         (test_exceptions): Handle underflow exceptions.
6446         (acos_test): Update for underflow exception expectations.
6447         (cexp_test): Likewise.
6448         (clog_test): Likewise.
6449         (clog10_test): Likewise.
6450         (csqrt_test): Likewise.
6451         (ctan_test): Likewise.
6452         (ctanh_test): Likewise.
6453         (exp_test): Likewise.
6454         (exp10_test): Likewise.
6455         (exp2_test): Likewise.
6456         (expm1_test): Likewise.
6457         (fma_test): Likewise.
6458         (j0_test): Likewise.
6459         (jn_test): Likewise.
6460         (nexttoward_test): Likewise.
6461         (pow_test): Likewise.
6462         (scalbn_test): Likewise.
6463         (scalbln_test): Likewise.
6464         (tan_test): Likewise.
6465         (y1_test): Likewise.
6466         * sysdeps/i386/fpu/libm-test-ulps: Update.
6467         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6468
6469 2012-05-23  David S. Miller  <davem@davemloft.net>
6470
6471         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6472         (__libc_sigaction): Remove unused local variables.
6473
6474 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6475
6476         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
6477
6478 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6479
6480         mktime: avoid signed integer overflow
6481         * time/mktime.c (__mktime_internal): Do not mishandle the case
6482         where diff == INT_MIN.
6483
6484         mktime: simplify computation of average
6485         * time/mktime.c (ranged_convert): Use new time_t_avg function
6486         instead of rolling our own (probably-slower) code.
6487
6488         mktime: do not assume signed right shift propagates sign bit
6489         * time/mktime.c (isdst_differ): New static function.
6490         (__mktime_internal): No need to normalize tm_isdst now.
6491         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
6492         tm_isdst values.
6493
6494         mktime: merge another wrapv change from gnulib
6495         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
6496         from some compilers.
6497
6498         mktime: remove incorrect attempt at unusual arithmetics
6499         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
6500         The code didn't really work on such machines anyway.
6501         (TYPE_MINIMUM): Assume two's complement.
6502         (twos_complement_arithmetic): Verify that long_int and time_t
6503         are two's complement (or unsigned, in the latter case).
6504
6505         mktime: check signed shifts on long_int and time_t, too
6506         * time/mktime.c (SHR): Check that shifts work as desired
6507         on the types long_int and time_t too, as SHR is used on
6508         such types.
6509
6510         mktime: do not assume 'long' is wide enough
6511         * time/mktime.c (verify): Move decl up.
6512         (long_int): New type.
6513         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
6514         to remove assumption in the code that 'long' is wide enough to
6515         store year values.  This assumption is not true on x32 and on
6516         some non-glibc platforms.
6517
6518         mktime: merge wrapv change from gnulib
6519         * time/mktime.c (WRAPV): New macro.
6520         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
6521         (guess_time_tm, __mktime_internal): Do not assume that signed
6522         integer overflow wraps around; modern compilers generate code
6523         where this assumption is no longer valid.
6524
6525 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6526
6527         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6528         Replace "jmp L(pseudo_end)" with "ret".
6529         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6530         Likewise.
6531
6532 2012-05-23  Andreas Jaeger  <aj@suse.de>
6533
6534         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
6535         * sysdeps/unix/sysv/linux/poll.c: Remove file.
6536
6537 2012-05-23  Andreas Jaeger  <aj@suse.de>
6538             Maximilian Attems  <max@stro.at>
6539
6540         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
6541         New macros.
6542
6543 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6544
6545         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
6546         code so that pseudo_end is just ret and the stack pointer is
6547         correct also for static library in error case.
6548
6549 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
6550
6551         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
6552         move to syscalls.list.
6553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
6554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
6555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
6556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
6557
6558         * manual/install.texi (Running make install): Do not mention Linux
6559         kernel version for which pt_chown is not needed.
6560         (Linux): Do not mention problems with nscd with 2.0 kernels.
6561         * INSTALL: Regenerated.
6562
6563 2012-05-23  Andreas Jaeger  <aj@suse.de>
6564
6565         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
6566         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
6567         macro.
6568         * sysdeps/unix/sysv/linux/s390/bits/mman.h
6569         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6570         * sysdeps/unix/sysv/linux/sh/bits/mman.h
6571         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6572         * sysdeps/unix/sysv/linux/i386/bits/mman.h
6573         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6574         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
6575         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6576         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
6577         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6578         * sysdeps/unix/sysv/linux/bits/in.h
6579         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
6580
6581 2012-05-22  Roland McGrath  <roland@hack.frob.com>
6582
6583         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
6584         (PREPARE_VERSION): Just use assert instead, it will be elided
6585         under [NDEBUG] anyway.
6586
6587 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6588
6589         * sysdeps/unix/sysv/linux/Makefile: Include
6590         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
6591         (sysdep_routines): Remove sysctl.
6592         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
6593         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
6594         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
6595         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
6596         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
6597
6598 2012-05-22  Andreas Jaeger  <aj@suse.de>
6599
6600         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
6601         that pseudo_end is just ret and the stack pointer is correct also
6602         for static library in error case.
6603
6604 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
6605
6606         [BZ #14122]
6607         * nss/nsswitch.c (defconfig_entries): New variable.
6608         (__nss_database_lookup): Don't leak defconfig entries.
6609         (nss_parse_service_list): Don't leak on error paths.
6610         (free_database_entries): New function.
6611         (free_defconfig): New function.
6612         (free_mem): Move common code to free_database_entries.
6613
6614 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6615
6616         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
6617         Add arch_prctl.
6618         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6619
6620         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6621         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
6622         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
6623         New macro.
6624         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6625         (INTERNAL_SYSCALL_TYPES): Likewise.
6626         (LOAD_ARGS_TYPES_[1-6]): Likewise.
6627         (LOAD_REGS_TYPES_[1-6]): Likewise.
6628         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
6629         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
6630
6631 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6632
6633         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
6634         copysignl for GLIBC_2_0.
6635         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
6636         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
6637         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
6638         logbl for GLIBC_2_0.
6639         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
6640         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
6641
6642 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6643
6644         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
6645         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6646
6647         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6648         Use "neg %eax".
6649
6650         * time/mktime.c: Update copyright years.
6651
6652 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6653
6654         mktime: merge comment-quoting-style change from gnulib
6655         * time/mktime.c: Quote 'like this' in comments.
6656         The GNU coding standards suggest that we no longer quote `like this',
6657         as "`" and "'" are typically rendered asymmetrically nowadays.
6658         The typical gnulib style is to quote 'like this' when quoting
6659         code, and "like this" when quoting English.
6660
6661         * time/mktime.c (compile-command): Add "-I.".
6662
6663         mktime: merge mktime-internal.h change from gnulib
6664         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
6665
6666         mktime: merge time_r change from gnulib
6667         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
6668
6669         mktime: merge DEBUG change from gnulib
6670         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
6671         case system <time.h> has a #define.
6672
6673         mktime: merge <sys/types.h> change from gnulib
6674         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
6675         since <time.t> is now guaranteed to define time_t.
6676
6677         mktime: merge HAVE_CONFIG_H change from gnulib
6678         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6679
6680 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6681
6682         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6683         Use "neg %eax".
6684
6685         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6686         __rlim_t cast.
6687         (struct rusage): Use anonymous union to pad each field to
6688         __syscall_slong_t.
6689
6690 2012-05-21  David S. Miller  <davem@davemloft.net>
6691
6692         * Makefules (o-iterator): Remove .s cases.
6693         (compile-command.s): Delete.
6694         (COMPILE.s): Delete.
6695         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6696
6697 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6698
6699         * configure.in (libc_cv_predef_stack_protector): Only consider
6700         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6701         * configure: Regenerated.
6702
6703 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6704
6705         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6706         New macro.  Use R*LP on int and pointer.
6707         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6708         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6709         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6710         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6711
6712         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6713         [__WORDSIZE_TIME64_COMPAT32] instead of
6714         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6715         (struct utmp): Likewise.
6716         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6717         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6718         Renamed to ...
6719         (__WORDSIZE_TIME64_COMPAT32): This.
6720         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6721         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6722         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6723         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6724         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6725         (__WORDSIZE_TIME64_COMPAT32): New macro.
6726
6727 2012-05-21  Andreas Jaeger  <aj@suse.de>
6728
6729         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6730         only if [SHARED]. Add prototype for __wcschr_ia32.
6731
6732 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6733
6734         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6735         of %rbp unmolested in the jmp_buf while mangling the low bits.
6736         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6737         unmolested high bits of %rbp while demangling the low bits.
6738         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6739
6740 2012-05-21  Andreas Jaeger  <aj@suse.de>
6741
6742         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6743         * sunrpc/svc_simple.c: Use it for registerrpc.
6744         * sunrpc/xcrypt.c: Use it for passwd2des.
6745
6746         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6747
6748 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6749
6750         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6751         Don't define if [__SYSCALL_WORDSIZE != 32].
6752         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6753         New macro.
6754
6755 2012-05-21  Bruno Haible  <bruno@clisp.org>
6756             Andreas Jaeger  <aj@suse.de>
6757
6758         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6759         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6760         inptr and inend for must_buffer_ch.
6761         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6762         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6763         * stdio-common/Makefile (tests): Remove bug15.
6764         (bug15-ENV): Remove macro.
6765         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6766         anymore.
6767
6768 2012-05-19  Andreas Jaeger  <aj@suse.de>
6769             Roland McGrath  <roland@hack.frob.com>
6770
6771         * manual/contrib.texi: Completely rewritten. It contains now an
6772         alphabetical list of contributors and their contributions.
6773
6774 2012-05-21  Richard Henderson  <rth@twiddle.net>
6775
6776         * misc/getauxval.c (__getauxval): Use unsigned long int.
6777         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6778         (getauxval): Use unsigned long int.
6779
6780 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6781
6782         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6783
6784 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6785
6786         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6787         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6788         __alignof__ (long double).
6789
6790 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6791
6792         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6793
6794 2012-05-20  Richard Henderson  <rth@twiddle.net>
6795
6796         * misc/getauxval.c: New file.
6797         * misc/sys/auxv.h: New file.
6798         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6799         (routines): Add getauxval.
6800         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6801         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6802         * elf/dl-sysdep.c (_dl_auxv): Remove.
6803         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6804         * elf/dl-support.c (_dl_auxv): New variable.
6805         (_dl_aux_init): Initialize it.
6806         * manual/startup.texi (Auxiliary Vector): New node.
6807         * sysdeps/generic/bits/hwcap.h: New file.
6808         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6809         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6810         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6811         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6812         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6813         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6815         Update.
6816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6817         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6818         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6819         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6820         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6821         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6822         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6823         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6824
6825 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6826
6827         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6828
6829 2012-05-19  David S. Miller  <davem@davemloft.net>
6830
6831         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6832
6833 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6834
6835         [BZ #14123]
6836         * math/s_ccosh.c: Include <float.h>
6837         (__ccosh): Avoid internal overflow calculating sinh and cosh
6838         values before multiplying by sin and cos values.
6839         * math/s_ccoshf.c: Likewise.
6840         * math/s_ccoshl.c: Likewise.
6841         * math/s_csin.c: Likewise.
6842         * math/s_csinf.c: Likewise.
6843         * math/s_csinl.c: Likewise.
6844         * math/s_csinh.c: Likewise.
6845         * math/s_csinhf.c: Likewise.
6846         * math/s_csinhl.c: Likewise.
6847         * math/libm-test.inc (ccos_test): Add more tests.
6848         (ccosh_test): Likewise.
6849         (csin_test): Likewise.
6850         (csinh_test): Likewise.
6851         * sysdeps/i386/fpu/libm-test-ulps: Update.
6852         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6853
6854 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6855
6856         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6857         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6858
6859         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6860
6861 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6862
6863         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6864         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6865         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6866         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6867         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6868         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6869         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6870         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6871         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6872         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6873         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6874         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6875         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6876         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6877         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6878         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6879         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6880         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6881         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6882         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6883         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6884         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6885         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6886         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6887         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6888         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6889         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6890         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6891         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6892         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6893         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6894
6895 2012-05-18  Andreas Jaeger  <aj@suse.de>
6896
6897         * csu/.gitignore: Delete.
6898
6899 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6900
6901         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6902         (timex): Use __syscall_slong_t.
6903
6904 2012-05-18  Andreas Jaeger  <aj@suse.de>
6905             Carlos O'Donell  <carlos_odonell@mentor.com>
6906
6907         * manual/install.texi (Configuring and compiling): Update
6908         description about files modified in the source directory.
6909         * INSTALL: Regenerated.
6910
6911 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6912
6913         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6914         value.  Use "or" to set return value to -1.
6915         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6916         negate return value.
6917
6918 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6919
6920         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6921         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6922         failure if the compiler has Graphite support disabled.
6923         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6924         Likewise.
6925         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6926         CFLAGS-memmove.c): Likewise.
6927         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6928         Likewise.
6929
6930 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6931
6932         * sysdeps/x86_64/x32/_itoa.h: New file.
6933
6934         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6935         getdents system call only if kernel and user dirents have the
6936         same d_ino and d_off.
6937
6938         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6939         LLONG_MAX != LONG_MAX.
6940         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6941         (_fitoa_word): Likewise.
6942
6943         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6944         years.
6945         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6946         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6947         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6948
6949         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6950         include <bits/wordsize.h>.  Check __x86_64__ instead of
6951         __WORDSIZE.
6952         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6953         if __x86_64__ is defined.  Use anonymous union on fpstate.
6954
6955         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6956         anonymous union.
6957
6958 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6959
6960         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6961         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6962         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6963         Refer to _rtld_local_ro instead of _rtld_global_ro.
6964         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6965         Likewise.
6966         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6967         Likewise.
6968         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6969         Likewise.
6970         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6971         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6972         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6973
6974         * sysdeps/powerpc/powerpc32/dl-machine.c
6975         (__elf_machine_runtime_setup) [PROF]: Don't reference
6976         _dl_prof_resolve.
6977
6978 2012-05-18  Andreas Jaeger  <aj@suse.de>
6979
6980         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6981         function only available for GCCs before 3.4 since GCC 3.4
6982         introduced a builtin.
6983         (lrint): Likewise.
6984         (llrintf): Likewise.
6985         (llrint): Likewise.
6986         (fmaxf): Likewise.
6987         (fmax): Likewise.
6988         (fminf): Likewise.
6989         (fmin): Likewise.
6990         (rint): Likewise.
6991         (rintf): Likewise.
6992         (nearbyint): Likewise.
6993         (nearbyintf): Likewise.
6994         (ceil): Likewise.
6995         (ceilf): Likewise.
6996         (floor): Likewise.
6997         (floorf): Likewise.
6998
6999 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7000
7001         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7002         on both fields and cast pointer to __syscall_ulong_t.
7003
7004         * bits/types.h (__fsword_t): New type.
7005         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7006         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7007         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7008         (__FSWORD_T_TYPE): Likewise.
7009         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7010         (__FSWORD_T_TYPE): Likewise.
7011         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7012         (__FSWORD_T_TYPE): Likewise.
7013         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7014         (__FSWORD_T_TYPE): Likewise.
7015         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7016         __SWORD_TYPE with __fsword_t.
7017         (statfs64): Likewise.
7018
7019 2012-05-17  David S. Miller  <davem@davemloft.net>
7020
7021         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7022
7023 2012-05-17  Andreas Jaeger  <aj@suse.de>
7024
7025         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7026         warning.
7027
7028 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7029
7030         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7031
7032 2012-05-17  Andreas Jaeger  <aj@suse.de>
7033
7034         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7035         when it is used.
7036
7037 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7038
7039         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7040
7041 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7042
7043         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7044         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7045
7046 2012-05-17  Andreas Jaeger  <aj@suse.de>
7047             Carlos O'Donell  <carlos_odonell@mentor.com>
7048
7049         [BZ #14059]
7050         * sysdeps/x86_64/multiarch/init-arch.h
7051         (bit_YMM_Usable): Rename to...
7052         (bit_AVX_Usable): ... this.
7053         (bit_FMA4_Usable): New macro.
7054         (bit_XMM_state): New macro.
7055         (bit_YMM_state): New macro.
7056         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7057         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7058         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7059         (CPUID_OSXSAVE): New macro.
7060         (CPUID_AVX): New macro.
7061         (CPUID_FMA4): New macro.
7062         (index_YMM_Usable): Rename to...
7063         (index_AVX_Usable): ... this.
7064         (HAS_AVX): Use HAS_ARCH_FEATURE.
7065         (HAS_FMA4): Likewise.
7066         (HAS_YMM_USABLE): Remove.
7067         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7068         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7069         are present.
7070         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7071         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7072         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7073         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7074         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7075
7076 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7077
7078         * math/libm-test.c: Support platforms without multiple rounding modes.
7079         * math/bug-nextafter.c: Support platforms without FP exceptions.
7080         * math/bug-nexttoward.c: Likewise.
7081         * math/test-fenv.c: Likewise.
7082         * math/test-misc.c: Likewise.
7083         * stdlib/bug-getcontext.c: Likewise.
7084
7085 2012-05-17  Andreas Jaeger  <aj@suse.de>
7086
7087         * manual/examples/search.c (critter_cmp): Change signature to
7088         avoid warnings.
7089         * manual/string.texi (Collation Functions): Likewise.
7090
7091 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7092
7093         * bits/types.h: Fold copyright years.
7094         * bits/typesizes.h: Likewise.
7095         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7096         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7097         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7098         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7099         * time/time.h: Likewise.
7100
7101 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7102
7103         [BZ #208]
7104         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7105         in instead of returning them.  Return void.
7106         (__libc_mallinfo): Accumulate over all arenas.
7107         (__malloc_stats): Adjust for change in int_mallinfo interface.
7108
7109 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7110
7111         [BZ #10375]
7112         * configure.in (NM): Add AC_CHECK_TOOL for it.
7113         (libc_extra_cflags): New substituted variable.
7114         Check for -fstack-protector being used implicitly.
7115         * configure: Regenerated.
7116         * config.make.in (config-extra-cflags): New variable,
7117         gets @libc_extra_cflags@.
7118         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7119
7120         [BZ #10375]
7121         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7122         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7123         * configure: Regenerated.
7124         * config.make.in (CPPUNDEFS): New substituted variable.
7125         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7126         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7127         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7128
7129 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7130
7131         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7132         (mq_attr): Use __syscall_slong_t.
7133
7134 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7135
7136         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7137         Check __x86_64__ instead of __WORDSIZE.
7138         (_STAT_VER_LINUX): Likewise.
7139         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7140         __syscall_ulong_t and __syscall_slong_t.
7141         (stat64): Likewise.
7142
7143 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7144
7145         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7146
7147 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7148
7149         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7150
7151 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7152
7153         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7154         __syscall_ulong_t.
7155
7156         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7157         include <bits/wordsize.h>.  Check __x86_64__ instead of
7158         __WORDSIZE.
7159         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7160         defined.
7161         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7162
7163         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7164         include <bits/wordsize.h>.  Check __x86_64__ instead of
7165         __WORDSIZE.
7166         (user_regs_struct): Use "__extension__ unsigned long long"
7167         instead of "unsigned long" if __x86_64__ is defined.
7168         (user): Likewise.  Pad after pointer field if __ILP32__ is
7169         defined.
7170
7171 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7172
7173         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7174         versions 5 to 9.
7175         * configure: Regenerated.
7176         * manual/install.texi (texinfo): Increase version requirement to
7177         4.5 or later.
7178         * INSTALL: Regenerated.
7179
7180         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7181
7182 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7183
7184         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7185
7186         * sysdeps/x86_64/x32/ffs.c: New file.
7187
7188         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7189         __syscall_ulong_t.
7190         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7191         defined.  Use __syscall_ulong_t.
7192         (shminfo): Use __syscall_ulong_t.
7193         (shm_info): Likewise.
7194
7195         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7196         __syscall_ulong_t.
7197
7198         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7199         <bits/wordsize.h>.
7200         (msgqnum_t): Use __syscall_ulong_t.
7201         (msglen_t): Likewise.
7202         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7203         __syscall_ulong_t.
7204
7205         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7206         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7207
7208         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7209
7210         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7211         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7212
7213         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7214         __syscall_slong_t.
7215
7216         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7217         include <bits/wordsize.h>.  Check __x86_64__ instead of
7218         __WORDSIZE.
7219
7220         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7221         "unsigned long long int" if __x86_64__ is defined.
7222         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7223
7224         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7225         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7226         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7227
7228         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7229         <stdint.h>.
7230         (GET_PC): Cast to uintptr_t first.
7231         (GET_FRAME): Likewise.
7232         (GET_STACK): Likewise.
7233
7234         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7235         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7236         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7237         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7238         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7239         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7240         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7241         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7242         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7243         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7244         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7245         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7246         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7247         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7248         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7249         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7250         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7251         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7252         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7253         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7254         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7255         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7256         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7257         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7258         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7259         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7260         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7261         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7262         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7263
7264 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7265
7266         * Makerules (+depfiles): Also collect depfiles from .oS in
7267         $(extra-objs).
7268         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7269         .oS, $(libnldbl-routines)).
7270
7271         * Makerules (native-compile-mkdep-flags): Define.
7272         * sunrpc/Makefile (extra-objs): Add $(addprefix
7273         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7274         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7275         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7276         calling $(make-target-directory).
7277
7278 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7279
7280         * bits/types.h (__snseconds_t): Removed.
7281         * time/time.h (struct timespec): Replace __snseconds_t with
7282         __syscall_slong_t.
7283         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7284         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7285         Likewise.
7286         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7287         (__SNSECONDS_T_TYPE): Likewise.
7288         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7289         (__SNSECONDS_T_TYPE): Likewise.
7290         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7291         (__SNSECONDS_T_TYPE): Likewise.
7292
7293 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7294
7295         * sysdeps/mach/hurd/bits/typesizes.h
7296         (__SYSCALL_SLONG_TYPE): New macro.
7297         (__SYSCALL_ULONG_TYPE): Likewise.
7298
7299 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7300
7301         * bits/types.h (__syscall_slong_t): New type.
7302         (__syscall_ulong_t): Likewise.
7303
7304         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
7305         (__SYSCALL_ULONG_TYPE): Likewise.
7306         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7307         (__SYSCALL_SLONG_TYPE): Likewise.
7308         (__SYSCALL_ULONG_TYPE): Likewise.
7309         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7310         (__SYSCALL_SLONG_TYPE): Likewise.
7311         (__SYSCALL_ULONG_TYPE): Likewise.
7312         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7313         (__SYSCALL_SLONG_TYPE): Likewise.
7314         (__SYSCALL_ULONG_TYPE): Likewise.
7315
7316 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7317
7318         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
7319         Add sigaltstack-offsets.sym.
7320         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
7321         <sigaltstack-offsets.h>.
7322         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
7323         longjmp_msg pointer.
7324         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
7325         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
7326         signal stack.
7327         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
7328
7329 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7330
7331         * elf/stackguard-macros.h: Remove file.
7332         * sysdeps/generic/stackguard-macros.h: New file.
7333         * sysdeps/i386/stackguard-macros.h: Likewise.
7334         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
7335         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
7336         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7337         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7338         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
7339         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
7340         * sysdeps/x86_64/stackguard-macros.h: Likewise.
7341         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
7342         <elf/stackguard-macros.h>.
7343
7344         [BZ #14109]
7345         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
7346         __aligned__ in attribute.
7347         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
7348         (gregset_t): Likewise.
7349
7350 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7351
7352         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
7353         * sysdeps/x86_64/64/Implies-after: Here.  New file.
7354         * sysdeps/x86_64/x32/Implies-after: New file.
7355
7356 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7357
7358         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
7359         and access return value for _dl_profile_fixup.  Use R10_LP to
7360         load frame size.
7361
7362 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7363
7364         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
7365
7366 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7367
7368         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
7369         * sysdeps/x86_64/x32/sysdep.h: New file.
7370
7371 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7372
7373         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
7374         * sysdeps/x86_64/setjmp.S: Likewise.
7375
7376 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7377
7378         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
7379         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
7380         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
7381         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
7382         remove unused global constant.
7383
7384 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
7385
7386         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
7387         include of <not-cancel.h>.
7388
7389 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7390
7391         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
7392
7393 2012-05-15  Jeff Law  <law@redhat.com>
7394             Andreas Jaeger  <aj@suse.de>
7395
7396         [BZ #13594]
7397         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
7398         out from...
7399         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
7400         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
7401         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
7402         code changing __hst_map_handle.map.
7403
7404 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7405
7406         * configure.in (sysnames): Look for Implies-before and Implies-after
7407         files.
7408         * configure: Regenerated.
7409
7410 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7411
7412         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
7413         8-byte data alignment with LP_SIZE alignment.
7414
7415 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7416
7417         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
7418         into R10_LP.
7419
7420 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7421
7422         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
7423
7424 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7425
7426         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
7427         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
7428         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
7429         Likewise.
7430         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
7431
7432 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7433
7434         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
7435         (stackinfo_sub_sp): Likewise.
7436
7437 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7438
7439         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
7440         RAX_LP.
7441
7442 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7443
7444         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
7445         into R*_LP.
7446
7447 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7448
7449         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
7450         sizes into R*_LP.
7451
7452 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7453
7454         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
7455
7456 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7457
7458         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
7459         into R11_LP and load __x86_64_shared_cache_size_half into
7460         R8_LP.
7461
7462 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7463
7464         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
7465         R8_LP.
7466
7467 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7468
7469         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
7470         logb for POWER7.
7471         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
7472         logbf for POWER7.
7473         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
7474         logbl for POWER7.
7475         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
7476         powerpc32/power7/fpu/s_logb.c via #include.
7477         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
7478         powerpc32/power7/fpu/s_logbf.c via #include.
7479         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
7480         powerpc32/power7/fpu/s_logbl.c via #include.
7481
7482 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7483
7484         * README.libm: Remove file.
7485
7486 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7487
7488         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
7489         count for x32.  Use R*_LP and omit operand-size suffix.
7490
7491 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7492
7493         * shlib-versions: Move x86_64-.*-linux.* entries to ...
7494         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
7495         * sysdeps/x86_64/x32/shlib-versions: New file.
7496
7497 2012-05-14  Roland McGrath  <roland@hack.frob.com>
7498
7499         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
7500         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
7501         Use _dl_fatal_printf instead.
7502
7503 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7504
7505         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
7506         set if not set by the user.  Do not allow for being unset.
7507         * sysdeps/unix/sysv/linux/configure: Regenerated.
7508
7509 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7510
7511         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
7512         the `q' suffix from lea and replace .quad with ASM_ADDR.
7513
7514 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7515
7516         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
7517         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
7518         instead of $17.
7519         (PTR_DEMANGLE): Likewise.
7520
7521 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7522
7523         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
7524         (LP_OP): Likewise.
7525         (ASM_ADDR): Likewise.
7526         (RAX_LP): Likewise.
7527         (RBP_LP): Likewise.
7528         (RBX_LP): Likewise.
7529         (RCX_LP): Likewise.
7530         (RDI_LP): Likewise.
7531         (RSI_LP): Likewise.
7532         (RSP_LP): Likewise.
7533         (R8_LP): Likewise.
7534         (R9_LP): Likewise.
7535         (R10_LP): Likewise.
7536         (R10_LP): Likewise.
7537         (R11_LP): Likewise.
7538         (R12_LP): Likewise.
7539         (R13_LP): Likewise.
7540         (R14_LP): Likewise.
7541         (R15_LP): Likewise.
7542
7543 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7544
7545         * sysdeps/x86_64/x32/dl-machine.h: New file.
7546
7547 2012-05-14  Andreas Jaeger  <aj@suse.de>
7548
7549         * manual/Makefile (subdir): Remove export of subdir.
7550         (all): Remove target.
7551         (.PHONY): Remove all from list.
7552         (mkinstalldirs): Remove.
7553         (.PHONY): Remove installdirs from list.
7554         ($(inst_infodir)/libc.info): Use make-target-directory.
7555         (installdirs): Remove.
7556         (subdir_%): Remove.
7557         (glibc-targets): Remove.
7558         (lib): Remove.
7559         (stubs): Remove.
7560         ($(objpfx)stubs ../po/manual.pot): Remove.
7561         ($(objpfx)stamp%): Remove.
7562         (make-target-directory): Remove.
7563         (subdir_install): Remove.
7564         (routines): Remove.
7565         (aux): Remove.
7566         (sources): Remove.
7567         (objects): Remove.
7568         (headers): Remove.
7569
7570         [BZ #13750]
7571         * manual/.gitignore: Remove, it's not needed anymore.
7572         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
7573         all files in it.
7574         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
7575         directory.
7576         (texis): Renamed to $(objpfx)texis.
7577         (texis-path): New, contains path to generated files.
7578         (chapters.%): Use texis-path for complete path, add extra argument
7579         libc-texinfo.sh.
7580         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
7581         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
7582         (summary,texi, stamp-summary): Use complete path of
7583         files. Generate files in build dir.
7584         (dir-add.texi): Build in build dir.
7585         (libm-err.texi,stamp-libm-err): Likewise.
7586         (version.texi, stamp-version): Likewise.
7587         (.%c.texi): Likewise.
7588         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
7589         (mostlyclean): Remove target.
7590         (realclean): Remove target.
7591         (generated): Add new variable with contents from mostlyclean and
7592         realclean, remove entries duplicated in common-mostlyclean, add
7593         stamp-libm-err and stamp-version.
7594         (generated-dirs): Add libc directory.
7595         ($(inst_infodir)/libc.info): Install files from build dir.
7596
7597         * manual/install.texi (Configuring and compiling): Adjust since
7598         the info files are not part of the tar ball anymore.
7599
7600 2012-05-14  Andreas Jaeger  <aj@suse.de>
7601
7602         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
7603         variable.
7604
7605 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7606
7607         [BZ #13717]
7608         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7609         to 2.2.0 where earlier.
7610         * sysdeps/unix/sysv/linux/configure: Regenerated.
7611         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
7612         Remove conditional code.
7613         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
7614         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
7615         Remove conditional code.
7616         [!__NR_lchown]: Likewise.
7617         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7618         [__NR_lchown]: Likewise.
7619         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
7620         comment referencing __ASSUME_LCHOWN_SYSCALL.
7621         * sysdeps/unix/sysv/linux/i386/sigaction.c
7622         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7623         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7624         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
7625         Remove conditional code.
7626         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
7627         (__protocol_available): Remove #if 0 code.
7628         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
7629         conditional code.
7630         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
7631         * sysdeps/unix/sysv/linux/kernel-features.h
7632         (__ASSUME_GETCWD_SYSCALL): Don't define.
7633         (__ASSUME_REALTIME_SIGNALS): Likewise.
7634         (__ASSUME_PREAD_SYSCALL): Likewise.
7635         (__ASSUME_PWRITE_SYSCALL): Likewise.
7636         (__ASSUME_POLL_SYSCALL): Likewise.
7637         (__ASSUME_LCHOWN_SYSCALL): Likewise.
7638         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
7639         non-SPARC.
7640         (__ASSUME_SIOCGIFNAME): Don't define.
7641         (__ASSUME_MSG_NOSIGNAL): Likewise.
7642         (__ASSUME_SENDFILE): Define unconditionally.
7643         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
7644         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
7645         conditional code.
7646         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
7647         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
7648         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7649         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7650         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
7651         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7652         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
7654         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7655         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
7657         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7658         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
7660         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7661         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
7663         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7664         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
7666         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7667         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
7669         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7670         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
7672         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7673         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
7675         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7676         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7677         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7678         Remove conditional code.
7679         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7680         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7681         Remove conditional code.
7682         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7683         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7684         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7685         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7686         Remove conditional code.
7687         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7688         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7689         Remove conditional code.
7690         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7691         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7692         Remove conditional code.
7693         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7694         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7695         Remove conditional code.
7696         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7697         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7698         Remove conditional code.
7699         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7700         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7701         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7702         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7703         * sysdeps/unix/sysv/linux/sigaction.c
7704         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7705         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7706         * sysdeps/unix/sysv/linux/sigpending.c
7707         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7708         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7709         * sysdeps/unix/sysv/linux/sigprocmask.c
7710         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7711         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7712         * sysdeps/unix/sysv/linux/sigsuspend.c
7713         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7714         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7715         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7716         (__libc_missing_rt_sigs): Remove.
7717         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7718         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7719         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7720         Remove conditional code.
7721         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7722         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7723         return 1.
7724         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7725         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7726         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7727         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7728
7729 2012-05-14  Andreas Jaeger  <aj@suse.de>
7730
7731         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7732         it's not used in glibc.
7733         (__coshm1): Likewise.
7734         (__acosh1p): Likewise.
7735         (__sgn): Likewise.
7736
7737         * manual/string.texi (Copying and Concatenation): Add missing
7738         variable in concat example.
7739         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7740
7741 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7742
7743         [BZ #14103]
7744         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7745         __builtin_clzl with __builtin_clzll.
7746
7747 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7748
7749         [BZ #14104]
7750         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7751         libc_freeres_ptr.
7752
7753 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7754
7755         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7756         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7757         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7758         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7759
7760 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7761
7762         * NEWS: Update ia64 info.
7763
7764 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7765
7766         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7767         used as bcopy.
7768
7769 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7770
7771         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7772         * sysdeps/unix/syscalls.list (dup3): Likewise.
7773         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7774         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7775
7776 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7777
7778         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7779         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7780
7781 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7782
7783         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7784         thread pointer.
7785         (TLS_IE): Use mov/add instead of movq/addq to load thread
7786         pointer.
7787         (TLS_GD_PREFIX): New.
7788         (TLS_GD): Use it.
7789
7790 2012-05-11  David S. Miller  <davem@davemloft.net>
7791
7792         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7793         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7794         (_FPU_SETCW): Likewise.
7795
7796 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7797
7798         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7799         is 32-byte aligned.
7800
7801 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7802
7803         [BZ #11837]
7804         * iconvdata/gb18030.c: Update tables.
7805         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7806         characters specially.
7807         (BODY for TO_LOOP): Add encoding of missing ranges.
7808
7809 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7810
7811         [BZ #13673]
7812         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7813         * sysdeps/mach/hurd/dup3.c: Likewise.
7814         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7815         * sysdeps/powerpc/memmove.c:: Likewise.
7816
7817 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7818
7819         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7820         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7821
7822 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7823
7824         * elf/elf.h (R_X86_64_RELATIVE64): New.
7825         (R_X86_64_NUM): Updated.
7826         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7827         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7828         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7829         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7830         tst-quad1pie tst-quad2pie
7831         (modules-names): Add tst-quadmod1 tst-quadmod2.
7832         ($(objpfx)tst-quad1): New dependency.
7833         ($(objpfx)tst-quad2): Likewise.
7834         ($(objpfx)tst-quad1pie): Likewise.
7835         ($(objpfx)tst-quad2pie): Likewise.
7836         * sysdeps/x86_64/tst-quad1.c: New file.
7837         * sysdeps/x86_64/tst-quad1pie.c: New file.
7838         * sysdeps/x86_64/tst-quad2.c: Likewise.
7839         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7840         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7841         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7842         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7843         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7844
7845 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7846
7847         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7848         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7849         * streams/stropts.h (t_scalar_t): Define type.
7850
7851         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7852         (_PATH_PRESERVE): Set to "/var/lib".
7853         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7854
7855         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7856         instead of int.
7857
7858         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7859         if __dir_mkfile succeeded.
7860
7861         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7862         checking for _hurd_dtablesize.  Unlock it right after having
7863         finished _hurd_dtable allocation.
7864
7865 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7866
7867         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7868         * sysdeps/mach/hurd/configure: Regenerated.
7869         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7870         special-casing to...
7871         * sysdeps/gnu/configure.in: ... this new file.
7872         * sysdeps/unix/sysv/linux/configure: Regenerated.
7873         * sysdeps/gnu/configure: New generated file.
7874
7875         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7876         for Linux: use nsec instead of usec, as well as:
7877         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7878         members of type struct timespec.
7879         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7880         New macros.
7881         (struct stat64): Likewise.
7882         (_STATBUF_ST_NSEC): New macro.
7883         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7884
7885         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7886         __strtoul_internal rather than strtoul.
7887
7888 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7889
7890         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7891         and reject them.
7892
7893 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7894
7895         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7896         which preserves existing values.
7897         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7898
7899 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7900
7901         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7902         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7903         greater than FD_SETSIZE.
7904
7905 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7906
7907         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7908         allocated, call __vm_protect to finish enabling the existing space, and
7909         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7910         allocate the remainder.
7911
7912 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7913
7914         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7915         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7916
7917 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7918
7919         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7920         sysdeps/mach/hurd/readlink.c.
7921
7922         * posix/tst-sysconf.c (posix_options): Only use
7923         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7924         _POSIX_SYNCHRONIZED_IO when they are defined
7925         * sysdeps/mach/hurd/bits/posix_opt.h:
7926         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7927         (_XOPEN_REALTIME): Undefine macro.
7928         (_XOPEN_REALTIME_THREADS): Undefine macro.
7929         (_XOPEN_SHM): Undefine macro.
7930         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7931         macro to -1.
7932         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7933         macro to -1.
7934         (_POSIX_ASYNC_IO): Undefine macro.
7935         (_POSIX_PRIORITIZED_IO): Undefine macro.
7936         (_POSIX_SPIN_LOCKS): Define macro to -1.
7937
7938         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7939         SA_NODEFER, SA_RESETHAND.
7940         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7941         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7942         F_DUPFD_CLOEXEC.
7943
7944 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7945
7946         * elf/Makefile (pldd-modules): Define unconditionally.
7947
7948 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7949
7950         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7951
7952 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7953
7954         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7955         Return ENOENT when name is empty.
7956         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7957
7958 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7959
7960         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7961
7962         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7963
7964 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7965
7966         Fix mlock in all cases except non-readable pages.
7967         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7968         instead of VM_PROT_ALL as parameter to __vm_wire function.
7969
7970         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7971         (__mkdir): When path is `/', just fail with EEXIST.
7972         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7973
7974 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7975
7976         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7977         <sys/uio.h> (for writev).
7978         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7979         and <sys/param.h> (for MIN).
7980
7981 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7982
7983         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7984         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7985         if interrupted.
7986
7987 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7988
7989         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7990         Depend on against $(link-rpcuserlibs).
7991
7992 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7993
7994         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7995         (__libc_stack_end): Do not use attribute_relro.
7996         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7997         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7998         to libthread-provided value.
7999         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8000         attribute_relro.
8001
8002 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8003
8004         [BZ #3748]
8005         * bits/libc-lock.h (__libc_once_get): New macro.
8006         * sysdeps/mach/bits/libc-lock.h: Likewise.
8007         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8008         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8009         instead of using implementation details.
8010
8011         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8012         * libio/freopen.c: Likewise.
8013         * libio/freopen64.c: Likewise.
8014         * misc/syslog.c: Likewise.
8015         * nscd/connections.c: Likewise.
8016         * nscd/netgroupcache.c: Likewise.
8017         * sysdeps/posix/getcwd.c: Likewise.
8018
8019 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8020
8021         * math/w_ilogbf.c: Add #include <limits.h>.
8022
8023 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8024
8025         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8026         path instead of returning without unlocking.
8027
8028         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8029         immediate-write ioctls.
8030         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8031
8032 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8033
8034         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8035         __builtin_frame_address instead of making assumptions about the
8036         location of the return address relative to DATA.  Force early load of
8037         the return address.
8038         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8039         __builtin_frame_address.
8040
8041         dup3 for GNU Hurd.
8042         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8043         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8044         implement dup3 and do some further code clean-ups.
8045         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8046         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8047
8048 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8049
8050         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8051
8052         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8053         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8054         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8055         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8056         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8057         d->port.lock.
8058
8059         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8060         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8061         when handler == SIG_ERR, not when handler != SIG_ERR.
8062
8063 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8064
8065         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8066         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8067         definitions.
8068
8069         accept4 for GNU Hurd.
8070         * include/sys/socket.h (__libc_accept4): New prototype.
8071         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8072         to implement __libc_accept4.
8073         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8074         __libc_accept4.
8075         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8076
8077         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8078         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8079         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8080         signal-defines.sym.
8081
8082 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8083
8084         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8085
8086 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8087
8088         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8089         assertion on O_CLOEXEC flag.
8090         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8091         * hurd/intern-fd.c: Likewise.
8092         * hurd/port2fd.c: Likewise.
8093
8094 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8095
8096         [BZ #3906]
8097         * bits/in.h (IPV6_PKTINFO): Define new macro.
8098         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8099
8100 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8101
8102         [BZ #13954]
8103         [BZ #13955]
8104         [BZ #13956]
8105         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8106         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8107         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8108         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8109         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8110         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8111         * math/libm-test.inc (logb_test) : Additional logb tests.
8112
8113 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8114             Andreas Jaeger  <aj@suse.de>
8115
8116         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8117         * configure: Regenerated.
8118         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8119         * config.make.in (link-obsolete-rpc): New substituted variable.
8120         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8121         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8122         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8123         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8124         so that libc.a contains the symbols.
8125         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8126         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8127         * sunrpc/auth_none.c: Likewise.
8128         * sunrpc/auth_unix.c: Likewise.
8129         * sunrpc/authdes_prot.c: Likewise.
8130         * sunrpc/authuxprot.c: Likewise.
8131         * sunrpc/clnt_gen.c: Likewise.
8132         * sunrpc/clnt_perr.c: Likewise.
8133         * sunrpc/clnt_raw.c: Likewise.
8134         * sunrpc/clnt_simp.c: Likewise.
8135         * sunrpc/clnt_tcp.c: Likewise.
8136         * sunrpc/clnt_udp.c: Likewise.
8137         * sunrpc/clnt_unix.c: Likewise.
8138         * sunrpc/des_crypt.c: Likewise.
8139         * sunrpc/des_soft.c: Likewise.
8140         * sunrpc/get_myaddr.c: Likewise.
8141         * sunrpc/key_call.c: Likewise.
8142         * sunrpc/key_prot.c: Likewise.
8143         * sunrpc/netname.c: Likewise.
8144         * sunrpc/pm_getmaps.c: Likewise.
8145         * sunrpc/pm_getport.c: Likewise.
8146         * sunrpc/pmap_clnt.c: Likewise.
8147         * sunrpc/pmap_prot.c: Likewise.
8148         * sunrpc/pmap_prot2.c: Likewise.
8149         * sunrpc/pmap_rmt.c: Likewise.
8150         * sunrpc/publickey.c: Likewise.
8151         * sunrpc/rpc_cmsg.c: Likewise.
8152         * sunrpc/rpc_common.c: Likewise.
8153         * sunrpc/rpc_dtable.c: Likewise.
8154         * sunrpc/rpc_prot.c: Likewise.
8155         * sunrpc/rpc_thread.c: Likewise.
8156         * sunrpc/rtime.c: Likewise.
8157         * sunrpc/svc.c: Likewise.
8158         * sunrpc/svc_auth.c: Likewise.
8159         * sunrpc/svc_raw.c: Likewise.
8160         * sunrpc/svc_run.c: Likewise.
8161         * sunrpc/svc_tcp.c: Likewise.
8162         * sunrpc/svc_udp.c: Likewise.
8163         * sunrpc/svc_unix.c: Likewise.
8164         * sunrpc/svcauth_des.c: Likewise.
8165         * sunrpc/xcrypt.c: Likewise.
8166         * sunrpc/xdr.c: Likewise.
8167         * sunrpc/xdr_array.c: Likewise.
8168         * sunrpc/xdr_float.c: Likewise.
8169         * sunrpc/xdr_intXX_t.c: Likewise.
8170         * sunrpc/xdr_mem.c: Likewise.
8171         * sunrpc/xdr_rec.c: Likewise.
8172         * sunrpc/xdr_ref.c: Likewise.
8173         * sunrpc/xdr_sizeof.c: Likewise.
8174         * sunrpc/xdr_stdio.c: Likewise.
8175
8176 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8177
8178         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8179         change.  Update copyright years.
8180
8181 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8182
8183         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8184
8185 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8186             Joseph Myers  <joseph@codesourcery.com>
8187             Paul Pluzhnikov  <ppluzhnikov@google.com>
8188
8189         [BZ #14012]
8190         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8191         requiring rpcgen.
8192         [cross-compiling] (extra-libs): Likewise.
8193         [cross-compiling] (extra-libs-others): Likewise.
8194         [cross-compiling] (librpcsvc-routines): Likewise.
8195         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8196         [cross-compiling] (omit-deps): Likewise.
8197         (sunrpc-CPPFLAGS): New variable.
8198         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8199         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8200         (cross-rpcgen-objs): New variable.
8201         (extra-objs): Append $(cross-rpcgen-objs).
8202         ($(cross-rpcgen-objs)): New rule.
8203         ($(objpfx)cross-rpcgen): Likewise.
8204         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8205         comment.
8206         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8207         ($(objpfx)x%.stmp): Likewise.
8208         * sunrpc/proto.h [IS_IN_build] (_): Define.
8209         [IS_IN_build] (_libc_intl_domainname): Likewise.
8210
8211 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8212
8213         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8214         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8215         and R_X86_64_TPOFF64.
8216
8217 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8218
8219         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8220         sysdeps/unix/sysv/syscalls.list.
8221         (stime): Likewise.
8222         (utime): Likewise.
8223         * sysdeps/unix/sysv/syscalls.list: Remove file.
8224
8225 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8226
8227         [BZ #3440]
8228         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8229         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8230         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8231         (__LC_IDENTIFICATION): Make these macros useful in #if
8232         expressions, as required by C99.
8233
8234 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8235
8236         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8237         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8238         after this.
8239
8240 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8241
8242         * stdlib/longlong.h: Updated from GCC.
8243
8244 2012-05-09  Andreas Jaeger  <aj@suse.de>
8245
8246         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8247         default is first entry.
8248         (run_mode): Set type.
8249         (main): Remove informal message about syslog.
8250         (options): Fix typo.
8251
8252         [BZ #14053]
8253         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8254         to asm.
8255         (lrint): Likewise.
8256         (llrintf): Likewise.
8257         (llrint): Likewise.
8258         (rint): Likewise.
8259         (rintf): Likewise.
8260         (nearbyint): Likewise.
8261         (nearbyintf): Likewise.
8262
8263 2012-05-09  Andreas Jaeger  <aj@suse.de>
8264             Pedro Alves  <palves@redhat.com>
8265
8266         * nscd/nscd.c (run_mode): Use enum.
8267         (main): Cleanup coding style issue.
8268
8269 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8270             Andreas Jaeger  <aj@suse.de>
8271
8272         * nscd/nscd.c (go_background): Replaced with...
8273         (run_mode): ... this.
8274         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8275         (options): Add -F --foreground.
8276         (main): Implement it.
8277         (parse_opt): Parse it.
8278
8279 2012-05-09  Andreas Jaeger  <aj@suse.de>
8280
8281         [BZ #14083]
8282         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8283         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8284         -Wconversion warning.
8285         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8286         Likewise.
8287
8288 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8289
8290         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8291         == 0.
8292         (LC_ALL): Use macro-int-constant.
8293         (LC_COLLATE): Likewise.
8294         (LC_CTYPE): Likewise.
8295         (LC_MESSAGES): Likewise.
8296         (LC_MONETARY): Likewise.
8297         (LC_NUMERIC): Likewise.
8298         (LC_TIME): Likewise.
8299         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
8300         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8301         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8302         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
8303         Specify type.
8304         [C99-based standards] (float_t): Expect type.
8305         [C99-based standards] (double_t): Expect type.
8306         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
8307         type.
8308         [C99-based standards] (HUGE_VALL): Likewise.
8309         [C99-based standards] (INFINITY): Likewise.
8310         [C99-based standards] (NAN): Likewise.
8311         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
8312         [C99-based standards] (FP_NAN): Likewise.
8313         [C99-based standards] (FP_NORMAL): Likewise.
8314         [C99-based standards] (FP_SUBNORMAL): Likewise.
8315         [C99-based standards] (FP_ZERO): Likewise.
8316         [C99-based standards] (FP_FAST_FMA): Use
8317         optional-macro-int-constant.  Specify type.  Require == 1.
8318         [C99-based standards] (FP_FAST_FMAF): Likewise.
8319         [C99-based standards] (FP_FAST_FMAL): Likewise.
8320         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
8321         [C99-based standards] (FP_ILOGBNAN): Likewise.
8322         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
8323         Specify type.
8324         [C99-based standards] (MATH_ERREXCEPT): Likewise.
8325         [C99-based standards] (math_errhandling): Specify type.
8326         [ISO99 || ISO11] (signgam): Do not allow.
8327         [non-C99-based standards] (copysignf): Do not allow.
8328         [non-C99-based standards] (exp2f): Likewise.
8329         [non-C99-based standards] (log2f): Likewise.
8330         [non-C99-based standards] (modff): Allow.
8331         [non-C99-based standards] (erff): Do not allow.
8332         [non-C99-based standards] (erfcf): Likewise.
8333         [non-C99-based standards] (gammaf): Likewise.
8334         [non-C99-based standards] (hypotf): Likewise.
8335         [non-C99-based standards] (j0f): Likewise.
8336         [non-C99-based standards] (j1f): Likewise.
8337         [non-C99-based standards] (jnf): Likewise.
8338         [non-C99-based standards] (lgammaf): Likewise.
8339         [non-C99-based standards] (tgammaf): Likewise.
8340         [non-C99-based standards] (y0f): Likewise.
8341         [non-C99-based standards] (y1f): Likewise.
8342         [non-C99-based standards] (ynf): Likewise.
8343         [non-C99-based standards] (isnanf): Likewise.
8344         [non-C99-based standards] (acoshf): Likewise.
8345         [non-C99-based standards] (asinhf): Likewise.
8346         [non-C99-based standards] (atanhf): Likewise.
8347         [non-C99-based standards] (cbrtf): Likewise.
8348         [non-C99-based standards] (expm1f): Likewise.
8349         [non-C99-based standards] (ilogbf): Likewise.
8350         [non-C99-based standards] (log1pf): Likewise.
8351         [non-C99-based standards] (logbf): Likewise.
8352         [non-C99-based standards] (nextafterf): Likewise.
8353         [non-C99-based standards] (remainderf): Likewise.
8354         [non-C99-based standards] (rintf): Likewise.
8355         [non-C99-based standards] (scalbf): Likewise.
8356         [non-C99-based standards] (copysignl): Likewise.
8357         [non-C99-based standards] (exp2l): Likewise.
8358         [non-C99-based standards] (log2l): Likewise.
8359         [non-C99-based standards] (modfl): Allow.
8360         [non-C99-based standards] (erfl): Do not allow.
8361         [non-C99-based standards] (erfcl): Likewise.
8362         [non-C99-based standards] (gammal): Likewise.
8363         [non-C99-based standards] (hypotl): Likewise.
8364         [non-C99-based standards] (j0l): Likewise.
8365         [non-C99-based standards] (j1l): Likewise.
8366         [non-C99-based standards] (jnl): Likewise.
8367         [non-C99-based standards] (lgammal): Likewise.
8368         [non-C99-based standards] (tgammal): Likewise.
8369         [non-C99-based standards] (y0l): Likewise.
8370         [non-C99-based standards] (y1l): Likewise.
8371         [non-C99-based standards] (ynl): Likewise.
8372         [non-C99-based standards] (isnanl): Likewise.
8373         [non-C99-based standards] (acoshl): Likewise.
8374         [non-C99-based standards] (asinhl): Likewise.
8375         [non-C99-based standards] (atanhl): Likewise.
8376         [non-C99-based standards] (cbrtl): Likewise.
8377         [non-C99-based standards] (expm1l): Likewise.
8378         [non-C99-based standards] (ilogbl): Likewise.
8379         [non-C99-based standards] (log1pl): Likewise.
8380         [non-C99-based standards] (logbl): Likewise.
8381         [non-C99-based standards] (nextafterl): Likewise.
8382         [non-C99-based standards] (remainderl): Likewise.
8383         [non-C99-based standards] (rintl): Likewise.
8384         [non-C99-based standards] (scalbl): Likewise.
8385         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8386         [non-C99-based standards] (FP_*): Do not allow.
8387         [C99-based standards] (FP_*): Change to
8388         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8389         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8390         allow.
8391         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
8392         (SIG_ERR): Likewise.
8393         [X/Open-based standards] (SIG_HOLD): Likewise.
8394         (SIG_IGN): Likewise.
8395         (SIGABRT): Use macro-int-constant.  Specify type.  Require
8396         positive value.
8397         (SIGFPE): Likewise.
8398         (SIGILL): Likewise.
8399         (SIGINT): Likewise.
8400         (SIGSEGV): Likewise.
8401         (SIGTER): Likewise.
8402         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
8403         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
8404         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
8405         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
8406         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
8407         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
8408         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
8409         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
8410         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
8411         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
8412         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
8413         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
8414         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
8415         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
8416         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
8417         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
8418         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
8419         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
8420         [X/Open-based standards] (SIGTRAP): Likewise.
8421         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
8422         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
8423         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
8424         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
8425         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8426         allow.
8427
8428 2012-05-08  Ian Wienand  <ianw@vmware.com>
8429
8430         [BZ #14080]
8431         * time/tzset.c (__tzset_parse_tz): Update default rules for
8432         daylight time changes in the Energy Policy Act of 2005.
8433
8434 2012-05-09  Andreas Jaeger  <aj@suse.de>
8435
8436         [BZ #13983]
8437         * elf/ldconfig.c (parse_conf): Change string to make clear that
8438         ldconfig only issued a warning if ld.so.conf does not exist.
8439
8440 2012-05-08  David S. Miller  <davem@davemloft.net>
8441
8442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
8443         movxtod instead of popping the value on the stack.
8444
8445         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8446
8447 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
8448
8449         * config.h.in: Add HAVE_ARM_PCS_VFP.
8450
8451 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
8452
8453         [BZ #13979]
8454         * include/features.h: Warn if user requests __FORTIFY_SOURCE
8455         checking but the checks are disabled for any reason.
8456
8457 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8458
8459         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
8460         and ELF64_R_TYPE with ELFW(R_TYPE).
8461
8462 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
8463
8464         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
8465         (ulimit): Likewise.
8466
8467         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
8468         (settimeofday): Likewise.
8469
8470 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
8471
8472         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
8473         a struct th_u2 inside the union, and move tu_block/tu_code into
8474         a new th_u3 union of tu_block/tu_code inside of that.  Move
8475         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
8476         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
8477         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
8478         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
8479         (th_stuff): Change to th_u1.tu_stuff.
8480         (th_data): Define.
8481         (th_msg): Change to th_u1.th_u2.tu_data.
8482
8483 2012-05-07  David S. Miller  <davem@davemloft.net>
8484
8485         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8486
8487         [BZ #14074]
8488         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
8489         (SETUP_PIC_REG): Use it.
8490         (SETUP_PIC_REG_LEAF): Use it.
8491
8492 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
8493
8494         [BZ #13885]
8495         [BZ #13923]
8496         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8497         USE_AS_EXPM1L.
8498         (EXPL_FINITE): Likewise.
8499         (FLDLOG): Likewise.
8500         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8501         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8502         e_expl.S.
8503         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8504         USE_AS_EXPM1L.
8505         (EXPL_FINITE): Likewise.
8506         (FLDLOG): Likewise.
8507         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8508         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8509         e_expl.S.
8510         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
8511         test of -max_value argument for long double.
8512         * sysdeps/i386/fpu/libm-test-ulps: Update.
8513         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8514
8515 2012-05-06  David S. Miller  <davem@davemloft.net>
8516
8517         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
8518         quad soft-float symbols whose references which are compiler
8519         generated.
8520         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8521
8522 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
8523
8524         [BZ #13884]
8525         [BZ #13914]
8526         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8527         USE_AS_EXP10L.
8528         (EXPL_FINITE): Likewise.
8529         (FLDLOG): Likewise.
8530         (c0): Likewise.
8531         (c1): Likewise.
8532         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8533         Adjust comments for base varying.
8534         (__expl_finite): Change alias to EXPL_FINITE.
8535         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
8536         e_expl.S.
8537         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
8538         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
8539         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
8540         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
8541         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8542         USE_AS_EXP10L.
8543         (EXPL_FINITE): Likewise.
8544         (FLDLOG): Likewise.
8545         (c0): Likewise.
8546         (c1): Likewise.
8547         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8548         Adjust comments for base varying.
8549         (__expl_finite): Change alias to EXPL_FINITE.
8550         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
8551         tests for bugs.
8552         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8553
8554         [BZ #14064]
8555         * math/libm-test.inc (check_float_internal): Correct ulp
8556         calculation for subnormal expected results.
8557
8558 2012-05-06  Andreas Jaeger  <aj@suse.de>
8559
8560         * Makeconfig (+math-flags): New, set to -frounding-math.
8561         (+cflags): Add +math-flags so that all of glibc gets compiled with
8562         it.
8563
8564         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
8565
8566 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
8567
8568         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
8569         Disable one test.
8570
8571         [BZ #13787]
8572         [BZ #13922]
8573         [BZ #14036]
8574         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
8575         (__ieee754_expl): Allow for and saturate large arguments.
8576         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
8577         (u_threshold): Likewise.
8578         (__exp): Call __ieee754_exp before checking for overflow and
8579         underflow.
8580         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
8581         (u_threshold): Likewise.
8582         (__expf): Call __ieee754_expf before checking for overflow and
8583         underflow.
8584         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
8585         (u_threshold): Likewise.
8586         (__expl): Call __ieee754_expl before checking for overflow and
8587         underflow.
8588         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
8589         (__ieee754_expl): Allow for and saturate large arguments.
8590         * math/libm-test.inc (exp_test): Add another test.  Do not allow
8591         missing overflow exception on overflow.
8592         (expm1_test): Do not allow missing overflow exception on overflow.
8593
8594         * sysdeps/i386/fpu/e_expl.c: Move to ...
8595         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
8596         rather than using inline asm.
8597         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
8598         * sysdeps/x86_64/fpu/e_expl.S: Copy from
8599         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
8600
8601         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
8602         (nice): Likewise.
8603         (poll): Likewise.
8604         (signal): Likewise.
8605         (time): Likewise.
8606         (times): Likewise.
8607
8608 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8609
8610         * sysdeps/unix/syscalls.list (adjtime): Add entry from
8611         sysdeps/unix/common/syscalls.list.
8612         (fchmod): Likewise.
8613         (fchown): Likewise.
8614         (ftruncate): Likewise.
8615         (getrusage): Likewise.
8616         (gettimeofday): Likewise.
8617         (setpgid): Likewise.
8618         (setregid): Likewise.
8619         (setreuid): Likewise.
8620         (sigaction): Likewise.
8621         (truncate): Likewise.
8622         (vhangup): Likewise.
8623         * sysdeps/unix/common/syscalls.list: Remove file.
8624         * sysdeps/unix/bsd/Implies: Don't include unix/common.
8625         * sysdeps/unix/sysv/linux/Implies: Likewise.
8626
8627 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8628
8629         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
8630         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
8631         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
8632         Moved to ...
8633         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
8634         Here.
8635         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
8636         to ...
8637         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
8638         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
8639         to ...
8640         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
8641         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
8642         to ...
8643         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
8644         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
8645         to ...
8646         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
8647         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
8648         to ...
8649         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
8650         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
8651         to ...
8652         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
8653         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
8654         to ...
8655         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
8656         Here.
8657         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
8658         to ...
8659         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
8660         Here.
8661         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
8662         to ...
8663         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
8664         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
8665         Moved to ...
8666         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
8667         Here.
8668         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
8669         to ...
8670         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
8671
8672 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8673
8674         * sysdeps/unix/common/bits/dirent.h: Remove file.
8675         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8676
8677         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8678         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8679         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8680         * sysdeps/unix/bsd/isatty.c: Likewise.
8681         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8682         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8683         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8684
8685 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8686
8687         [BZ #13563]
8688         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8689         long double comparison inaccuracies.
8690         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8691         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8692
8693 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8694
8695         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8696         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8697
8698 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8699
8700         [BZ #14049]
8701         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8702         nonzero digits before rounding a hex value.
8703         * stdlib/tst-strtod.c (tests): Add another test.
8704
8705 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8706
8707         * sysdeps/s390/fpu/libm-test-ulps: Update.
8708
8709 2012-05-03  Andreas Jaeger  <aj@suse.de>
8710
8711         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8712         does not get optimized out.
8713         (malloc_opt_barrier): New.
8714
8715 2012-05-03  Andreas Jaeger  <aj@suse.de>
8716             Roland McGrath  <roland@hack.frob.com>
8717
8718         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8719         intermediate file deletion.
8720         (generated): Add .symlist files.
8721
8722 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8723
8724         [BZ #13775]
8725         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8726         Redirect under this condition.
8727         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8728         [__USE_GNU] (__dprintf_chk): Not under this condition.
8729         [__USE_GNU] (__vdprintf_chk): Likewise.
8730         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8731         under this condition.
8732         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8733         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8734         [__USE_XOPEN2K8] (vdprintf): Likewise.
8735         [__USE_GNU] (__dprintf_chk): Not under this condition.
8736         [__USE_GNU] (__vdprintf_chk): Likewise.
8737         [__USE_GNU] (dprintf): Likewise.
8738         [__USE_GNU] (vdprintf): Likewise.
8739
8740 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8741
8742         * elf/Makefile (common-generated): Set this instead of generated for
8743         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8744         $(all-built-dso)-derived lists.
8745
8746 2012-05-03  Andreas Jaeger  <aj@suse.de>
8747
8748         * sysdeps/i386/fpu/libm-test-ulps: Update.
8749
8750         * FAQ: Removed.
8751         * FAQ.in: Likewise.
8752         * scripts/gen-FAQ.pl: Likewise.
8753         * manual/install.texi (Installation): Point to online location of
8754         FAQ.
8755         * Makefile (files-for-dist): Remove FAQ.
8756         (FAQ): Remove.
8757
8758 2012-05-02  Allan McRae  <allan@archlinux.org>
8759
8760         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8761         (LDFLAGS-reldepmod5.so): Likewise.
8762         (LDFLAGS-reldep6mod1.so): Likewise.
8763         (LDFLAGS-reldep6mod4.so): Likewise.
8764         (LDFLAGS-reldep8mod3.so): Likewise.
8765         (LDFLAGS-unload4mod1.so): Likewise.
8766         (LDFLAGS-unload4mod2.so): Likewise.
8767         (LDFLAGS-tst-initorder): Likewise.
8768         (LDFLAGS-tst-initordera2.so): Likewise.
8769         (LDFLAGS-tst-initordera3.so): Likewise.
8770         (LDFLAGS-tst-initordera4.so): Likewise.
8771         (LDFLAGS-tst-initorderb2.so): Likewise.
8772         (LDFLAGS-noload): Likewise.
8773         (LDFLAGS-next): Likewise.
8774         (LDFLAGS-order2mod1.so): Likewise.
8775         (LDFLAGS-order2mod2.so): Likewise.
8776         (LDFLAGS-tst-initorder2): Likewise.
8777         (LDFLAGS-tst-initorder2a.so): Likewise.
8778         (LDFLAGS-tst-initorder2b.so): Likewise.
8779         (LDFLAGS-tst-initorder2c.so): Likewise.
8780         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8781
8782 2012-05-02  David S. Miller  <davem@davemloft.net>
8783
8784         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8785
8786 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8787
8788         [BZ #14055]
8789         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8790
8791 2012-05-02  Andreas Jaeger  <aj@suse.de>
8792
8793         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8794         since we manipulate rounding mode.
8795         (CPPFLAGS-test-idouble.c): Likewise.
8796         (CPPFLAGS-test-ifloat.c): Likewise.
8797         (CFLAGS-test-ldouble.c): Likewise.
8798         (CFLAGS-test-double.c): Likewise.
8799         (CFLAGS-test-float.c): Likewise.
8800         (CFLAGS-test-misc.c): Likewise.
8801         (CFLAGS-test-test-fenv.c): Likewise.
8802
8803 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8804
8805         [BZ #2550]
8806         [BZ #2570]
8807         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8808         comparisons to determine direction to adjust input.
8809
8810 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8811
8812         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8813         output to the target.
8814
8815         * scripts/localplt.awk: New file.
8816         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8817         (check-localplt-CFLAGS): Variable removed.
8818         ($(all-built-dso:=.jmprel)): New static pattern rule.
8819         (generated): Add those targets.
8820         (localplt-built-dso): New variable.
8821         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8822
8823         * elf/check-localplt.c: File removed.
8824
8825         * scripts/check-execstack.awk: New file.
8826         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8827         (check-execstack-CFLAGS): Variable removed.
8828         ($(objpfx)check-execstack.h): Target removed.
8829         ($(objpfx)execstack-default): New target.
8830         (generated): Add that instead of check-execstack.h.
8831         ($(all-built-dso:=.phdr)): New static pattern rule.
8832         (generated): Add those targets.
8833         * elf/check-execstack.c: File removed.
8834
8835         * scripts/check-textrel.awk: New file.
8836         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8837         (check-textrel-CFLAGS): Variable removed.
8838         (all-built-dso): Use := to define.o
8839         ($(all-built-dso:=.dyn)): New static pattern rule.
8840         (generated): Add those targets.
8841         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8842         * config.make.in (READELF): New substituted variable.
8843         * elf/check-textrel.c: File removed.
8844
8845 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8846
8847         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8848         allow.
8849         * conform/data/ctype.h-data [C99-based standards] (isblank):
8850         Expect function.
8851         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8852         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8853         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8854         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8855         Specify type.  Require positive value.
8856         (EILSEQ): Likewise.
8857         (ERANGE): Likewise.
8858         [ISO || POSIX] (EILSEQ): Do not expect.
8859         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8860         Specify type.  Require positive value.
8861         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8862         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8863         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8864         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8865         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8866         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8867         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8868         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8869         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8870         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8871         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8872         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8873         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8874         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8875         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8876         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8877         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8878         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8879         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8880         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8881         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8882         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8883         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8884         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8885         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8886         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8887         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8888         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8889         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8890         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8891         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8892         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8893         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8894         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8895         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8896         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8897         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8898         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8899         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8900         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8901         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8902         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8903         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8904         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8905         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8906         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8907         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8908         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8909         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8910         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8911         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8912         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8913         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8914         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8915         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8916         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8917         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8918         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8919         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8920         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8921         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8922         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8923         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8924         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8925         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8926         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8927         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8928         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8929         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8930         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8931         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8932         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8933         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8934         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8935         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8936         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8937         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8938         Require >= 2.
8939         (FLT_ROUNDS): Expect as macro, not constant.
8940         (FLT_MANT_DIG): Use macro-int-constant.
8941         (DBL_MANT_DIG): Likewise.
8942         (LDBL_MANT_DIG): Likewise.
8943         (FLT_DIG): Likewise.
8944         (DBL_DIG): Likewise.
8945         (LDBL_DIG): Likewise.
8946         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8947         (DBL_MIN_EXP): Likewise.
8948         (LDBL_MIN_EXP): Likewise.
8949         (FLT_MAX_EXP): Use macro-int-constant.
8950         (DBL_MAX_EXP): Likewise.
8951         (LDBL_MAX_EXP): Likewise.
8952         (FLT_MAX_10_EXP): Likewise.
8953         (DBL_MAX_10_EXP): Likewise.
8954         (LDBL_MAX_10_EXP): Likewise.
8955         (FLT_MAX): Use macro-constant.
8956         (DBL_MAX): Likewise.
8957         (LDBL_MAX): Likewise.
8958         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8959         (DBL_EPSILON): Likewise.
8960         (LDBL_EPSILON): Likewise.
8961         (FLT_MIN): Likewise.
8962         (DBL_MIN): Likewise.
8963         (LDBL_MIN): Likewise.
8964         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8965         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8966         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8967         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8968         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8969         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8970         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8971         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8972         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8973         [ISO11] (FLT_TRUE_MIN): Likewise.
8974         [ISO11] (LDBL_TRUE_MIN): Likewise.
8975         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8976         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8977         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8978         (SCHAR_MAX): Likewise.
8979         (UCHAR_MAX): Likewise.
8980         (CHAR_MIN): Likewise.
8981         (CHAR_MAX): Likewise.
8982         (MB_LEN_MAX): Use macro-int-constant.
8983         (SHRT_MIN): Use macro-int-constant.  Specify type.
8984         (SHRT_MAX): Likewise.
8985         (USHRT_MAX): Likewise.
8986         (INT_MAX): Likewise.
8987         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8988         bound negative.
8989         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8990         bound with "U".
8991         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8992         bound with "L".
8993         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8994         bound negative.  Suffix upper bound with "L".
8995         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8996         bound with "UL".
8997         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8998         Specify type.
8999         [C99-based standards] (LLONG_MAX): Likewise.
9000         [C99-based standards] (ULLONG_MAX): Likewise.
9001         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9002         == 0.
9003         [ISO11] (max_align_t): Require type.
9004         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9005
9006         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9007         from $CFLAGS, without defining away __attribute__ calls.
9008         (checknamespace): Use $CFLAGS_namespace.
9009
9010         * conform/conformtest.pl (@keywords): Only include C99 keywords
9011         for standards based on C99 or C11.
9012
9013         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9014         Disable tests.
9015         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9016         UNIX98]: Likewise.
9017
9018         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9019         usability of symbols in #if.
9020
9021         * conform/conformtest.pl: If macro or constant types start
9022         "promoted:", expect the symbol to be of the following type
9023         promoted by the integer promotions.
9024
9025         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9026         in one place.  Also handle "macro-constant".
9027
9028         * conform/conformtest.pl: Only accept expected macro values with
9029         "==".  Parse all "macro" lines in one place.
9030         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9031
9032         * conform/conformtest.pl: Handle braced types on "constant" lines
9033         instead of handling "typed-constant".
9034         * conform/data/signal.h-data: Use "constant" instead of
9035         "typed-constant".
9036
9037         * conform/conformtest.pl: Handle "optional-" at start of lines in
9038         one place rather than duplicating several cases.  Handle each
9039         format of "macro" line with initial "optional-".
9040
9041         * conform/conformtest.pl: Only accept expected constant or
9042         optional-constant values with "==".  Parse all "constant" lines in
9043         one place.  Parse all "optional-constant" lines in one place.
9044         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9045         * conform/data/fmtmsg.h-data: Likewise.
9046         * conform/data/netinet/in.h-data: Likewise.
9047         * conform/data/tar.h-data: Likewise.
9048         * conform/data/limits.h-data: Use "==" form on "constant" and
9049         "optional-constant" lines.
9050
9051         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9052         Use -std=c99 for XOPEN2K.
9053         (@knownproblems): Remove.
9054         (newtoken): Don't check %isknown.
9055
9056         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9057         Do not expect macro.
9058         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9059         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9060         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9061         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9062         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9063         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9064         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9065         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9066         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9067         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9068         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9069         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9070         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9071         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9072         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9073         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9074         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9075         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9076         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9077         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9078         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9079         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9080         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9081         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9082         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9083         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9084         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9085         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9086         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9087         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9088         [XPG3] (acosh): Likewise.
9089         [XPG3] (asinh): Likewise.
9090         [XPG3] (atanh): Likewise.
9091         [XPG3] (cbrt): Likewise.
9092         [XPG3] (expm1): Likewise.
9093         [XPG3] (ilogb): Likewise.
9094         [XPG3] (log1p): Likewise.
9095         [XPG3] (logb): Likewise.
9096         [XPG3] (nextafter): Likewise.
9097         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9098         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9099         [XPG3] (remainder): Likewise.
9100         [XPG3] (rint): Likewise.
9101         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9102         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9103         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9104         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9105         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9106         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9107         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9108         [UNIX98 || XOPEN2K] (scalb): Expect.
9109         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9110         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9111         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9112         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9113         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9114         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9115         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9116         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9117         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9118         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9119         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9120         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9121         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9122         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9123         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9124         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9125         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9126         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9127         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9128         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9129         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9130         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9131         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9132         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9133         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9134         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9135         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9136         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9137         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9138         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9139         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9140         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9141         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9142         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9143         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9144         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9145         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9146         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9147         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9148         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9149         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9150         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9151         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9152         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9153         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9154         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9155         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9156         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9157         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9158         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9159         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9160         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9161         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9162         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9163         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9164         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9165         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9166         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9167         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9168         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9169         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9170         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9171         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9172         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9173         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9174         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9175         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9176         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9177         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9178         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9179         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9180         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9181         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9182         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9183         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9184         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9185         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9186         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9187         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9188         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9189         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9190         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9191         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9192         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9193         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9194         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9195         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9196         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9197         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9198         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9199         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9200         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9201         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9202         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9203         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9204         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9205         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9206         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9207         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9208         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9209         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9210         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9211         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9212         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9213         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9214         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9215         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9216         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9217         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9218         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9219         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9220         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9221         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9222         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9223         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9224         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9225         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9226         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9227         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9228         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9229         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9230         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9231         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9232         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9233         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9234         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9235         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9236         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9237         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9238         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9239         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9240         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9241         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9242         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9243         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9244         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9245         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9246
9247         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9248         _XOPEN_SOURCE_EXTENDED for XPG4.
9249
9250         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9251
9252         * Makeconfig (localtime): Remove variable.
9253         (inst_localtime-file): Likewise.
9254
9255 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9256
9257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9258         Update.
9259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9260         Update.
9261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9262         Update.
9263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9264         Update.
9265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9266         Update.
9267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9268         Update.
9269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9270         Update.
9271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9272         Update.
9273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9274         Update.
9275
9276 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9277
9278         [BZ #2550]
9279         [BZ #2570]
9280         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9281         comparisons to determine direction to adjust input.
9282         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9283         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9284         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9285         Likewise.
9286         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9287         Likewise.
9288         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9289         Likewise.
9290         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9291         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9292         Likewise.
9293         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9294         Likewise.
9295         * math/libm-test.inc (nexttoward_test): Add more tests.
9296
9297 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9298
9299         [BZ #14040]
9300         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
9301         in version GLIBC_2.1, not GLIBC_2.0.
9302         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
9303         Likewise.
9304
9305 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
9306
9307         [BZ #13942]
9308         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
9309         (1 - x) * (1 + x).
9310         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9311         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
9312         * math/libm-test.inc (acos_test): Add more tests.
9313         (asin_test): Likewise.
9314         * sysdeps/i386/fpu/libm-test-ulps: Update.
9315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9316
9317         [BZ #14034]
9318         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
9319         of square root.
9320         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
9321         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9322         * math/libm-test.inc (acos_test_tonearest): New function.
9323         (acos_test_towardzero): Likewise.
9324         (acos_test_downward): Likewise.
9325         (acos_test_upward): Likewise.
9326         (asin_test_tonearest): Likewise.
9327         (asin_test_towardzero): Likewise.
9328         (asin_test_downward): Likewise.
9329         (asin_test_upward): Likewise.
9330         (main): Call the new functions.
9331         * sysdeps/i386/fpu/libm-test-ulps: Update.
9332         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9333
9334         [BZ #13884]
9335         [BZ #13924]
9336         * math/e_exp10.c: Include <float.h>.
9337         (__ieee754_exp10): Handle underflow here rather than multiplying
9338         large negative argument by M_LN10.
9339         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
9340         of __ieee754_expf.
9341         * math/e_exp10l.c: Include <float.h>.
9342         (__ieee754_exp10l): Handle underflow here rather than multiplying
9343         large negative argument by M_LN10l.
9344         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
9345         spurious overflow exception on underflow.
9346
9347 2012-04-29  Marek Polacek  <polacek@redhat.com>
9348
9349         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
9350         (__fortify_function): New macro.
9351         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
9352         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
9353         __extern_always_inline.
9354         * libio/bits/stdio2.h: Likewise.
9355         * libio/bits/stdio.h: Likewise.
9356         * string/string.h: Likewise.
9357         * string/bits/string3.h: Likewise.
9358         * include/stdio.h: Likewise.
9359         * stdlib/bits/stdlib.h: Likewise.
9360         * stdlib/stdlib.h: Likewise.
9361         * rt/bits/mqueue2.h: Likewise.
9362         * rt/mqueue.h: Likewise.
9363         * posix/bits/unistd.h: Likewise.
9364         * posix/unistd.h: Likewise.
9365         * io/bits/poll2.h: Likewise.
9366         * io/bits/fcntl2.h: Likewise.
9367         * io/fcntl.h: Likewise.
9368         * io/sys/poll.h: Likewise.
9369         * misc/bits/syslog.h: Likewise.
9370         * misc/bits/syslog-ldbl.h: Likewise.
9371         * misc/sys/syslog.h: Likewise.
9372         * socket/bits/socket2.h: Likewise.
9373         * socket/sys/socket.h: Likewise.
9374         * debug/tst-chk1.c: Likewise.
9375         * wcsmbs/bits/wchar2.h: Likewise.
9376         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9377         * wcsmbs/wchar.h: Likewise.
9378
9379 2012-04-29  Andreas Jaeger  <aj@suse.de>
9380
9381         * Makerules (tests): Remove enable-check-abi protection.
9382         (check-abi-warn): Remove.
9383         (check-abi-%): Remove check-abi-warn usage.
9384
9385         * configure.in: Remove check-abi configure option.
9386         * configure: Regenerated.
9387         * config.make.in (enable-check-abi): Remove.
9388
9389 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
9390
9391         [BZ #14033]
9392         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
9393         double functions to double *_finite functions.
9394
9395         [BZ #13941]
9396         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
9397         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
9398         LDBL_MIN_EXP.
9399         * stdio-common/Makefile (tests): Add tst-sprintf3.
9400         * stdio-common/tst-sprintf3.c: New file.
9401
9402         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
9403         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
9404
9405 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9406
9407         * conform/conformtest.pl: Remove duplicate typed-constant
9408         handling.
9409
9410 2012-04-28  David S. Miller  <davem@davemloft.net>
9411
9412         * Makerules (%.abilist): Add vpath on sysdep_dirs.
9413         (check-abi-%): Remove AWK script prerequisite and explicit
9414         abilist directory.
9415         (check-abi): Rewrite to just diff the symlist with the abilist.
9416         (config-tls, config-abi-config): Delete, no longer used.
9417         (update-abi-%): Remove AWK script and explicit abilist directory.
9418         (update-abi): Rewrite to simply compare and conditionally copy the
9419         symlist and the sysdep abilist file.  Remove update-abi-config
9420         checks.
9421         * abilist/ld.abilist: Remove.
9422         * abilist/libBrokenLocale.abilist: Remove.
9423         * abilist/libanl.abilist: Remove.
9424         * abilist/libcrypt.abilist: Remove.
9425         * abilist/libdl.abilist: Remove.
9426         * abilist/librt.abilist: Remove.
9427         * abilist/libthread_db.abilist: Remove.
9428         * abilist/libutil.abilist: Remove.
9429         * scripts/extract-abilist.awk: Remove.
9430         * scripts/merge-abilist.awk: Remove.
9431         * sysdeps/generic/libcidn.abilist: New file.
9432         * sysdeps/generic/libnss_compat.abilist: New file.
9433         * sysdeps/generic/libnss_db.abilist: New file.
9434         * sysdeps/generic/libnss_dns.abilist: New file.
9435         * sysdeps/generic/libnss_files.abilist: New file.
9436         * sysdeps/generic/libnss_hesiod.abilist: New file.
9437         * sysdeps/generic/libnss_nis.abilist: New file.
9438         * sysdeps/generic/libnss_nisplus.abilist: New file.
9439         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
9440         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
9441         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
9442         file.
9443         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
9444         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
9445         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
9446         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
9447         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
9448         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
9449         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
9450         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
9451         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
9452         file.
9453         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
9454         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
9455         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
9456         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
9457         file.
9458         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
9459         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
9460         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
9461         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
9462         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
9463         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
9464         file.
9465         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
9466         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
9467         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
9468         file.
9469         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
9470         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
9471         New file.
9472         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
9473         New file.
9474         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
9475         New file.
9476         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
9477         New file.
9478         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
9479         New file.
9480         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
9481         New file.
9482         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
9483         New file.
9484         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
9485         New file.
9486         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
9487         New file.
9488         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
9489         New file.
9490         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
9491         New file.
9492         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
9493         New file.
9494         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
9495         New file.
9496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
9497         file.
9498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
9499         New file.
9500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
9501         New file.
9502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
9503         file.
9504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
9505         New file.
9506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
9507         New file.
9508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
9509         file.
9510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
9511         New file.
9512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9513         New file.
9514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
9515         New file.
9516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
9517         New file.
9518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
9519         New file.
9520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
9521         New file.
9522         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
9523         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
9524         file.
9525         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
9526         New file.
9527         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
9528         file.
9529         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
9530         file.
9531         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
9532         file.
9533         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
9534         file.
9535         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
9536         file.
9537         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9538         New file.
9539         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
9540         file.
9541         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
9542         file.
9543         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
9544         New file.
9545         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
9546         file.
9547         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
9548         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
9549         file.
9550         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
9551         New file.
9552         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
9553         file.
9554         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
9555         file.
9556         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
9557         file.
9558         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
9559         file.
9560         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
9561         file.
9562         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9563         New file.
9564         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
9565         file.
9566         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
9567         file.
9568         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
9569         New file.
9570         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
9571         file.
9572         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
9573         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
9574         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
9575         file.
9576         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
9577         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
9578         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
9579         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
9580         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
9581         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
9582         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
9583         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
9584         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
9585         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
9586         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
9587         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
9588         file.
9589         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
9590         New file.
9591         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
9592         file.
9593         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
9594         file.
9595         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
9596         file.
9597         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
9598         file.
9599         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
9600         file.
9601         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
9602         New file.
9603         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
9604         New file.
9605         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
9606         file.
9607         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
9608         New file.
9609         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
9610         file.
9611         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
9612         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
9613         file.
9614         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
9615         New file.
9616         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
9617         file.
9618         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
9619         file.
9620         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
9621         file.
9622         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
9623         file.
9624         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
9625         file.
9626         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
9627         New file.
9628         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
9629         New file.
9630         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
9631         file.
9632         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
9633         New file.
9634         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
9635         file.
9636
9637 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9638
9639         * conform/conformtest.pl: Fix typo in handling typed-constant from
9640         allow-header.
9641
9642 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9643
9644         * README: Cut down references to pre-2.6 Linux kernels and
9645         Linuxthreads.  Update lists of configurations in libc and ports
9646         and sort alphabetically.  Say "or newer" with Linux kernel version
9647         requirements.
9648
9649         * config.h.in [IS_IN_build]: Allow compiling without optimization.
9650
9651 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9652
9653         [BZ #887]
9654         * math/libm-test.inc (logb_test_downward): New test to expose
9655         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
9656         rounding mode.
9657
9658 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9659
9660         [BZ #14027]
9661         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
9662         to be done.
9663         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
9664         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
9665
9666 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
9667
9668         * sysdeps/unix/i386/brk.S: Remove file.
9669         * sysdeps/unix/i386/dl-brk.S: Likewise.
9670         * sysdeps/unix/i386/pipe.S: Likewise.
9671         * sysdeps/unix/i386/sigreturn.S: Likewise.
9672         * sysdeps/unix/i386/syscall.S: Likewise.
9673         * sysdeps/unix/i386/vfork.S: Likewise.
9674         * sysdeps/unix/i386/wait.S: Likewise.
9675
9676         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9677         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9678
9679         * configure.in (arm*-none*): Do not allow without
9680         --enable-hacker-mode.
9681         (netbsd*): Remove case setting base_os.
9682         (386bsd*): Likewise.
9683         (freebsd*): Likewise.
9684         (bsdi*): Likewise.
9685         (osf*): Likewise.
9686         (sunos*): Likewise.
9687         (ultrix*): Likewise.
9688         (newsos*): Likewise.
9689         (dynix*): Likewise.
9690         (*bsd*): Likewise.
9691         (sysv*): Likewise.
9692         (isc*): Likewise.
9693         (esix*): Likewise.
9694         (sco*): Likewise.
9695         (minix*): Likewise.
9696         (irix4*): Likewise.
9697         (irix6*): Likewise.
9698         (solaris[2-9]*): Likewise.
9699         (none): Likewise.
9700         * configure: Regenerated.
9701
9702 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9703
9704         [BZ #11521]
9705         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9706         overflow or cancellation in calculating denominator.
9707         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9708         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9709         down expression to avoid unexpected rounding in newer GCCs.
9710         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9711
9712 2012-04-26  David S. Miller  <davem@davemloft.net>
9713
9714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9715         long-double compat symbols.
9716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9721         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9722         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9723         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9724         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9725         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9726         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9727         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9728         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9729
9730 2012-04-25  David S. Miller  <davem@davemloft.net>
9731
9732         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9733         HWCAP_* values only after the memory barriers have been defined.
9734         (atomic_full_barrier): Define.
9735         (atomic_read_barrier): Define.
9736         (atomic_write_barrier): Define.
9737
9738 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9739
9740         * shlib-versions: Add libgcc_s version information.
9741         * sysdeps/generic/libgcc_s.h: Remove.
9742         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9743         libgcc_s.h.
9744         * sysdeps/gnu/unwind-resume.c: Likewise.
9745         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9746
9747 2012-04-25  David S. Miller  <davem@davemloft.net>
9748
9749         * sysdeps/unix/sparc/brk.S: Delete.
9750         * sysdeps/unix/sparc/dl-brk.S: Delete.
9751         * sysdeps/unix/sparc/pipe.S: Delete.
9752         * sysdeps/unix/sparc/sysdep.S: Delete.
9753         * sysdeps/unix/sparc/sysdep.h: Delete.
9754         * sysdeps/unix/sparc/vfork.S: Delete.
9755         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9756         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9757         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9758         ret_ERRVAL, r0, r1, MOVE): Define.
9759         (JUMPTARGET): Remove.
9760         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9761         sysdeps/unix/sparc/sysdep.h
9762         (ENTRY, END): Remove.
9763         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9764
9765 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9766
9767         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9768         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9769         -DIS_IN_build.
9770
9771         * timezone/README: Update upstream location and email address for
9772         tzcode and tzdata.
9773         * timezone/zdump.c: Update from tzcode 2012b.
9774         * timezone/zic.c: Likewise.
9775
9776         * configure.in (libc_cv_as_needed): Remove test.
9777         * configure: Regenerated.
9778         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9779         conditional definition.
9780         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9781         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9782         * config.make.in (have-as-needed): Remove variable.
9783
9784 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9785             Paul Pluzhnikov  <ppluzhnikov@google.com>
9786
9787         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9788         strings correctly.
9789
9790 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9791
9792         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9793         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9794         * sysdeps/sh/strlen.S: Likewise.
9795
9796 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9797
9798         * sysdeps/unix/fork.S: Remove file.
9799         * sysdeps/unix/i386/fork.S: Likewise.
9800         * sysdeps/unix/sparc/fork.S: Likewise.
9801
9802         * sysdeps/unix/system.c: Remove file.
9803         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9804
9805         * sysdeps/unix/getegid.S: Remove file.
9806         * sysdeps/unix/geteuid.S: Likewise.
9807
9808 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9809
9810         * scripts/check-localplt.awk: New file.
9811         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9812         of diff.
9813         * scripts/data/localplt-generic.data: Add a comment.
9814
9815         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9816         NODE when __dir_mkfile failed.
9817         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9818         Reported by Ludovic Courtès <ludo@gnu.org>.
9819
9820 2012-04-24  Andreas Jaeger  <aj@suse.de>
9821
9822         * Makerules (common-clean): Also remove gen-as-const-headers
9823         files.
9824
9825 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9826
9827         * Makerules (native-compile): Do not change working directory for
9828         build.  Use $(OUTPUT_OPTION) in command.
9829         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9830
9831 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9832
9833         [BZ #13886]
9834         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9835         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9836         * math/libm-test.inc (floor_test): Add more tests.
9837         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9838
9839 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9840
9841         * sysdeps/unix/getdents.c: Remove file.
9842         * sysdeps/unix/sysv/getdents.c: Likewise.
9843         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9844
9845         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9846         sysdeps/unix/mman/syscalls.list.
9847         (mmap): Likewise.
9848         (mprotect): Likewise.
9849         (msync): Likewise.
9850         (munmap): Likewise.
9851         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9852         * sysdeps/unix/mman/syscalls.list: Remove.
9853         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9854
9855         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9856         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9857         * configure: Regenerated.
9858         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9859         $(libgcc_s_suffix).
9860         * config.make.in (libgcc_s_suffix): Remove variable.
9861
9862 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9863
9864         * sysdeps/unix/sysv/gethostname.c: Move to ...
9865         * sysdeps/posix/gethostname.c: ... here.
9866
9867         * sysdeps/unix/execve.S: Remove file.
9868
9869         * sysdeps/unix/_exit.S: Remove file.
9870
9871 2012-04-23  Andreas Jaeger  <aj@suse.de>
9872
9873         [BZ #13739]
9874         * manual/Makefile: Remove make dist support, there's no
9875         need for a stand-alone documentation tar ball.
9876         (TEXI2DVI): Define always, it's not in Makeconfig.
9877         (dist): Removed.
9878         (tar-it): Removed.
9879         (edition): Removed.
9880         (glibc-doc-$(edition).tar): Removed
9881         (%.Z): Removed.
9882         (%.gz): Removed.
9883         (%.uu): Removed.
9884         (ETAGS): Remove, it's in Makeconfig.
9885         (move-if-change): Remove, it's in Makeconfig.
9886
9887 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9888
9889         [BZ #13970]
9890         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9891         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9892         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9893         (strtod_l, strtof_l, strtold_l): Remove __wur.
9894         It is not necessarily an error to ignore strtol's return value.
9895         One can reliably look at the stored endptr to decide whether
9896         the number had valid syntax.
9897
9898 2012-04-21  Andreas Jaeger  <aj@suse.de>
9899
9900         [BZ #13739]
9901         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9902
9903 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9904
9905         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9906         * sysdeps/unix/sysv/Versions: Remove file.
9907
9908 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9909
9910         [BZ #13927]
9911         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9912
9913 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9914
9915         [BZ #7064]
9916         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9917         version from __vm86.
9918
9919 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9920
9921         * sysdeps/unix/common/lxstat.c: Remove file.
9922         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9923
9924         * sysdeps/unix/sysv/Makefile: Remove file.
9925
9926         * sysdeps/unix/sysv/direct.h: Remove file.
9927
9928         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9929         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9930         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9931         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9932         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9933         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9934         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9935
9936         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9937
9938         * sysdeps/unix/xmknod.c: Remove file.
9939         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9940
9941         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9942
9943         * sysdeps/unix/sysv/i386/time.S: Remove file.
9944
9945         * sysdeps/unix/fxstat.c: Remove file.
9946         * sysdeps/unix/xstat.c: Likewise.
9947         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9948
9949         * sysdeps/unix/sysv/sigaction.c: Remove file.
9950
9951         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9952         (sysdep_headers): Remove variable.
9953         [termio.h not in sysdep_headers] (generated): Likewise.
9954         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9955         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9956         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9957         * sysdeps/unix/sysv/tcflow.c: Likewise.
9958         * sysdeps/unix/sysv/tcflush.c: Likewise.
9959         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9960         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9961         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9962         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9963         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9964
9965         * sysdeps/unix/siglist.c: Remove file.
9966
9967         * sysdeps/unix/getppid.S: Remove file.
9968
9969         * sysdeps/unix/mkdir.c: Remove file.
9970         * sysdeps/unix/rmdir.c: Likewise.
9971
9972 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9973
9974         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9975         ERR_MAX value.
9976         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9977         errlist-compat value.
9978
9979 2012-04-18  David S. Miller  <davem@davemloft.net>
9980
9981         * sysdeps/generic/memcopy.h (reg_char): Delete.
9982         * debug/strcat_chk.c: Use char, not reg_char.
9983         * debug/strcpy_chk.c: Likewise.
9984         * debug/strncat_chk.c: Likewise.
9985         * debug/strncpy_chk.c: Likewise.
9986         * string/memchr.c: Likewise.
9987         * string/memrchr.c: Likewise.
9988         * string/rawmemchr.c: Likewise.
9989         * string/strcat.c: Likewise.
9990         * string/strchr.c: Likewise.
9991         * string/strchrnul.c: Likewise.
9992         * string/strcmp.c: Likewise.
9993         * string/strcpy.c: Likewise.
9994         * string/strncat.c: Likewise.
9995         * string/strncmp.c: Likewise.
9996         * string/strncpy.c: Likewise.
9997
9998 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9999
10000         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10001         __builtin_memcopy is called when src and dest ranges are known to not
10002         overlap.
10003
10004 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10005
10006         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10007         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10008         fwd_align_merge macro call.
10009         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10010         bwd_align_merge macro call.
10011         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10012
10013 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10014
10015         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10016         bwd_align_merge macros.
10017         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10018         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10019         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10020
10021 2012-04-18  David S. Miller  <davem@davemloft.net>
10022
10023         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10024
10025 2012-04-18  Andreas Jaeger  <aj@suse.de>
10026
10027         [BZ# 6794]
10028         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10029         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10030         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10031
10032         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10033         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10034         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10035
10036         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10037         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10038         Adjust for changed ldbl-128 files.
10039
10040         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10041         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10042         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10043
10044 2012-04-17  David S. Miller  <davem@davemloft.net>
10045
10046         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10047
10048 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10049
10050         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10051         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10052         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10053         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10054         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10055         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10056
10057 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10058
10059         [BZ #6794]
10060         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10061         * math/libm-test.inc: Add ilogb errno and exception tests.
10062         * math/w_ilogb.c: New file: ilogb wrapper.
10063         * math/w_ilogbf.c: New file: ilogbf wrapper.
10064         * math/w_ilogbl.c: New file: ilogbl wrapper.
10065         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10066         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10067         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10068         exception being thrown with 0.0 as argument.
10069         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10070         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10071         exception being thrown with 0.0 as argument.
10072         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10073         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10074         exception being thrown with 0.0 as argument.
10075         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10076         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10077         exception being thrown with 0.0 as argument.
10078         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10079         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10080         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10081         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10082         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10083         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10084         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10085         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10086         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10087
10088 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10089
10090         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10091         with altivec.
10092
10093 2012-04-16  Marek Polacek  <polacek@redhat.com>
10094
10095         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10096
10097 2012-04-16  Marek Polacek  <polacek@redhat.com>
10098
10099         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10100         operands of fdivp instruction.
10101
10102 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10103
10104         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10105         * elf/tst-auditmod3b.c: Likewise.
10106         * elf/tst-auditmod4b.c: Likewise.
10107         * elf/tst-auditmod5b.c: Likewise.
10108         * elf/tst-auditmod6b.c: Likewise.
10109         * elf/tst-auditmod6c.c: Likewise.
10110         * elf/tst-auditmod7b.c: Likewise.
10111         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10112         * sysdeps/x86_64/preconfigure.in: Likewise.
10113         * sysdeps/x86_64/preconfigure: Regenerated.
10114
10115 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10116
10117         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10118         __ILP32__.
10119
10120 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10121
10122         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10123         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10124
10125 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10126
10127         [BZ #13973]
10128         * locale/iso-639.def: Fix gl language name. Spotted by
10129         Yaron Shahrabani.
10130
10131 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10132
10133         [BZ #2074]
10134         * libio/libio.h (__io_write_fn): Update comment.
10135
10136 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10137
10138         [BZ #2074]
10139         * stdio.texi (Hook Functions): The user provided writer function
10140         is not allowed to return -1.
10141
10142 2012-04-11  David S. Miller  <davem@davemloft.net>
10143
10144         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10145
10146 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10147
10148         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10149         Add a leading slash to rtkaio.
10150
10151 2012-04-11  Jim Meyering  <meyering@redhat.com>
10152
10153         [BZ #11959]
10154         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10155         It is not necessarily an error to ignore fwrite's return
10156         value.  One can reliably use ferror to test for errors after
10157         the fact.
10158
10159 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10160
10161         * bits/types.h (__snseconds_t): New type.
10162         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10163
10164         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10165         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10166         (__SNSECONDS_T_TYPE): Likewise.
10167         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10168         (__SNSECONDS_T_TYPE): Likewise.
10169         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10170         (__SNSECONDS_T_TYPE): Likewise.
10171
10172 2012-04-10  Andreas Jaeger  <aj@suse.de>
10173
10174         [BZ #2636]
10175         * manual/time.texi (Processor Time): Return type of times is
10176         elapsed real time since an arbitrary point in the past.
10177         (CPU Time): Move CLK_TCK from here...
10178         (Processor Time): ...to here.  Correct description.
10179         * manual/conf.texi (Constants for Sysconf): Correct description of
10180         _SC_CLK_TCK.
10181
10182 2012-04-10  David S. Miller  <davem@davemloft.net>
10183
10184         [BZ #13967]
10185         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10186         where the is a gap between DT_REL(A) and DT_JMPREL.
10187
10188 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10189
10190         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10191         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10192         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10193
10194 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10195
10196         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10197         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10198         (dl_main): Handle --inhibit-cache.
10199         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10200         _dl_inhibit_cache.
10201         * elf/dl-load.c (_dl_map_object): Use it.
10202         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10203
10204 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10205
10206         [BZ #13872]
10207         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10208         (__ieee754_powl): Saturate large exponents rather than testing for
10209         overflow of y*log2(x).
10210         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10211         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10212         exceptions.
10213
10214         [BZ #11521]
10215         * math/s_ctan.c: Include <float.h>.
10216         (__ctan): Avoid internal overflow or cancellation in calculating
10217         denominator.
10218         * math/s_ctanf.c: Likewise.
10219         * math/s_ctanl.c: Likewise.
10220         * math/s_ctanh.c: Likewise.
10221         * math/s_ctanhf.c: Likewise.
10222         * math/s_ctanhl.c: Likewise.
10223         * math/libm-test.inc (ctan_test): Add more tests.
10224         (ctanh_test): Likewise.
10225         * sysdeps/i386/fpu/libm-test-ulps: Update.
10226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10227
10228 2012-04-09  Andreas Jaeger  <aj@suse.de>
10229
10230         [BZ #6894]
10231         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10232         is an optional BSD extension.
10233
10234         [BZ #10254]
10235         * manual/stdio.texi (Opening Streams): Document additional fopen
10236         parameters.
10237
10238 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10239
10240         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10241         %eax without telling the compiler.
10242
10243 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10244
10245         [BZ # 13963]
10246         * manual/install.texi: Use sourceware.org.
10247
10248 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10249
10250         [BZ #13873]
10251         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10252         (__ieee754_pow): Generate overflow and underflow using huge*huge
10253         and tiny*tiny rather than just returning constant infinity or zero
10254         for large exponents.
10255         * math/libm-test.inc (pow_test): Require overflow exceptions for
10256         applicable cases of large exponents.
10257
10258         [BZ #706]
10259         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10260         (__ieee754_pow): Use iterative multiplication algorithm only for
10261         integer exponents with absolute value below 1024.  Check for odd
10262         integer exponents when using algorithm for real exponents.
10263         * math/libm-test.inc (pow_test): Add more tests.
10264         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10265
10266 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10267
10268         [BZ #13705]
10269         * math/libm-test.inc (exp_test): Do not allow overflow exception
10270         on underflow test.
10271
10272 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10273
10274         [BZ #13705]
10275         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10276         instead of __kernel_standard_f.
10277
10278 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10279
10280         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10281         * sysdeps/x86_64/memset_chk.S: Likewise.
10282
10283 2012-04-08  Andreas Jaeger  <aj@suse.de>
10284
10285         [BZ #10153]
10286         * manual/startup.texi (Environment Access): Describe return value
10287         for putenv and setenv.
10288
10289         [BZ #6895]
10290         * manual/filesys.texi (Directory Entries): Add description for
10291         DT_LNK.
10292
10293         [BZ #6890]
10294         * manual/filesys.texi (Directory Entries): Clarify that it's file
10295         system not operating system in the description of DT_UNKNOWN.
10296
10297         [BZ #6578]
10298         * manual/syslog.texi (closelog): Fix reference, it's openlog.
10299
10300 2012-04-08  Stephen Compall  <s11@member.fsf.org>
10301
10302         [BZ #6649]
10303         * manual/llio.texi (Opening and Closing Files): Add cross
10304         reference to explain mode argument.
10305
10306 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
10307
10308         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
10309         * sysdeps/x86_64/memset_chk.S: Likewise.
10310
10311 2012-04-07  David S. Miller  <davem@davemloft.net>
10312
10313         * elf/elf.h (R_SPARC_WDISP10): Define.
10314         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
10315         R_SPARC_SIZE32.
10316         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
10317         R_SPARC_SIZE64 and R_SPARC_H34.
10318
10319 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
10320
10321         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
10322         conditions and remove no longer applicable assertion.
10323
10324 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10325
10326         * bits/byteswap.h: Include <features.h>.
10327         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10328         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10329
10330 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10331
10332         * bits/byteswap.h (__bswap_16): Removed.
10333         Include <bits/byteswap-16.h> to get __bswap_16.
10334         * sysdeps/i386/bits/byteswap.h: Likewise.
10335         * sysdeps/s390/bits/byteswap.h: Likewise.
10336         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10337         * bits/byteswap-16.h: New file.
10338         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10339         * sysdeps/s390/bits/byteswap-16.h: Likewise.
10340         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
10341         * string/Makefile (headers): Add bits/byteswap-16.h.
10342
10343 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10344
10345         [BZ #13895]
10346         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
10347         extra indirection.
10348         * nss/Makefile (tests-static, tests): Add tst-nss-static.
10349         * nss/tst-nss-static.c: New.
10350
10351 2012-04-06  Robert Millan  <rmh@gnu.org>
10352
10353         [BZ #6486]
10354         * manual/llio.texi (File Position Primitive): lseek
10355         refers to WHENCE when it really means OFFSET.
10356
10357 2012-04-06  Andreas Jaeger  <aj@suse.de>
10358
10359         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
10360         strncmp declarations.
10361
10362         * abilist/libc.abilist: Add __poll and __ppoll.
10363
10364 2012-04-05  David S. Miller  <davem@davemloft.net>
10365
10366         * scripts/check-local-headers.sh: Accept a host triplet in the
10367         path matched by the exclude regexp.
10368
10369         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
10370         definition.
10371         * sysdeps/powerpc/powerpc32/dl-machine.h
10372         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
10373         * sysdeps/s390/s390-32/dl-machine.h
10374         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10375         * sysdeps/sparc/sparc32/dl-machine.h
10376         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10377         * sysdeps/sparc/sparc64/dl-machine.h
10378         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10379
10380         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
10381         lazy binding.
10382         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
10383         undefined symbol errors.
10384
10385         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
10386         DT_NEEDED entries.
10387
10388 2012-04-05  Michael Matz  <matz@suse.de>
10389
10390         [BZ #13592]
10391         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
10392
10393 2012-04-05  Andreas Jaeger  <aj@suse.de>
10394
10395         [BZ #13908]
10396         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
10397         comment.
10398
10399 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10400
10401         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
10402         which ROUND is no valid rounding mode.
10403
10404 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10405
10406         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
10407         read again.
10408         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
10409
10410 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10411
10412         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
10413         an exception using FPU order intentionally.
10414
10415 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10416
10417         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
10418         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
10419         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
10420         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
10421
10422 2012-04-05  Simon Josefsson  <simon@josefsson.org>
10423
10424         [BZ #12340]
10425         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
10426         EINVAL when BUFLEN is too smal.
10427
10428 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10429
10430         [BZ #13553]
10431         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
10432         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10433
10434 2012-04-03  Andreas Jaeger  <aj@suse.de>
10435
10436         [BZ #13938]
10437         * manual/setjmp.texi (System V contexts): Fix sentence.
10438
10439         [BZ #13926]
10440         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
10441         New macro for this case.
10442         [!__GNUC__] (__bswap_64): New inline function for this case.
10443         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10444         * bits/byteswap.h: Likewise.
10445         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
10446         ull, guard with __GLIBC_HAVE_LONG_LONG.
10447
10448         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
10449         __GLIBC_HAVE_LONG_LONG.
10450
10451         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
10452         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
10453
10454 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10455
10456         [BZ #13691]
10457         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
10458         inptr and inend, rather than using last_ch.
10459
10460 2012-04-02  David S. Miller  <davem@davemloft.net>
10461
10462         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
10463         * stdio-common/printf-parse.h (read_int): Change return type to
10464         'int', return -1 on INT_MAX overflow.
10465         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
10466         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
10467         overflows INT_MAX.  Check for overflow of in-format-string precision
10468         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
10469         SIZE_MAX not INT_MAX for integer overflow test.
10470         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
10471         skip the construct in the format string but do not record anything.
10472         * stdio-common/bug22.c: Adjust to test both width/prevision
10473         INT_MAX overflow as well as total length INT_MAX overflow.  Check
10474         explicitly for proper errno values.
10475
10476 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10477
10478         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
10479         CHAR_MAX.
10480         * string/test-strcmp.c [! WIDE]: Likewise.
10481         * time/tst-mktime2.c: Likewise for INT_MAX.
10482         * string/test-string.h: #include <sys/param.h> for MIN.
10483
10484         * csu/init-first.c (__libc_init_first): Call __ctype_init.
10485         * sysdeps/i386/init-first.c (init): Likewise.
10486         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
10487         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
10488         * sysdeps/sh/init-first.c (init): Likewise.
10489
10490 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
10491
10492         * po/ru.po: Update from translation team.
10493         * po/vi.po: Likewise.
10494
10495 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10496
10497         * resolv/nss_dns/dns-host.c: Merge copyright years.
10498
10499 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10500
10501         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10502         Optimize memcpy with prefetch if
10503         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
10504         src, dst pointers have unequal 16 byte alignments.
10505
10506 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10507
10508         [BZ #13928]
10509         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
10510         from a CNAME entry and return the minimum ttl for the query.
10511         (gaih_getanswer_slice): Likewise.
10512
10513 2012-03-30  Jeff Law  <law@redhat.com>
10514
10515         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
10516         due to long keys.
10517         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
10518         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
10519
10520         * resolv/nss_dns/dns-host.c: Update copyright year.
10521
10522 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
10523
10524         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
10525         requests to save a system call.  Fix check that all bytes are sent.
10526
10527         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
10528         comments for sendmmsg.
10529
10530 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10531
10532         [BZ #13691]
10533         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
10534         with only 1 character between 0x0041 and 0x01b0.
10535         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
10536         * wcsmbs/tst-mbsnrtowcs.c: New file.
10537
10538 2012-03-29  David S. Miller  <davem@davemloft.net>
10539
10540         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
10541         small copies by hand.
10542
10543 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10544
10545         [BZ #13761]
10546         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
10547         _nss_compat_initgroups_dyn): Fall back to malloc/free
10548         for large group memberships.
10549
10550 2012-03-28  David S. Miller  <davem@davemloft.net>
10551
10552         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
10553         that branches into memcpy.
10554         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
10555         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
10556         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
10557         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
10558         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
10559         bits.
10560         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
10561         implementation too.
10562         * sysdeps/sparc/mempcpy.S: New file.
10563
10564         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
10565         the IFUNC routine in the libc case.
10566         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10567
10568         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
10569         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
10570         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
10571         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
10572         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
10573         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
10574         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
10575         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
10576
10577         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
10578         loop to 256 bytes instead of 64 bytes and fix test signedness.
10579
10580         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
10581         * sysdeps/sparc/sparc32/Makefile: rather than here...
10582         * sysdeps/sparc/sparc64/Makefile: and here.
10583
10584 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
10585
10586         * malloc/mallocbug.c: Avoid warnings about unused variables.
10587
10588 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10589
10590         [BZ #13760]
10591         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
10592         in the right place. Discard and retry query if response is
10593         larger than input buffer size.
10594
10595 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
10596
10597         [BZ #369]
10598         [BZ #2678]
10599         [BZ #3866]
10600         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
10601         x for large integer exponent.
10602         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
10603         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
10604         sign of result as needed afterwards.
10605         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10606         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
10607         result for underflowing pow the same as for overflow.
10608         (__kernel_standard_l): Handle powl overflow and underflow here
10609         rather than calling __kernel_standard.
10610         * math/libm-test.inc (pow_test): Add more tests.
10611
10612         [BZ #3868]
10613         [BZ #13879]
10614         [BZ #13910]
10615         [BZ #13911]
10616         [BZ #13912]
10617         [BZ #13913]
10618         [BZ #13915]
10619         [BZ #13916]
10620         [BZ #13917]
10621         [BZ #13918]
10622         [BZ #13919]
10623         [BZ #13920]
10624         [BZ #13921]
10625         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
10626         * sysdeps/ieee754/k_standard.c: Include <float.h>.
10627         (__kernel_standard_l): New function.
10628         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
10629         __kernel_standard.
10630         * math/w_acosl.c (__acosl): Likewise.
10631         * math/w_asinl.c (__asinl): Likewise.
10632         * math/w_atan2l.c (__atan2l): Likewise.
10633         * math/w_atanhl.c (__atanhl): Likewise.
10634         * math/w_coshl.c (__coshl): Likewise.
10635         * math/w_exp10l.c (__exp10l): Likewise.
10636         * math/w_exp2l.c (__exp2l): Likewise.
10637         * math/w_fmodl.c (__fmodl): Likewise.
10638         * math/w_hypotl.c (__hypotl): Likewise.
10639         * math/w_j0l.c (__j0l, __y0l): Likewise.
10640         * math/w_j1l.c (__j1l, __y1l): Likewise.
10641         * math/w_jnl.c (__jnl, __ynl): Likewise.
10642         * math/w_lgammal.c (__lgammal): Likewise.
10643         * math/w_log10l.c (__log10l): Likewise.
10644         * math/w_log2l.c (__log2l): Likewise.
10645         * math/w_logl.c (__logl): Likewise.
10646         * math/w_powl.c (__powl): Likewise.
10647         * math/w_remainderl.c (__remainderl): Likewise.
10648         * math/w_scalbl.c (sysv_scalbl): Likewise.
10649         * math/w_sinhl.c (__sinhl): Likewise.
10650         * math/w_sqrtl.c (__sqrtl): Likewise.
10651         * math/w_tgammal.c (__tgammal): Likewise.
10652         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
10653         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
10654         * math/libm-test.inc (acos_test): Add more tests.
10655         (acosh_test): Likewise.
10656         (asin_test): Likewise.
10657         (atanh_test): Likewise.
10658         (exp_test): Likewise.
10659         (exp10_test): Likewise.
10660         (exp2_test): Likewise.
10661         (expm1_test): Likewise.
10662         (lgamma_test): Likewise.
10663         (log_test): Likewise.
10664         (log10_test): Likewise.
10665         (log1p_test): Likewise.
10666         (log2_test): Likewise.
10667         (pow_test): Do not allow some spurious overflow exceptions.
10668         (sqrt_test): Add more tests.
10669         (tgamma_test): Likewise.
10670         (y0_test): Likewise.
10671         (y1_test): Likewise.
10672         (yn_test): Likewise.
10673
10674 2012-03-27  Anton Blanchard  <anton@samba.org>
10675
10676         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10677         MAP_HUGETLB.
10678         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10679         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10680         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10681
10682 2012-03-27  David S. Miller  <davem@davemloft.net>
10683
10684         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10685
10686         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10687         have-as-vis3 check.
10688
10689 2012-03-27  Andreas Jaeger  <aj@suse.de>
10690
10691         * sysdeps/x86_64/elf/configure.in: Moved to ...
10692         * sysdeps/x86_64/configure.in: ... here.
10693         * sysdeps/x86_64/elf/start.S: Moved to ...
10694         * sysdeps/x86_64/start.S: ... here.
10695         * sysdeps/x86_64/elf/configure: Delete.
10696
10697         * sysdeps/x86_64/configure.in: Merge contents from
10698         sysdeps/i386/configure.in (without i686 check).
10699
10700         * sysdeps/i386/elf/Versions: Merge into ...
10701         * sysdeps/i386/Versions: ... this.
10702         * sysdeps/i386/elf/Versions: Delete file.
10703         * sysdeps/i386/elf/start.S: Moved to ...
10704         * sysdeps/i386/start.S: ...here.
10705         * sysdeps/i386/elf/configure.in: Merge into...
10706         * sysdeps/i386/configure.in: ...here.
10707         * sysdeps/i386/elf/configure.in: Delete file.
10708         * sysdeps/i386/elf/configure: Delete file.
10709
10710         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10711         * debug/backtracesyms.c: ... here.
10712         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10713         * debug/backtracesymsfd.c: ... here.
10714         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10715         * sysdeps/generic/ifunc-sel.h: ... here.
10716
10717         * sysdeps/unix/i386/start.c: Delete file.
10718         * sysdeps/unix/sparc/start.c: Delete file.
10719         * sysdeps/unix/start.c: Delete file.
10720
10721         * sysdeps/sh/elf/configure.in: Moved to ...
10722         * sysdeps/sh/configure.in: ... here.
10723         * sysdeps/sh/elf/start.S: Moved to ...
10724         * sysdeps/sh/start.S: ... here.
10725         * sysdeps/sh/elf/configure: Delete file.
10726
10727         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10728         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10729         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10730         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10731         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10732         * sysdeps/powerpc/powerpc64/start.S: here.
10733         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10734         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10735         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10736         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10737         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10738
10739         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10740         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10741         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10742         * sysdeps/powerpc/powerpc32/start.S: ... here.
10743         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10744         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10745         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10746
10747         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10748         * sysdeps/powerpc/ifunc-sel.h: ... here.
10749         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10750         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10751
10752         * sysdeps/sparc/elf/configure.in: Moved to ...
10753         * sysdeps/sparc/configure.in: ... here.
10754         * sysdeps/sparc/elf/configure: Delete file.
10755         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10756         * sysdeps/sparc/sparc32/start.S: ... here.
10757         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10758         * sysdeps/sparc/sparc64/start.S: ... here.
10759         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10760         * sysdeps/sparc/sparc32/Makefile: ... this.
10761         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10762         * sysdeps/sparc/sparc64/Makefile: ... this.
10763
10764         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10765         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10766         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10767         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10768         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10769         * sysdeps/s390/s390-32/setjmp.S: ... here.
10770         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10771         * sysdeps/s390/s390-32/configure.in: ... here.
10772         * sysdeps/s390/s390-32/elf/configure: Delete file.
10773         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10774         * sysdeps/s390/s390-32/start.S: ... here.
10775
10776         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10777         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10778         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10779         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10780         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10781         * sysdeps/s390/s390-64/setjmp.S: ... here.
10782         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10783         * sysdeps/s390/s390-64/configure.in: ... here
10784         * sysdeps/s390/s390-64/elf/configure: Delete file.
10785         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10786         * sysdeps/s390/s390-64/start.S: ... here.
10787         * sysdeps/s390/s390-64/elf/configure: Delete.
10788
10789         * configure.in: Remove support for elf directories in sysdeps.
10790
10791         * configure: Regenerated.
10792         * sysdeps/i386/configure: Regenerated.
10793         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10794         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10795         * sysdeps/s390/s390-32/configure: Regenerated.
10796         * sysdeps/s390/s390-64/configure: Regenerated.
10797         * sysdeps/sh/configure: Regenerated.
10798         * sysdeps/sparc/configure: Regenerated.
10799         * sysdeps/x86_64/configure: Regenerated.
10800
10801 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10802
10803         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10804
10805         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10806         denormal result into account.
10807
10808 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10809
10810         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10811         Reported by Allan McRae <allan@archlinux.org>.
10812
10813 2012-03-23  Jeff Law  <law@redhat.com>
10814
10815         * nss/getnssent.c (__nss_getent): Fix typo.
10816
10817 2012-03-23  David S. Miller  <davem@davemloft.net>
10818
10819         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10820
10821 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10822
10823         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10824         to pad to uint64_t for each field.
10825         (dl_tls_index): Replace unsigned long with uint64_t.
10826
10827 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10828         Paul Pluzhnikov  <ppluzhnikov@google.com>
10829
10830         [BZ #6528]
10831         * grp/Makefile (otherlibs): Don't set it.
10832         * inet/Makefile (otherlibs): Likewise.
10833         * login/Makefile (otherlibs): Likewise.
10834         * nscd/Makefile (otherlibs): Likewise.
10835         * posix/Makefile (otherlibs): Likewise.
10836         * pwd/Makefile (otherlibs): Likewise.
10837         * rt/Makefile (otherlibs): Likewise.
10838         * sunrpc/Makefile (otherlibs): Likewise.
10839         * nss/Makefile (otherlibs): Likewise.
10840         Add libnss_files to routines and static-only-routines.
10841         ($(objpfx)getent): Remove rule.
10842         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10843         static-only-routines.
10844
10845 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10846
10847         [BZ #13892]
10848         * math/s_cexp.c: Include <float.h>.
10849         (__cexp): Handle exp result overflowing not necessarily
10850         overflowing both real and imaginary parts of result.
10851         * math/s_cexpf.c: Likewise.
10852         * math/s_cexpl.c: Likewise.
10853         * math/libm-test.inc (cexp_test): Add more tests.
10854         * sysdeps/i386/fpu/libm-test-ulps: Update.
10855         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10856
10857 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10858
10859         * include/link.h (ELFW): New macro.
10860         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10861         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10862
10863 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10864
10865         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10866         with uint64_t.
10867
10868 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10869
10870         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10871         declaration.
10872         (struct La_x32_retval): Likewise.
10873
10874 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10875
10876         * sysdeps/x86_64/preconfigure.in: New file.
10877         * sysdeps/x86_64/preconfigure: New generated file.
10878
10879 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10880
10881         [BZ #13824]
10882         * math/e_exp2l.c: Include <float.h>.
10883         (__ieee754_exp2l): Handle overflow and underflow cases
10884         separately.  Only pass fractional part of argument to
10885         __ieee754_expl.
10886         * math/libm-test.inc (exp2_test): Add more tests.
10887
10888         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10889         negating x to take absolute value.
10890         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10891         Likewise.
10892         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10893         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10894         Likewise.
10895         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10896         computing low part if x was negated.
10897         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10898
10899 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10900
10901         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10902         la_x32_gnu_pltexit.
10903         (pltexit): Cast int_retval to ptrdiff_t.
10904         * elf/tst-auditmod3b.c: Likewise.
10905         * elf/tst-auditmod4b.c: Likewise.
10906         * elf/tst-auditmod5b.c: Likewise.
10907         * elf/tst-auditmod6b.c: Likewise.
10908         * elf/tst-auditmod6c.c: Likewise.
10909         * elf/tst-auditmod7b.c: Likewise.
10910
10911         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10912         and x32_gnu_pltexit.
10913
10914         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10915         __ELF_NATIVE_CLASS.
10916         (La_x32_regs): New macro.
10917         (La_x32_retval): Likewise.
10918         (la_x32_gnu_pltenter): New function prototype.
10919         (la_x32_gnu_pltexit): Likewise.
10920
10921 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10922
10923         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10924         exponent.
10925
10926         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10927
10928         * configure.in (libc_cv_cc_nofma): Check for option to disable
10929         generation of FMA instructions.
10930         * configure: Regenerate.
10931         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10932         * sysdeps/ieee754/dbl-64/Makefile: New file.
10933         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10934         Remove brandred-fma4.
10935         (CFLAGS-brandred-fma4.c): Remove.
10936         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10937         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10938         define.
10939         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10940         define.
10941
10942 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10943
10944         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10945         LLONG_MAX != LONG_MAX.
10946         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10947         (_fitoa_word): Likewise.
10948         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10949         LLONG_MAX != LONG_MAX.
10950         * stdio-common/_itowa.h: Include <_itoa.h>.
10951         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10952         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10953         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10954         only if not defined.
10955         (_ITOA_WORD_TYPE): Likewise.
10956         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10957         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10958
10959 2012-03-21  David S. Miller  <davem@davemloft.net>
10960
10961         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10962
10963 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10964
10965         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10966         of x86_64 when setting libc_cv_slibdir, libdir and
10967         libc_cv_localedir.
10968         * sysdeps/unix/sysv/linux/configure: Regenerated.
10969
10970 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10971
10972         * manual/lang.texi (Old Varargs): Remove section.
10973         (How Variadic): Update menu.
10974         (va_start): Do not mention varargs.h.
10975
10976 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10977             Joseph Myers  <joseph@codesourcery.com>
10978
10979         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10980         link test.
10981         * configure: Regenerated.
10982
10983 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10984
10985         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10986         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10987         conformtest.pl
10988
10989 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10990
10991         * NOTES: Remove.
10992         * Makefile (files-for-dist): Remove NOTES.
10993         (NOTES): Remove rule.
10994         * README: Don't refer to NOTES.
10995         * manual/creature.texi: Don't include macros.texi.
10996         * manual/intro.texi (creature.texi): Remove comment referring to
10997         NOTES.
10998
10999         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11000         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11001         * configure: Regenerated.
11002         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11003         LIBC_TRY_CC_OPTION.
11004         (libc_cv_as_i686): Likewise.
11005         (libc_cv_cc_avx): Likewise.
11006         (libc_cv_cc_sse2avx): Likewise.
11007         (libc_cv_cc_fma4): Likewise.
11008         (libc_cv_cc_novzeroupper): Likewise.
11009         * sysdeps/i386/configure: Regenerated.
11010
11011         [BZ #13883]
11012         * sysdeps/i386/fpu/s_cexp.S: Remove.
11013         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11014         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11015         * math/libm-test.inc (cexp_test): Add more tests.
11016         * sysdeps/i386/fpu/libm-test-ulps: Update.
11017         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11018
11019 2012-03-21  Allan McRae  <allan@archlinux.org>
11020
11021         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11022
11023 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11024
11025         [BZ #13871]
11026         * math/w_exp2.c: Do not include <float.h>.
11027         (o_threshold, u_threshold): Remove.
11028         (__exp2): Calculate result before checking finiteness and calling
11029         __kernel_standard.
11030         * math/w_exp2f.c: Likewise.
11031         * math/w_exp2l.c: Likewise.
11032         * math/libm-test.inc (exp2_test): Require overflow exception for
11033         1e6 input.
11034
11035         [BZ #3866]
11036         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11037         range of signed 64-bit integers before using fistpll.  Remove
11038         checks for whether integers fit in mantissa bits.
11039         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11040         the range of signed 32-bit integers before using fistpl.  Remove
11041         checks for whether integers fit in mantissa bits.
11042         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11043         (__ieee754_powl): Test for y outside the range of signed 64-bit
11044         integers before using fistpll.  Reduce 64-bit values to 63-bit
11045         ones as needed.
11046         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11047         divide-by-zero is raised for zero to large negative powers.
11048         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11049         (__ieee754_powl): Test for y outside the range of signed 64-bit
11050         integers before using fistpll.  Reduce 64-bit values to 63-bit
11051         ones as needed.
11052         * math/libm-test.inc (pow_test): Add more tests.
11053
11054 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11055
11056         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11057         <stdio-common/_itoa.h>.
11058         * debug/segfault.c: Likewise.
11059         * elf/dl-cache.c: Likewise.
11060         * elf/dl-minimal.c: Likewise.
11061         * elf/dl-misc.c: Likewise.
11062         * elf/dl-sysdep.c: Likewise.
11063         * elf/dl-version.c: Likewise.
11064         * elf/rtld.c: Likewise.
11065         * hurd/hurdsock.c: Likewise.
11066         * hurd/lookup-retry.c: Likewise.
11067         * malloc/malloc.c: Likewise.
11068         * malloc/mtrace.c: Likewise.
11069         * nscd/nscd_getgr_r.c: Likewise.
11070         * nscd/nscd_getpw_r.c: Likewise.
11071         * nscd/nscd_getserv_r.c: Likewise.
11072         * posix/getopt_init.c: Likewise.
11073         * posix/wordexp.c: Likewise.
11074         * stdio-common/_itoa.c: Likewise.
11075         * stdio-common/printf_fphex.c: Likewise.
11076         * stdio-common/vfprintf.c: Likewise.
11077         * string/_strerror.c: Likewise.
11078         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11079         * sysdeps/i386/i686/hp-timing.h: Likewise.
11080         * sysdeps/mach/_strerror.c: Likewise.
11081         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11082         * sysdeps/mach/hurd/sethostid.c: Likewise.
11083         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11084         * sysdeps/mach/xpg-strerror.c: Likewise.
11085         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11086         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11087         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11088         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11089         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11090         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11091         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11092         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11093         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11094         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11095         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11096         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11097         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11098         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11099         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11100         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11101         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11102         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11103         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11104         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11105         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11106
11107         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11108
11109         * stdio-common/_itoa.h: Moved to ...
11110         * sysdeps/generic/_itoa.h: Here.
11111
11112         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11113
11114         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11115         instead of "_itoa.h" and "_itowa.h".
11116         * stdio-common/vfprintf.: Likewise.
11117
11118 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11119
11120         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11121         <bits/wordsize.h>.
11122         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11123         (__signbit): Likwise.
11124         (llrintf): Likwise.
11125         (llrint): Likwise.
11126
11127 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11128
11129         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11130         __WORDSIZE != 64.
11131
11132 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11133
11134         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11135         OVERFLOW_EXCEPTION_OK.
11136         * math/libm-test.inc ("Philosophy"): Update comment about
11137         exception testing.
11138         (OVERFLOW_EXCEPTION): Define.
11139         (OVERFLOW_EXCEPTION_OK): Likewise.
11140         (INVALID_EXCEPTION_OK): Renumber.
11141         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11142         (IGNORE_ZERO_INF_SIGN): Likewise.
11143         (test_exceptions): Handle FE_OVERFLOW.
11144         (exp10_test): Expect overflow exceptions.
11145         (exp2_test): Likewise.
11146         (expm1_test): Likewise.
11147         (nextafter_test): Likewise.
11148         (pow_test): Likewise.
11149         (scalbn_test): Likewise.
11150         (scalbln_test): Likewise.
11151
11152 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11153
11154         * sysdeps/x86_64/bits/atomic.h
11155         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11156         64bit integer.
11157         (atomic_exchange_acq): Likewise.
11158         (__arch_exchange_and_add_body): Likewise.
11159         (__arch_add_body): Likewise.
11160         (atomic_add_negative): Likewise.
11161         (atomic_add_zero): Likewise.
11162
11163 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11164
11165         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11166         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11167
11168 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11169
11170         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11171         Check __x86_64__ instead of __WORDSIZE.
11172
11173 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11174
11175         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11176
11177 2012-03-19  David S. Miller  <davem@davemloft.net>
11178
11179         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11180
11181         * sysdeps/sparc/fpu/fenv_private.h: New file.
11182         * sysdeps/sparc/fpu/math_private.h: Use it.
11183         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11184         Remove.
11185         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11186         (libc_feholdexcept_setroundl): Remove.
11187         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11188         Remove.
11189         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11190         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11191
11192 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11193
11194         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11195         int64_t instead of long int.
11196         (INSERT_WORDS64): Likwise.
11197
11198 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11199
11200         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11201         _Unwind_GetCFA return to _Unwind_Ptr first.
11202
11203 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11204
11205         [BZ #13629]
11206         * math/s_clog.c: Include <float.h>.
11207         (__clog): Scale large or subnormal inputs.
11208         * math/s_clogf.c: Likewise.
11209         * math/s_clogl.c: Likewise.
11210         * math/s_clog10.c: Include <float.h>.
11211         (M_LOG10_2): Define.
11212         (__clog10): Scale large or subnormal inputs.
11213         * math/s_clog10f.c: Likewise.
11214         * math/s_clog10l.c: Likewise.
11215         * math/libm-test.inc (clog_test): Add more tests.
11216         (clog10_test): Likewise.
11217         * sysdeps/i386/fpu/libm-test-ulps: Update.
11218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11219
11220         [BZ #11451]
11221         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11222         x and y.
11223         * math/libm-test.inc (atan2_test): Add another test.
11224
11225         * Makerules (common-objdir-compile): Remove.
11226         * sysdeps/unix/Makefile (config-generated): Do not add
11227         $(unix-generated) to variable.
11228         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11229         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11230         Remove rule.
11231         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11232         Likewise.
11233         [generic bits/local_lim.h] (before-compile): Do not append to
11234         variable.
11235         [generic bits/local_lim.h] (common-generated): Likewise.
11236         [generic sys/param.h] (before-compile): Do not append to variable.
11237         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11238         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11239         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11240         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11241         include.
11242         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11243         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11244         [generic sys/param.h] ($(addprefix
11245         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11246         [generic sys/param.h] (common-generated): Do not append to
11247         variable.
11248         [generic sys/param.h] (sysdep_headers): Likewise.
11249         [generic bits/errno.h] (before-compile): Do not append to
11250         variable.
11251         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11252         rule.
11253         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11254         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11255         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11256         [generic bits/errno.h] (common-generated): Do not append to
11257         variable.
11258         [generic bits/ioctls.h] (before-compile): Do not append to
11259         variable.
11260         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11261         rule.
11262         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11263         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11264         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11265         rule.
11266         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11267         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11268         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11269         [generic bits/ioctls.h] (common-generated): Do not append to
11270         variable.
11271         [generic sys/syscall.h] (syscall.h): Remove variable.
11272         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11273         rule.
11274         [generic sys/syscall.h] (before-compile): Do not append to
11275         variable.
11276         [generic sys/syscall.h] (common-generated): Likewise.
11277         * sysdeps/unix/errnos-tmpl.c: Remove file.
11278         * sysdeps/unix/errnos.awk: Likewise.
11279         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11280         * sysdeps/unix/ioctls.awk: Likewise.
11281         * sysdeps/unix/mk-local_lim.c: Likewise.
11282         * sysdeps/unix/snarf-ioctls: Likewise.
11283
11284 2012-03-19  Richard Henderson  <rth@twiddle.net>
11285
11286         * sysdeps/i386/fpu/fenv_private.h: New file.
11287         * sysdeps/i386/fpu/math_private.h: Use it.
11288         (math_opt_barrier, math_force_eval): Remove.
11289         (libc_feholdexcept_setround_53bit): Remove.
11290         (libc_feupdateenv_53bit): Remove.
11291         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11292         (math_opt_barrier, math_force_eval): Remove.
11293         (libc_feholdexcept): Remove.
11294         (libc_feholdexcept_setround): Remove.
11295         (libc_fetestexcept, libc_fesetenv): Remove.
11296         (libc_feupdateenv_test): Remove.
11297         (libc_feupdateenv, libc_feholdsetround): Remove.
11298         (libc_feresetround): Remove.
11299
11300         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
11301         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
11302
11303         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
11304         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
11305         (libc_feupdateenv_testl): New.
11306         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
11307         (libc_feupdateenv_testf): New.
11308         (libc_feupdateenv): Use libc_feupdateenv_test.
11309         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
11310         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
11311
11312         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
11313         (libc_feholdsetroundf, libc_feholdsetroundl): New.
11314         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
11315         (libc_feresetround_noex): New.
11316         (libc_feresetround_noexf): New.
11317         (libc_feresetround_noexl): New.
11318         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
11319         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
11320         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
11321         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
11322         SET_RESTORE_ROUND.
11323         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11324         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
11325         (__cos): Likewise.
11326         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
11327         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11328         SET_RESTORE_ROUND_NOEX.
11329         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
11330         SET_RESTORE_ROUND_NOEXF.
11331         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
11332         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
11333         (libc_feholdsetroundf): New.
11334         (libc_feresetround, libc_feresetroundf): New.
11335
11336         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
11337         (libc_feholdexcept_setround_53bit): Convert from macro to function.
11338         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
11339
11340         * sysdeps/generic/math_private.h: Include <fenv.h>.
11341         (default_libc_feholdexcept): New.
11342         (default_libc_feholdexcept_setround): New.
11343         (default_libc_fesetenv, default_libc_feupdateenv): New.
11344         (libc_feholdexcept): Only define if undefined.
11345         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
11346         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
11347         (libc_feholdexcept_setroundl): Likewise.
11348         (libc_feholdexcept_setround_53bit): Likewise.
11349         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
11350         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
11351         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
11352         (libc_feupdateenv_53bit): Likewise.
11353         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
11354         (libc_feholdexcept): Convert from macro to inline function.
11355         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
11356         (libc_fesetenv, libc_feupdateenv): Likewise.
11357
11358         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
11359         not previously defined.
11360         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
11361         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
11362         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
11363         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
11364         * sysdeps/ieee754/flt-32/math_private.h: New file.
11365         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
11366         math_private.h below SET_FLOAT_WORD.
11367         (__isnan, __isinf_ns, __finite): Remove.
11368         (__isnanf, __isinf_nsf, __finitef): Remove.
11369
11370 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
11371
11372         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11373
11374 2012-03-17  David S. Miller  <davem@davemloft.net>
11375
11376         [BZ #6471]
11377         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
11378         for 2.16.
11379
11380 2012-03-16  David S. Miller  <davem@davemloft.net>
11381
11382         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
11383         warnings.
11384
11385         [BZ #6471]
11386         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
11387         properly.
11388         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
11389         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
11390         sysdep_routines when subdir is sysvipc.
11391         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
11392         __getshmlba helper.
11393
11394         * sysdeps/sparc/fpu/libm-test/ulps: Update.
11395
11396 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11397
11398         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
11399         [__LP64__].
11400
11401 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11402
11403         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
11404         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
11405         (__lround): Renamed to ...
11406         (__llround): This.  Replace long int with long long int.
11407         Define lround functions as aliases of llround functions.
11408         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
11409
11410 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11411
11412         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
11413         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
11414         adresses to uintptr_t.  Replace "long int" and "unsigned long
11415         int" with "greg_t" on va_arg.
11416
11417 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11418
11419         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
11420         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
11421
11422         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
11423         Move e_machine check before EI_CLASS check.  Handle x32
11424         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
11425         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
11426         SKIP_EM_IA_64 and include
11427         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
11428
11429         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
11430         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
11431         (add_system_dir): New macro.
11432
11433         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
11434         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
11435
11436 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11437
11438         [BZ #2551]
11439         [BZ #2552]
11440         [BZ #2553]
11441         [BZ #2554]
11442         [BZ #2562]
11443         [BZ #2563]
11444         [BZ #2565]
11445         [BZ #2566]
11446         [BZ #2576]
11447         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
11448         (y0): Likewise.
11449         * math/w_j0f.c (j0f): Likewise.
11450         (y0f): Likewise.
11451         * math/w_j0l.c (__j0l): Likewise.
11452         (__y0l): Likewise.
11453         * math/w_j1.c (j1): Likewise.
11454         (y1): Likewise.
11455         * math/w_j1f.c (j1f): Likewise.
11456         (y1f): Likewise.
11457         * math/w_j1l.c (__j1l): Likewise.
11458         (__y1l): Likewise.
11459         * math/w_jn.c (jn): Likewise.
11460         (yn): Likewise.
11461         * math/w_jnf.c (jnf): Likewise.
11462         (ynf): Likewise.
11463         * math/w_jnl.c (__jnl): Likewise.
11464         (__ynl): Likewise.
11465         * math/libm-test.inc (j0_test): Add more tests.
11466         (j1_test): Likewise.
11467         (jn_test): Likewise.  Add trailing semicolon to existing test.
11468         (y0_test): Likewise.
11469         (y1_test): Likewise.
11470         * sysdeps/i386/fpu/libm-test-ulps: Update.
11471         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11472
11473         [BZ #13851]
11474         [BZ #13854]
11475         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11476         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
11477         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
11478         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
11479         (__tanl): Set errno for infinite argument.
11480         * sysdeps/i386/fpu/mptan.c: Remove.
11481         * sysdeps/i386/fpu/s_tan.S: Likewise.
11482         * sysdeps/i386/fpu/s_tanl.S: Likewise.
11483         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
11484         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
11485         * math/libm-test.inc (tan_test): Add more tests and enable more
11486         tests for double and long double.
11487         * sysdeps/i386/fpu/libm-test-ulps: Update.
11488         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11489
11490 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11491
11492         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
11493         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
11494
11495 2012-03-16  Roland McGrath  <roland@hack.frob.com>
11496
11497         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
11498         * configure.in: Use it for both main tree and add-ons.
11499         * configure: Regenerated.
11500
11501 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11502
11503         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
11504
11505 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11506
11507         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
11508         in comment.
11509
11510         [BZ #13851]
11511         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
11512         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
11513         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11514         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
11515         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
11516         infinite argument.
11517         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
11518         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
11519         != 0 for prec == 2.
11520         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
11521         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
11522         * sysdeps/i386/fpu/s_cosl.S: Likewise.
11523         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
11524         * sysdeps/i386/fpu/s_sinl.S: Likewise.
11525         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
11526         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
11527         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
11528         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
11529         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
11530         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
11531         * math/libm-test.inc (cos_test): Add more tests and enable more
11532         tests for long double.
11533         (sin_test): Likewise.
11534         (sincos_test): Likewise.
11535         * sysdeps/i386/fpu/libm-test-ulps: Update.
11536         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11537
11538 2012-03-16  David S. Miller  <davem@davemloft.net>
11539
11540         * sysdeps/sparc/fpu/math_private.h: New file.
11541
11542 2012-03-15  David S. Miller  <davem@davemloft.net>
11543
11544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
11545         file.
11546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
11547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
11548         file.
11549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
11550         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
11551         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
11552         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
11553         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
11554         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
11555         sysdep routines.
11556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11557
11558         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
11559         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
11560
11561         * sysdeps/sparc/sparc-ifunc.h: New file.
11562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
11563         sparc-ifunc.h
11564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
11565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
11566         Likewise.
11567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
11568         Likewise.
11569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
11570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
11571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
11572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
11573         Likewise.
11574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
11575         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
11576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
11577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
11578         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
11579         Likewise.
11580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
11581         Likewise.
11582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
11583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
11584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
11585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
11586         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
11587         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
11588         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
11589         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
11590         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
11591         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
11592         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
11593         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
11594         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
11595         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
11596         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
11597         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
11598         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
11599         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
11600         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
11601         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
11602         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
11603         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
11604         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
11605         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
11606
11607 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11608
11609         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
11610         scaling.
11611         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11612
11613 2012-03-15  Andreas Jaeger  <aj@suse.de>
11614
11615         [BZ #13852]
11616         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
11617         ieee754/flt-32 implementation for sin, cos and sincos.
11618         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
11619         * sysdeps/i386/fpu/s_cosf.S: Likewise.
11620         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
11621         * sysdeps/i386/fpu/s_sinf.S: Likewise.
11622         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
11623         ieee754/flt-32 implementation for tan.
11624
11625         * math/libm-test.inc (cos_test): Enable some large input tests for
11626         float as well
11627         (sin_test): Likewise.
11628         (sincos_test): Likewise.
11629         (tan_test): Add tests for large input.
11630
11631         * sysdeps/i386/fpu/libm-test-ulps: Update.
11632
11633 2012-03-15  Andreas Jaeger  <aj@suse.de>
11634
11635         [BZ #13658]
11636         * math/libm-test.inc (cos_test): Add more test cases.
11637         (sin_test): Likewise.
11638         (sincos_test): Likewise.
11639
11640 2012-03-15  Andreas Jaeger  <aj@suse.de>
11641
11642         [BZ #13837]
11643         * math/libm-test.inc (cos_test): Add a test case for large input
11644         value.
11645         (sin_test): Likewise.
11646         (sincos_test): Likewise.
11647
11648 2012-03-15  Andreas Jaeger  <aj@suse.de>,
11649         Joseph Myers  <joseph@codesourcery.com>
11650
11651         [BZ #13658]
11652         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
11653         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
11654         * sysdeps/i386/fpu/branred.c: Likewise.
11655         * sysdeps/i386/fpu/dosincos.c: Likewise.
11656         * sysdeps/i386/fpu/mpa.c: Likewise.
11657         * sysdeps/i386/fpu/s_cos.S: Likewise.
11658         * sysdeps/i386/fpu/s_sin.S: Likewise.
11659         * sysdeps/i386/fpu/s_sincos.S: Likewise.
11660         * sysdeps/i386/fpu/sincos32.c: Likewise.
11661
11662         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
11663         Define.
11664         (libc_feupdateenv_53bit): Define.
11665         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
11666         Define.
11667         (libc_feupdateenv_53bit): Define.
11668
11669         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
11670         53 bit (without extend i386 double precision).
11671
11672         * math/libm-test.inc (sincos_test): Add tests for large input.
11673         (sin): Likewise.
11674         (cos): Likewise.
11675
11676         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11677
11678 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11679
11680         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11681
11682 2012-03-15  David S. Miller  <davem@davemloft.net>
11683
11684         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11685         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11686         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11687         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11688         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11689         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11690         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11691         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11692         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11693         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11694         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11695         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11696         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11697         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11698         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11700         file.
11701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11703         file.
11704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11706         file.
11707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11708         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11709         file.
11710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11711         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11712         fmin/fmax sysdep routines.
11713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11714
11715 2012-03-14  David S. Miller  <davem@davemloft.net>
11716
11717         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11718         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11719         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11720         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11721         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11722         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11723         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11724         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11725         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11726         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11727         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11728         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11729         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11730         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11731         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11732         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11733         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11734         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11735         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11736         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11737         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11738         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11739         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11740         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11741         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11742         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11743         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11744         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11745         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11746         routines.
11747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11748         file.
11749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11751         file.
11752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11754         file.
11755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11757         file.
11758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11760         file.
11761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11763         file.
11764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11765         file.
11766         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11767         file.
11768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11769         file.
11770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11771         New file.
11772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11773         file.
11774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11775         file.
11776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11778         file.
11779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11780         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11781         file.
11782         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11784         file.
11785         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11787         VIS3 routines.
11788
11789         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11790         New file.
11791
11792         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11793
11794         * sysdeps/sparc/configure.in: New file.
11795         * sysdeps/sparc/configure: Generate.
11796         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11797         * configure: Regenerate.
11798         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11799         * config.make.in (have-as-vis3): New.
11800         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11801         available use -Av9d instead of -Av9a.
11802         * sysdeps/sparc/sparc64/Makefile: Likewise.
11803         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11805         New file.
11806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11807         file.
11808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11809         New file.
11810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11811         file.
11812         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11813         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11814         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11815         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11816         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11817
11818         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11819         fzeros/fnegs to load 0x80000000 into a float register instead of
11820         using the stack.
11821         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11822
11823 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11824
11825         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11826         bits/syscall.h.
11827         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11828         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11829         ($(inst_includedir)/bits/syscall.h): Remove rule.
11830         ($(objpfx)bits/syscall.d): Include instead of
11831         $(objpfx)syscall-list.d.
11832         (generated): Change syscall-list.h and syscall-list.d to
11833         bits/syscall.h and bits/syscall.d.
11834
11835 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11836
11837         [BZ #13846]
11838         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11839
11840 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11841
11842         [BZ #13841]
11843         * math/s_csqrt.c: Include <float.h>.
11844         (__csqrt): Scale large or subnormal inputs.
11845         * math/s_csqrtf.c: Likewise.
11846         * math/s_csqrtl.c: Likewise.
11847         * math/libm-test.inc (csqrt_test): Add more tests.
11848         * sysdeps/i386/fpu/libm-test-ulps: Update.
11849         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11850
11851         [BZ #13840]
11852         * math/libm-test.inc (hypot_test): Add more tests.
11853
11854 2012-03-13  David S. Miller  <davem@davemloft.net>
11855
11856         [BZ #13840]
11857         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11858         double-precision for the calculation instead of scaling.
11859
11860 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11861
11862         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11863         manipulate bits before adding and subtracting TWO52[sx].
11864         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11865         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11866         Likewise.
11867         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11868
11869 2012-03-13  David S. Miller  <davem@davemloft.net>
11870
11871         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11872         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11873         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11874         rtld-global-offsets.h
11875         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11876
11877         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11878         large parameters.
11879
11880         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11881
11882         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11883         'err' in the ifdef scope in which it is actually used.
11884
11885         * nss/nss_db/db-init.c: Include string.h
11886
11887 2012-03-12  David S. Miller  <davem@davemloft.net>
11888
11889         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11890         masking out of the most significant byte of random value used.
11891         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11892         Fix coding style in previous change.
11893
11894         * sysdeps/unix/sysv/linux/kernel-features.h
11895         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11896         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11897         expression.
11898         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11899         later.
11900
11901 2012-03-11  David S. Miller  <davem@davemloft.net>
11902
11903         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11904         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11905         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11906         for 'resultvar' otherwise things get truncated on 64-bit.
11907
11908         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11909         Fix masking out of the most significant byte of random value used.
11910
11911         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11912
11913 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11914
11915         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11916
11917 2012-03-09  David S. Miller  <davem@davemloft.net>
11918
11919         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11920         variables with appropriate CPP guards.
11921         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11922         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11923         on resulting framesize and the management of the outregs buffer for pltexit.
11924         Preserve floating point return values across _dl_call_pltexit call.
11925         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11926         framesize and the management of the outregs buffer for pltexit.
11927         Preserve floating point return values across _dl_call_pltexit
11928         call.
11929         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11930         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11931         (print_exit): Fix format string for return register value.
11932
11933 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11934
11935         * sunrpc/Makefile (others): Add rpcgen.
11936         ($(objpfx)rpcgen): Remove special build rule and dependency on
11937         libc.
11938         * sunrpc/rpcgen.c: New file.
11939
11940 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11941
11942         [BZ #13673]
11943         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11944         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11945         * sysdeps/i386/crti.S: Likewise.
11946         * sysdeps/i386/crtn.S: Likewise.
11947         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11948         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11949         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11950         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11951         * sysdeps/sh/crti.S: Likewise.
11952         * sysdeps/sh/crtn.S: Likewise.
11953         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11954
11955         [BZ #13673]
11956         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11957         with URL.
11958         * locale/programs/locfile-kw.gperf: Likewise.
11959         * locale/programs/charmap-kw.h: Regenerated.
11960         * locale/programs/locfile-kw.h: Likewise.
11961
11962         [BZ #13673]
11963         * intl/plural.y: Replace FSF snail mail address with URL.
11964         * intl/plural.c: Regenerated.
11965
11966 2012-03-09  Richard Henderson  <rth@twiddle.net>
11967
11968         * include/math_private.h: Remove file.
11969         * math/math_private.h: Move file ...
11970         * sysdeps/generic/math_private.h: ... here.
11971
11972         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11973         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11974         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11975
11976         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11977         and <math_private.h>.
11978         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11979         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11980         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11981         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11982         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11983         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11984         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11985         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11986         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11987         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11988         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11989         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11990         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11991         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11992         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11993         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11994         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11995         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11996         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11997         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11998         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11999         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12000         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12001         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12002         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12003         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12004         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12005         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12006         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12007         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12008         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12009         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12010         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12011         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12012         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12013         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12014         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12015         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12016         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12017         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12018         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12019         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12020         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12021         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12022         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12023         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12024         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12025         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12026         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12027         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12028         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12029         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12030         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12031         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12032         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12033         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12034         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12035         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12036         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12037         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12038         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12039         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12040         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12041         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12042         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12043         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12044         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12045         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12046         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12047         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12048         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12049         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12050         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12051         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12052         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12053         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12054         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12055         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12056         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12057         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12058         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12059         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12060         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12061         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12062         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12063         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12064         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12065         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12066         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12067         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12068         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12069         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12070         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12071         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12072         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12073         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12074         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12075         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12076         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12077         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12078         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12079         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12080         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12081         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12082         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12083         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12084         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12085         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12086         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12087         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12088         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12089         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12090         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12091         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12092         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12093         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12094         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12095         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12096         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12097         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12098         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12099         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12100         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12101         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12102         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12103         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12104         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12105         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12106         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12107         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12108         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12109         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12110         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12111         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12112         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12113         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12114         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12115         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12116         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12117         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12118         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12119         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12120         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12121         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12122         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12123         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12124         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12125         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12126         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12127         * sysdeps/ieee754/k_standard.c: Likewise.
12128         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12129         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12130         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12131         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12132         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12133         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12134         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12135         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12136         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12137         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12138         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12139         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12140         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12141         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12142         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12143         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12144         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12145         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12146         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12147         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12148         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12149         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12150         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12151         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12152         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12153         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12154         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12155         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12156         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12157         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12158         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12159         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12160         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12161         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12162         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12163         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12164         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12165         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12166         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12167         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12168         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12169         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12170         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12171         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12172         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12173         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12174         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12175         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12176         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12177         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12178         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12179         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12180         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12181         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12182         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12183         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12184         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12185         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12186         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12187         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12188         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12189         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12190         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12191         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12192         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12193         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12194         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12195         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12196         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12197         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12198         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12199         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12200         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12201         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12202         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12203         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12204         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12205         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12206         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12207         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12208         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12209         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12210         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12211         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12212         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12213         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12214         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12215         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12216         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12217         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12218         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12219         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12220         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12221         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12222         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12223         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12224         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12225         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12226         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12227         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12228         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12229         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12230         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12231         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12232         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12233         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12234         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12235         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12236         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12237         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12238         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12239         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12240         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12241         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12242         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12243         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12244         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12245         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12246         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12247         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12248         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12249         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12250         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12251         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12252         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12253         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12254         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12255         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12256         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12257         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12258         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12259         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12260         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12261         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12262         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12263         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12264         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12265         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12266         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12267         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12268         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12269         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12270         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12271         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12272         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12273         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12274         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12275         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12276         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12277         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12278         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12279         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12280         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12281         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12282         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12283         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12284         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12285         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12286         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12287         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12288         * sysdeps/ieee754/s_lib_version.c: Likewise.
12289         * sysdeps/ieee754/s_matherr.c: Likewise.
12290         * sysdeps/ieee754/s_signgam.c: Likewise.
12291         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12292         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12293         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12294         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12295         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12296         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12297         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
12298         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
12299         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
12300         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12301         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12302         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12303         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12304         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12305         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
12306         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
12307         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
12308         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
12309         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
12310         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12311         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12312
12313 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12314
12315         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
12316         * sunrpc/rpc_main.c: Likewise.
12317         * sunrpc/rpc_svcout.c: Likewise.
12318
12319 2012-03-09  David S. Miller  <davem@davemloft.net>
12320
12321         * include/math_private.h: New file.
12322
12323 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12324
12325         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
12326         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
12327         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
12328         from <bits/socket_type.h>.
12329         (enum __socket_type): Don't define here.
12330         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
12331         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12332         bits/socket_type.h.
12333
12334         [BZ #13566]
12335         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
12336         checking __USE_GNU.
12337
12338         * Makerules ($(inst_includedir)/%.h): New rule.
12339         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
12340         (install-others): Remove variable setting.
12341         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
12342
12343 2012-03-08  Richard Henderson  <rth@twiddle.net>
12344
12345         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
12346         from macro to inline function; merge with the
12347         !__LIBC_INTERNAL_MATH_INLINES version.
12348         (__ieee754_sqrtf): Likewise.
12349
12350         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
12351         to inline function.
12352         (__rintf, __floor, __floorf): Likewise.
12353
12354         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
12355         macro to inline function.
12356         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
12357
12358         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
12359         not <math/math_private.h>.
12360
12361 2012-03-08  David S. Miller  <davem@davemloft.net>
12362
12363         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
12364         copyright year.
12365         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12366
12367 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
12368
12369         * resolv/gai_misc.c (handle_requests): Fix struct timespec
12370         normalization.
12371         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
12372         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
12373
12374 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
12375
12376         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
12377         be defined individually, they must be defined as a block.  Define
12378         S for printing a string instead of hidint the different by using a
12379         macro for adding the 'l'.
12380         * stdio-common/tst-fphex-wide.c: Adjust.
12381
12382 2012-03-07  Marek Polacek  <polacek@redhat.com>
12383
12384         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
12385
12386 2012-03-08  Marek Polacek  <polacek@redhat.com>
12387
12388         [BZ #13806]
12389         * stdio-common/Makefile (tests): Add tst-fphex-wide.
12390         * stdio-common/tst-fphex.c: Define a few macros to make the
12391         test reusable.  Use them.
12392         * stdio-common/tst-fphex-wide.c: New file.
12393
12394 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
12395
12396         [BZ #6911]
12397         * manual/macros.texi (gnusystems): New macro.
12398         (nongnusystems): Likewise.
12399         (gnulinuxhurdsystems): Likewise.
12400         (gnuhurdsystems): Likewise..
12401         (gnulinuxsystems): Likewise.
12402         * manual/charset.texi: Use new macros or @theglibc{} to refer to
12403         variants of the GNU system, not "GNU system".
12404         * manual/conf.texi: Likewise.
12405         * manual/errno.texi: Likewise.  Update example of errno macro
12406         expansion.
12407         * manual/filesys.texi: Likewise.
12408         (getumask): Document as specific to GNU/Hurd.
12409         * manual/install.texi: Likewise.  Reword some references to
12410         GNU/Linux.
12411         * manual/intro.texi: Likewise.
12412         * manual/io.texi: Likewise.
12413         (File Name Portability): Detail which constraints are inapplicable
12414         to all GNU systems and which are only inapplicable to GNU/Hurd.
12415         * manual/job.texi: Likewise.
12416         * manual/llio.texi: Likewise.
12417         (O_NOCTTY): Document as present on GNU/Linux.
12418         * manual/maint.texi: Likewise.
12419         * manual/memory.texi: Likewise.
12420         * manual/pattern.texi: Likewise.
12421         * manual/pipe.texi: Likewise.
12422         * manual/process.texi: Likewise.
12423         * manual/resource.texi: Likewise.
12424         (RUSAGE_CHILDREN): Remove statement about specifying a particular
12425         child on GNU/Hurd.
12426         * manual/setjmp.texi: Likewise.
12427         * manual/signal.texi: Likewise.
12428         * manual/startup.texi: Likewise.
12429         * manual/stdio.texi: Likewise.
12430         * manual/terminal.texi: Likewise.
12431         (ONLCR): Document as POSIX.
12432         (OXTABS): Document availability on GNU/Linux as XTABS.
12433         (ONOEOT): Document availability separately from other bits.
12434         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
12435         * manual/time.texi: Likewise.
12436         * manual/users.texi: Likewise.
12437         * INSTALL: Regenerated.
12438         * sysdeps/gnu/errlist.c: Regenerated.
12439
12440         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
12441         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
12442         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
12443         puts.
12444         * configure: Regenerated.
12445
12446 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
12447
12448         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
12449         default includes instead of AC_HEADER_CHECK.
12450         * sysdeps/i386/configure: Regenerated.
12451
12452         [BZ #10716]
12453         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
12454         * math/s_cacoshf.c (__cacoshf): Likewise.
12455         * math/s_cacoshl.c (__cacoshl): Likewise.
12456         * math/s_casinh.c (__casinh): Set signs of result from argument.
12457         * math/s_casinhf.c (__casinhf): Likewise.
12458         * math/s_casinhl.c (__casinhl): Likewise.
12459         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
12460         (casinh_test): Add more tests.
12461         * sysdeps/i386/fpu/libm-test-ulps: Update.
12462         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12463
12464 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
12465
12466         * po/zh_TW.po: Update from translation team.
12467
12468         * login/Makefile (distribute): Remove variable.
12469         * catgets/Makefile: Likewise.
12470         * mach/Makefile: Likewise.
12471         * malloc/Makefile: Likewise.
12472         * misc/Makefile: Likewise.
12473         * iconv/Makefile: Likewise.
12474         * nscd/Makefile: Likewise.
12475         * hurd/Makefile: Likewise.
12476         * manual/Makefile: Likewise.
12477         * locale/Makefile: Likewise.
12478         * intl/Makefile: Likewise.
12479         * conform/Makefile: Likewise.
12480         * nss/Makefile: Likewise.
12481         * time/Makefile: Likewise.
12482         * soft-fp/Makefile: Likewise.
12483         * dirent/Makefile: Likewise.
12484         * gmon/Makefile: Likewise.
12485         * po/Makefile: Likewise.
12486         * rt/Makefile: Likewise.
12487         * socket/Makefile: Likewise.
12488         * math/Makefile: Likewise.
12489         * signal/Makefile: Likewise.
12490         * debug/Makefile: Likewise.
12491         * elf/Makefile: Likewise.
12492         * timezone/Makefile: Likewise.
12493         * stdlib/Makefile: Likewise.
12494         * iconvdata/Makefile: Likewise.
12495         * sunrpc/Makefile: Likewise.
12496         * io/Makefile: Likewise.
12497         * argp/Makefile: Likewise.
12498         * inet/Makefile: Likewise.
12499         * hesiod/Makefile: Likewise.
12500         * grp/Makefile: Likewise.
12501         * csu/Makefile: Likewise.
12502         * wctype/Makefile: Likewise.
12503         * crypt/Makefile: Likewise.
12504         * libio/Makefile: Likewise.
12505         * string/Makefile: Likewise.
12506         * nis/Makefile: Likewise.
12507         * resolv/Makefile: Likewise.
12508         * stdio-common/Makefile: Likewise.
12509         * wcsmbs/Makefile: Likewise.
12510         * dlfcn/Makefile: Likewise.
12511         * posix/Makefile: Likewise.
12512
12513         [BZ #6959]
12514         * timezone/Makefile: Don't install timezone files, just the programs
12515         and scripts.
12516
12517 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
12518
12519         * nss/databases.def: Add missing gshadow entry.
12520
12521         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
12522
12523 2012-03-06  Marek Polacek  <polacek@redhat.com>
12524
12525         [BZ #13726]
12526         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
12527         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
12528         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
12529         * stdio-common/tst-long-dbl-fphex.c: New file.
12530
12531 2012-03-06  David S. Miller  <davem@davemloft.net>
12532
12533         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12534         (set_obp_int): New function.
12535         (get_obp_int): New function.
12536         (__get_clockfreq_via_dev_openprom): Likewise.
12537         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
12538         Avoid unused variable warnings on 'val' and use builtin_expect.
12539         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
12540         __builtin_expect.
12541         (INLINE_CLONE_SYSCALL): Likewise.
12542
12543 2012-03-05  David S. Miller  <davem@davemloft.net>
12544
12545         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12546
12547 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
12548
12549         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12550
12551         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
12552         only for |x| >= 40.
12553         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12554
12555 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12556
12557         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
12558         Replace gettimeofday with __vdso_gettimeofday.
12559
12560         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12561         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
12562         __vdso_clock_gettime and __vdso_getcpu.
12563
12564         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
12565         time with __vdso_time.
12566
12567 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12568
12569         * manual/lang.texi (size_t): Note types to which size_t may be
12570         equivalent with the GNU C Library, but do not describe when
12571         differences between them are significant.
12572
12573 2012-03-05  Andreas Jaeger  <aj@suse.de>
12574
12575         * sysdeps/i386/fpu/libm-test-ulps: Update.
12576
12577 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12578
12579         [BZ #3976]
12580         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
12581         (__ieee754_pow): Save and restore rounding mode and use
12582         round-to-nearest for main computations.
12583         * math/libm-test.inc (pow_test_tonearest): New function.
12584         (pow_test_towardzero): Likewise.
12585         (pow_test_downward): Likewise.
12586         (pow_test_upward): Likewise.
12587         (main): Call the new functions.
12588         * sysdeps/i386/fpu/libm-test-ulps: Update.
12589         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12590
12591         [BZ #3976]
12592         * math/libm-test.inc (cosh_test_tonearest): New function.
12593         (cosh_test_towardzero): Likewise.
12594         (cosh_test_downward): Likewise.
12595         (cosh_test_upward): Likewise.
12596         (sinh_test_tonearest): Likewise.
12597         (sinh_test_towardzero): Likewise.
12598         (sinh_test_downward): Likewise.
12599         (sinh_test_upward): Likewise.
12600         (main): Call the new functions.
12601         * sysdeps/i386/fpu/libm-test-ulps: Update.
12602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12603
12604 2012-03-05  Tom de Vries  <tom@codesourcery.com>
12605
12606         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
12607         default stack guard is set in last bytes.
12608         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
12609
12610 2012-03-05  Kees Cook  <keescook@chromium.org>
12611
12612         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
12613
12614         [BZ #13656]
12615         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
12616         possibly allocate from heap instead of stack.
12617         * stdio-common/bug-vfprintf-nargs.c: New file.
12618         * stdio-common/Makefile (tests): Add nargs overflow test.
12619
12620 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
12621
12622         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12623
12624 2012-03-03  Marek Polacek  <polacek@redhat.com>
12625
12626         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
12627         * math/math_private.h: Likewise.
12628         * stdlib/tst-strtod.c: Likewise.
12629         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12630         * sysdeps/x86_64/bits/atomic.h: Likewise.
12631
12632 2012-03-02  David S. Miller  <davem@davemloft.net>
12633
12634         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
12635         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
12636         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
12637         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
12638         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
12639         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
12640         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
12641         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
12642
12643 2012-03-02  Roland McGrath  <roland@hack.frob.com>
12644
12645         [BZ #13792]
12646         * manual/examples/README: New file, says the example source files
12647         can be used under GPL>=2.
12648         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
12649         line containing just "*/".
12650         * manual/examples/add.c: Add copyright header (GPL>=2).
12651         * manual/examples/argp-ex1.c: Likewise.
12652         * manual/examples/argp-ex2.c: Likewise.
12653         * manual/examples/argp-ex3.c: Likewise.
12654         * manual/examples/argp-ex4.c: Likewise.
12655         * manual/examples/atexit.c: Likewise.
12656         * manual/examples/db.c: Likewise.
12657         * manual/examples/dir.c: Likewise.
12658         * manual/examples/dir2.c: Likewise.
12659         * manual/examples/execinfo.c: Likewise.
12660         * manual/examples/filecli.c: Likewise.
12661         * manual/examples/filesrv.c: Likewise.
12662         * manual/examples/fmtmsgexpl.c: Likewise.
12663         * manual/examples/genpass.c: Likewise.
12664         * manual/examples/inetcli.c: Likewise.
12665         * manual/examples/inetsrv.c: Likewise.
12666         * manual/examples/isockad.c: Likewise.
12667         * manual/examples/longopt.c: Likewise.
12668         * manual/examples/memopen.c: Likewise.
12669         * manual/examples/memstrm.c: Likewise.
12670         * manual/examples/mkfsock.c: Likewise.
12671         * manual/examples/mkisock.c: Likewise.
12672         * manual/examples/mygetpass.c: Likewise.
12673         * manual/examples/pipe.c: Likewise.
12674         * manual/examples/popen.c: Likewise.
12675         * manual/examples/rprintf.c: Likewise.
12676         * manual/examples/search.c: Likewise.
12677         * manual/examples/select.c: Likewise.
12678         * manual/examples/setjmp.c: Likewise.
12679         * manual/examples/sigh1.c: Likewise.
12680         * manual/examples/sigusr.c: Likewise.
12681         * manual/examples/stpcpy.c: Likewise.
12682         * manual/examples/strdupa.c: Likewise.
12683         * manual/examples/strftim.c: Likewise.
12684         * manual/examples/strncat.c: Likewise.
12685         * manual/examples/subopt.c: Likewise.
12686         * manual/examples/swapcontext.c: Likewise.
12687         * manual/examples/termios.c: Likewise.
12688         * manual/examples/testopt.c: Likewise.
12689         * manual/examples/testpass.c: Likewise.
12690         * manual/examples/timeval_subtract.c: Likewise.
12691
12692         [BZ #13792]
12693         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12694         function to ...
12695         * manual/timeval_subtract.c.texi: ... here, new file.
12696
12697 2012-03-02  David S. Miller  <davem@davemloft.net>
12698
12699         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12700
12701 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12702
12703         [BZ #3976]
12704         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12705         (__sin): Save and restore rounding mode and use round-to-nearest
12706         for all computations.
12707         (__cos): Save and restore rounding mode and use round-to-nearest
12708         for all computations.
12709         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12710         <fenv.h>.
12711         (tan): Save and restore rounding mode and use round-to-nearest for
12712         all computations.
12713         * math/libm-test.inc (cos_test_tonearest): New function.
12714         (cos_test_towardzero): Likewise.
12715         (cos_test_downward): Likewise.
12716         (cos_test_upward): Likewise.
12717         (sin_test_tonearest): Likewise.
12718         (sin_test_towardzero): Likewise.
12719         (sin_test_downward): Likewise.
12720         (sin_test_upward): Likewise.
12721         (tan_test_tonearest): Likewise.
12722         (tan_test_towardzero): Likewise.
12723         (tan_test_downward): Likewise.
12724         (tan_test_upward): Likewise.
12725         (main): Call the new functions.
12726         * sysdeps/i386/fpu/libm-test-ulps: Update.
12727         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12728
12729         [BZ #10135]
12730         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12731         small n, then large n, before computing and testing k+n.
12732         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12733         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12734         Likewise.
12735         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12736         Likewise.
12737         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12738         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12739         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12740         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12741         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12742         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12743         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12744         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12745         * math/libm-test.inc (scalbn_test): Add more tests.
12746         (scalbln_test): Likewise.
12747
12748         * manual/filesys.texi (mode_t): Describe constraints on size and
12749         signedness, not exact equivalence to a particular type.
12750         (ino_t): Likewise.
12751         (ino64_t): Likewise.
12752         (dev_t): Likewise.
12753         (nlink_t): Likewise.
12754         (blkcnt_t): Likewise.
12755         (blkcnt64_t): Likewise.
12756         * manual/llio.texi (off_t): Likewise.
12757
12758         [BZ #3976]
12759         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12760         (__ieee754_exp): Save and restore rounding mode and use
12761         round-to-nearest for all computations.
12762         * math/libm-test.inc (exp_test_tonearest): New function.
12763         (exp_test_towardzero): Likewise.
12764         (exp_test_downward): Likewise.
12765         (exp_test_upward): Likewise.
12766         (main): Call the new functions.
12767         * sysdeps/i386/fpu/libm-test-ulps: Update.
12768         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12769
12770 2012-03-01  Chris Demetriou  <cgd@google.com>
12771
12772         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12773         have predictable order.
12774
12775 2012-03-01  David S. Miller  <davem@davemloft.net>
12776
12777         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12778
12779         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12780         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12781         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12782         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12783
12784         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12785         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12786         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12787         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12788         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12789         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12790         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12791         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12792         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12793
12794         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12795
12796         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12797         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12798         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12799
12800         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12801         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12802         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12803         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12804         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12805         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12806         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12807         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12808         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12809         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12810         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12811         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12812         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12813         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12814         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12815         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12816         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12817         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12818         * sysdeps/sparc/elf/configure: Regenerated.
12819
12820 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12821
12822         * configure.in (AS, LD): Require binutils 2.20 or later.
12823         * configure: Regenerated.
12824         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12825         as required minimum version.
12826         * INSTALL: Regenerated.
12827
12828         [BZ #2541]
12829         [BZ #4108]
12830         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12831         before squaring exponent.
12832         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12833         bottom long double and 27 bits of top long double before squaring
12834         exponent.
12835         * math/libm-test.inc (erfc_test): Add more tests.
12836         * sysdeps/i386/fpu/libm-test-ulps: Update.
12837         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12839
12840 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12841
12842         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12843         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12844         containing bit-fields.
12845         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12846         * soft-fp/single.h (_FP_UNION_S): Likewise.
12847         * soft-fp/double.h (_FP_UNION_D): Likewise.
12848
12849 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12850
12851         [BZ #13786]
12852         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12853         not include ../strcmp.S.
12854         [USE_AS_STRNCASECMP_L]: Likewise.
12855         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12856         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12857         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12858         (__strncasecmp_l_ia32): Define as alias to
12859         __strncasecmp_l_nonascii.
12860
12861         [BZ #5794]
12862         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12863         * sysdeps/i386/fpu/libm-test-ulps: Update.
12864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12865
12866         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12867         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12868
12869 2012-02-29  Jeff Law  <law@redhat.com>
12870
12871         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12872         out of bounds read.
12873
12874 2012-02-29  Marek Polacek  <polacek@redhat.com>
12875
12876         [BZ #13706]
12877         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12878         * elf/Makefile: Add rules to run tst-unused-dep.out.
12879
12880 2012-02-28  David S. Miller  <davem@davemloft.net>
12881
12882         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12883         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12884         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12885         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12886         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12887         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12888
12889 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12890
12891         * math/libm-test.inc (llround_test): Move one test from
12892         lround_test.  Use TEST_f_L in moved test.
12893         (lround_test): Move misplaced test to llround_test.  Add testcase
12894         from bug 2561.
12895
12896 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12897
12898         * sysdeps/x86_64/fpu/e_expf.S: New file.
12899         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12900
12901 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12902
12903         [BZ #13637]
12904         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12905         of remain_len that may cause incomplete multi-byte character and
12906         false match.
12907         * posix/bug-regex33.c: New file.
12908         * posix/Makefile (tests): Add bug-regex33.
12909
12910 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12911
12912         * manual/macros.texi: New file.
12913         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12914         * manual/libc.texinfo: Include macros.texi.
12915         * manual/creatute.texi: Likewise.
12916         * manual/install.texi: Likewise.
12917         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12918         @glibcadj{} in references to the GNU C Library.
12919         * manual/charset.texi: Likewise.
12920         * manual/conf.texi: Likewise.
12921         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12922         when not using those macros.
12923         * manual/creature.texi: Likewise.
12924         * manual/crypt.texi: Likewise.
12925         * manual/errno.texi: Likewise.
12926         * manual/filesys.texi: Likewise.
12927         * manual/header.texi: Likewise.
12928         * manual/install.texi: Likewise.
12929         * manual/intro.texi: Likewise.
12930         * manual/io.texi: Likewise.
12931         * manual/job.texi: Likewise.
12932         * manual/lang.texi: Likewise.
12933         * manual/libc.texiinfo: Likewise.
12934         * manual/llio.texi: Likewise.
12935         * manual/locale.texi: Likewise.
12936         * manual/maint.texi: Likewise.
12937         * manual/math.texi: Likewise.
12938         * manual/memory.texi: Likewise.
12939         * manual/message.texi: Likewise.
12940         * manual/nss.texi: Likewise.
12941         * manual/pattern.texi: Likewise.
12942         * manual/process.texi: Likewise.
12943         * manual/resource.texi: Likewise.
12944         * manual/search.texi: Likewise.
12945         * manual/setjmp.texi: Likewise.
12946         * manual/signal.texi: Likewise.
12947         * manual/socket.texi: Likewise.
12948         * manual/startup.texi: Likewise.
12949         * manual/stdio.texi: Likewise.
12950         * manual/string.texi: Likewise.
12951         * manual/sysinfo.texi: Likewise.
12952         * manual/syslog.texi: Likewise.
12953         * manual/terminal.texi: Likewise.
12954         * manual/time.texi: Likewise.
12955         * manual/users.texi: Likewise.
12956         * INSTALL: Regenerated.
12957         * NOTES: Regenerated.
12958         * sysdeps/gnu/errlist.c: Regenerated.
12959
12960 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12961
12962         * include/dirent.h: Include <dirstream.h> before
12963         <dirent/dirent.h>.
12964
12965 2012-02-28  David S. Miller  <davem@davemloft.net>
12966
12967         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12968         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12969         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12970         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12971
12972 2012-02-27  David S. Miller  <davem@davemloft.net>
12973
12974         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12975         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12976         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12977         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12978
12979         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12980         frame pointer instead of stack pointer relative arg slot.
12981         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12982         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12983         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12984
12985 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12986
12987         [BZ #3992]
12988         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12989
12990 2012-02-27  David S. Miller  <davem@davemloft.net>
12991
12992         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12993         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12994         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12995         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12996         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12997         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12998         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12999         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13000
13001 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13002
13003         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13004         later.  Allow versions 5-9.
13005         * configure: Regenerated.
13006         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13007         required minimum version and 4.6 as recommended version.  Do not
13008         mention bugs in GCC 2.7 and 2.8.
13009         * INSTALL: Regenerated.
13010
13011 2012-02-27  David S. Miller  <davem@davemloft.net>
13012
13013         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13014         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13015         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13016         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13017         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13018         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13019         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13020         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13021
13022         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13023         manipulate bits before adding and subtracting TWO112[sx].
13024         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13025
13026 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13027
13028         [BZ #13775]
13029         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13030         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13031         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13032         being in POSIX, because they are in 1003.1-2008.
13033
13034         * rt/tst-aio.c: Include <fcntl.h>.
13035         * rt/tst-aio7.c: Likewise.
13036         * rt/tst-aio64.c: Likewise.
13037
13038         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13039
13040 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13041
13042         * manual/install.texi (--with-headers): Describe headers as
13043         interface headers, not private headers.
13044         (Specific advice for GNU/Linux systems): Describe use of headers
13045         from "make headers_install", not private headers from older
13046         kernels.
13047         * INSTALL: Regenerated.
13048         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13049         Change to 2.6.19.
13050         * sysdeps/unix/sysv/linux/configure: Regenerated.
13051
13052         * manual/llio.texi (fclean): Remove documentation.
13053
13054         * manual/Makefile (libc-texi-generated): New variable.  Include
13055         version.texi.
13056         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13057         $(libc-texi-generated), not duplicated list of files.
13058         (version.texi, stamp-version): New rules.
13059         (realclean): Remove $(libc-texi-generated), not individual files
13060         from that list.  Do not remove dir-add.texinfo.
13061         * manual/libc.texinfo: Comment out uses of edition numbers and
13062         references to printed manual.  Remove last-updated dates.
13063         (EDITION): Comment out.
13064         (ISBN): Likewise.
13065         (VERSION, UPDATED): Remove.
13066         (version.texi): Include.
13067
13068 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13069
13070         * sysdeps/posix/spawni.c: Include <signal.h>.
13071         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13072         * sysdeps/pthread/aio_fsync.c: Likewise.
13073
13074 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13075
13076         * conform/Makefile (tests): Run only when not cross-compiling and
13077         when fast-check is not defined.
13078
13079         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13080         * conform/data/limits.h-data: Fixes for POSIX2008.
13081         * conform/run-conformtest.sh: Run all tests.
13082         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13083         headers.
13084         * include/bits/dlfcn.h: Likewise.
13085         * include/langinfo.h: Likewise.
13086         * include/monetary.h: Likewise.
13087         * include/sys/poll.h: Likewise.
13088
13089         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13090         for __USE_GNU.
13091         * posix/spawn.h: Define __need_sigset_t.
13092         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13093         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13094         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13095         to get sigevent_t only.
13096         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13097         only for __USE_GNU.
13098         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13099         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13100         process_vm_writev only for __USE_GNU.
13101         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13102
13103         * conform/Makefile: For now ignore errors from run-conformtest.
13104         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13105         POSIX to avoid namespace pollution.  Don't prepend headers.
13106         * conform/data/aio.h-data: Fixes for POSIX testing.
13107         * conform/data/fcntl.h-data: Likewise.
13108         * conform/data/glob.h-data: Likewise.
13109         * conform/data/grp.h-data: Likewise.
13110         * conform/data/pthread.h-data: Likewise.
13111         * conform/data/pwd.h-data: Likewise.
13112         * conform/data/signal.h-data: Likewise.
13113         * conform/data/spawn.h-data: Likewise.
13114         * conform/data/stdio.h-data: Likewise.
13115         * conform/data/stdlib.h-data: Likewise.
13116         * conform/data/stropts.h-data: Likewise.
13117         * conform/data/sys/mman.h-data: Likewise.
13118         * conform/data/sys/stat.h-data: Likewise.
13119         * conform/data/sys/types.h-data: Likewise.
13120         * conform/data/sys/wait.h-data: Likewise.
13121         * conform/data/time.h-data: Likewise.
13122         * conform/data/unistd.h-data: Likewise.
13123         * conform/data/utime.h-data: Likewise.
13124
13125         * io/sys/stat.h: fchmod was always in POSIX.
13126         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13127         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13128         * rt/aio.h: Define __need_timespec before including <time.h>.
13129         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13130         struct.  Add forward declaration of pthread_attr_t and use it in
13131         sigevent.
13132         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13133         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13134         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13135         always remove CLK_TCK definition.
13136
13137 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13138
13139         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13140
13141 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13142
13143         * conform/run-conformtest.sh: New file.
13144         * conform/Makefile: Run run-conformtest for tests.
13145         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13146         support.
13147
13148         * conform/data/uchar.h-data: New file.
13149         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13150         * conform/data/arpa/inet.h-data: Likewise.
13151         * conform/data/assert.h-data: Likewise.
13152         * conform/data/complex.h-data: Likewise.
13153         * conform/data/cpio.h-data: Likewise.
13154         * conform/data/ctype.h-data: Likewise.
13155         * conform/data/dirent.h-data: Likewise.
13156         * conform/data/dlfcn.h-data: Likewise.
13157         * conform/data/errno.h-data: Likewise.
13158         * conform/data/fcntl.h-data: Likewise.
13159         * conform/data/float.h-data: Likewise.
13160         * conform/data/fmtmsg.h-data: Likewise.
13161         * conform/data/fnmatch.h-data: Likewise.
13162         * conform/data/ftw.h-data: Likewise.
13163         * conform/data/glob.h-data: Likewise.
13164         * conform/data/grp.h-data: Likewise.
13165         * conform/data/iconv.h-data: Likewise.
13166         * conform/data/inttypes.h-data: Likewise.
13167         * conform/data/langinfo.h-data: Likewise.
13168         * conform/data/libgen.h-data: Likewise.
13169         * conform/data/limits.h-data: Likewise.
13170         * conform/data/locale.h-data: Likewise.
13171         * conform/data/math.h-data: Likewise.
13172         * conform/data/monetary.h-data: Likewise.
13173         * conform/data/mqueue.h-data: Likewise.
13174         * conform/data/ndbm.h-data: Likewise.
13175         * conform/data/net/if.h-data: Likewise.
13176         * conform/data/netdb.h-data: Likewise.
13177         * conform/data/netinet/in.h-data: Likewise.
13178         * conform/data/nl_types.h-data: Likewise.
13179         * conform/data/poll.h-data: Likewise.
13180         * conform/data/pthread.h-data: Likewise.
13181         * conform/data/pwd.h-data: Likewise.
13182         * conform/data/regex.h-data: Likewise.
13183         * conform/data/sched.h-data: Likewise.
13184         * conform/data/search.h-data: Likewise.
13185         * conform/data/semaphore.h-data: Likewise.
13186         * conform/data/setjmp.h-data: Likewise.
13187         * conform/data/signal.h-data: Likewise.
13188         * conform/data/spawn.h-data: Likewise.
13189         * conform/data/stdarg.h-data: Likewise.
13190         * conform/data/stdio.h-data: Likewise.
13191         * conform/data/stdlib.h-data: Likewise.
13192         * conform/data/string.h-data: Likewise.
13193         * conform/data/strings.h-data: Likewise.
13194         * conform/data/stropts.h-data: Likewise.
13195         * conform/data/sys/ipc.h-data: Likewise.
13196         * conform/data/sys/mman.h-data: Likewise.
13197         * conform/data/sys/msg.h-data: Likewise.
13198         * conform/data/sys/resource.h-data: Likewise.
13199         * conform/data/sys/select.h-data: Likewise.
13200         * conform/data/sys/sem.h-data: Likewise.
13201         * conform/data/sys/shm.h-data: Likewise.
13202         * conform/data/sys/socket.h-data: Likewise.
13203         * conform/data/sys/stat.h-data: Likewise.
13204         * conform/data/sys/statvfs.h-data: Likewise.
13205         * conform/data/sys/time.h-data: Likewise.
13206         * conform/data/sys/timeb.h-data: Likewise.
13207         * conform/data/sys/times.h-data: Likewise.
13208         * conform/data/sys/types.h-data: Likewise.
13209         * conform/data/sys/uio.h-data: Likewise.
13210         * conform/data/sys/un.h-data: Likewise.
13211         * conform/data/sys/utsname.h-data: Likewise.
13212         * conform/data/sys/wait.h-data: Likewise.
13213         * conform/data/syslog.h-data: Likewise.
13214         * conform/data/tar.h-data: Likewise.
13215         * conform/data/termios.h-data: Likewise.
13216         * conform/data/utime.h-data: Likewise.
13217         * conform/data/utmpx.h-data: Likewise.
13218         * conform/data/varargs.h-data: Likewise.
13219         * conform/data/wchar.h-data: Likewise.
13220         * conform/data/wctype.h-data: Likewise.
13221         * conform/data/wordexp.h-data: Likewise.
13222
13223         * include/stropts.h: New file.
13224         * include/uchar.h: New file.
13225         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13226         * include/assert.h: Likewise.
13227         * include/ctype.h: Likewise.
13228         * include/dirent.h: Likewise.
13229         * include/dlfcn.h: Likewise.
13230         * include/fcntl.h: Likewise.
13231         * include/fnmatch.h: Likewise.
13232         * include/glob.h: Likewise.
13233         * include/grp.h: Likewise.
13234         * include/libio.h: Likewise.
13235         * include/locale.h: Likewise.
13236         * include/math.h: Likewise.
13237         * include/net/if.h: Likewise.
13238         * include/netdb.h: Likewise.
13239         * include/netinet/in.h: Likewise.
13240         * include/pthread.h: Likewise.
13241         * include/pwd.h: Likewise.
13242         * include/regex.h: Likewise.
13243         * include/sched.h: Likewise.
13244         * include/search.h: Likewise.
13245         * include/setjmp.h: Likewise.
13246         * include/signal.h: Likewise.
13247         * include/stdio.h: Likewise.
13248         * include/stdlib.h: Likewise.
13249         * include/string.h: Likewise.
13250         * include/sys/cdefs.h: Likewise.
13251         * include/sys/mman.h: Likewise.
13252         * include/sys/msg.h: Likewise.
13253         * include/sys/resource.h: Likewise.
13254         * include/sys/select.h: Likewise.
13255         * include/sys/socket.h: Likewise.
13256         * include/sys/stat.h: Likewise.
13257         * include/sys/statvfs.h: Likewise.
13258         * include/sys/time.h: Likewise.
13259         * include/sys/times.h: Likewise.
13260         * include/sys/uio.h: Likewise.
13261         * include/sys/utsname.h: Likewise.
13262         * include/sys/wait.h: Likewise.
13263         * include/termios.h: Likewise.
13264         * include/time.h: Likewise.
13265         * include/ulimit.h: Likewise.
13266         * include/unistd.h: Likewise.
13267         * include/utime.h: Likewise.
13268         * include/wchar.h: Likewise.
13269         * include/wctype.h: Likewise.
13270         * include/wordexp.h: Likewise.
13271
13272         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13273
13274         * time/time.h: TIME_UTC must be a macro.
13275         Make timespec_get available for ISO C11 only as well.
13276
13277 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13278
13279         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13280         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13281
13282 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13283
13284         * configure.in: Use -o not -a in test for unsupported multi-arch.
13285
13286 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13287
13288         * manual/texinfo.tex: Update to version 2012-01-19.16.
13289
13290 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13291
13292         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
13293
13294 2012-02-24  Roland McGrath  <roland@hack.frob.com>
13295
13296         [BZ #13738]
13297         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
13298         * manual/fdl-1.3.texi: New file.
13299         * manual/fdl-1.1.texi: File removed.
13300
13301         [BZ #13738]
13302         * manual/libc.texinfo (FDL_VERSION): New @set.
13303         Use it for mention of FDL in cover text.
13304         (Documentation License): Use it in @include file name.
13305
13306 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13307             Roland McGrath  <roland@hack.frob.com>
13308
13309         [BZ #5461]
13310         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
13311         not LONG_LONG_MAX and LONG_LONG_MIN.
13312         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
13313         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
13314         name.
13315         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
13316
13317 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13318
13319         [BZ #2547]
13320         [BZ #11365]
13321         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
13322         manipulate bits before adding and subtracting TWO23[sx].
13323         * math/libm-test.inc (nearbyint_test): Add more tests.
13324
13325 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13326
13327         [BZ #2548]
13328         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
13329         bits before adding and subtracting TWO23[sx].
13330         * math/libm-test.inc (rint_test): Add more tests.
13331         (rint_test_tonearest): Likewise.
13332         (rint_test_towardzero): Likewise.
13333         (rint_test_downward): Likewise.
13334         (rint_test_upward: Likewise.
13335
13336 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13337
13338         [BZ #10110]
13339         * include/stdc-predef.h: New file.  Extracted from features.h.
13340         * include/features.h: Include stdc-predef.h.
13341         * Makefile (headers): Add stdc-predef.h.
13342         * CONFORMANCE (Compiler limitations): Update.
13343
13344 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13345
13346         * manual/libc.texinfo (VERSION, UPDATED): Revert.
13347
13348 2012-02-21  David S. Miller  <davem@davemloft.net>
13349
13350         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
13351         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13352
13353 2012-02-20  David S. Miller  <davem@davemloft.net>
13354
13355         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
13356         using a normal save/restore sequence, rather than allocating a
13357         dummy stack frame just to store a frame pointer and restore.
13358         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13359
13360 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13361
13362         * manual/install.texi: Fix stray word in line-wrapped comment.
13363
13364 2012-02-20  David S. Miller  <davem@davemloft.net>
13365
13366         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
13367         both binutils and gcc support GOTDATA.
13368
13369         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
13370         "rd %pc" in the PIC register setup sequences.
13371
13372         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
13373         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
13374         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13375         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
13376         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13377         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13378         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13379         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13380         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
13381         (SYSCALL_ERROR_HANDLER): Likewise.
13382         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13383         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13384         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
13385         (SYSCALL_ERROR_HANDLER): Likewise.
13386
13387         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
13388         (HAVE_GCC_GOTDATA): New.
13389         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
13390         relocation support in both binutils and gcc.
13391         * sysdeps/sparc/elf/configure: Regenerate.
13392
13393         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
13394         * sysdeps/sparc/sparc32/elf/configure: Delete.
13395         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
13396         * sysdeps/sparc/sparc64/elf/configure: Delete.
13397         * sysdeps/sparc/elf/configure.in: New file.
13398         * sysdeps/sparc/elf/configure: Generate.
13399
13400         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
13401         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
13402         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13403         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
13404         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
13405
13406 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13407
13408         * manual/install.texi: Do not mention specific glibc version
13409         numbers.
13410         * manual/libc.texinfo (VERSION, UPDATED): Update.
13411         (@copying): Use @copyright{} and range of years.
13412
13413 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13414
13415         [BZ #13695]
13416         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
13417         [crti.S not in sysdirs] (generated): Do not append.
13418         [crti.S not in sysdirs] (omit-deps): Likewise.
13419         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
13420         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
13421         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
13422         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
13423         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
13424         Likewise.
13425         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
13426         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
13427         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
13428         * csu/defs.awk: Remove file.
13429         * sysdeps/generic/initfini.c: Likewise.
13430         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
13431         variable.
13432         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
13433         Likewise.
13434
13435 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13436
13437         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
13438         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
13439         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
13440         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
13441         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13442         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
13443         <bits/epoll.h>.
13444         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
13445         (__EPOLL_PACKED): Define to empty if not defined by
13446         <bits/epoll.h>.
13447         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
13448         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13449         bits/epoll.h.
13450
13451 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13452
13453         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
13454         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
13455         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
13456         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
13457         <bits/timerfd.h>.
13458         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
13459         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13460         bits/timerfd.h.
13461
13462 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13463
13464         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
13465         in C locale.
13466         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13467         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
13468         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
13469         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13470
13471 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
13472
13473         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13474         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13475
13476 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
13477
13478         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
13479         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
13480         defined.
13481         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
13482         Likewise.
13483         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
13484         entry for 2.16.
13485
13486 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
13487
13488         * math/w_acos.c: Use non-signaling floating-point comparisons.
13489         * math/w_acosf.c: Likewise.
13490         * math/w_acosh.c: Likewise.
13491         * math/w_acoshf.c: Likewise.
13492         * math/w_acoshl.c: Likewise.
13493         * math/w_acosl.c: Likewise.
13494         * math/w_asin.c: Likewise.
13495         * math/w_asinf.c: Likewise.
13496         * math/w_asinl.c: Likewise.
13497         * math/w_atanh.c: Likewise.
13498         * math/w_atanhf.c: Likewise.
13499         * math/w_atanhl.c: Likewise.
13500         * math/w_exp2.c: Likewise.
13501         * math/w_exp2f.c: Likewise.
13502         * math/w_exp2l.c: Likewise.
13503         * math/w_j0.c: Likewise.
13504         * math/w_j0f.c: Likewise.
13505         * math/w_j0l.c: Likewise.
13506         * math/w_j1.c: Likewise.
13507         * math/w_j1f.c: Likewise.
13508         * math/w_j1l.c: Likewise.
13509         * math/w_jn.c: Likewise.
13510         * math/w_jnf.c: Likewise.
13511         * math/w_log.c: Likewise.
13512         * math/w_log10.c: Likewise.
13513         * math/w_log10f.c: Likewise.
13514         * math/w_log10l.c: Likewise.
13515         * math/w_log2.c: Likewise.
13516         * math/w_log2f.c: Likewise.
13517         * math/w_log2l.c: Likewise.
13518         * math/w_logf.c: Likewise.
13519         * math/w_logl.c: Likewise.
13520         * math/w_sqrt.c: Likewise.
13521         * math/w_sqrtf.c: Likewise.
13522         * math/w_sqrtl.c: Likewise.
13523         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13524         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
13525         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13526         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13527         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13528
13529 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13530
13531         [BZ #9739]
13532         * manual/string.texi (strnlen): Use correct parameter name in
13533         equivalent expression.
13534
13535 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13536
13537         [BZ #11174]
13538         * manual/users.texi (seteuid): Consistently use neweuid for
13539         argument name.
13540
13541 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13542
13543         [BZ #13704]
13544         * manual/nss.texi (Services in the NSS configuration): Correct
13545         list of services in example configuration file.
13546
13547 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
13548
13549         [BZ #11322]
13550         * manual/arith.texi: Remove statements about negative zero
13551         behaving identically to zero.
13552
13553 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13554
13555         [BZ #5993]
13556         * manual/install.texi: Do not document upgrading from libc5.
13557
13558 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13559
13560         [BZ #4596]
13561         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
13562
13563 2012-02-18  David S. Miller  <davem@davemloft.net>
13564
13565         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
13566         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
13567         %o7 across the call.
13568         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
13569         instead.
13570         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
13571         SETUP_PIC_REG_LEAF.
13572         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13573         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
13574         * sysdeps/sparc/crtn.S: Likewise.
13575
13576 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
13577
13578         * aout/Makefile: Remove.
13579
13580 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
13581
13582         [BZ #13058]
13583         * manual/examples/argp-ex1.c (main): Format definition in GNU
13584         style.
13585         * manual/examples/argp-ex2.c (main): Likewise.
13586         * manual/examples/argp-ex3.c (main): Likewise.
13587         * manual/examples/argp-ex4.c (main): Likewise.
13588         * manual/examples/longopt.c (main): Use new-style prototype
13589         definition.
13590         * manual/examples/strncat.c (main): Specify return type and use
13591         (void) for arguments.
13592         * manual/examples/subopt.c (main): Use char **argv argument.
13593
13594 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13595
13596         [BZ #5077]
13597         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
13598         rounding modes.
13599
13600 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
13601
13602         [BZ #6907]
13603         * manual/string.texi (strchr): Change when strchrnul is
13604         recommended.
13605
13606 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
13607
13608         [BZ #174]
13609         * manual/locale.texi (setlocale): Document LOCPATH.
13610
13611 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13612
13613         [BZ #10210]
13614         * manual/process.texi (execle): Move @dots{} before last argument.
13615
13616 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
13617
13618         [BZ #12047]
13619         * manual/charset.texi (Generic Charset Conversion): Fix typo
13620         (LC_TYPE -> LC_CTYPE).
13621
13622 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
13623
13624         [BZ #5805]
13625         * manual/arith.texi (scalbn): Use @var{} on parameter names.
13626         (scalbnf): Likewise.
13627         (scalbnl): Likewise.
13628         (scalbln): Likewise.
13629         (scalblnf): Likewise.
13630         (scalblnl): Likewise.
13631         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
13632         (vwarnx): Likewise.
13633         (verr): Likewise.
13634         (verrx): Likewise.
13635         * manual/filesys.texi (telldir): Use braces around return type.
13636         * manual/llio.texi (mmap): Add space after comma.
13637         (mmap64): Likewise.
13638         * manual/math.texi (jn): Use @var{} on parameter names.
13639         (jnf): Likewise.
13640         (jnl): Likewise.
13641         (yn): Likewise.
13642         (ynf): Likewise.
13643         (ynl): Likewise.
13644         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
13645         line.
13646         * manual/resource.texi (ulimit): Use @dots{} instead of literal
13647         "...".
13648         (sched_get_priority_min): Remove semicolon on @deftypefun line.
13649         (sched_get_priority_max): Likewise.
13650         * manual/signal.texi (sigvec): Add space after comma.
13651         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
13652         names.
13653         (if_indextoname): Likewise.
13654         (if_freenameindex): Likewise.
13655         (sendto): Use ',' instead of '.' in prototype.
13656         * manual/startup.texi (syscall): Use @dots{} instead of literal
13657         "...".
13658         * manual/stdio.texi (__fpending): Separate initial words of
13659         paragraph from @deftypefun line.
13660         * manual/syslog.texi (syslog): Use @dots{} instead of literal
13661         "...".
13662         (vsyslog): Use @var{} on parameter names.
13663         * manual/terminal.texi (stty): Use @var{} on parameter names.
13664         * manual/users.texi (getutmp): Use @var{} on parameter names.
13665         (getutmpx): Likewise.
13666
13667 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13668
13669         [BZ #6884]
13670         * manual/stdio.texi (fopen): Fix typos in description of
13671         ",ccs=STRING".
13672
13673 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
13674
13675         [BZ #4026]
13676         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13677         get clock_id definition.
13678
13679 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13680
13681         [BZ #4822]
13682         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13683         (madvise): Cast every argument to void on its own.
13684
13685 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13686
13687         [BZ #9902]
13688         * manual/startup.texi (Exit Status): Fix typo.
13689
13690 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13691
13692         [BZ #10140]
13693         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13694         * manual/examples/argp-ex2.c: Likewise.
13695         * manual/examples/argp-ex3.c: Likewise.
13696
13697 2012-02-16  Richard Henderson  <rth@redhat.com>
13698
13699         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13700         * sysdeps/s390/s390-32/initfini.c: Remove.
13701         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13702         * sysdeps/s390/s390-64/initfini.c: Remove.
13703
13704 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13705
13706         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13707         compiler output for sysdeps/generic/initfini.c.
13708         * sysdeps/sh/elf/initfini.c: Remove file.
13709
13710 2012-02-16  David S. Miller  <davem@davemloft.net>
13711
13712         [BZ #11494]
13713         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13714
13715         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13716         * sysdeps/sparc/crti.S: New file.
13717         * sysdeps/sparc/crtn.S: New file.
13718         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13719         * sysdeps/sparc/sparc64/Makefile: Likewise.
13720
13721 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13722
13723         [BZ #3335]
13724         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13725
13726 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13727
13728         [BZ #4822]
13729         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13730
13731         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13732         (write, read, close): Likewise.
13733         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13734
13735 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13736
13737         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13738         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13739         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13740         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13741         <bits/signalfd.h>.
13742         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13743         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13744         bits/signalfd.h.
13745
13746 2012-02-14  Marek Polacek  <polacek@redhat.com>
13747
13748         * sysdeps/x86_64/crti.S: New file.
13749         * sysdeps/x86_64/crtn.S: New file.
13750         * sysdeps/x86_64/elf/initfini.c: Remove file.
13751
13752 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13753
13754         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13755         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13756         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13757         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13758         <bits/inotify.h>.
13759         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13760         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13761         bits/inotify.h.
13762
13763 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13764
13765         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13766         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13767         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13768         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13769         <bits/eventfd.h>.
13770         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13771         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13772         bits/eventfd.h.
13773
13774 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13775
13776         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13777         __feraiseexcept instead of feraiseexcept.
13778
13779         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13780         nanosleep invocations.
13781         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13782         strings, and add error checking for a nanosleep invocations.
13783
13784 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13785
13786         Replace FSF snail mail address with URLs, as per GNU coding standards.
13787         Most of the snail mail addresses were wrong anyway, and omitting
13788         them makes the source code easier to maintain.  Almost all of the
13789         changes are to license notices and to locale LC_IDENTIFICATION
13790         addresses, except for this one:
13791         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13792         not its snail mail address.
13793
13794 2012-02-09  Richard Henderson  <rth@twiddle.net>
13795
13796         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13797         of kernel-features.h.
13798
13799         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13800
13801 2012-02-08  Marek Polacek  <polacek@redhat.com>
13802
13803         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13804         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13805         * sysdeps/gnu/_G_config.h: Likewise.
13806         * sysdeps/generic/_G_config.h: Likewise.
13807
13808 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13809
13810         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13811         tests.
13812         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13813
13814         * sysdeps/powerpc/powerpc32/crti.S: New file.
13815         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13816         * sysdeps/powerpc/powerpc64/crti.S: New file.
13817         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13818
13819         * Makeconfig (have-initfini): Don't set.
13820         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13821         * configure.in (nopic_initfini): Don't substitute.
13822         * config.h.in (HAVE_INITFINI): Don't #undef.
13823         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13824         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13825
13826 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13827
13828         Support crti.S and crtn.S provided directly by architectures.
13829         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13830         [crti.S in sysdirs] (omit-deps): Likewise.
13831         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13832         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13833         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13834         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13835         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13836         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13837         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13838         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13839         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13840         compiler output for sysdeps/generic/initfini.c.
13841         * sysdeps/i386/elf/Makefile: Remove file.
13842         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13843
13844 2012-02-07  Marek Polacek  <polacek@redhat.com>
13845
13846         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13847         * sysdeps/gnu/_G_config.h: Likewise.
13848         * sysdeps/mach/hurd/_G_config.h: Likewise.
13849
13850 2012-02-07  Marek Polacek  <polacek@redhat.com>
13851
13852         * math/Makefile (tests): Add tst-CMPLX2.
13853         * math/tst-CMPLX2.c: New file.
13854
13855 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13856
13857         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13858
13859         * math/libm-test.inc (jn_test): Add missing L suffix.
13860
13861 2012-02-06  Marek Polacek  <polacek@redhat.com>
13862
13863         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13864         * sysdeps/i386/fpu/e_powf.S: Likewise.
13865         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13866         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13867         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13868         * sysdeps/i386/fpu/e_pow.S: Likewise.
13869         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13870         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13871         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13872         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13873         * sysdeps/i386/fpu/e_log2.S: Likewise.
13874         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13875         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13876         * sysdeps/i386/fpu/e_powl.S: Likewise.
13877         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13878         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13879         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13880         * sysdeps/i386/fpu/e_logl.S: Likewise.
13881         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13882         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13883         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13884         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13885         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13886         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13887         * sysdeps/i386/fpu/e_log.S: Likewise.
13888         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13889         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13890         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13891         * sysdeps/i386/fpu/e_logf.S: Likewise.
13892         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13893         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13894         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13895         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13896         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13897         * sysdeps/i386/fpu/e_log10.S: Likewise.
13898         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13899         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13900         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13901         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13902         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13903         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13904         * sysdeps/i386/asm-syntax.h: Likewise.
13905         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13906         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13907         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13908         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13909         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13910         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13911         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13912         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13913         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13914         * sysdeps/powerpc/sysdep.h: Likewise.
13915         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13916         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13917
13918 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13919
13920         [BZ #411]
13921         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13922
13923 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13924
13925         * sysdeps/i386/sysdep.h: Include <features.h>.
13926         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13927         version.
13928
13929 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13930
13931         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13932         Define.
13933         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13934         LOAD_PIC_REG_STR.
13935
13936 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13937
13938         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13939         (SETUP_PIC_REG): Use GET_PC_THUNK.
13940         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13941         macro.
13942
13943 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13944
13945         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13946         for non-PIC compilation.
13947         (SETUP_PIC_REG): Add .p2align directive.
13948         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13949         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13950         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13951         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13952         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13953         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13954         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13955         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13956         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13957         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13958         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13959         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13960         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13961         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13962         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13963         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13964         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13965         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13966         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13967         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13968         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13969         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13970         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13971         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13972         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13973         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13974         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13975         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13976         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13977         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13978         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13979         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13980         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13981         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13982         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13983         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13984         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13985         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13986         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13987         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13988         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13989
13990 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13991
13992         * math/tst-CMPLX.c: Include <stdio.h>.
13993
13994 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13995
13996         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13997         float.
13998         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13999         * sysdeps/sparc/bits/mathdef.h: Likewise.
14000
14001 2012-01-31  Marek Polacek  <polacek@redhat.com>
14002
14003         * libio/libio.h: Don't define _PARAMS.
14004         * locale/programs/config.h: Don't define PARAMS.
14005         * stdlib/strtol_l.c: Likewise.
14006         (__strtol_l): Remove PARAMS from the prototype.
14007
14008 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14009
14010         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14011         names.  Just use the correct names.  Remove unnecessary wrapper
14012         functions.
14013         * malloc/arena.c: Likewise.
14014         * malloc/hooks.c: Likewise.
14015
14016         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14017         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14018         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14019
14020 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14021
14022         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14023         into tail calls.
14024         (update_get_addr): New function.
14025         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14026         GET_ADDR_MODULE parameter.
14027
14028 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14029
14030         * crypt/cert.c: Remove __STDC__ conditionals.
14031         * crypt/crypt-entry.c: Likewise.
14032         * crypt/crypt_util.c: Likewise.
14033         * libio/filedoalloc.c: Likewise.
14034         * libio/fileops.c: Likewise.
14035         * libio/genops.c: Likewise.
14036         * libio/iofclose.c: Likewise.
14037         * libio/iofdopen.c: Likewise.
14038         * libio/iofopen.c: Likewise.
14039         * libio/iofopen64.c: Likewise.
14040         * libio/iogetdelim.c: Likewise.
14041         * libio/iopopen.c: Likewise.
14042         * libio/obprintf.c: Likewise.
14043         * libio/oldfileops.c: Likewise.
14044         * libio/oldiofclose.c: Likewise.
14045         * libio/oldiofdopen.c: Likewise.
14046         * libio/oldiofopen.c: Likewise.
14047         * libio/oldiopopen.c: Likewise.
14048         * libio/wfiledoalloc.c: Likewise.
14049         * libio/wgenops.c: Likewise.
14050         * locale/programs/xmalloc.c: Likewise.
14051         * misc/syslog.c: Likewise.
14052         * stdio-common/xbug.c: Likewise.
14053         * string/memchr.c: Likewise.
14054         * string/memcmp.c: Likewise.
14055         * string/memrchr.c: Likewise.
14056         * string/rawmemchr.c: Likewise.
14057         * sysdeps/posix/getcwd.c: Likewise.
14058         * time/strftime_l.c: Likewise.
14059
14060 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14061
14062         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14063         * config.make.in (config-cflags-sse2avx): Define.
14064         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14065         Fix typo.
14066
14067 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14068
14069         * scripts/config.guess: Update from upstream config git repository.
14070         * scripts/config.sub: Likewise.
14071
14072 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14073
14074         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14075         (EM_NUM): Update.
14076         (R_TILEPRO_*, R_TILEGX_*): New macros.
14077
14078         * scripts/firstversions.awk: Fix bug in version range handling.
14079
14080         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14081
14082         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14083
14084         * include/sys/epoll.h: New file.
14085         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14086         libc_hidden_def.
14087
14088 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14089
14090         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14091         Avoid unnecessary __WORDSIZE == 64 test.
14092         (fmaxf): Use VEX format if possible.
14093         (fmax): Likewise.
14094         (fminf): Likewise.
14095         (fmin): Likewise.
14096
14097         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14098         * math/math_private.h: Remove libc_fegetround* and
14099         libc_fesetround*.
14100         * sysdeps/i386/configure.in: Check for -msse2avx.
14101         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14102         also if SSE2AVX is defined.
14103         Remove libc_fegetround* and libc_fesetround*.
14104         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14105         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14106         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14107         of HAS_YMM_USABLE.
14108         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14109         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14110         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14111         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14112         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14113
14114         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14115
14116 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14117
14118         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14119         size is not set.
14120         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14121
14122 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14123
14124         [BZ #13618]
14125         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14126         relocation.
14127         * Makeconfig (libm): Define.
14128         * elf/Makefile: Add rules to build and run tst-relsort1.
14129         * elf/tst-relsort1.c: New file.
14130         * elf/tst-relsort1mod1.c: New file.
14131         * elf/tst-relsort1mod2.c: New file.
14132
14133 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14134
14135         * math/s_ldexp.c: Remove __STDC__ conditionals.
14136         * math/s_ldexpf.c: Likewise.
14137         * math/s_ldexpl.c: Likewise.
14138         * math/s_nextafter.c: Likewise.
14139         * math/s_nexttowardf.c: Likewise.
14140         * math/s_significand.c: Likewise.
14141         * math/s_significandf.c: Likewise.
14142         * math/s_significandl.c: Likewise.
14143         * math/w_jnl.c: Likewise.
14144         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14145         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14146         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14147         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14148         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14149         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14150         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14151         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14152         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14153         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14154         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14155         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14156         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14157         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14158         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14159         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14160         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14161         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14162         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14163         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14164         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14165         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14166         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14167         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14168         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14169         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14170         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14171         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14172         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14173         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14174         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14175         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14176         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14177         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14178         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14179         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14180         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14181         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14182         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14183         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14184         * sysdeps/ieee754/k_standard.c: Likewise.
14185         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14186         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14187         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14188         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14189         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14190         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14191         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14192         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14193         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14194         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14195         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14196         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14197         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14198         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14199         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14200         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14201         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14202         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14203         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14204         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14205         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14206         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14207         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14208         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14209         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14210         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14211         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14212         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14213         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14214         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14215         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14216         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14217         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14218         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14219         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14220         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14221         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14222         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14223         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14224         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14225         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14226         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14227         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14228         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14229         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14230         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14231         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14232         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14233         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14234         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14235         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14236         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14237         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14238         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14239         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14240         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14241         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14242         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14243         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14244         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14245         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14246         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14247         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14248         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14249         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14250         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14251         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14252         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14253         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14254         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14255         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14256         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14257         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14258         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14259         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14260         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14261         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14262         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14263         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14264         * sysdeps/ieee754/s_matherr.c: Likewise.
14265         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14266         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14267         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14268         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14269
14270 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14271
14272         * crypt/md5.h: Remove __STDC__ conditionals.
14273         * libio/libioP.h: Likewise.
14274         * locale/programs/config.h: Likewise.
14275         * sysdeps/generic/sysdep.h: Likewise.
14276         * sysdeps/i386/asm-syntax.h: Likewise.
14277         * sysdeps/s390/asm-syntax.h: Likewise.
14278         * sysdeps/unix/sysdep.h: Likewise.
14279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14281
14282 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14283
14284         * libio/libio.h: Remove __STDC__ conditionals.
14285         * malloc/obstack.h: Likewise.
14286         * math/complex.h: Likewise.
14287         * math/math.h: Likewise.
14288         * sysdeps/generic/_G_config.h: Likewise.
14289         * sysdeps/gnu/_G_config.h: Likewise.
14290         * sysdeps/mach/hurd/_G_config.h: Likewise.
14291         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14292         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14293         * sysdeps/sparc/bits/mathdef.h: Likewise.
14294
14295 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
14296
14297         [BZ #13583]
14298         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
14299         Clean up HAS_* macros.
14300         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
14301         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
14302         possible.
14303         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
14304         HAS_AVX.
14305         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14306         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14307         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14308         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14309         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14310
14311 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
14312
14313         * elf/tst-unique3.cc (gets): Remove declaration.
14314         * elf/tst-unique3lib.cc (gets): Likewise.
14315         * elf/tst-unique3lib2.cc (gets): Likewise.
14316         * elf/tst-unique4.cc (gets): Likewise.
14317
14318 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
14319
14320         * include/stdio.h: Add C++ protection.  Add gets declarations and
14321         definitions.
14322         * debug/tst-chk1.c: Don't declare gets here.
14323         * stdio-common/tst-gets.c: Likewise.
14324
14325 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14326
14327         * posix/glob: Remove directory.
14328
14329 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14330
14331         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
14332
14333 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
14334
14335         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
14336         of the non-standard EPFNOSUPPORT.
14337
14338 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14339
14340         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
14341         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
14342         ANYWHERE set to 1 only on KERN_NO_SPACE error.
14343
14344 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
14345
14346         * wcsmbs/uchar.h: Test __STDC_VERSION__.
14347
14348 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
14349
14350         * nscd/aicache.c (addhstaiX): Do not cache negative results of
14351         transient errors.
14352         * nscd/grpcache.c (cache_addgr): Likewise.
14353         * nscd/hstcache.c (cache_addhst): Likewise.
14354         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14355         * nscd/pwdcache.c (cache_addpw): Likewise.
14356         * nscd/servicescache.c (cache_addserv): Likewise.
14357
14358 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
14359
14360         * malloc/malloc.c: Various cleanups.
14361         * malloc/hooks.c: Likewise.
14362
14363         * stdlib/Makefile (tests): Add bug-fmtmsg1.
14364         * stdlib/bug-fmtmsg1.c: New file.
14365
14366         * stdlib/fmtmsg.c (init): Add missing unlock.
14367         Patch by Peng Haitao <penght@cn.fujitsu.com>.
14368
14369 2012-01-12  Marek Polacek  <polacek@redhat.com>
14370
14371         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
14372         and _GNU_SOURCE.
14373
14374 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14375
14376         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
14377         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
14378         macro to ensure uniqueness of label name.
14379         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14380         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14381
14382 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
14383
14384         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
14385
14386         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
14387         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
14388         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
14389         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
14390
14391 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
14392
14393         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
14394
14395         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
14396         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
14397         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
14398
14399         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
14400
14401         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
14402         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
14403         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
14404         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
14405
14406         * math/bits/math-finite.h: Add ldexp support.
14407
14408 2012-01-10  Marek Polacek  <polacek@redhat.com>
14409
14410         * locale/programs/localedef.h (show_archive_content): Add noreturn
14411         attribute.
14412
14413 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
14414
14415         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
14416
14417 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14418
14419         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
14420
14421         * io/Makefile (headers): Add bits/poll2.h.
14422
14423 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
14424
14425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
14426         typo #include statement.
14427
14428 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14429
14430         * include/sys/cdefs.h: Define __attribute_alloc_size.
14431         * catgets/gencat.c: Add alloc_size attribute and apply consistently
14432         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
14433         * elf/pldd.c: Likewise.
14434         * iconv/iconv_charmap.c: Likewise.
14435         * iconv/iconvconfig.c: Likewise.
14436         * iconv/strtab.c: Likewise.
14437         * locale/programs/locale.c: Likewise.
14438         * locale/programs/localedef.h: Likewise.
14439         * locale/programs/simple-hash.c: Likewise.
14440         * nscd/nscd.h: Likewise.
14441         * nss/makedb.c: Likewise.
14442         * sysdeps/generic/ldconfig.h: Likewise.
14443         * locale/programs/localedef.c: Remove xmalloc prototype.
14444         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
14445
14446 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14447
14448         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
14449         appropriate.
14450
14451 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14452
14453         * math/Makefile (tests): Add tst-CMPLX.
14454         * math/tst-CMPLX.c: New file.
14455
14456         * math/complex.h (CMPLXL): Fix typo.
14457
14458         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
14459         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
14460         GLIBC_2.16.
14461         * debug/tst-chk1.c: Add poll and ppoll tests.
14462         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
14463         * include/sys/poll.h: Add hidden proto for ppoll.
14464         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
14465         * sysdeps/mach/hurd/ppoll.c: Likewise.
14466         * io/ppoll.c: Likewise.
14467         * debug/poll_chk.c: New file.
14468         * debug/ppoll_chk.c: New file.
14469         * include/bits/poll2.h: New file.
14470         * io/bits/poll2.h: New file.
14471
14472         [BZ #1350]
14473         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
14474
14475         * configure.in: static is always set to yes.  Remove.
14476         * config.make.in: Don't set build-static.
14477         * Makeconfig: Remove use of build-static.
14478         * dlfcn/Makefile: Likewise.
14479         * elf/Makefile: Likewise.
14480         * math/Makefile: Likewise.
14481         * misc/Makefile: Likewise.
14482         * nptl/Makefile: Likewise.
14483         * sysdeps/mach/hurd/Makefile: Likewise.
14484
14485         * configure.in: PWD_P is not used anymore.
14486         * config.make.in: Remove PWD_P entry.
14487
14488         * configure.in: Remove last remnants of RANLIB.
14489         No need to check for signed size_t anymore.
14490         Don't set libc_commonpagesize and libc_relro_required here for Alpha
14491         and IA-64.
14492         Remove __builtin_expect test because we require at least gcc 3.4.
14493         * aclocal.m4: Likewise.
14494
14495         * wcsmbs/mbrtoc16.c: Implement using towc function.
14496         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
14497         * wcsmbs/wcsmbsload.c: Likewise.
14498         * iconv/gconv_simple.c: Likewise.
14499         * iconv/gconv_int.h: Likewise.
14500         * iconv/gconv_builtin.h: Likewise.
14501         * iconv/iconv_prog.c: Remove CHAR16 handling.
14502
14503         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
14504
14505         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
14506
14507         * configure.in: Remove --with-elf and --enable-bounded options.
14508         Dont set base_machine for ia64.  More non-ELF conditions removed.
14509         Remove testing and setting of leading underscore information.
14510         * config.make.in (build-bounded): Set to no.
14511         * config.h.in: Remove NO_UNDERSCORES entry.
14512         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
14513         them.
14514         * csu/start.c: Remove !NO_UNDERSCORE code.
14515         * locale/localeinfo.h: Likewise.
14516         * sysdeps/generic/machine-gmon.h: Likewise.
14517         * sysdeps/generic/sysdep.h: Likewise.
14518         * sysdeps/i386/sysdep.h: Likewise.
14519         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14520         * sysdeps/mach/sysdep.h: Likewise.
14521         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14522         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14523         * sysdeps/sh/sysdep.h: Likewise.
14524         * sysdeps/sparc/sparc32/alloca.S: Likewise.
14525         * sysdeps/unix/i386/sysdep.S: Likewise.
14526         * sysdeps/unix/sparc/start.c: Likewise.
14527         * sysdeps/unix/sparc/sysdep.S: Likewise.
14528         * sysdeps/unix/sparc/sysdep.h: Likewise.
14529         * sysdeps/unix/start.c: Likewise.
14530         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14531         * sysdeps/x86_64/sysdep.h: Likewise.
14532
14533 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
14534
14535         [BZ #13553]
14536         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
14537         for non-gcc.
14538         * argp/argp-fmtstream.h: Use const instead __const.
14539         * argp/argp.h: Likewise.
14540         * assert/assert.h: Likewise.
14541         * bits/fenv.h: Likewise.
14542         * bits/sched.h: Likewise.
14543         * bits/sigset.h: Likewise.
14544         * bits/sigthread.h: Likewise.
14545         * catgets/nl_types.h: Likewise.
14546         * conform/data/pthread.h-data: Likewise.
14547         * crypt/crypt-private.h: Likewise.
14548         * crypt/crypt.h: Likewise.
14549         * crypt/crypt_util.c: Likewise.
14550         * ctype/ctype.h: Likewise.
14551         * debug/execinfo.h: Likewise.
14552         * debug/mbsnrtowcs_chk.c: Likewise.
14553         * debug/mbsrtowcs_chk.c: Likewise.
14554         * debug/wcsnrtombs_chk.c: Likewise.
14555         * debug/wcsrtombs_chk.c: Likewise.
14556         * debug/wcstombs_chk.c: Likewise.
14557         * dirent/dirent.h: Likewise.
14558         * dlfcn/dlfcn.h: Likewise.
14559         * elf/neededtest4.c: Likewise.
14560         * grp/grp.h: Likewise.
14561         * gshadow/gshadow.h: Likewise.
14562         * iconv/gconv.h: Likewise.
14563         * iconv/gconv_int.h: Likewise.
14564         * iconv/gconv_simple.c: Likewise.
14565         * iconv/iconv.h: Likewise.
14566         * iconv/loop.c: Likewise.
14567         * iconv/skeleton.c: Likewise.
14568         * include/aio.h: Likewise.
14569         * include/aliases.h: Likewise.
14570         * include/argz.h: Likewise.
14571         * include/arpa/inet.h: Likewise.
14572         * include/assert.h: Likewise.
14573         * include/dirent.h: Likewise.
14574         * include/dlfcn.h: Likewise.
14575         * include/execinfo.h: Likewise.
14576         * include/fcntl.h: Likewise.
14577         * include/fenv.h: Likewise.
14578         * include/glob.h: Likewise.
14579         * include/grp.h: Likewise.
14580         * include/libintl.h: Likewise.
14581         * include/mntent.h: Likewise.
14582         * include/netdb.h: Likewise.
14583         * include/pwd.h: Likewise.
14584         * include/rpc/netdb.h: Likewise.
14585         * include/sched.h: Likewise.
14586         * include/search.h: Likewise.
14587         * include/shadow.h: Likewise.
14588         * include/signal.h: Likewise.
14589         * include/stdio.h: Likewise.
14590         * include/stdlib.h: Likewise.
14591         * include/string.h: Likewise.
14592         * include/sys/socket.h: Likewise.
14593         * include/sys/stat.h: Likewise.
14594         * include/sys/statfs.h: Likewise.
14595         * include/sys/statvfs.h: Likewise.
14596         * include/sys/syslog.h: Likewise.
14597         * include/sys/time.h: Likewise.
14598         * include/sys/uio.h: Likewise.
14599         * include/time.h: Likewise.
14600         * include/unistd.h: Likewise.
14601         * include/utmp.h: Likewise.
14602         * include/wchar.h: Likewise.
14603         * include/wctype.h: Likewise.
14604         * inet/aliases.h: Likewise.
14605         * inet/arpa/inet.h: Likewise.
14606         * inet/netinet/ether.h: Likewise.
14607         * inet/netinet/in.h: Likewise.
14608         * intl/libintl.h: Likewise.
14609         * io/bits/fcntl2.h: Likewise.
14610         * io/fcntl.h: Likewise.
14611         * io/ftw.h: Likewise.
14612         * io/sys/poll.h: Likewise.
14613         * io/sys/stat.h: Likewise.
14614         * io/sys/statfs.h: Likewise.
14615         * io/sys/statvfs.h: Likewise.
14616         * io/utime.h: Likewise.
14617         * libio/bits/stdio.h: Likewise.
14618         * libio/bits/stdio2.h: Likewise.
14619         * libio/libio.h: Likewise.
14620         * libio/libioP.h: Likewise.
14621         * libio/stdio.h: Likewise.
14622         * locale/lc-ctype.c: Likewise.
14623         * locale/locale.h: Likewise.
14624         * login/utmp.h: Likewise.
14625         * malloc/arena.c: Likewise.
14626         * malloc/malloc.c: Likewise.
14627         * malloc/malloc.h: Likewise.
14628         * malloc/mcheck.c: Likewise.
14629         * malloc/mtrace.c: Likewise.
14630         * math/bits/mathcalls.h: Likewise.
14631         * math/fenv.h: Likewise.
14632         * math/math_private.h: Likewise.
14633         * misc/bits/error.h: Likewise.
14634         * misc/bits/syslog.h: Likewise.
14635         * misc/err.h: Likewise.
14636         * misc/error.h: Likewise.
14637         * misc/fstab.h: Likewise.
14638         * misc/mntent.h: Likewise.
14639         * misc/regexp.h: Likewise.
14640         * misc/search.h: Likewise.
14641         * misc/sgtty.h: Likewise.
14642         * misc/sys/mman.h: Likewise.
14643         * misc/sys/syslog.h: Likewise.
14644         * misc/sys/uio.h: Likewise.
14645         * misc/sys/xattr.h: Likewise.
14646         * misc/ttyent.h: Likewise.
14647         * nis/rpcsvc/ypclnt.h: Likewise.
14648         * nss/nss.h: Likewise.
14649         * posix/bits/unistd.h: Likewise.
14650         * posix/fnmatch.h: Likewise.
14651         * posix/glob.h: Likewise.
14652         * posix/sched.h: Likewise.
14653         * posix/spawn.h: Likewise.
14654         * posix/sys/wait.h: Likewise.
14655         * posix/unistd.h: Likewise.
14656         * posix/wordexp.h: Likewise.
14657         * pwd/pwd.h: Likewise.
14658         * resolv/netdb.h: Likewise.
14659         * resource/sys/resource.h: Likewise.
14660         * rt/aio.h: Likewise.
14661         * rt/bits/mqueue2.h: Likewise.
14662         * rt/mqueue.h: Likewise.
14663         * shadow/shadow.h: Likewise.
14664         * signal/signal.h: Likewise.
14665         * socket/send.c: Likewise.
14666         * socket/sendto.c: Likewise.
14667         * socket/sys/socket.h: Likewise.
14668         * stdio-common/printf.h: Likewise.
14669         * stdlib/bits/stdlib.h: Likewise.
14670         * stdlib/fmtmsg.h: Likewise.
14671         * stdlib/monetary.h: Likewise.
14672         * stdlib/stdlib.h: Likewise.
14673         * stdlib/ucontext.h: Likewise.
14674         * streams/stropts.h: Likewise.
14675         * string/argz.h: Likewise.
14676         * string/bits/string2.h: Likewise.
14677         * string/string.h: Likewise.
14678         * string/strings.h: Likewise.
14679         * sunrpc/rpc/auth.h: Likewise.
14680         * sunrpc/rpc/auth_des.h: Likewise.
14681         * sunrpc/rpc/clnt.h: Likewise.
14682         * sunrpc/rpc/netdb.h: Likewise.
14683         * sunrpc/rpc/pmap_clnt.h: Likewise.
14684         * sunrpc/rpc/xdr.h: Likewise.
14685         * sysdeps/generic/inttypes.h: Likewise.
14686         * sysdeps/generic/net/if.h: Likewise.
14687         * sysdeps/generic/sys/swap.h: Likewise.
14688         * sysdeps/gnu/net/if.h: Likewise.
14689         * sysdeps/gnu/utmpx.h: Likewise.
14690         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14691         * sysdeps/i386/i486/bits/string.h: Likewise.
14692         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14693         * sysdeps/s390/bits/string.h: Likewise.
14694         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14695         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14696         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14697         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14698         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14699         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14700         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14701         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14702         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14703         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14704         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14705         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14706         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14707         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14708         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14709         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14710         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14711         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14712         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14713         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14714         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14715         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14716         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14717         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14718         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14719         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14720         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14721         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14722         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14723         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14724         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14725         * sysvipc/sys/ipc.h: Likewise.
14726         * sysvipc/sys/msg.h: Likewise.
14727         * sysvipc/sys/sem.h: Likewise.
14728         * sysvipc/sys/shm.h: Likewise.
14729         * termios/termios.h: Likewise.
14730         * time/sys/time.h: Likewise.
14731         * time/time.h: Likewise.
14732         * wcsmbs/bits/wchar2.h: Likewise.
14733         * wcsmbs/uchar.h: Likewise.
14734         * wcsmbs/wchar.h: Likewise.
14735         * wctype/wctype.h: Likewise.
14736
14737         [BZ #13551]
14738         * Makeconfig: Remove all but ELF support including AIX support.
14739         * Makerules: Likewise.
14740         * config.h.in: Likewise.
14741         * config.make.in: Likewise.
14742         * configure: Likewise.
14743         * configure.in: Likewise.
14744         * csu/Makefile: Likewise.
14745         * csu/version.c: Likewise.
14746         * debug/Makefile: Likewise.
14747         * dlfcn/Makefile: Likewise.
14748         * elf/Makefile: Likewise.
14749         * extra-lib.mk: Likewise.
14750         * iconv/Makefile: Likewise.
14751         * include/libc-symbols.h: Likewise.
14752         * include/shlib-compat.h: Likewise.
14753         * resolv/Makefile: Likewise.
14754         * resolv/res_libc.c: Likewise.
14755         * rt/Makefile: Likewise.
14756         * sysdeps/i386/asm-syntax.h: Likewise.
14757         * sysdeps/i386/sysdep.h: Likewise.
14758         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14759         * sysdeps/mach/sysdep.h: Likewise.
14760         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14761         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14762         * sysdeps/s390/asm-syntax.h: Likewise.
14763         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14764         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14765         * sysdeps/sh/sysdep.h: Likewise.
14766         * sysdeps/unix/sparc/sysdep.h: Likewise.
14767         * sysdeps/wordsize-32/divdi3.c: Likewise.
14768         * sysdeps/x86_64/sysdep.h: Likewise.
14769
14770         * argp/Versions: Remove _argp_unlock_xxx.
14771
14772         [BZ #13559]
14773         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14774         * abilist/libBrokenLocale.abilist: Likewise.
14775         * abilist/libanl.abilist: Likewise.
14776         * abilist/libc.abilist: Likewise.
14777         * abilist/libcrypt.abilist: Likewise.
14778         * abilist/libdl.abilist: Likewise.
14779         * abilist/libm.abilist: Likewise.
14780         * abilist/libnsl.abilist: Likewise.
14781         * abilist/libpthread.abilist: Likewise.
14782         * abilist/libresolv.abilist: Likewise.
14783         * abilist/librt.abilist: Likewise.
14784         * abilist/libthread_db.abilist: Likewise.
14785         * abilist/libutil.abilist: Likewise.
14786         * abilist/libnss_db.abilist: New file.
14787
14788         * scripts/abilist.awk: Add support for indirect functions.
14789
14790         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14791
14792         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14793
14794         * shlib-versions: Remove entries for ports architectures.
14795
14796         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14797         files in ports.
14798         * elf/stackguard-macros.h: Remove support for IA-64.
14799         * elf/tst-auditmod1.c: Likewise.
14800         * sysdeps/generic/ldsodefs.h: Likewise.
14801
14802         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14803         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14804         configure files.
14805
14806         [BZ #13552]
14807         * configure.in: Remove --enable-omitfp support.
14808         * FAQ.in: Adjust.
14809         * config.make.in: Likewise.
14810         * Makeconfig: Likewise.
14811         * manual/install.texi: Likewise.
14812
14813         In case anyone cares, the IA-64 architecture could move to ports.
14814         * sysdeps/ia64/*: Removed.
14815         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14816         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14817
14818         [BZ #13555]
14819         * configure.in: Remove entries for unsupported architectures.
14820
14821         [BZ #13533]
14822         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14823         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14824         routines.
14825         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14826         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14827         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14828         fall back to using wcrtomb.
14829         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14830         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14831         renaming.
14832         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14833         * wcsmbs/tst-c16c32-1.c: New file.
14834
14835         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14836         local variable.
14837
14838         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14839
14840         * elf/tst-unique3.cc: Add explicit declaration of gets.
14841         * elf/tst-unique3lib.cc: Likewise.
14842         * elf/tst-unique3lib2.cc: Likewise.
14843         * elf/tst-unique4.cc: Likewise.
14844
14845         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14846
14847 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14848
14849         [BZ #13566]
14850         * assert/assert.h (static_assert): Don't define for C++.
14851         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14852         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14853
14854 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14855
14856         * iconv/loop.c (single loop): Fix assertion in storing of
14857         remaining bytes.
14858
14859         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14860
14861 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14862
14863         * posix/getconf.c: Update copyright year.
14864         * nss/getent.c: Likewise.
14865         * nss/makedb.c: Likewise.
14866         * iconv/iconvconfig.c: Likewise.
14867         * iconv/iconv_prog.c: Likewise.
14868         * elf/ldconfig.c: Likewise.
14869         * elf/pldd.c: Likewise.
14870         * elf/sotruss.ksh: Likewise.
14871         * catgets/gencat.c: Likewise.
14872         * csu/version.c: Likewise.
14873         * elf/ldd.bash.in: Likewise.
14874         * elf/sprof.c (print_version): Likewise.
14875         * locale/programs/locale.c: Likewise.
14876         * locale/programs/localedef.c: Likewise.
14877         * login/programs/pt_chown.c: Likewise.
14878         * nscd/nscd.c (print_version): Likewise.
14879         * debug/xtrace.sh: Likewise.
14880         * malloc/memusage.sh: Likewise.
14881         * malloc/mtrace.pl: Likewise.
14882         * debug/catchsegv.sh: Likewise.
14883
14884 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14885
14886         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14887         pure attribute.
14888
14889 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14890
14891         [BZ #13533]
14892         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14893         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14894         transformations.
14895         * iconv/gconv_int.h: Likewise.
14896         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14897         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14898         from libc for GLIBC_2.16.
14899         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14900         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14901         * wcsmbs/uchar.h: Really define mbstate_t.
14902         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14903         * wcsmbs/c16rtomb.c: New file.
14904         * wcsmbs/mbrtoc16.c: New file.
14905         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14906         for C/POSIX locale.
14907         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14908         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14909
14910         * wcsmbs/wchar.h: Add missing __restrict.
14911
14912 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14913
14914         [BZ #13532]
14915         * time/Makefile (routines): Add timespec_get.
14916         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14917         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14918         timespec for ISO C11.
14919         * time/timespec_get.c: New file.
14920         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14921         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14922
14923         [BZ #13531]
14924         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14925         * stdlib/stdlib.h: Declare aligned_alloc.
14926         * Versions.def: Add GLIBC_2.16 for libc.
14927         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14928
14929         [BZ 13527]
14930         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14931         ISO C11.
14932
14933         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14934         code.
14935
14936         [BZ #13528]
14937         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14938
14939         [BZ #13529]
14940         * assert/assert.h (static_assert): Define.
14941
14942         * version.h: Update for 2.16 development version.
14943
14944         [BZ #13526]
14945         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14946         _ISOC11_SOURCE.
14947
14948         * version.h (RELEASE): Bump for 2.15 release.
14949         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14950
14951         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14952         Patch by Marek Polacek <mpolacek@redhat.com>.
14953
14954         * bits/byteswap.h: Protect long long constants with __extension__.
14955         * sysdeps/i386/bits/byteswap.h: Likewise.
14956         * sysdeps/ia64/bits/byteswap.h: Likewise.
14957         * sysdeps/s390/bits/byteswap.h: Likewise.
14958         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14959
14960 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14961
14962         [BZ #13540]
14963         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14964         destination buffer.
14965         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14966
14967 2011-12-23  Marek Polacek  <polacek@redhat.com>
14968
14969         * elf/dl-addr.c (determine_info): Add inline keyword.
14970         * elf/tst-auditmod4b.c (check_avx): Likewise.
14971         * elf/tst-auditmod6b.c (check_avx): Likewise.
14972         * elf/tst-auditmod6c.c (check_avx): Likewise.
14973         * elf/tst-auditmod7b.c (check_avx): Likewise.
14974
14975 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14976
14977         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14978         !__SSE_MATH__.
14979
14980 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14981
14982         [BZ #13540]
14983         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14984         processing for last bytes.
14985
14986 2011-08-06  Bruno Haible  <bruno@clisp.org>
14987
14988         [BZ #13061]
14989         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14990         U+0385, not to U+1FEE.
14991
14992         [BZ #13062]
14993         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14994         entry for U+00A5 U+0301.
14995
14996 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14997
14998         [BZ #13166]
14999         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15000         buffer for the output is too small.
15001
15002         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15003         optimization.
15004
15005         [BZ #13185]
15006         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15007         SSE flags if possible.
15008
15009 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15010
15011         [BZ #13540]
15012         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15013         processing for last bytes.
15014
15015 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15016
15017         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15018         (syscall-list-default-options, syscall-list-default-condition)
15019         (syscall-list-includes): Define.
15020         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15021         list of ABIs and options and #if conditions for each ABI.  Do not
15022         handle common syscalls between ABIs specially.
15023         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15024         Remove.
15025         (syscall-list-variants, syscall-list-32bit-options)
15026         (syscall-list-32bit-condition, syscall-list-64bit-options)
15027         (syscall-list-64bit-condition): Define.
15028         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15029         (syscall-list-variants, syscall-list-32bit-options)
15030         (syscall-list-32bit-condition, syscall-list-64bit-options)
15031         (syscall-list-64bit-condition): Define.
15032         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15033         Remove.
15034         (syscall-list-variants, syscall-list-32bit-options)
15035         (syscall-list-32bit-condition, syscall-list-64bit-options)
15036         (syscall-list-64bit-condition): Define.
15037         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15038         Remove.
15039         (syscall-list-variants, syscall-list-32bit-options)
15040         (syscall-list-32bit-condition, syscall-list-64bit-options)
15041         (syscall-list-64bit-condition): Define.
15042
15043 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15044
15045         * locale/iso-639.def: Add brx entry.
15046
15047         [BZ #13328]
15048         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15049         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15050
15051         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15052         __feraiseexcept_renamed.
15053
15054 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15055
15056         [BZ #13538]
15057         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15058         EPOLLET with unsigned values.
15059         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15060         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15061
15062         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15063         to large cancellation.
15064         * math/s_cacoshf.c: Likewise.
15065         * math/s_cacoshl.c: Likewise.
15066
15067 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15068
15069         [BZ #13305]
15070         [BZ #12786]
15071         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15072         * math/s_cacoshf.c: Likewise.
15073         * math/s_cacoshl.c: Likewise.
15074
15075 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15076
15077         [BZ #13439]
15078         * iconv/gconv.h: Define __GCONV_SWAP.
15079         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15080         * iconvdata/utf-16.c: Likewise.
15081         * iconvdata/utf-32.c: Likewise.
15082
15083 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15084
15085         [BZ #13524]
15086         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15087         numerator after shifting it by one limb.
15088
15089 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15090
15091         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15092         under [__USE_EXTERN_INLINES].
15093
15094 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15095
15096         [BZ #13446]
15097         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15098
15099 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15100
15101         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15102         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15103         optimized code.
15104         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15105         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15106         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15107         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15108         for strncasecmp/strncasecmp_l compilation.
15109         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15110         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15111
15112 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15113
15114         [BZ #13484]
15115         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15116         of __asm__.
15117
15118 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15119
15120         [BZ #13506]
15121         * time/tzfile.c (__tzfile_read): Check values from file header.
15122
15123 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15124
15125         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15126         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15127         * powerpc/powerpc32/dl-start.S: Likewise.
15128         * powerpc/powerpc32/elf/start.S: Likewise.
15129         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15130         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15131         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15132         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15133         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15134         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15135         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15136         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15137         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15138         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15139         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15140         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15141         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15142         * powerpc/powerpc32/memset.S: Likewise.
15143         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15144         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15145         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15146         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15147         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15148         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15149         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15150         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15151         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15152         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15153         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15154         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15155         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15156
15157 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15158
15159         * math/libm-test.inc: Added more nearbyint tests.
15160         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15161         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15162         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15163         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15164
15165 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15166
15167         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15168         FD_CLOEXEC.
15169
15170 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15171
15172         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15173         Add wcscpy-ssse3 wcscpy-c.
15174         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15175         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15176         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15177         * sysdeps/x86_64/wcschr.S: New file.
15178         * sysdeps/x86_64/wcsrchr.S: New file.
15179         * string/test-strcmp.c: Remove checking of wcscmp function for
15180         wrong alignments.
15181         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15182         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15183         wcsrchr-sse2 wcsrchr-c.
15184         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15185         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15186         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15187         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15188         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15189         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15190         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15191         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15192         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15193         * wcsmbc/wcschr.c (WCSCHR): New macro.
15194
15195 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15196
15197         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15198         * wcsmbs/test-wcsrchr.c: New file.
15199         * string/test-strrchr.c: Add wcsrchr support.
15200         (WIDE): New macro.
15201         * wcsmbs/test-wcscpy.c: New file.
15202         * string/test-strcpy.c: Add wcscpy support.
15203         (WIDE): New macro.
15204
15205 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15206
15207         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15208         the inner loop.
15209
15210 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15211
15212         [BZ #13472]
15213         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15214
15215 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15216
15217         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15218         Minor optimizations.
15219
15220         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15221         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15222         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15223
15224 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15225
15226         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15227         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15228         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15229         for gcc to avoid warnings.
15230         * inet/Makefile (tests): Add tst-checks.
15231         * inet/tst-checks.c: New file.
15232
15233         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15234         warning.
15235
15236         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15237         __wmemcmp_sse2.
15238
15239         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15240         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15241
15242         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15243
15244 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15245
15246         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15247         problem.
15248
15249         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15250
15251 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15252
15253         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15254         conditional on GCC version.
15255         (__arch_compare_and_exchange_val_8_acq)
15256         (__arch_compare_and_exchange_val_16_acq)
15257         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15258         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15259         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15260
15261 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15262
15263         * sysdeps/sh/backtrace.c: New file.
15264
15265 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15266
15267         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15268         parenthesis.
15269
15270 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15271
15272         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15273         falling back to utime.
15274
15275 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15276
15277         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15278         expectations for float.
15279
15280 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15281
15282         * locale/weight.h (findidx): Add parameter len.
15283         * locale/weightwc.h (findidx): Likewise.
15284         * posix/fnmatch_loop.c (FCT): Adjust caller.
15285         * posix/regcomp.c (build_equiv_class): Likewise.
15286         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15287         * posix/regexec.c (check_node_accept_bytes): Likewise.
15288         * string/strcoll_l.c (STRCOLL): Likewise.
15289         * string/strxfrm_l.c (STRXFRM): Likewise.
15290
15291 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
15292
15293         * Makefile.in: Remove CVSOPT handling.
15294         * configure.in: Remove use of AC_REVISION.
15295         * iconvdata/Makefile (distribute): No need to filter out CVS.
15296         * scripts/list-sources.sh: Remove CVS, subversion and monotone
15297         handling.
15298
15299 2011-11-16  Andreas Schwab  <schwab@redhat.com>
15300
15301         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
15302         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
15303         [USE_AS_STRNCASECMP_L]: Likewise.
15304         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
15305         NO_TLS_DIRECT_SEG_REFS.
15306         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
15307         Fix argument offsets for non-PIC.
15308         [USE_AS_STRNCASECMP_L]: Likewise.
15309         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
15310         NO_TLS_DIRECT_SEG_REFS.
15311
15312 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15313
15314         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
15315         O_CLOEXEC.
15316         * locale/loadlocale.c (_nl_load_locale): Likewise.
15317
15318 2011-11-15  Andreas Schwab  <schwab@redhat.com>
15319
15320         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
15321         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
15322         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
15323         (SYSCALL_GETTIME): Set errno on error.
15324
15325         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
15326         count references to noai6ai_cached.
15327
15328 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15329
15330         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
15331
15332         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
15333         FD_CLOEXEC for /proc/self/maps.
15334
15335         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
15336         FD_CLOEXEC for /proc/meminfo.
15337
15338         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
15339         gai.conf.
15340
15341         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
15342         FD_CLOEXEC for given file.
15343
15344         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
15345
15346         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
15347         FD_CLOEXEC for /etc/hosts.
15348         (_gethtent): Likewise.
15349
15350         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
15351
15352         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
15353         cancellation and set FD_CLOEXEC for /etc/netgroup.
15354
15355         * nss/nss_files/files-key.c (search): Don't allow cancellation when
15356         reading /etc/publickey.
15357
15358         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
15359         allow cancellation when reading /etc/group.
15360
15361         * nss/nss_files/files-alias.c (internal_setent): Don't allow
15362         cancellation.
15363         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
15364
15365         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
15366         when using data file.
15367
15368         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
15369
15370         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
15371         (write_nis_obj): Use "c" and "e" in fopen.
15372
15373         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
15374
15375         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
15376
15377         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
15378
15379         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
15380
15381         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
15382         locale.alias.
15383
15384         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
15385
15386         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
15387
15388         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
15389
15390         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
15391         file parsing and set FD_CLOEXEC.
15392
15393 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15394
15395         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
15396
15397 2011-11-14  Andreas Schwab  <schwab@redhat.com>
15398
15399         * malloc/arena.c (arena_get2): Don't call reused_arena when
15400         _int_new_arena failed.
15401
15402 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15403
15404         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
15405         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
15406         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
15407         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15408         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15409         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
15410         to compile strcasecmp and strncasecmp.
15411         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
15412         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
15413
15414         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
15415
15416 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
15417
15418         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
15419         locale-defines.sym to gen-as-const-headers.
15420         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
15421         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
15422         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
15423         to compile strcasecmp and strncasecmp.
15424         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
15425         strcasecmp_l and strncasecmp_l.
15426         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
15427         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
15428         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
15429         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
15430         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
15431         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
15432         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
15433         * sysdeps/i386/i686/multiarch/strncase.S: New file.
15434         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
15435         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
15436         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
15437
15438 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
15439
15440         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
15441         result of SYSDEP_GETTIME_CPU to retval.
15442         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
15443         parameter list to macro.  Remove trailing semicolon.  Adjust users.
15444
15445         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
15446         variable.
15447
15448         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
15449         mantissa words.
15450         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15451
15452         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
15453         from unused variable.
15454
15455         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
15456         DWARF definitions.
15457         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
15458         for assembling.
15459
15460         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
15461         over namespaces.
15462
15463         * sunrpc/rpc_prot.c (rejected): Fix case value.
15464
15465         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
15466         unsigned long long int to avoid warnings in shift.
15467
15468         * posix/regex_internal.c (re_string_reconstruct): Actually use result
15469         of use of trans.
15470         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
15471         variable tmp.
15472
15473         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
15474         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
15475         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
15476
15477         * nis/nis_table.c (nis_list): Use variable of correct type for
15478         result of __follow_path call.
15479
15480 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15481
15482         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
15483         of math functions ceil, trunc, floor, round, and sqrt, when
15484         avaliable on the platform.
15485         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
15486         name clash.
15487         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15488         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15489         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15490
15491 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
15492
15493         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
15494         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
15495
15496 2011-11-11  Roland McGrath  <roland@hack.frob.com>
15497
15498         * include/unistd.h: Fix __readlink return type.
15499         Reported by Chris Metcalf <cmetcalf@tilera.com>.
15500
15501 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
15502
15503         * stdlib/ucontext.h: Undo last change for makecontext.
15504
15505 2011-11-11  Andreas Schwab  <schwab@redhat.com>
15506
15507         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
15508
15509         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
15510         * setjmp/setjmp.h: Mark functions as non-leaf.
15511         * setjmp/bits/setjmp2.h: Likewise.
15512         * stdlib/ucontext.h: Likewise.
15513
15514 2011-11-10  Andreas Schwab  <schwab@redhat.com>
15515
15516         * malloc/arena.c (_int_new_arena): Don't increment narenas.
15517         (reused_arena): Don't check arena limit.
15518         (arena_get2): Atomically check arena limit.
15519
15520 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
15521
15522         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
15523         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
15524
15525         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
15526         instructions.
15527
15528 2011-11-07  Andreas Schwab  <schwab@redhat.com>
15529
15530         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
15531         handler when locking.
15532
15533         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15534         Fix size of allocated buffer.
15535
15536 2011-11-04  Andreas Schwab  <schwab@redhat.com>
15537
15538         [BZ #10103]
15539         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
15540         declarations for long double functions.
15541         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
15542
15543         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
15544
15545 2011-11-03  Andreas Schwab  <schwab@redhat.com>
15546
15547         * nscd/nscd.c (main): Don't start AVC thread until credentials are
15548         installed.
15549
15550         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
15551         is disabled.
15552
15553 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15554
15555         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
15556
15557 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
15558
15559         * include/alloca.h (stackinfo_alloca_round): Define.
15560         (extend_alloca): Use it.
15561         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
15562         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
15563         here.
15564
15565         * scripts/check-local-headers.sh: Ignore libaudit.h.
15566
15567         * nscd/Makefile (extra-objs): Make recursively expanded.
15568
15569 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
15570
15571         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
15572         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
15573
15574         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
15575         * posix/tst-rfc3484-2.c: Likewise.
15576         * posix/tst-rfc3484-3.c: Likewise.
15577
15578         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
15579         process_vm_writev.
15580         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
15581         process_vm_writev.
15582         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
15583         process_vm_writev from libc using GLIBC_2.15 version.
15584
15585         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
15586
15587 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
15588
15589         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
15590         stack usage.
15591
15592 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
15593
15594         [BZ #13367]
15595         * nss/getent.c (initgroups_keys): Show error message in case no group
15596         names are given.
15597
15598         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
15599         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
15600         __bump_nl_timestamp.
15601         * nscd/connections (nscd_init): When host database is served open
15602         netlink socket and request notification about configuration changes.
15603         (main_loop_poll): Track netlink file descriptor and bump timestamp
15604         in case data becomes available.
15605         (main_loop_epoll): Likewise.
15606         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
15607         (database_pers_head): Add extra_data fileds.
15608         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
15609         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
15610         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
15611         Adjust caller.
15612         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
15613         in6ai data, call __free_in6ai.
15614         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
15615         Add -DHAVE_NETLINK.
15616         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
15617         interface information.  Reuse previous data if netlink timestamp
15618         is not changed.
15619         (__bump_nl_timestamp): New function.
15620         (__free_in6ai): New function.
15621
15622 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
15623
15624         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
15625         close_not_cancel_no_status here.
15626         (__check_pf): Reorganize code a bit to not call close twice if OOM.
15627
15628 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15629
15630         [BZ #13276]
15631         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
15632         return value.
15633
15634         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
15635         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
15636         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
15637
15638 2011-07-03  Andreas Jaeger  <aj@suse.de>
15639
15640         [BZ #10709]
15641         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
15642         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
15643         * math/libm-test.inc (sin_test): Add test case.
15644
15645 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15646
15647         [BZ #13337]
15648         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
15649         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15650
15651         * elf/chroot_canon.c (chroot_canon): Cleanups.
15652
15653         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
15654
15655         [BZ #13335]
15656         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
15657         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15658
15659         * string/test-strchr.c: Make usable for strchrnul testing.
15660         * string/test-strchrnul.c: New file.
15661         * string/Makefile (strop-tests): Add strchrnul.
15662
15663         * po/it.po: Update from translation team.
15664         * po/es.po: Likewise.
15665
15666 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
15667
15668         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
15669         the three constants needed as parameters.  Drop the others.
15670         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
15671         __m128i_strloadu_tolower.
15672         Create and initialize variable zero and use it in all the places
15673         where _mm_setzero_si128 was used.
15674
15675         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
15676         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15677         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15678         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15679         anymore.
15680         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15681         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15682         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15683         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15684         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15685         __mpranred, __mptan.
15686         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15687         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15688         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15689         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15690         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15691         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15692         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15693         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15694         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15695
15696 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15697
15698         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15699         redefine if SHARED.
15700         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15701
15702         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15703         wide char related routines to wcsmbs subdir.
15704
15705 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15706
15707         [BZ #13344]
15708         * misc/sys/cdefs.h (__THROWNL): Define.
15709         * posix/unistd.h: Use __THREADNL instead of __THREAD
15710         for memory synchronization functions.
15711
15712 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15713
15714         [BZ #13349]
15715         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15716         doesn't exist.
15717         * manual/stdio.texi (Obstack Streams): Node removed.
15718
15719 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15720
15721         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15722         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15723         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15724
15725         * math/math_private.h (math_force_eval): Allow non-addressable
15726         arguments.
15727         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15728
15729 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15730
15731         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15732         file is not needed.
15733
15734         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15735         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15736         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15737         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15738         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15739         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15740         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15741         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15742         Add AVX variants.
15743         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15744         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15745         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15746         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15747         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15748         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15749         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15750         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15751         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15752         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15753         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15754         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15755         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15756         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15757         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15758         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15759         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15760         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15761         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15762
15763         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15764         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15765
15766         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15767         place.  Use VEX encoding when compiling for AVX.
15768
15769 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15770
15771         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15772         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15773
15774         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15775
15776 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15777
15778         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15779         useless if() expression.
15780         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15781         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15782         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15783         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15784         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15785         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15786         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15787         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15788         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15789         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15790         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15791         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15792         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15793         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15794         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15795         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15796         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15797         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15798         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15799
15800         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15801
15802 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15803
15804         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15805         condition.
15806         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15807
15808 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15809
15810         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15811         .text section.  Avoid duplicate constants.
15812         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15813         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15814         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15815         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15816         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15817         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15818         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15819         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15820         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15821         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15822         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15823         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15824         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15825         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15826         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15827         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15828         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15829         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15830         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15831         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15832         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15833         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15834         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15835         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15836         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15837         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15838         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15839         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15840         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15841         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15842         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15843         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15844         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15845         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15846         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15847         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15848         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15849         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15850         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15851         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15852         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15853         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15854         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15855         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15856         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15857
15858 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15859
15860         * sysdeps/x86_64/dla.h: Move to ...
15861         * sysdeps/x86_64/fpu/dla.h: ...here.
15862         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15863         situations.  Use __builtin_fma only for gcc 4.6 and up.
15864
15865         * config.make.in: Add have-mfma4 entry.
15866         * configure.in: Substitute libc_cv_cc_fma4.
15867         * math/Makefile (dbl-only-routines): Add sincostab.
15868         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15869         Use __sincostab not sincos.
15870         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15871         name is a macro.
15872         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15873         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15874         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15875         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15876         using __copysign.
15877         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15878         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15879         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15880         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15881         and __inv.
15882         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15883         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15884         __copysign.
15885         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15886         define aliases when function name is a macro.
15887         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15888         sysdeps/ieee754/dbl-64/sincos.tbl.
15889         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15890         fma4-enabled routines.
15891         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15892         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15893         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15894         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15895         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15896         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15897         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15898         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15899         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15900         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15901         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15902         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15903         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15904         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15905         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15906         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15907         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15908         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15909         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15910         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15911         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15912         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15913         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15914         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15915         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15916         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15917         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15918         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15919         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15920         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15921
15922         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15923         rename.
15924         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15925         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15926         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15927         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15928         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15929         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15930         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15931         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15932
15933 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15934
15935         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15936
15937 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15938
15939         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15940
15941         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15942         prediction.
15943         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15944
15945         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15946         Remove unused variable magic_bits.
15947         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15948
15949         * string/strnlen.c: Define and use STRNLEN macro.
15950         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15951         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15952         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15953         * wcsmbs/wcslen.c: Define and use WCSLEN.
15954         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15955         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15956         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15957         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15958         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15959         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15960         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15961
15962 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15963
15964         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15965         strnlen-sse2-no-bsf.
15966         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15967         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15968         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15969         Add strnlen support.
15970         (USE_AS_STRNLEN): New macro.
15971         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15972         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15973         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15974         * sysdeps/x86_64/wcslen.S: New file.
15975
15976 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15977
15978         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15979         XMM-moves are used for copying on small sizes.
15980
15981 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15982
15983         * wcsmbs/Makefile (strop-tests): Add wcschr.
15984         * wcsmbs/test-wcschr.c: New file.
15985         * string/test-strchr.c: Update.
15986         Add wcschr support.
15987         (WIDE): New macro.
15988
15989 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15990
15991         * wcsmbs/Makefile (strop-tests): Add wcslen.
15992         * wcsmbs/test-wcslen.c: New file.
15993         * string/test-strlen.c: Update.
15994         Add wcslen support.
15995         (WIDE): New macro.
15996
15997 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15998
15999         * po/it.po: Update from translation team.
16000
16001 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16002
16003         * sysdeps/x86_64/wcscmp.S: Update.
16004         Fix wrong comparison semantics.
16005         wcscmp shall use signed comparison not unsigned.
16006         Don't use substraction to avoid overflow bug.
16007         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16008         * wcsmbc/wcscmp.c: Likewise.
16009         * string/test-strcmp.c: Likewise.
16010         Add new tests to check cases with negative values.
16011
16012 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16013
16014         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16015         * sysdeps/x86_64/dla.h: ...here.  New file.
16016         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16017         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16018         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16019         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16020         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16021         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16022         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16023         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16024         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16025
16026 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16027
16028         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16029         __ynl_finite aliases.
16030
16031 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16032
16033         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16034
16035         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16036         define DLA_FMA.
16037         [DLA_FMA] (EMULV): Use DLA_FMA.
16038         [DLA_FMA] (MUL12): Use EMULV.
16039         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16040         that are not needed.
16041         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16042         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16043         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16044         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16045         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16046         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16047         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16048
16049 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16050
16051         * math/s_nan.c: Undef __nan.
16052         * math/s_nanf.c: Undef __nanf.
16053         * math/s_nanl.c: Undef __nanl.
16054         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16055         "math_private.h".
16056
16057 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16058
16059         * math/s_catan.c: Add branch predictions.
16060         * math/s_catanf.c: Likewise.
16061         * math/s_catanh.c: Likewise.
16062         * math/s_catanhf.c: Likewise.
16063         * math/s_catanhl.c: Likewise.
16064         * math/s_catanl.c: Likewise.
16065         * math/s_cexp.c: Likewise.
16066         * math/s_cexpf.c: Likewise.
16067         * math/s_cexpl.c: Likewise.
16068         * math/s_clog.c: Likewise.
16069         * math/s_clog10.c: Likewise.
16070         * math/s_clog10f.c: Likewise.
16071         * math/s_clog10l.c: Likewise.
16072         * math/s_clogf.c: Likewise.
16073         * math/s_clogl.c: Likewise.
16074         * math/s_csqrt.c: Likewise.
16075         * math/s_csqrtf.c: Likewise.
16076         * math/s_csqrtl.c: Likewise.
16077         * math/s_ctanf.c: Likewise.
16078         * math/s_ctanh.c: Likewise.
16079         * math/s_ctanhf.c: Likewise.
16080         * math/s_ctanhl.c: Likewise.
16081         * math/s_ctanl.c: Likewise.
16082
16083         * math/math_private.h: Define __nan, __nanf, __nanl.
16084         * math/s_cacosh.c: Include <math_private.h>.
16085         * math/s_cacoshl.c: Likewise.
16086         * math/s_casinh.c: Likewise.
16087         * math/s_casinhf.c: Likewise.
16088         * math/s_casinhl.c: Likewise.
16089         * math/s_ccos.c: Rely entire on ccosh.
16090         * math/s_ccosf.c: Rely entire on ccoshf.
16091         * math/s_ccosl.c: Rely entirely on ccoshl.
16092         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16093         Remove tests for FE_INVALID.
16094         * math/s_ccoshf.c: Likewise.
16095         * math/s_ccoshl.c: Likewise.
16096         * math/s_csin.c: Likewise.
16097         * math/s_csinf.c: Likewise.
16098         * math/s_csinh.c Likewise.
16099         * math/s_csinhf.c: Likewise.
16100         * math/s_csinhl.c: Likewise.
16101         * math/s_csinl.c: Likewise.
16102         * math/s_ctan.c: Likewise.
16103         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16104         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16105         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16106
16107 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16108
16109         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16110         compilation problems.
16111
16112         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16113         __builtin_expect.
16114
16115 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16116
16117         * sysdeps/i386/configure.in: Test for -mfma4 option.
16118         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16119         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16120         COMMON_CPUID_INDEX_80000001.
16121         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16122         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16123         use it if FMA3 is not supported.
16124         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16125
16126         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16127         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16128
16129 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16130
16131         [BZ #12892]
16132         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16133         it would create a cycle with a link time dependency.
16134
16135 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16136
16137         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16138         instruction.
16139         * string/Makefile (strop-tests): Add rawmemchr.
16140         * string/test-rawmemchr.c: New file.
16141
16142         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16143         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16144         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16145         when compiling str{,n}casecmp and when AVX is available.  Hook up
16146         new optimized code in initializers.
16147
16148 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16149
16150         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16151         __feraiseexcept instead of feraiseexcept.
16152
16153 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16154
16155         * math/math_private.h: Define defaults for libc_fetestexcept and
16156         libc_feupdateenv.
16157         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16158         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16159         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16160         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16161         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16162         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16163         libc_fetestexcept and libc_feupdateenv.
16164
16165         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16166         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16167         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16168         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16169         libc_feholdexcept_setround.
16170
16171         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16172         Add s_nearbyint-c and s_nearbyintf-c.
16173         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16174         nearbyintf inlines.
16175         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16176         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16177         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16178         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16179
16180         * math/math_private.h: Define defaults for libc_fegetround,
16181         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16182         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16183         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16184         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16185         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16186         standard functions.
16187         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16188         Remove comments and hacks for old compiler versions.
16189         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16190         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16191         libc_feholdexceptl.
16192
16193 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16194
16195         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16196         (__feraiseexcept_renamed): Add __NTH.
16197         (feraiseexcept): Add __NTH.  Rename local variables to fix
16198         namespace violations.
16199
16200 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16201
16202         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16203
16204         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16205
16206         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16207         recently added interfaces.
16208         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16209
16210         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16211         about macro parameter expansion.
16212
16213         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16214         __NO_MATH_INLINES is defined.  Cleanups.
16215
16216         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16217         and __floorf is target has SSE4.1.
16218         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16219         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16220         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16221         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16222
16223         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16224         name.
16225         (floorf): Likewise.
16226
16227         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16228
16229 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16230
16231         * misc/sys/cdefs.h: Fix last change.
16232
16233         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16234         database lookup.
16235
16236 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16237
16238         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16239
16240         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16241         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16242         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16243         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16244         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16245         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16246         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16247         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16248         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16249         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16250         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16251         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16252         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16253         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16254         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16255         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16256         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16257         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16258         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16259         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16260         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16261         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16262
16263         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16264         ceil, ceilf, floor, floorf.
16265
16266         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16267         Perform IRELATIVE relocations last.
16268
16269         * elf/do-rel.h: Add another parameter nrelative, replacing the
16270         local variable with the same name.  Change name of the function
16271         to end in Rel or Rela (uppercase).
16272         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16273         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16274         elf_dynamic_do_##reloc function.
16275
16276 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16277
16278         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16279         is sufficient, at least on modern CPUs.
16280
16281         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16282
16283         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16284         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16285
16286         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16287         __expl_finite.
16288         * math/bits/math-finite.h: Add entries for exp.
16289         * math/e_expl.c: Add __*_finite alias.
16290         * sysdeps/i386/fpu/e_exp.S: Likewise.
16291         * sysdeps/i386/fpu/e_expf.S: Likewise.
16292         * sysdeps/i386/fpu/e_expl.c: Likewise.
16293         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16294         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16295         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16296         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16297         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
16298         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16299         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16300
16301         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
16302         is sufficient, at least on modern CPUs.
16303
16304         * ctype/ctype-info.c (__ctype_init): Define.
16305         * include/ctype.h (__ctype_init): Declare.
16306         (__ctype_b_loc): The variable is always initialized.
16307         (__ctype_toupper_loc): Likewise.
16308         (__ctype_tolower_loc): Likewise.
16309         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
16310         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
16311
16312 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
16313
16314         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
16315
16316         * configure.in: Also look in $cxxmachine/include for C++ system
16317         headers.
16318
16319 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16320
16321         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
16322         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
16323         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
16324         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
16325         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
16326         (USE_AS_WMEMCMP): New macro.
16327         Fixing indents.
16328         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
16329         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
16330         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
16331         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
16332         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16333         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
16334         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
16335         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
16336         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
16337         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
16338         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
16339         (USE_AS_WMEMCMP): New macro.
16340         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
16341         * sysdeps/string/test-memcmp.c: Update.
16342         Fix simple_wmemcmp.
16343         Add new tests.
16344         * wcsmbs/wmemcmp.c: Update.
16345         (WMEMCMP): New macro.
16346         Fix overflow bug.
16347
16348 2011-10-12  Andreas Jaeger  <aj@suse.de>
16349
16350         [BZ #13268]
16351         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
16352
16353 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16354
16355         * libio/iofwide.c (do_length): Avoid warning.
16356
16357         * ctype/ctype.h (__isctype_f): Add missing __THROW.
16358
16359 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
16360
16361         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
16362
16363         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
16364         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
16365         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
16366         * sysdeps/i386/i686/fpu/e_log.S: New file.
16367         * sysdeps/i386/i686/fpu/e_logf.S: New file.
16368         * sysdeps/i386/i686/fpu/e_logl.S: New file.
16369
16370         * ctype/ctype.h: Add support for inlined isXXX functions when
16371         compiling C++ code.
16372
16373 2011-10-14  Andreas Schwab  <schwab@redhat.com>
16374
16375         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16376
16377         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
16378
16379 2011-10-13  Roland McGrath  <roland@hack.frob.com>
16380
16381         [BZ #13291]
16382         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
16383
16384 2011-10-13  Andreas Schwab  <schwab@redhat.com>
16385
16386         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
16387         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
16388         feraiseexcept.
16389
16390         * sysdeps/x86_64/memrchr.S: Check for zero size.
16391
16392         * string/stratcliff.c: Add memrchr tests.
16393
16394 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16395
16396         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16397         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
16398         rawmemchr-sse2 rawmemchr-sse2-bsf.
16399         * sysdeps/i386/i686/multiarch/memchr.S: New file.
16400         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
16401         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
16402         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
16403         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
16404         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
16405         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
16406         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
16407         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
16408         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
16409         * string/memrchr.c (MEMRCHR): New macro.
16410
16411 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
16412
16413         Add integration with gcc's -ffinite-math-only and optimize wrapper
16414         functions in libm.
16415         * Versions.def: Define GLIBC_2.15 version for libm.
16416         * math/Makefile (headers): Add bits/math-finite.h.
16417         * math/bits/math-finite.h: New file.
16418         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
16419         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
16420         * math/e_acoshl.c: Add __*_finite alias.
16421         * math/e_acosl.c: Likewise.
16422         * math/e_asinl.c: Likewise.
16423         * math/e_atan2l.c: Likewise.
16424         * math/e_atanhl.c: Likewise.
16425         * math/e_coshl.c: Likewise.
16426         * math/e_exp10.c: Likewise.
16427         * math/e_exp10f.c: Likewise.
16428         * math/e_exp10l.c: Likewise.
16429         * math/e_exp2l.c: Likewise.
16430         * math/e_fmodl.c: Likewise.
16431         * math/e_gammal_r.c: Likewise.
16432         * math/e_hypotl.c: Likewise.
16433         * math/e_j0l.c: Likewise.
16434         * math/e_j1l.c: Likewise.
16435         * math/e_jnl.c: Likewise.
16436         * math/e_lgammal_r.c: Likewise.
16437         * math/e_log10l.c: Likewise.
16438         * math/e_log2l.c: Likewise.
16439         * math/e_logl.c: Likewise.
16440         * math/e_powl.c: Likewise.
16441         * math/e_sinhl.c: Likewise.
16442         * math/e_sqrtl.c: Likewise.
16443         * math/e_scalb.c: Completely rewritten and optimized.
16444         * math/e_scalbf.c: Likewise.
16445         * math/e_scalbl.c: Likewise.
16446         * math/w_acos.c: Likewise.
16447         * math/w_acosf.c: Likewise.
16448         * math/w_acosl.c: Likewise.
16449         * math/w_acosh.c: Likewise.
16450         * math/w_acoshf.c: Likewise.
16451         * math/w_acoshl.c: Likewise.
16452         * math/w_asin.c: Likewise.
16453         * math/w_asinf.c: Likewise.
16454         * math/w_asinl.c: Likewise.
16455         * math/w_atan2.c: Likewise.
16456         * math/w_atan2f.c: Likewise.
16457         * math/w_atan2l.c: Likewise.
16458         * math/w_atanh.c: Likewise.
16459         * math/w_atanhf.c: Likewise.
16460         * math/w_atanhl.c: Likewise.
16461         * math/w_exp10.c: Likewise.
16462         * math/w_exp10f.c: Likewise.
16463         * math/w_exp10l.c: Likewise.
16464         * math/w_fmod.c: Likewise.
16465         * math/w_fmodf.c: Likewise.
16466         * math/w_fmodl.c: Likewise.
16467         * math/w_j0.c: Likewise.
16468         * math/w_j0f.c: Likewise.
16469         * math/w_j0l.c: Likewise.
16470         * math/w_j1.c: Likewise.
16471         * math/w_j1f.c: Likewise.
16472         * math/w_j1l.c: Likewise.
16473         * math/w_jn.c: Likewise.
16474         * math/w_jnf.c: Likewise.
16475         * math/w_log.c: Likewise.
16476         * math/w_logf.c: Likewise.
16477         * math/w_logl.c: Likewise.
16478         * math/w_log10.c: Likewise.
16479         * math/w_log10f.c: Likewise.
16480         * math/w_log10l.c: Likewise.
16481         * math/w_log2.c: Likewise.
16482         * math/w_log2f.c: Likewise.
16483         * math/w_log2l.c: Likewise.
16484         * math/w_pow.c: Likewise.
16485         * math/w_powf.c: Likewise.
16486         * math/w_powl.c: Likewise.
16487         * math/w_remainder.c: Likewise.
16488         * math/w_remainderf.c: Likewise.
16489         * math/w_remainderl.c: Likewise.
16490         * math/w_scalb.c: Likewise.
16491         * math/w_scalbf.c: Likewise.
16492         * math/w_scalbl.c: Likewise.
16493         * math/w_sqrt.c: Likewise.
16494         * math/w_sqrtf.c: Likewise.
16495         * math/w_sqrtl.c: Likewise.
16496         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
16497         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
16498         used.
16499         * math/math_private.h: Declare __kernel_standard_f.
16500         * math/w_cosh.c: Remove cruft and optimize a bit.
16501         * math/w_coshf.c: Likewise.
16502         * math/w_coshl.c: Likewise.
16503         * math/w_exp2.c: Likewise.
16504         * math/w_exp2f.c: Likewise.
16505         * math/w_exp2l.c: Likewise.
16506         * math/w_hypot.c: Likewise.
16507         * math/w_hypotf.c: Likewise.
16508         * math/w_hypotl.c: Likewise.
16509         * math/w_lgamma.c: Likewise.
16510         * math/w_lgamma_r.c: Likewise.
16511         * math/w_lgammaf.c: Likewise.
16512         * math/w_lgammaf_r.c: Likewise.
16513         * math/w_lgammal.c: Likewise.
16514         * math/w_lgammal_r.c: Likewise.
16515         * math/w_sinh.c: Likewise.
16516         * math/w_sinhf.c: Likewise.
16517         * math/w_sinhl.c: Likewise.
16518         * math/w_tgamma.c: Likewise.
16519         * math/w_tgammaf.c: Likewise.
16520         * math/w_tgammal.c: Likewise.
16521         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16522         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16523         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
16524         Minor optimizations.  Pretty printing.  Remove cruft.
16525         * sysdeps/i386/fpu/e_acosf.S: Likewise.
16526         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16527         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16528         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16529         * sysdeps/i386/fpu/e_acosl.c: Likewise.
16530         * sysdeps/i386/fpu/e_asin.S: Likewise.
16531         * sysdeps/i386/fpu/e_asinf.S: Likewise.
16532         * sysdeps/i386/fpu/e_atan2.S: Likewise.
16533         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
16534         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
16535         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16536         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16537         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16538         * sysdeps/i386/fpu/e_exp10.S: Likewise.
16539         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
16540         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
16541         * sysdeps/i386/fpu/e_exp2.S: Likewise.
16542         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
16543         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
16544         * sysdeps/i386/fpu/e_fmod.S: Likewise.
16545         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
16546         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
16547         * sysdeps/i386/fpu/e_hypot.S: Likewise.
16548         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
16549         * sysdeps/i386/fpu/e_log.S: Likewise.
16550         * sysdeps/i386/fpu/e_log10.S: Likewise.
16551         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16552         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16553         * sysdeps/i386/fpu/e_log2.S: Likewise.
16554         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16555         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16556         * sysdeps/i386/fpu/e_logf.S: Likewise.
16557         * sysdeps/i386/fpu/e_logl.S: Likewise.
16558         * sysdeps/i386/fpu/e_pow.S: Likewise.
16559         * sysdeps/i386/fpu/e_powf.S: Likewise.
16560         * sysdeps/i386/fpu/e_powl.S: Likewise.
16561         * sysdeps/i386/fpu/e_remainder.S: Likewise.
16562         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
16563         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
16564         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16565         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16566         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16567         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
16568         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
16569         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
16570         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
16571         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16572         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16573         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16574         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16575         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
16576         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16577         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16578         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16579         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16580         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16581         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16582         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16583         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
16584         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
16585         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16586         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16587         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16588         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16589         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16590         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16591         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16592         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16593         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16594         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16595         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16596         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16597         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16598         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16599         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16600         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16601         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16602         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16603         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16604         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16605         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16606         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16607         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16608         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16609         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16610         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16611         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16612         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16613         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16614         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16615         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16616         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16617         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16618         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16619         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16620         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16621         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16622         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16623         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16624         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16625         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16626         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16627         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16628         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16629         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16630         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16631         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16632         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16633         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16634         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16635         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16636         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16637         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16638         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
16639         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16640         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16641         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16642         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16643         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16644         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16645         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16646         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
16647         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16648         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16649         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16650         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16651         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16652         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
16653         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16654         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16655         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16656         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16657         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16658         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16659         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16660         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16661         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16662         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16663         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
16664         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16665         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16666         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16667         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
16668         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
16669         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
16670         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
16671         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
16672         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
16673         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
16674         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16675         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16676         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16677         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16678         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16679         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16680         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16681         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16682         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16683         (__isnanf): Likewise.
16684         (__isinf_ns): Likewise.
16685         (__isinf_nsf): Likewise.
16686         (__finite): Likewise.
16687         (__finitef): Likewise.
16688         (__ieee754_sqrt): Define as macro.
16689         (__ieee754_sqrtf): Define as macro.
16690         (__ieee754_sqrtl): Define as macro.
16691         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16692         inlined copy.
16693         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16694         __FINITE_MATH_ONLY__ consistent.
16695         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16696
16697 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16698
16699         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16700         of rawmemchr.
16701
16702         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16703
16704 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16705
16706         * po/ja.po: Update from translation team.
16707
16708 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16709
16710         * locale/programs/locarchive.c (prepare_address_space): New function.
16711         (create_archive, enlarge_archive, open_archive): Use it.
16712
16713         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16714         inside [SHARED], where it is used.
16715
16716         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16717
16718         * nss/getent.c (netgroup_keys): Remove unused variable.
16719         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16720
16721 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16722
16723         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16724         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16725         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16726         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16727         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16728         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16729         * math/Makefile (libm-calls): Add s_isinf_ns.
16730         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16731         * math/multc3.c: Likewise.
16732         * math/s_casin.c: Likewise.
16733         * math/s_casinf.c: Likewise.
16734         * math/s_casinl.c: Likewise.
16735         * math/s_ccos.c: Likewise.
16736         * math/s_ccosf.c: Likewise.
16737         * math/s_ccosl.c: Likewise.
16738         * math/s_ctan.c: Likewise.
16739         * math/s_ctanf.c: Likewise.
16740         * math/s_ctanh.c: Likewise.
16741         * math/s_ctanhf.c: Likewise.
16742         * math/s_ctanhl.c: Likewise.
16743         * math/s_ctanl.c: Likewise.
16744         * math/w_fmod.c: Likewise.
16745         * math/w_fmodf.c: Likewise.
16746         * math/w_fmodl.c: Likewise.
16747         * math/w_remainder.c: Likewise.
16748         * math/w_remainderf.c: Likewise.
16749         * math/w_remainderl.c: Likewise.
16750         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16751         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16752         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16753         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16754         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16755         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16756         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16757         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16758
16759         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16760         of the number.
16761         * stdio-common/printf_fphex.c: Likewise.
16762         * stdio-common/printf_size.c: Likewise.
16763
16764         * math/e_exp10.c: Include math_private.h using <...> not "...".
16765         * math/e_exp10f.c: Likewise.
16766         * math/e_exp10l.c: Likewise.
16767         * math/e_exp2l.c: Likewise.
16768         * math/e_j0l.c: Likewise.
16769         * math/e_j1l.c: Likewise.
16770         * math/e_jnl.c: Likewise.
16771         * math/e_lgammal_r.c: Likewise.
16772         * math/e_rem_pio2l.c: Likewise.
16773         * math/e_scalb.c: Likewise.
16774         * math/e_scalbf.c: Likewise.
16775         * math/e_scalbl.c: Likewise.
16776         * math/k_cosl.c: Likewise.
16777         * math/k_sinl.c: Likewise.
16778         * math/k_tanl.c: Likewise.
16779         * math/s_cacoshf.c: Likewise.
16780         * math/s_catan.c: Likewise.
16781         * math/s_catanf.c: Likewise.
16782         * math/s_catanh.c: Likewise.
16783         * math/s_catanhf.c: Likewise.
16784         * math/s_catanhl.c: Likewise.
16785         * math/s_catanl.c: Likewise.
16786         * math/s_ccosh.c: Likewise.
16787         * math/s_ccoshf.c: Likewise.
16788         * math/s_ccoshl.c: Likewise.
16789         * math/s_cexp.c: Likewise.
16790         * math/s_cexpf.c: Likewise.
16791         * math/s_cexpl.c: Likewise.
16792         * math/s_clog.c: Likewise.
16793         * math/s_clog10.c: Likewise.
16794         * math/s_clog10f.c: Likewise.
16795         * math/s_clog10l.c: Likewise.
16796         * math/s_clogf.c: Likewise.
16797         * math/s_clogl.c: Likewise.
16798         * math/s_csin.c: Likewise.
16799         * math/s_csinf.c: Likewise.
16800         * math/s_csinh.c: Likewise.
16801         * math/s_csinhf.c: Likewise.
16802         * math/s_csinhl.c: Likewise.
16803         * math/s_csinl.c: Likewise.
16804         * math/s_csqrt.c: Likewise.
16805         * math/s_csqrtf.c: Likewise.
16806         * math/s_csqrtl.c: Likewise.
16807         * math/s_ctan.c: Likewise.
16808         * math/s_ctanf.c: Likewise.
16809         * math/s_ctanh.c: Likewise.
16810         * math/s_ctanhf.c: Likewise.
16811         * math/s_ctanhl.c: Likewise.
16812         * math/s_ctanl.c: Likewise.
16813         * math/s_ldexp.c: Likewise.
16814         * math/s_ldexpf.c: Likewise.
16815         * math/s_ldexpl.c: Likewise.
16816         * math/s_significand.c: Likewise.
16817         * math/s_significandf.c: Likewise.
16818         * math/s_significandl.c: Likewise.
16819         * math/w_acos.c: Likewise.
16820         * math/w_acosf.c: Likewise.
16821         * math/w_acosh.c: Likewise.
16822         * math/w_acoshf.c: Likewise.
16823         * math/w_acoshl.c: Likewise.
16824         * math/w_acosl.c: Likewise.
16825         * math/w_asin.c: Likewise.
16826         * math/w_asinf.c: Likewise.
16827         * math/w_asinl.c: Likewise.
16828         * math/w_atan2.c: Likewise.
16829         * math/w_atan2f.c: Likewise.
16830         * math/w_atan2l.c: Likewise.
16831         * math/w_atanh.c: Likewise.
16832         * math/w_atanhf.c: Likewise.
16833         * math/w_atanhl.c: Likewise.
16834         * math/w_cosh.c: Likewise.
16835         * math/w_coshf.c: Likewise.
16836         * math/w_coshl.c: Likewise.
16837         * math/w_dremf.c: Likewise.
16838         * math/w_exp10.c: Likewise.
16839         * math/w_exp10f.c: Likewise.
16840         * math/w_exp10l.c: Likewise.
16841         * math/w_exp2.c: Likewise.
16842         * math/w_exp2f.c: Likewise.
16843         * math/w_fmod.c: Likewise.
16844         * math/w_fmodf.c: Likewise.
16845         * math/w_fmodl.c: Likewise.
16846         * math/w_hypot.c: Likewise.
16847         * math/w_hypotf.c: Likewise.
16848         * math/w_hypotl.c: Likewise.
16849         * math/w_j0.c: Likewise.
16850         * math/w_j0f.c: Likewise.
16851         * math/w_j0l.c: Likewise.
16852         * math/w_j1.c: Likewise.
16853         * math/w_j1f.c: Likewise.
16854         * math/w_j1l.c: Likewise.
16855         * math/w_jn.c: Likewise.
16856         * math/w_jnf.c: Likewise.
16857         * math/w_jnl.c: Likewise.
16858         * math/w_lgamma.c: Likewise.
16859         * math/w_lgamma_r.c: Likewise.
16860         * math/w_lgammaf.c: Likewise.
16861         * math/w_lgammaf_r.c: Likewise.
16862         * math/w_lgammal.c: Likewise.
16863         * math/w_lgammal_r.c: Likewise.
16864         * math/w_log.c: Likewise.
16865         * math/w_log10.c: Likewise.
16866         * math/w_log10f.c: Likewise.
16867         * math/w_log10l.c: Likewise.
16868         * math/w_log2.c: Likewise.
16869         * math/w_log2f.c: Likewise.
16870         * math/w_log2l.c: Likewise.
16871         * math/w_logf.c: Likewise.
16872         * math/w_logl.c: Likewise.
16873         * math/w_pow.c: Likewise.
16874         * math/w_powf.c: Likewise.
16875         * math/w_powl.c: Likewise.
16876         * math/w_remainder.c: Likewise.
16877         * math/w_remainderf.c: Likewise.
16878         * math/w_remainderl.c: Likewise.
16879         * math/w_scalb.c: Likewise.
16880         * math/w_scalbf.c: Likewise.
16881         * math/w_scalbl.c: Likewise.
16882         * math/w_sinh.c: Likewise.
16883         * math/w_sinhf.c: Likewise.
16884         * math/w_sinhl.c: Likewise.
16885         * math/w_sqrt.c: Likewise.
16886         * math/w_sqrtf.c: Likewise.
16887         * math/w_sqrtl.c: Likewise.
16888         * math/w_tgamma.c: Likewise.
16889         * math/w_tgammaf.c: Likewise.
16890         * math/w_tgammal.c: Likewise.
16891
16892         * po/ja.po: Update from translation team.
16893
16894 2011-09-29  Andreas Jaeger  <aj@suse.de>
16895
16896         [BZ #13179]
16897         * sunrpc/netname.c (netname2host): Fix logic.
16898
16899         [BZ #6779]
16900         [BZ #6783]
16901         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16902         correctly.
16903         * math/w_remainder.c (__remainder): Likewise.
16904         * math/w_remainderf.c (__remainderf): Likewise.
16905         * math/libm-test.inc (remainder_test): Add test cases.
16906
16907 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16908
16909         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16910         sdiv_qrnnd.
16911
16912 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16913
16914         * string/test-memcmp.c: Avoid unncessary #defines.
16915         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16916
16917 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16918
16919         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16920         Use new sse2 version for core i3 - i7 as it's faster
16921         than sse42 version.
16922         (bit_Prefer_PMINUB_for_stringop): New.
16923         * sysdeps/x86_64/rawmemchr.S: Update.
16924         Replace with faster SSE2 version.
16925         * sysdeps/x86_64/memrchr.S: New file.
16926         * sysdeps/x86_64/memchr.S: Update.
16927         Replace with faster SSE2 version.
16928
16929 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16930
16931         * elf/dl-load.c (lose): Add cast to avoid warning.
16932
16933 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16934
16935         * po/ca.po: Update from translation team.
16936
16937         * inet/getnetgrent_r.c: Hook up nscd.
16938         * nscd/Makefile (routines): Add nscd_netgroup.
16939         (nscd-modules): Add netgroupcache.
16940         (CFLAGS-netgroupcache.c): Define.
16941         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16942         (cache_search): Add const to second parameter.
16943         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16944         INNETGR.
16945         (dbs): Add netgrdb entry.
16946         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16947         (verify_persistent_db): Handle netgrdb.
16948         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16949         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16950         GETFDNETGR.
16951         (netgroup_response_header): Define.
16952         (innetgroup_response_header): Define.
16953         (datahead): Add netgroup_response_header and innetgroup_response_header
16954         elements.
16955         * nscd/nscd.conf: Add entries for netgroup cache.
16956         * nscd/nscd.h (dbtype): Add netgrdb.
16957         (_PATH_NSCD_NETGROUP_DB): Define.
16958         (netgroup_iov_disabled): Declare.
16959         (xmalloc, xcalloc, xrealloc): Move declarations here.
16960         (cache_search): Adjust prototype.
16961         Add netgroup-related prototypes.
16962         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16963         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16964         (__nscd_innetgr): Declare.
16965         * nscd/selinux.c (perms): Use access_vector_t as element type and
16966         add netgroup-related initializers.
16967         * nscd/netgroupcache.c: New file.
16968         * nscd/nscd_netgroup.c: New file.
16969         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16970         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16971         For four parameters use innetgr.
16972         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16973         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16974         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16975         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16976
16977         * nscd/connections.c (register_traced_file): Don't register file
16978         for disabled databases.
16979
16980 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16981
16982         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16983
16984         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16985         from tree and freeing node.
16986
16987 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16988
16989         * nss/nsswitch.c (__nss_database_lookup): Handle
16990         nss_parse_service_list out of memory case.
16991
16992 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16993
16994         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16995         out of memory case.
16996
16997 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16998
16999         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17000         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17001         pass it down.
17002         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17003         elf_machine_rela, elf_machine_lazy_rel.
17004         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17005         (ELF_DYNAMIC_DO_REL): Likewise.
17006         (ELF_DYNAMIC_DO_RELA): Likewise.
17007         (ELF_DYNAMIC_RELOCATE): Likewise.
17008         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17009         to ELF_DYNAMIC_DO_REL.
17010         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17011         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17012         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17013         elf_machine_rela.
17014         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17015         skip_ifunc, don't call ifunc function if non-zero.
17016         (elf_machine_rela): Likewise.
17017         (elf_machine_lazy_rel): Likewise.
17018         (elf_machine_lazy_rela): Likewise.
17019         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17020         (elf_machine_lazy_rel): Likewise.
17021         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17022         Likewise.
17023         (elf_machine_lazy_rel): Likewise.
17024         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17025         Likewise.
17026         (elf_machine_lazy_rel): Likewise.
17027         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17028         (elf_machine_lazy_rel): Likewise.
17029         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17030         (elf_machine_lazy_rel): Likewise.
17031         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17032         (elf_machine_lazy_rel): Likewise.
17033         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17034         (elf_machine_lazy_rel): Likewise.
17035         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17036         (elf_machine_lazy_rel): Likewise.
17037         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17038         (elf_machine_lazy_rel): Likewise.
17039
17040 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17041
17042         * nss/nss_files/files-init.c (_nss_files_init): Use static
17043         initialization for all the *_traced_file variables.
17044
17045 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17046
17047         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17048
17049 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17050
17051         [BZ #13226]
17052         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17053
17054 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17055
17056         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17057         Reread the line before reparsing it.
17058
17059 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17060
17061         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17062
17063 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17064             Maxim Kuvyrkov  <maxim@codesourcery.com>
17065             Joseph Myers  <joseph@codesourcery.com>
17066
17067         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17068         if needed for __stack_chk_guard.
17069
17070 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17071
17072         * sysdeps/posix/spawni.c (script_execute): Always define it.
17073         It will be optimized away if unused.
17074         (maybe_script_execute): New function.
17075         (__spawni): Call it.
17076
17077         * Makerules: Don't include tls.make.
17078         (config-tls): Always set to thread.
17079         * tls.make.c: File removed.
17080
17081 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17082
17083         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17084         * config.make.in (CPPFLAGS-config): New substituted variable.
17085
17086 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17087
17088         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17089
17090         [BZ #13192]
17091         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17092         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17093
17094 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17095
17096         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17097         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17098         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17099         (CALL_FAIL): Likewise.
17100         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17101         (CALL_FAIL): Macro removed.
17102         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17103
17104 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17105
17106         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17107         for __FINITE_MATH_ONLY__ == 1.
17108
17109 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17110
17111         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17112         __ieee754_sqrt instead of sqrt.
17113         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17114         __ieee754_sqrtf instead of sqrtf.
17115         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17116         __floorf instead of floorf.
17117         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17118         __floorf, __truncf instead of floorf, truncf.
17119
17120 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17121
17122         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17123
17124         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17125         __extern_always_inline.
17126         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17127         32-bit.
17128
17129 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17130
17131         * elf/rtld.c (dl_main): Also relocate in dependency order when
17132         doing symbol dependency testing.
17133
17134 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17135
17136         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17137         Always define `refsym'.
17138
17139 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17140
17141         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17142         (__FD_ELT): Renamed from __FDELT.
17143         * misc/bits/select2.h (__FD_ELT): Likewise.
17144         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17145         __FD_MASK instead of __FDELT, __FDMASK.
17146         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17147         Likewise.
17148         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17149         Likewise.
17150
17151         * elf/Makefile (gen-ldd): Fix pattern.
17152
17153         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17154         (init_tls): Likewise.
17155
17156 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17157
17158         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17159
17160 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17161
17162         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17163         `struct cmsghdr *' instead of `void *'.
17164         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17165         Likewise.
17166
17167 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17168
17169         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17170         if non-absolute.
17171         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17172         ldd_rewrite_script.
17173
17174 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17175
17176         * configure.in: Remove --with-tls option.
17177         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17178         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17179         out in case it is missing.
17180         * sysdeps/ia64/elf/configure.in: Likewise.
17181         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17182         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17183         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17184         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17185         * sysdeps/sh/elf/configure.in: Likewise.
17186         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17187         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17188         * sysdeps/x86_64/elf/configure.in: Likewise.
17189         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17190         * sysdeps/mach/hurd/tls.h: Likewise.
17191
17192         [BZ #13067]
17193         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17194
17195         [BZ #13090]
17196         * configure.in: Fix use of AC_INIT.
17197
17198         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17199
17200 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17201
17202         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17203         __set_errno.
17204         * malloc/hooks.c: Likewise.
17205
17206         [BZ #11929]
17207         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17208         variables statically.
17209         (narenas): Initialize.
17210         (list_lock): Initialize.
17211         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17212         initializtion of main_arena and list_lock.  Small cleanups.
17213         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17214         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17215         Add initializers to main_arena and mp_.
17216         (malloc_state): Remove pagesize member.  Change all users to use
17217         GLRO(dl_pagesize).
17218
17219         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17220         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17221         is always initialized.
17222
17223         * malloc/malloc.c: Removed unused configurations and dead code.
17224         * malloc/arena.c: Likewise.
17225         * malloc/hooks.c: Likewise.
17226         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17227
17228         * include/tls.h: Removed.  USE___THREAD must always be defined.
17229         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17230         * elf/dl-libc.c: Likewise.
17231         * elf/dl-tsd.c: Likewise.
17232         * include/errno.h: Likewise.
17233         * include/netdb.h: Likewise.
17234         * include/resolv.h: Likewise.
17235         * inet/herrno-loc.c: Likewise.
17236         * inet/herrno.c: Likewise.
17237         * malloc/arena.c: Likewise.
17238         * malloc/hooks.c: Likewise.
17239         * malloc/malloc.c: Likewise.
17240         * resolv/res-state.c: Likewise.
17241         * resolv/res_libc.c: Likewise.
17242         * sysdeps/i386/dl-machine.h: Likewise.
17243         * sysdeps/ia64/dl-machine.h: Likewise.
17244         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17245         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17246         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17247         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17248         * sysdeps/sh/dl-machine.h: Likewise.
17249         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17250         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17251         * sysdeps/unix/i386/sysdep.S: Likewise.
17252         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17253         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17254         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17255         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17256         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17257         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17258         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17259         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17260         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17261         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17262         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17263         * sysdeps/x86_64/dl-machine.h: Likewise.
17264         * tls.make.c: Likewise.
17265
17266         * configure.in: Remove --with-__thread option.  Make tests for
17267         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17268         tls_model attribute fail if no support is available.  Remove
17269         USE_IN_LIBIO.
17270         * Makeconfig: Adjust for dropped configure option.  All features are
17271         now mandatory.
17272         * Makerules: Likewise.
17273         * Versions.def: Likewise.
17274         * argp/argp-fmtstream.c: Likewise.
17275         * argp/argp-fmtstream.h: Likewise.
17276         * argp/argp-help.c: Likewise.
17277         * assert/assert.c: Likewise.
17278         * config.h.in: Likewise.
17279         * config.make.in: Likewise.
17280         * configure: Likewise.
17281         * configure.in: Likewise.
17282         * csu/Versions: Likewise.
17283         * csu/init.c: Likewise.
17284         * elf/tst-audit2.c: Likewise.
17285         * elf/tst-tls10.c: Likewise.
17286         * elf/tst-tls10.h: Likewise.
17287         * elf/tst-tls11.c: Likewise.
17288         * elf/tst-tls12.c: Likewise.
17289         * elf/tst-tls14.c: Likewise.
17290         * elf/tst-tlsmod11.c: Likewise.
17291         * elf/tst-tlsmod12.c: Likewise.
17292         * elf/tst-tlsmod13.c: Likewise.
17293         * elf/tst-tlsmod13a.c: Likewise.
17294         * elf/tst-tlsmod14a.c: Likewise.
17295         * elf/tst-tlsmod15b.c: Likewise.
17296         * elf/tst-tlsmod16a.c: Likewise.
17297         * elf/tst-tlsmod16b.c: Likewise.
17298         * elf/tst-tlsmod7.c: Likewise.
17299         * elf/tst-tlsmod8.c: Likewise.
17300         * elf/tst-tlsmod9.c: Likewise.
17301         * gmon/gmon.c: Likewise.
17302         * grp/fgetgrent_r.c: Likewise.
17303         * grp/putgrent.c: Likewise.
17304         * hurd/fopenport.c: Likewise.
17305         * include/libc-symbols.h: Likewise.
17306         * include/tls.h: Likewise.
17307         * intl/gettextP.h: Likewise.
17308         * intl/loadinfo.h: Likewise.
17309         * locale/global-locale.c: Likewise.
17310         * locale/localeinfo.h: Likewise.
17311         * mach/devstream.c: Likewise.
17312         * malloc/arena.c: Likewise.
17313         * malloc/set-freeres.c: Likewise.
17314         * misc/err.c: Likewise.
17315         * misc/getttyent.c: Likewise.
17316         * misc/mntent_r.c: Likewise.
17317         * posix/getopt.c: Likewise.
17318         * posix/wordexp.c: Likewise.
17319         * pwd/fgetpwent_r.c: Likewise.
17320         * resolv/Versions: Likewise.
17321         * resolv/res_hconf.c: Likewise.
17322         * shadow/fgetspent_r.c: Likewise.
17323         * shadow/putspent.c: Likewise.
17324         * stdio-common/printf_fphex.c: Likewise.
17325         * stdio-common/tmpfile.c: Likewise.
17326         * stdlib/abort.c: Likewise.
17327         * stdlib/fmtmsg.c: Likewise.
17328         * sunrpc/auth_unix.c: Likewise.
17329         * sunrpc/clnt_perr.c: Likewise.
17330         * sunrpc/clnt_tcp.c: Likewise.
17331         * sunrpc/clnt_udp.c: Likewise.
17332         * sunrpc/clnt_unix.c: Likewise.
17333         * sunrpc/openchild.c: Likewise.
17334         * sunrpc/svc_simple.c: Likewise.
17335         * sunrpc/svc_tcp.c: Likewise.
17336         * sunrpc/svc_udp.c: Likewise.
17337         * sunrpc/svc_unix.c: Likewise.
17338         * sunrpc/xdr.c: Likewise.
17339         * sunrpc/xdr_array.c: Likewise.
17340         * sunrpc/xdr_rec.c: Likewise.
17341         * sunrpc/xdr_ref.c: Likewise.
17342         * sunrpc/xdr_stdio.c: Likewise.
17343
17344 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17345
17346         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17347
17348 2011-07-03  Andreas Jaeger  <aj@suse.de>
17349
17350         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
17351         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
17352         regenerate with gen-libm-tests.pl.
17353
17354 2010-05-12  Petr Baudis  <pasky@suse.cz>
17355
17356         [BZ #11589]
17357         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
17358         around j0() zero points by switching to j1().
17359         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17360         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17361         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17362         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17363
17364 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17365
17366         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
17367         instead of 0.
17368         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
17369         instead of 0.                              .
17370         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17371         Patch in part by Pavel Roskin <proski@gnu.org>.
17372
17373         [BZ #13138]
17374         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
17375         realloc.
17376         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
17377         Free memory block if necessary.
17378
17379         [BZ #12847]
17380         * libio/genops.c (INTDEF): For string streams the _lock pointer can
17381         be NULL.  Don't lock in this case.
17382
17383 2011-09-09  Roland McGrath  <roland@hack.frob.com>
17384
17385         * elf/elf.h (ELFOSABI_GNU): New macro.
17386         (ELFOSABI_LINUX): Define to that.
17387
17388 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
17389
17390         * string/strncat.c (strncat): Undef the symbol in case it has been
17391         defined in bits/string.h.
17392
17393 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17394
17395         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
17396
17397         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
17398         link map.
17399
17400 2011-08-17  Andreas Jaeger  <aj@suse.de>
17401
17402         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
17403
17404 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
17405             Ian Lance Taylor  <iant@google.com>
17406
17407         * math/libm-test.inc (lround_test): New testcase.
17408         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
17409
17410 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
17411
17412         * Makefile: Remove support for automatic cvs check-ins.
17413         * Makerules: Likewise.
17414         * config.make.in: Likewise.
17415         * configure.in: Likewise.
17416         * intl/Makefile: Likewise.
17417         * locale/Makefile: Likewise.
17418         * po/Makefile: Likewise.
17419         * posix/Makefile: Likewise.
17420         * sysdeps/gnu/Makefile: Likewise.
17421         * sysdeps/mach/hurd/Makefile: Likewise.
17422         * sysdeps/sparc/sparc32/Makefile: Likewise.
17423
17424         [BZ #13118]
17425         * posix/Makefile (bug-regex32-ENV): Define.
17426         Patch by John Stanley <jpsinthemix@verizon.net>.
17427
17428         * misc/Makefile (headers): Add bits/select2.h.
17429         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
17430         * misc/bits/select2.h: New file.
17431         * include/bits/select2.h: New file.
17432         * debug/Makefile (routines): Add fdelt_chk.
17433         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
17434         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
17435         FD_ISSET.
17436         * debug/fdelt_chk.c: New file.
17437
17438         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
17439         * wcsmbs/test-wmemcmp.c: Likewise.
17440         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
17441         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
17442
17443 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17444
17445         * string/Makefile (strop-tests): Add memcmp.
17446         * string/test-wmemcmp.c: New file.
17447         * string/test-memcmp.c: Add wmemcmp support.
17448
17449 2011-09-08  Roland McGrath  <roland@hack.frob.com>
17450
17451         [BZ #13153]
17452         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
17453         2011-07-19 change.
17454
17455         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
17456         garbage value in a __mach_port_mod_refs call in the cases of the
17457         task-self and thread-self ports.
17458
17459 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17460
17461         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
17462
17463 2011-09-08  Andreas Schwab  <schwab@redhat.com>
17464
17465         * elf/dl-load.c (lose): Check for non-null L.
17466
17467 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17468
17469         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
17470
17471         * elf/dl-libc.c (dlerror_run): Pass back error code from
17472         dl_catch_error.
17473
17474         [BZ #13123]
17475         * elf/dl-load.c (lose): Free l_origin if it is valid.
17476
17477         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
17478         names.
17479         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
17480         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17481         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17482         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17483         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
17484         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
17485
17486 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17487
17488         * sysdeps/powerpc/fpu/e_hypot.c: New file.
17489         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
17490         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
17491         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
17492         * sysdeps/powerpc/fpu/k_cosf.c: New file.
17493         * sysdeps/powerpc/fpu/k_sinf.c: New file.
17494         * sysdeps/powerpc/fpu/s_cosf.c: New file.
17495         * sysdeps/powerpc/fpu/s_sinf.c: New file.
17496         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
17497         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
17498
17499 2011-08-15  Alan Modra  <amodra@gmail.com>
17500
17501         [BZ #13092]
17502         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
17503         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
17504         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
17505         ppc_mcount to static-only-routines.
17506         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
17507         __mcount_internal.
17508         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
17509         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
17510
17511 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
17512
17513         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
17514         for finite and infinity parameters.
17515
17516 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
17517
17518         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
17519         and add nop instructions for throughput optimization.
17520         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17521
17522 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
17523
17524         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
17525         aligned copy for power7 with vector-scalar instructions.
17526         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
17527
17528 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
17529
17530         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
17531         AVX check.
17532
17533 2011-09-07  Andreas Schwab  <schwab@redhat.com>
17534
17535         [BZ #13144]
17536         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
17537         last change.
17538
17539 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17540
17541         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17542         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
17543         syscall wrapper around clock_gettime in __vdso_clock_gettime.
17544         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
17545         clock_gettime.
17546
17547 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17548
17549         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
17550         Forgot to demangle the pointer.
17551
17552         * sysdeps/i386/sysdep.h: Define atom_text_section.
17553         * sysdeps/x86_64/sysdep.h: Likewise.
17554         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
17555         section with atom_text_section.
17556         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17557         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17558         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
17559         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17560         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
17561
17562         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
17563         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
17564         already be defined.  Change to take two parameters and don't assign
17565         result to variable.  Adjust all users.
17566         Define INTERNAL_GETTIME if not already defined.
17567         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
17568         call.
17569         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
17570         HAVE_CLOCK_GETTIME_VSYSCALL.
17571         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
17572
17573         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
17574         gettimeofday vsyscall, just use time.
17575
17576 2011-09-06  Andreas Schwab  <schwab@redhat.com>
17577
17578         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
17579         <errno.h>.
17580
17581 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17582
17583         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
17584         syscall on x86-64.
17585         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
17586         syscall.
17587         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17588         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
17589         syscall if possible.
17590
17591 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17592
17593         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
17594         e_ident.  Don't pass to find_mapsXX.
17595         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
17596
17597 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17598
17599         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17600         strchr-sse2-no-bsf strrchr-sse2-no-bsf
17601         * sysdeps/x86_64/multiarch/strchr.S: Update.
17602         Check bit_slow_BSF bit.
17603         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17604         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
17605         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
17606
17607 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17608
17609         [BZ #13134]
17610         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
17611         before glibc 2.15.
17612         (tryshell): Define.
17613         (__spawni): Change last parameter to be flag.  Test
17614         SPAWN_XFLAGS_USE_PATH flag to use path or not.
17615         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
17616         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
17617         * posix/spawni.c: Likewise.
17618         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
17619         * posix/spawnp.c: Likewise.  Change normal version to use
17620         SPAWN_XFLAGS_USE_PATH.
17621         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
17622         SPAWN_XFLAGS_TRY_SHELL.
17623
17624         [BZ #13150]
17625         * posix/glob.h: Remove gcc 1.x support.
17626
17627         [BZ #13068]
17628         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
17629
17630 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17631
17632         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17633         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
17634         strrchr-sse2-bsf
17635         * sysdeps/i386/i686/multiarch/strchr.S: New file.
17636         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
17637         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
17638         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
17639         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
17640         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
17641
17642 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17643
17644         * sysdeps/x86_64/wcscmp.S: New file.
17645
17646         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
17647         wcscmp-c wcscmp-sse2
17648         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
17649         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
17650         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
17651         * wcsmbs/wcscmp.c: Allow renaming.
17652
17653 2011-09-05  David S. Miller  <davem@davemloft.net>
17654
17655         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
17656         stack slot, rather than the struct return pointer slot.
17657         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
17658         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
17659         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
17660         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
17661
17662 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17663
17664         * po/ja.po: Update from translation team.
17665
17666         [BZ #13144]
17667         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
17668         kernel in 64-bit binaries.
17669
17670 2011-09-01  David S. Miller  <davem@davemloft.net>
17671
17672         * elf/elf.h (HWCAP_SPARC_*): Move to..
17673         * sysdeps/sparc/sysdep.h: this new file and add new values.
17674         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
17675         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
17676         _DL_HWCAP_COUNT to 24.
17677         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17678         entries.
17679         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17680         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17681         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17682         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17683         instead of magic constants.
17684         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17685
17686 2011-08-31  David S. Miller  <davem@davemloft.net>
17687
17688         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17689         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17690         Reimplement to do errno handling inline.
17691         (SYSCALL_ERROR_HANDLER): New macro.
17692         (__SYSCALL_STRING): Do not do errno handling in asm.
17693         (__CLONE_SYSCALL_STRING): Delete.
17694         (__INTERNAL_SYSCALL_STRING): Delete.
17695         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17696         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17697         (PSEUDO): Reimplement to do errno handling inline.
17698         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17699         (SYSCALL_ERROR_HANDLER): New macro.
17700         (__SYSCALL_STRING): Do not do errno handling in asm.
17701         (__CLONE_SYSCALL_STRING): Delete.
17702         (__INTERNAL_SYSCALL_STRING): Delete.
17703         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17704         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17705         i386.
17706         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17707         (inline_syscall*): Add 'err' argument.
17708         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17709         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17710         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17711         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17712
17713         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17714         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17715
17716 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17717
17718         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17719
17720 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17721
17722         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17723         directive.
17724
17725 2011-08-24  David S. Miller  <davem@davemloft.net>
17726
17727         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17728
17729 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17730
17731         * elf/Makefile: Add rules to build and run unload8 test.
17732         * elf/unload8.c: New file.
17733         * elf/unload8mod1.c: New file.
17734         * elf/unload8mod1x.c: New file.
17735         * elf/unload8mod2.c: New file.
17736         * elf/unload8mod3.c: New file.
17737
17738         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17739         it wasn't used.
17740
17741 2011-08-23  David S. Miller  <davem@davemloft.net>
17742
17743         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17744         subtract stack bias.
17745         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17746         %sp not %fp in calculations.
17747         (_JMPBUF_UNWINDS_ADJ): Likewise.
17748
17749         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17750         (aio_suspend): Call it to force an exception region around the
17751         AIO_MISC_WAIT() invocation.
17752
17753 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17754
17755         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17756         backslash.
17757
17758 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17759
17760         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17761         protection macro.
17762         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17763         and <dl-machine.h>.
17764         (Elf64_FuncDesc): Remove.
17765
17766 2011-08-22  David S. Miller  <davem@davemloft.net>
17767
17768         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17769         sigaltstack check, add missing cfi directives.
17770         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17771         missing cfi directives, and sigaltstack handling.
17772
17773 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17774
17775         [BZ #11724]
17776         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17777         object is seen twice.
17778         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17779
17780         * elf/Makefile (distribute): Add tst-initorder2.c.
17781         (tests): Add tst-initorder2.
17782         (modules-names): Add tst-initorder2a tst-initorder2b
17783         tst-initorder2c tst-initorder2d.  Add rules to build them.
17784         ($(objpfx)tst-initorder2.out): New rule.
17785         * elf/tst-initorder2.c: New file.
17786         * elf/tst-initorder2.exp: New file.
17787
17788 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17789
17790         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17791
17792         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17793         dependencies back to end of function.
17794
17795         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17796         $(elfobjdir)/ld.so.
17797
17798 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17799
17800         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17801         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17802         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17803         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17804         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17805         of __vdso_gettimeofday.
17806         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17807         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17808         attribute_hidden.
17809         (_libc_vdso_platform_setup): Remove initialization of
17810         __vdso_gettimeofday and __vdso_time.
17811
17812 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17813
17814         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17815         and fgetc_unlocked.
17816         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17817         getc_unlocked.
17818
17819         * elf/dl-open.c (add_to_global): Report additions to the global scope
17820         for LD_DEBUG=scopes.
17821         (dl_open_worker): Also print scope of newly loaded dependencies.
17822         (_dl_show_scope): Indicate if there is no scope.
17823
17824         [BZ #13114]
17825         * stdio-common/Makefile (tests): Add bug24.
17826         * stdio-common/bug24.c: New file.
17827
17828 2011-08-19  Andreas Jaeger  <aj@suse.de>
17829
17830         [BZ #13114]
17831         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17832         non-existant file when using close-on-exec mode.
17833
17834 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17835
17836         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17837         the very first instruction.
17838
17839         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17840         the CFI state in the end.
17841         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17842         inclusion of dl-trampoline.h.
17843         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17844
17845 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17846
17847         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17848         expectations for long double.
17849
17850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17851         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17852
17853 2011-08-14  David S. Miller  <davem@davemloft.net>
17854
17855         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17856         artificual limit depends upon the system page size.
17857
17858 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17859
17860         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17861         * resolv/Makefile: Define CFLAGS-libresolv.
17862
17863 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17864
17865         * nss/makedb.c (compute_tables): Make variables used in nested
17866         function static.
17867
17868 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17869
17870         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17871         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17872         if buffer was too small.
17873
17874         * elf/pldd.c (main): Attach to all threads in the process.
17875         Rewrite /proc handling to use *at functions.
17876
17877 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17878
17879         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17880         specifies first scope to show.
17881         (dl_open_worker): Update callers.  Move printing scope of new
17882         object to before the relocation.
17883         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17884         * sysdeps/generic/ldsodefs.h: Update declaration.
17885
17886         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17887         string for the scope number.
17888
17889 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17890
17891         * nscd/servicescache.c (cache_addserv): Make sure written is always
17892         initialized.
17893
17894 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17895
17896         * sysdeps/i386/i486/bits/atomic.h
17897         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17898         statement expression, so as to suppress "set but not used" warning.
17899         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17900
17901         * string/strncat.c (STRNCAT): Use prototype definition.
17902
17903         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17904         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17905         -Iprograms here.
17906         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17907         (localedef-modules): Add localedef.
17908         (locale-modules): Add locale.
17909
17910         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17911         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17912         to avoid a warning.
17913
17914 2011-08-14  David S. Miller  <davem@davemloft.net>
17915
17916         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17917         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17918
17919 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17920
17921         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17922         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17923         * elf/rtld.c (dl_main): Set l_name of vDSO.
17924         Call _dl_show_scope when DL_DEBUG_SCOPES.
17925         (process_dl_debug): Recognize scopes flag and also set it for all.
17926         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17927         Declare _dl_show_scope.
17928
17929         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17930         (do_dlopen): Pass caller_dlopen to dl_open.
17931         (__libc_dlopen_mode): Initialize caller_dlopen.
17932
17933         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17934         of libc.  Make tolower call locale-independent.  Optimize a bit by
17935         using isdigit instead of isalnum.
17936         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17937
17938 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17939
17940         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17941         was a dependency or dynamically loaded.
17942
17943 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17944
17945         * intl/l10nflist.c: Allow architecture-specific pop function.
17946         * sysdeps/x86_64/l10nflist.c: New file.
17947
17948         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17949         classification.
17950
17951 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17952
17953         * include/dirent.h: Add libc_hidden_proto for scandirat and
17954         scandirat64.  Don't declare __scandirat64.
17955         * dirent/scandirat.c: Add libc_hidden_def.
17956         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17957         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17958
17959 2011-08-10  David S. Miller  <davem@davemloft.net>
17960
17961         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17962         enum.
17963         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17964         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17965         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17966
17967 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17968
17969         * Versions.def [libc]: Add GLIBC_2.15.
17970         * dirent/Makefile (routines): Add scandirat and scandirat64.
17971         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17972         GLIBC_2.15.
17973         * dirent/dirent.h: Declare scandirat and scandirat64.
17974         * dirent/scandirat.c: New file.
17975         * dirent/scandirat64.c: New file.
17976         * sysdeps/wordsize-64/scandirat.c: New file.
17977         * sysdeps/wordsize-64/scandirat64.c: New file.
17978         * dirent/opendir.c: Define opendirat.
17979         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17980         using scandirat.
17981         * dirent/scandir64.c: Adjust for scandir.c change.
17982         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17983         __scandirat64, and __scandir_cancel_handler.
17984         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17985         additional parameter and use openat instead of open (outside of ld.so).
17986         Add new __opendir as wrapper around __opendirat.
17987         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17988         here without requiring old scandirat implementation.
17989
17990 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17991
17992         * dirent/scandir.c (cancel_handler): Renamed to
17993         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17994         defined.  Adjust users.
17995         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17996         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17997
17998 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17999
18000         * string/test-string.h (IMPL): Use __STRING to expand name and then
18001         stringify it.
18002
18003         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18004         of cleanups.
18005
18006 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18007
18008         * string/Makefile: Update.
18009         (strop-tests): Append strncat.
18010         * string/test-wcscmp.c: New file.
18011         New comprehensive test for wcscmp.
18012         * string/test-strcmp.c: Update.
18013         (WIDE): New define.
18014
18015 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18016
18017         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18018         line.
18019
18020 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18021
18022         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18023         encoding to ACE if AI_IDN.
18024
18025 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18026
18027         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18028         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18029
18030 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18031
18032         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18033         Fix overflow bug in strncat.
18034         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18035
18036         * string/test-strncat.c: Update.
18037         Add new tests for checking overflow bugs.
18038
18039 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18040
18041         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18042         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18043         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18044         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18045         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18046         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18047         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18048         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18049         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18050
18051         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18052         (USE_AS_STRCAT): Define.
18053         Add strcat and strncat support.
18054         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18055
18056 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18057
18058         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18059         __n bigger than INT_MAX+1.
18060         (__strncmp_g): Likewise.
18061
18062 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18063
18064         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18065         * libio/stido.h: Likewise.
18066
18067         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18068         (AF_NFC): Define.
18069         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18070         (AF_NFC): Define.
18071
18072         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18073         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18074         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18075         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18076         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18077
18078         [BZ #13021]
18079         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18080         installed.
18081
18082         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18083         typo.
18084         (_dl_x86_64_save_sse): Likewise.
18085
18086 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18087
18088         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18089         OSXSAVE.
18090         (_dl_x86_64_save_sse): Likewise.
18091
18092         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18093
18094         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18095
18096 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18097
18098         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18099         change.
18100         (_dl_x86_64_save_sse): Use correct AVX check.
18101
18102 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18103
18104         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18105         bug in strncpy/strncat.
18106         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18107
18108 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18109
18110         * string/tester.c (test_strcat): Add tests for different alignments
18111         of source and destination.
18112         (test_strncat): Likewise.
18113
18114 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18115
18116         [BZ #12852]
18117         * posix/glob.c (glob): Check passed in values before using them in
18118         expressions to avoid some overflows.
18119         (glob_in_dir): Likewise.
18120
18121         [BZ #13007]
18122         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18123         check for AVX enablement so that we don't crash with old kernels and
18124         new hardware.
18125         * elf/tst-audit4.c: Add same checks here.
18126         * elf/tst-audit6.c: Likewise.
18127
18128         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18129
18130 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18131
18132         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18133
18134 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18135
18136         * po/cs.po: Update from translation team.
18137         * po/bg.po: Likewise.
18138
18139 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18140
18141         * misc/sys/cdefs.h: Add support for const attribute.
18142         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18143         to gnu_dev_{major,minor,makedev} functions.
18144
18145 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18146
18147         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18148
18149 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18150
18151         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18152         strlen results.
18153
18154 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18155
18156         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18157         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18158         register in order to avoid conflicts with the soft frame pointer
18159         being held in r11 when necessary.
18160         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18161         (INTERNAL_VSYSCALL_NCS): Likewise.
18162
18163 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18164
18165         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18166         * elf/dl-fini.c (_dl_fini): Adjust caller.
18167         * elf/dl-close.c (_dl_close_worker): Likewise.
18168         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18169
18170 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18171
18172         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18173         "aux_cache->nlibs < 0".
18174
18175         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18176         in the reload-count case.
18177
18178 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18179
18180         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18181         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18182         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18183         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18184         * sysdeps/x86_64/multiarch/strcat.S: New file.
18185         * sysdeps/x86_64/multiarch/strncat.S: New file.
18186         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18187         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18188         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18189         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18190         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18191         (USE_AS_STRCAT): Define.
18192         Add strcat and strncat support.
18193         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18194         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18195         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18196         * string/strncat.c: Update.
18197         (USE_AS_STRNCAT): Define.
18198         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18199         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18200         and i7.
18201         * sysdeps/x86_64/multiarch/init-arch.h
18202         (bit_Prefer_PMINUB_for_stringop): New.
18203         (index_Prefer_PMINUB_for_stringop): Likewise.
18204         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18205         bit_Prefer_PMINUB_for_stringop.
18206
18207 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18208
18209         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18210         buffer64.
18211         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18212         of casting of buffer.
18213         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18214         buffer32 and buffer64.
18215         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18216         writes instead of casting of buffer.
18217         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18218         buffer32.
18219         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18220         casting of buffer.
18221
18222 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18223
18224         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18225
18226 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18227
18228         * nscd/nscd.c (termination_handler): Don't do anything for a database
18229         if it has not yet been initialized.
18230
18231 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18232
18233         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18234
18235 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18236
18237         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18238
18239 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18240
18241         * po/nl.po: Update from translation team.
18242         * po/sv.po: Likewise.
18243
18244 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18245
18246         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18247         now disallowed by GCC.
18248
18249         * configure.in (use-default-link): Default to yes if a test -shared
18250         link meets our qualifications.
18251         * configure: Regenerated.
18252
18253         * config.make.in (output-format): New variable.
18254         * configure.in: Check for ld --print-output-format support.
18255         * configure: Regenerated.
18256         * Makerules ($(common-objpfx)format.lds)
18257         [$(output-format) != unknown]: Just use $(output-format),
18258         instead of the linker-script munging.
18259
18260 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18261
18262         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18263         of $(common-objpfx)shlib.lds.
18264         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18265
18266         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18267         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18268
18269         * configure.in (-z relro check): Adjust test code to add a large
18270         writable data section after it.
18271         * configure: Regenerated.
18272
18273 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18274
18275         * configure.in (-z relro check): Fix test code to make the variable
18276         truly const.
18277         * configure: Regenerated.
18278
18279 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18280
18281         * nscd/nscd.h (struct traced_file): Define.
18282         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18283         elements.  Add traced_files.
18284         (inotify_fd): Declare.
18285         (register_traced_file): Declare.
18286         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18287         (inotify_fd): Export.
18288         (resolv_conf_descr): Remove.
18289         (nscd_init): Move inotify descriptor creation to main.
18290         Don't register files for notification here.
18291         (register_traced_file): New function.
18292         (invalidate_cache): Don't use reset_res to determine whether to call
18293         res_init, go through the list of registered files.
18294         (main_loop_poll): The inotify descriptors are now stored in the
18295         structures for the traced files.
18296         (main_loop_epoll): Likewise
18297         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
18298         to __nss_disable_nscd.
18299         * nscd/cache.c (prune_cache): There is no single inotify descriptor
18300         for a database anymore.  Check the records for all the registered
18301         files instead.
18302         * nss/Makefile (libnss_files-routines): Add files-init.
18303         (libnss_db-routines): Add db-init.
18304         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
18305         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
18306         * nss/nss_db/db-init.c: New file.
18307         * nss/nss_files/files-init.c: New file.
18308         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
18309         __nss_lookup_function.
18310         (__nss_lookup_function): Call nss_load_library.
18311         (nss_load_all_libraries): New function.
18312         (__nss_disable_nscd): Take parameter with callback function for files
18313         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
18314         used for the cached services.
18315         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
18316         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
18317         options for features to all the files in nscd.
18318
18319         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
18320
18321 2011-07-10  Roland McGrath  <roland@hack.frob.com>
18322
18323         * csu/elf-init.c (__libc_csu_init): Comment typo.
18324
18325 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
18326
18327         * po/pl.po: Update from translation team.
18328         * po/ja.po: Likewise.
18329         * po/ru.po: Likewise.
18330         * po/ko.po: Likewise.
18331         * po/fr.po: Likewise.
18332
18333 2011-07-09  Roland McGrath  <roland@hack.frob.com>
18334
18335         * configure.in (.ctors/.dtors header and trailer check):
18336         Use an empirical test on a built program.
18337         * configure: Regenerated.
18338
18339         * configure.in (-z relro check): Use an empirical test on a built DSO.
18340         Detect, but do not require, on ia64.
18341         * configure: Regenerated.
18342
18343         * configure.in (READELF): Find it with AC_CHECK_TOOL.
18344         Update tests that use readelf to use $READELF instead.
18345         * configure: Regenerated.
18346
18347 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
18348
18349         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
18350         if the result is not used.
18351
18352 2011-07-05  Andreas Jaeger  <aj@suse.de>
18353
18354         [BZ#9696]
18355         * stdlib/tst-strtod.c: Add testcase.
18356
18357 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
18358
18359         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
18360         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
18361         The latter has a higher limit.  Take additional parameter to pass to
18362         the new function.
18363         (__pathconf): Pass file to __statfs_link_max.
18364         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
18365         __statfs_link_max.
18366         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
18367         __statfs_link_max.
18368
18369         [BZ #12868]
18370         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
18371         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18372         Handle Lustre.
18373         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
18374         (__statfs_filesize_max): Likewise.
18375         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
18376
18377 2011-07-05  Andreas Jaeger  <aj@suse.de>
18378
18379         * resolv/res_comp.c (dn_skipname): Remove unused variable.
18380
18381 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
18382
18383         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
18384         `status' variable.
18385         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
18386         Likewise.
18387
18388 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
18389
18390         * Makefile (strop-tests): Add strncat.
18391         * string/test-strncat.c: New file.
18392
18393 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
18394
18395         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
18396
18397 2011-06-21  Andreas Jaeger  <aj@suse.de>
18398
18399         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
18400         Copy rule from iconvdata/Makefile.
18401
18402 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18403
18404         [BZ #12922]
18405         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
18406         but no long options are defined, just return 'W'.
18407
18408 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
18409
18410         [BZ #9696]
18411         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
18412
18413 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18414
18415         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
18416         netgroups to read.
18417         (innetgr): Likewise.
18418
18419 2011-07-05  Roland McGrath  <roland@hack.frob.com>
18420
18421         * config.make.in (install_root): Default to $(DESTDIR).
18422
18423 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
18424
18425         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
18426
18427 2011-07-02  Roland McGrath  <roland@hack.frob.com>
18428
18429         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
18430
18431         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
18432         containing directory rather than embedding absolute directory names.
18433
18434         * scripts/check-local-headers.sh: Rewritten using awk.
18435         Match by word, not by line.  Print error messages for matches.
18436         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
18437
18438         * Makerules [shlib-lds-flags empty]:
18439         ($(common-objpfx)libc_pic.opts): New target.
18440         ($(common-objpfx)libc_pic.os.clean): New target.
18441         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
18442
18443         * config.make.in (OBJCOPY): New variable.
18444         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
18445         * configure: Regenerated.
18446
18447         * config.make.in (use-default-link): New variable.
18448         * configure.in (use_default_link): Grok --with-default-link to set it.
18449         * configure: Regenerated.
18450         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
18451         (shlib-lds, shlib-lds-flags): Define to empty.
18452
18453         * Makerules (shlib-lds): New variable.
18454         (shlib-lds-flags): New variable.
18455         (build-shlib, build-moduile, build-module-asneeded): Use it.
18456         ($(common-objpfx)libc.so): Use $(shlib-lds).
18457         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
18458         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
18459
18460         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
18461         DT_FLAGS/DT_FLAGS_1 with zero flags.
18462
18463         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
18464         linker script munging.
18465
18466 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
18467
18468         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
18469         as 128-bit value.
18470         * crypt/sha512.c (sha512_process_block): Perform total addition using
18471         128-bit if possible.
18472         (__sha512_finish_ctx): Likewise.
18473         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
18474         as 64-bit value.
18475         * crypt/sha256.c (SWAP64): Define.
18476         (sha256_process_block): Perform total addition using 64-bit if
18477         possible.
18478         (__sha256_finish_ctx): Likewise.
18479
18480 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
18481
18482         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
18483         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18484         * nscd/hstcache.c (cache_addhst): Likewise.
18485         * nscd/grpcache.c (cache_addgr): Likewise.
18486         * nscd/aicache.c (addhstaiX): Likewise
18487         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
18488
18489 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
18490
18491         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
18492         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18493         * nscd/hstcache.c (cache_addhst): Likewise.
18494         * nscd/grpcache.c (cache_addgr): Likewise.
18495         * nscd/aicache.c (addhstaiX): Likewise
18496
18497 2011-07-01  Andreas Schwab  <schwab@redhat.com>
18498
18499         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
18500         domain only when needed.
18501
18502 2011-06-30  Andreas Schwab  <schwab@redhat.com>
18503
18504         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
18505         is always restored.
18506
18507 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
18508
18509         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
18510         are re-adding the entry.
18511         * nscd/servicescache.c (cache_addserv): Likewise.
18512
18513 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
18514
18515         * sysdeps/generic/dl-irel.h: fix protection against multiple
18516         inclusions.
18517         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
18518
18519 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
18520
18521         [BZ #12935]
18522         * malloc/memusage.sh: Fix quoting in message.
18523         * debug/xtrace.sh: Likewise.
18524
18525         * configure.in: Remove support for --experimental-malloc option, make
18526         it the default.
18527         * config.make.in: Likewise.
18528         * malloc/Makefile: Likewise.
18529
18530 2011-06-27  Andreas Schwab  <schwab@redhat.com>
18531
18532         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
18533         two-byte characters.
18534
18535 2011-06-27  Roland McGrath  <roland@hack.frob.com>
18536
18537         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
18538         AC_CACHE_CHECK invocation.
18539         * configure: Regenerated.
18540
18541         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
18542
18543 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
18544
18545         [BZ #12350]
18546         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
18547         bit from old_res_options.
18548
18549         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
18550
18551         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
18552         value type for setfct.
18553
18554 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18555
18556         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18557         __gettimeofday instead of gettimeofday.
18558
18559 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
18560
18561         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
18562
18563 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18564
18565         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
18566
18567         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
18568         info.
18569
18570 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18571
18572         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18573         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18574         strcpy-sse2-unaligned strncpy-sse2-unaligned
18575         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
18576         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
18577         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
18578         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
18579         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
18580         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
18581         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
18582         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
18583         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
18584         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
18585         (STRCPY): Support SSE2 and SSSE3 versions.
18586
18587 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
18588
18589         [BZ #12874]
18590         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
18591         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
18592         kernels which artificially limit size of requests.
18593
18594 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18595
18596         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18597         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18598         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
18599         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
18600         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
18601         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
18602         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
18603         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
18604         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
18605         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
18606         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
18607         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
18608         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
18609         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
18610         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
18611         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18612         Enable unaligned load optimization for Intel Core i3, i5 and i7
18613         processors.
18614         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
18615         Define.
18616         (index_Fast_Unaligned_Load): Define.
18617         (HAS_FAST_UNALIGNED_LOAD): Define.
18618
18619 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
18620
18621         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
18622
18623 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18624
18625         [BZ #12907]
18626         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
18627         until it is clear that the information is realy needed.
18628         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
18629
18630 2011-06-22  Andreas Schwab  <schwab@redhat.com>
18631
18632         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
18633
18634 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18635
18636         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18637         /sys/devices/system/cpu/online if it is usable.
18638
18639         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
18640         reading the information from the /proc filesystem to once a second.
18641
18642 2011-06-21  Andreas Jaeger  <aj@suse.de>
18643
18644         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
18645         NULL after inclusion of kernel headers.
18646
18647 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
18648
18649         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
18650         calls to internal_setent.
18651
18652         [BZ #12885]
18653         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
18654         addresses using gethostbyname4_r ignore IPv4 addresses.
18655
18656         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
18657         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
18658
18659         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
18660
18661 2011-06-20  David S. Miller  <davem@davemloft.net>
18662
18663         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
18664         inclusions.
18665         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
18666
18667         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
18668         (elf_irel): Use it.
18669         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
18670         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
18671         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
18672         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
18673         * sysdeps/x86_64/dl-irel.h: Likewise.
18674
18675         * elf/dl-runtime.c: Use elf_ifunc_invoke.
18676         * elf/dl-sym.c: Likewise.
18677
18678 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18679
18680         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18681         need to dereference resplen2.
18682
18683 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18684
18685         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18686
18687 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18688
18689         * Makeconfig: Define vardbdir and inst_vardbdir.
18690         * nss/Makefile: Add rules to install db-Makefile.
18691
18692         * nss/nss_db/db-XXX.c: Cleanup.
18693
18694         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18695         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18696         GLIBC_PRIVATE.
18697         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18698         * nss/makedb.c: Implement -g option to specify that value strings
18699         are generated and should not be added to table iterated over for
18700         get*ent calls.
18701         * nss/nss_db/db-initgroups.c: New file.
18702
18703         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18704         interface.
18705
18706         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18707         (internal_getgrouplist): Adjust to name change.
18708         Update use_initgroups_entry if this is not the first call.
18709         * nss/databases.def: Add initgroups entry.
18710
18711         * nss/makedb.c (compute_tables): Check result of multiple hash table
18712         sizes to minimize maximum chain length.
18713
18714 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18715
18716         * Versions.def: Add entry for libnss_db.
18717         * shlib-versions: Likewise.
18718         * nss/Makefile: Add rules to build libnss_db.
18719         * nss/Versions: Add libnss_db information.  Organize libnss_files
18720         entries better.
18721         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18722         makedb progra.  Some minor improvements to generate smaller files.
18723         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18724         here from...
18725         * nss/makedb.c: ...here.
18726         Improve database format to be smaller and require less memory at
18727         runtime.
18728         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18729         db anymore.
18730         * nss/nss_db/db-netgrp.c: Likewise.
18731         * nss/nss_db/db-open.c: Likewise.
18732         * nss/nss_files/flies-XXX.x: Adjust comments.
18733         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18734         * nss/nss_files/files-grp.c: Likewise.
18735         * nss/nss_files/files-hosts.c: Likewise.
18736         * nss/nss_files/files-network.c: Likewise.
18737         * nss/nss_files/files-proto.c: Likewise.
18738         * nss/nss_files/files-pwd.c: Likewise.
18739         * nss/nss_files/files-rpc.c: Likewise.
18740         * nss/nss_files/files-service.c: Likewise.
18741         * nss/nss_files/files-sgrp.c: Likewise.
18742         * nss/nss_files/files-spwd.c: Likewise.
18743         * nss/nss_db/db-alias.c: Removed.
18744         * nss/nss_db/dummy-db.h: Removed.
18745
18746 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18747
18748         * nss/makedb.c: Rewritten to not use database library.
18749         * nss/Makefile: Update to build new makedb program.
18750
18751 2011-06-14  Andreas Jaeger  <aj@suse.de>
18752
18753         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18754         memset declaration.
18755
18756 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18757
18758         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18759         tmpbuf.
18760
18761 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18762
18763         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18764         * elf/Makefile ($(objpfx)ld.so): Likewise.
18765
18766         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18767         Don't list ld.so twice in dependencies.
18768
18769         * posix/bug-regex31.c: Include <stdlib.h>.
18770
18771         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18772
18773         * nis/nss_compat/compat-spwd.c
18774         (getspent_next_nss_netgr): Remove unused variable.
18775         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18776
18777         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18778         nonmembers" output to use the right array.
18779
18780         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18781
18782         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18783
18784         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18785         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18786         * catgets/gencat.c (read_input_file): Likewise.
18787         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18788
18789         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18790         variable definition inside #if's controlling its use.
18791
18792         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18793
18794         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18795
18796         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18797
18798         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18799         unreachable code.
18800
18801         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18802
18803         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18804         * configure: Regenerated.
18805
18806         * Makerules: Revert last change.
18807         * elf/Makefile: Likewise.
18808
18809 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18810
18811         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18812         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18813         (reloc-link): Likewise.
18814
18815 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18816
18817         * elf/Makefile: Add rules to build pldd.
18818         * elf/pldd.c: New file.
18819         * elf/pldd-xx.c: New file.
18820
18821 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18822
18823         * version.h: Update for 2.15 development version.
18824
18825 2011-06-07  David S. Miller  <davem@davemloft.net>
18826
18827         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18828         ifuncs.
18829         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18830         elf_machine_lazy_rel): Likewise.
18831         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18832         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18833         elf_machine_lazy_rel): Likewise.
18834         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18835         dl_hwcap via passed in argument.
18836         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18837         Likewise.
18838
18839 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18840
18841         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18842
18843 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18844
18845         [BZ #12849]
18846         * manual/fdl-1.1.texi: New file, verbatim from:
18847         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18848         * manual/lgpl-2.1.texi: New file, verbatim from:
18849         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18850         * manual/Makefile (licenses): New variable, list those new file names.
18851         (texis): Use it.
18852         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18853
18854         * manual/fdl.texi: File removed.
18855         * manual/lesser.texi: File removed.
18856         * manual/libc.texinfo (Copying, Documentation License):
18857         Use new @include file names, put @appendix directive before @include.
18858
18859 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18860
18861         [BZ #12841]
18862         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18863         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18864         (mq_open): Add __NTH.
18865
18866 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18867
18868         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18869         Assume Intel Core i3/i5/i7 processor if AVX is available.
18870
18871 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18872
18873         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18874         typo.
18875
18876 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18877
18878         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18879         memory.  Use alloca_account.  Fix memory leak when retrying.
18880
18881 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18882
18883         * version.h (RELEASE): Bump for 2.14 release.
18884         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18885
18886         * config.make.in (RANLIB): Remove entry.
18887
18888 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18889
18890         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18891         (libc.pot): Work around missing support for .ksh extension in xgettext.
18892
18893         [BZ #12684]
18894         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18895         if both request failed.
18896         (send_dg): In case of server errors clear resplen or *resplen2.
18897
18898         [BZ #12454]
18899         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18900         when there are multiple maps.
18901         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18902         (_dl_fini): Remove test here.
18903
18904         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18905
18906 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18907
18908         [BZ #12350]
18909         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18910         bit from old_res_options.
18911         (gaih_inet): Likewise.
18912
18913         [BZ #11099]
18914         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18915         as signed.
18916
18917         * resolv/res_init.c (res_setoptions): Make the code more compact.
18918
18919         [BZ #11558]
18920         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18921         set RES_USEVC.
18922
18923         [BZ #11634]
18924         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18925
18926         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18927
18928         [BZ #11781]
18929         * malloc/malloc.h: Declare malloc hook variables as volatile.
18930
18931         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18932         in last patch.
18933
18934         [BZ #11799]
18935         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18936         raise in the comment.
18937         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18938         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18939         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18940
18941 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18942
18943         [BZ #12811]
18944         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18945         grow the buffers more if it already has to be sufficient.
18946         (build_wcs_upper_buffer): Likewise.
18947         * posix/regexec.c (check_matching): Likewise.
18948         (clean_state_log_if_needed): Likewise.
18949         (extend_buffers): Don't enlarge buffers beyond size of the input
18950         buffer.
18951         Patches mostly by Emil Wojak <emil@wojak.eu>.
18952         * posix/bug-regex32.c: New file.
18953         * posix/Makefile (tests): Add bug-regex32.
18954
18955         * locale/findlocale.c (_nl_find_locale): Return right away if
18956         _nl_explode_name failed.
18957         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18958
18959         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18960
18961         * debug/xtrace.sh: Unify messages.
18962         * malloc/memusage.sh: Likewise.
18963
18964         [BZ #12813]
18965         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18966         time symbol from vDSO.  Substitute with vsyscall if not available.
18967         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18968         __vdso_time.
18969
18970         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18971         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18972         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18973         Add sendmmsg and internal_sendmmsg.
18974         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18975         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18976         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18977
18978         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18979         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18980         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18981
18982 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18983
18984         [BZ #12813]
18985         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18986         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18987         available.
18988         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18989         __vdso_getcpu.
18990
18991         [BZ #12814]
18992         * iconvdata/Makefile (tests): Add bug-iconv9.
18993         * iconvdata/bug-iconv9.c: New file.
18994
18995 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18996
18997         [BZ #12814]
18998         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18999
19000 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19001
19002         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19003         (struct user_regs_struct): Change intcs field back to cs.
19004
19005 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19006
19007         * po/ja.po: Update from translation team.
19008
19009 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19010
19011         [BZ #12795]
19012         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19013         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19014
19015 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19016
19017         * stdlib/longlong.h: Update from GCC.
19018
19019 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19020
19021         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19022         parameter name.
19023         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19024         Add parameter name.
19025         (__sysconf): Pass it down.
19026
19027 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19028
19029         [BZ #12671]
19030         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19031         some situations.
19032         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19033         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19034         add in in __libc_use_alloca calls.  Adjust callers.
19035         (glob): Use malloc in some situations.
19036
19037         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19038         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19039         pltexit.
19040
19041 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19042
19043         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19044         and CLOCK_BOOTTIME_ALARM.
19045
19046         [BZ #12782]
19047         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19048         is returned.
19049
19050         * string/_strerror.c (__strerror_r): Print negative errors as signed
19051         numbers.
19052
19053         [BZ #12777]
19054         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19055         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19056         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19057
19058         * configure.in: Fix typo in redirection and correct removal of test
19059         files in two cases.
19060
19061         [BZ #12788]
19062         * locale/setlocale.c (new_composite_name): Fix test to check for
19063         identical name of all categories.
19064
19065         [BZ #12792]
19066         * libio/filedoalloc.c (local_isatty): New function.
19067         (_IO_file_doallocate): Use local_isatty.
19068         * stdio-common/perror.c (perror): In case a new stream is used
19069         forward the stream error.
19070         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19071         error flag.
19072
19073 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19074
19075         [BZ #11869]
19076         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19077         alloca.
19078         * include/alloca.h (extend_alloca_account): Define.
19079
19080         [BZ #11857]
19081         * posix/regex.h: Fix comments with documentation of user-accessible
19082         fields after compilation and describe correct free'ing of pattern
19083         after re_compile_pattern.
19084         Patch by Reuben Thomas <rrt@sc3d.org>.
19085
19086 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19087
19088         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19089         and -mno-altivec to prevent the compiler from using Altivec and/or
19090         VSX instructions when the corresponding registers are not available.
19091
19092 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19093
19094         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19095
19096 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19097
19098         * libio/freopen.c (freopen): Use __dup2, not dup2.
19099         * libio/freopen64.c (freopen64): Likewise.
19100
19101 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19102
19103         [BZ #12775]
19104         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19105         * math/Makefile (tests): Add test-powl.
19106         (CFLAGS-test-powl.c): Define.
19107         * math/test-powl.c: New file.
19108
19109 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19110
19111         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19112
19113 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19114
19115         [BZ #11837]
19116         * iconvdata/gb18030.c: Update to GB18020-2005.
19117
19118 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19119
19120         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19121         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19122         Patch by Aharon Robbins <arnold@skeeve.com>.
19123
19124         [BZ #11892]
19125         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19126         on the stack.
19127
19128         [BZ #11895]
19129         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19130         through underflows.
19131
19132         [BZ #12766]
19133         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19134         point to strings before performing equality test for error_one_per_line
19135         mode.
19136
19137         [BZ #11697]
19138         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19139
19140         [BZ #11820]
19141         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19142         (struct user_fpregs_struct): Avoid __uint*_t types.
19143
19144         [BZ #6420]
19145         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19146         symbol info.  Use it instead of calling _dl_addr locally.
19147         (lock_and_info): New function.
19148         (tr_freehook): Call lock_and_info and pass symbol info as additional
19149         parameter to tr_where.
19150         (tr_mallochook): Likewise.
19151         (tr_reallochook): Likewise.
19152         (tr_memalignhook): Likewise.
19153
19154         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19155         used and couldn't be at all thread-safe.
19156
19157 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19158
19159         * libio/freopen.c (freopen): Don't close old file descriptor
19160         before the new one is opened.  Instead dup the new file descriptor
19161         to the old one after the new stream is created.
19162         * libio/freopen64.c (freopen64): Likewise.
19163         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19164         * libio/fileops.c (_IO_new_file_close_it): Handle new
19165         _IO_FLAGS2_NOCLOSE flag.
19166         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19167         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19168         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19169         _IO_FLAGS2_NOCLOSE flag.
19170         * include/unistd.h: Add hidden_proto for dup3.
19171         Define __have_dup3.
19172         * io/dup3.c: Define hidden symbol.
19173         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19174
19175         [BZ #7101]
19176         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19177         when an incomplete long option is used.
19178         * posix/tst-getopt_long1.c: New file.
19179         * posix/Makefile (tests): Add tst-getopt_long1.
19180
19181         [BZ #10138]
19182         * scripts/config.guess: Update from autoconf-2.68.
19183         * scripts/config.sub: Likewise.
19184
19185         [BZ #10157]
19186         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19187         tests into ...
19188         (has_cpuclock): ...this.  New function.
19189         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19190         macro here based on has_cpuclock code.
19191
19192         [BZ #10149]
19193         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19194         First byte (not low byte) is now always NUL.
19195         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19196
19197         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19198         Use non-cancelable interfaces.
19199
19200         [BZ #9809]
19201         * locale/iso-639.def: Add entry for Sorani.
19202
19203         [BZ #11901]
19204         * include/stdlib.h: Move include protection to the right place.
19205         Define abort_msg_s.  Declare __abort_msg with it.
19206         * stdlib/abort.c (__abort_msg): Adjust type.
19207         * assert/assert.c (__assert_fail_base): New function.  Majority
19208         of code from __assert_fail.  Allocate memory for __abort_msg with
19209         mmap.
19210         (__assert_fail): Now call __assert_fail_base.
19211         * assert/assert-perr.c: Remove bulk of implementation.  Use
19212         __assert_fail_base.
19213         * include/assert.hL Declare __assert_fail_base.
19214         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19215         mmap.
19216         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19217
19218 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19219
19220         [BZ #11952]
19221         [BZ #12453]
19222         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19223         until all modules are registered in the DTV.
19224         * elf/Makefile: Add rules to build and run tst-tls19.
19225         * elf/tst-tls19.c: New file.
19226         * elf/tst-tls19mod1.c: New file.
19227         * elf/tst-tls19mod2.c: New file.
19228         * elf/tst-tls19mod3.c: New file.
19229         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19230
19231         [BZ #12083]
19232         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19233         correctly.
19234
19235         [BZ #12601]
19236         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19237         two-byte sequence errors.
19238         * iconvdata/Makefile (tests): Add bug-iconv8.
19239         * iconvdata/bug-iconv8.c: New file.
19240
19241         [BZ #12626]
19242         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19243         buf2 definition.
19244
19245         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19246
19247         [BZ #12432]
19248         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19249         (dummy_getcfa): New function.
19250         (init): Get _Unwind_GetCFA address, use dummy if not found.
19251         (backtrace_helper): In recursion check, also check whether CFA changes.
19252         (__backtrace): Completely initialize arg.
19253
19254         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19255         storing incomplete byte sequence in state object.  Avoid testing for
19256         guaranteed too small input if we know there is enough data available.
19257
19258 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19259
19260         * Makeconfig (+link-pie): Indent.
19261         * Rules (binaries-pie): Define if $(have-fpie) and
19262         $(build-shared).
19263         (binaries-shared): Also filter out $(binaries-pie).
19264         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19265         * nscd/Makefile (others-pie): Add nscd.
19266         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19267         ($(objpfx)nscd): Remove command override.
19268         * login/Makefile (others-pie): Add pt_chown.
19269         ($(objpfx)pt_chown): Remove command override.
19270         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19271         remove command overrides.
19272
19273 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19274
19275         * libio/tst_putwc.c: Fix error messages.
19276
19277         [BZ #12724]
19278         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19279         currently writing and seek to current position when not.
19280         * libio/Makefile (tests): Add bug-fclose1.
19281         * libio/bug-fclose1.c: New file.
19282
19283 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19284
19285         [BZ #12511]
19286         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19287         don't set DF_1_NODELETE here.
19288         (do_lookup_x): When entering new entry test for copy relocation
19289         and if necessary set DF_1_NODELETE flag.
19290         * elf/tst-unique4.cc: New file.
19291         * elf/tst-unique4.h: New file.
19292         * elf/tst-unique4lib.cc: New file.
19293         * elf/Makefile: Add rules to build and run tst-unique4.
19294         Patch by Piotr Bury <pbury@goahead.com>.
19295
19296 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19297
19298         [BZ #12052]
19299         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
19300
19301         [BZ #12625]
19302         * misc/mntent_r.c (addmntent): Flush the stream after the output
19303
19304         [BZ #12393]
19305         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
19306         (is_trusted_path_normalize): Skip initial colon.  Append slash
19307         to empty buffer.  Duplicate is_trusted_path code but allow
19308         constructed patch to be prefix.
19309         (is_dst): Allow $ORIGIN followed by /.
19310         (_dl_dst_substitute): Correct clearing of check_for_trusted.
19311         Correct testing of result of is_trusted_path_normalize
19312         (decompose_rpath): Fix warning.
19313
19314 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
19315
19316         [BZ #11257]
19317         * grp/initgroups.c (internal_getgrouplist): When we found the service
19318         list through the initgroups entry in nsswitch.conf do not always
19319         continue on a successful lookup.  Don't always use the
19320         __nss_group_database value if it is set.
19321         * nss/nsswitch.conf (initgroups): Change action for successful db
19322         lookup to continue for compatibility.
19323
19324 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
19325
19326         [BZ #11532]
19327         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
19328         and CP774 modules.
19329         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
19330         and CP774 modules.
19331         * iconvdata/tst-tables.sh: Likewise.
19332         * iconvdata/cp770.c: New file.
19333         * iconvdata/cp771.c: New file.
19334         * iconvdata/cp772.c: New file.
19335         * iconvdata/cp773.c: New file.
19336         * iconvdata/cp774.c: New file.
19337         * iconvdata/testdata/CP770: New file.
19338         * iconvdata/testdata/CP770..UTF8: New file.
19339         * iconvdata/testdata/CP771: New file.
19340         * iconvdata/testdata/CP771..UTF8: New file.
19341         * iconvdata/testdata/CP772: New file.
19342         * iconvdata/testdata/CP772..UTF8: New file.
19343         * iconvdata/testdata/CP773: New file.
19344         * iconvdata/testdata/CP773..UTF8: New file.
19345         * iconvdata/testdata/CP774: New file.
19346         * iconvdata/testdata/CP774..UTF8: New file.
19347
19348         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
19349         END CHARMAP line.
19350         * iconvdata/gen-8bit-gap.sh: Likewise.
19351         * iconvdata/gen-8bit.sh: Likewise.
19352
19353         * locale/iso-639.def: Add ary entry.
19354
19355         [BZ #11258]
19356         * locale/C-translit.h.in: Add U20A1 transliteration.
19357
19358         [BZ #12178]
19359         * locale/iso-639.def: Add wae entry.
19360         Patch by Kevin Bortis <bortis@translate-wae.ch>.
19361
19362         [BZ #12545]
19363         * locale/programs/localedef.c (construct_output_path): Use ssize_t
19364         for n.
19365
19366         [BZ #12711]
19367         * locale/C-translit.h.in: Add entry for U20B9.
19368         Patch by pravin.d.s@gmail.com.
19369
19370 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
19371
19372         [BZ #12713]
19373         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
19374         ENAMETOOLONG use generic getcwd.
19375         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
19376         in rtld.  Use *stat64.
19377         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
19378         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
19379         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
19380         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
19381         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
19382         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
19383         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
19384         __fstatat64 macros.
19385         * include/dirent.h: Add libc_hidden_proto for rewinddir.
19386         * dirent/rewinddir.c: Add libc_hidden_def.
19387         * sysdeps/mach/hurd/rewinddir.c: Likewise.
19388         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
19389
19390         * include/dirent.h (__alloc_dir): Add flags parameter.
19391         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
19392         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
19393         __alloc_dir.
19394         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
19395         from fdopendir if O_CLOEXEC is already set.
19396
19397 2011-03-15  Alan Modra  <amodra@gmail.com>
19398
19399         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
19400         l_tls_firstbyte_offset non-zero.  Save padding offset in
19401         l_tls_firstbyte_offset for later use.
19402         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
19403         freeing static tls block.
19404
19405 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
19406
19407         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
19408         where #ifdef was intended.  The intent is to prevent ARG_MAX from
19409         being defined by the kernel headers.
19410
19411 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
19412
19413         [BZ #12734]
19414         * resolv/resolv.h: Define RES_NOTLDQUERY.
19415         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
19416         no-tld-query and set RES_NOTLDQUERY.
19417         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
19418         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
19419         modern BIND to search name as TLD unless forbidden.
19420
19421 2011-05-07  Petr Baudis  <pasky@suse.cz>
19422             Ulrich Drepper  <drepper@gmail.com>
19423
19424         [BZ #12393]
19425         * elf/dl-load.c (fillin_rpath): Move trusted path check...
19426         (is_trusted_path): ...to here.
19427         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
19428         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
19429         using is_trusted_path_normalize() in setuid scripts.
19430
19431 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19432
19433         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
19434         __BEGIN/__END_DECLS.
19435
19436 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
19437
19438         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
19439         NSS_STATUS_NOTFOUND if no record was found.
19440
19441 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19442
19443         * sunrpc/Makefile (headers): Add rpc/netdb.h.
19444         (headers-not-in-tirpc): Remove rpc/netdb.h
19445         * resolv/netdb.h: Revert last change.
19446
19447 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19448
19449         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
19450         circular dependency between libgcc.a and libc.a.
19451
19452 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19453
19454         * resolv/netdb.h: Don't include <rpc/netdb.h>.
19455         * nis/Makefile: Don't install rpcsvc/*.
19456         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
19457         instead of <rpc/types.h>.
19458         (MAXHOSTNAMELEN): Define.
19459
19460 2011-05-03  Andreas Schwab  <schwab@redhat.com>
19461
19462         * elf/ldconfig.c (add_dir): Don't crash on empty path.
19463
19464 2011-04-28  Maciej Babinski  <mbabinski@google.com>
19465
19466         [BZ #12714]
19467         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
19468         gethostbyname4_r when IPv6 results are possible.
19469
19470 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
19471
19472         [BZ #12723]
19473         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
19474         _PC_PIPE_BUF handling.
19475
19476 2011-04-30  Bruno Haible  <bruno@clisp.org>
19477
19478         [BZ #12717]
19479         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
19480         * resolv/netdb.h (getnameinfo): Change type of flags parameter
19481         to 'int'.
19482         * inet/getnameinfo.c (getnameinfo): Likewise.
19483
19484 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
19485
19486         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
19487         to groups setting in database lookup.
19488         * nss/nsswitch.conf: Add initgroups entry.
19489
19490 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
19491
19492         [BZ #12685]
19493         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
19494         mode string.
19495         Patch by Eric Blake <eblake@redhat.com>.
19496
19497 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
19498
19499         * sunrpc/Makefile (need-export-routines): Add svc_run.
19500         (routines): Remove svc_run.
19501         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
19502         * sunrpc/clnt_perr.c (clnt_perrno): Export.
19503         * sunrpc/svc_run.c (svc_run): Likewise.
19504         * sunrpc/svc_udp.c (svcudp_create): Likewise.
19505
19506 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
19507
19508         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
19509         problem in reallocation in last patch.
19510
19511 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
19512
19513         * sunrpc/Makefile: Move inclusion of Rules.
19514
19515 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19516
19517         * nss/nss_files/files-initgroups.c: New file.
19518         * nss/Makefile (libnss_files-routines): Add files-initgroups.
19519         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
19520         _nss_files_initgroups_dyn.
19521
19522 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
19523
19524         * elf/elf.h (R_ARM_IRELATIVE): Define.
19525
19526 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19527
19528         * po/ru.po: Update from translation team.
19529
19530 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19531
19532         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
19533         dependencies.
19534
19535 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
19536
19537         [BZ #12653]
19538         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
19539         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
19540         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19541         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
19542         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
19543
19544 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
19545
19546         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
19547         differing bytes.
19548         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
19549         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
19550         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
19551
19552 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19553
19554         [BZ #12420]
19555         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
19556         storing it.
19557         * stdlib/bug-getcontext.c: New file.
19558         * stdlib/Makefile: Add rules to build and run bug-getcontext.
19559
19560 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19561
19562         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
19563         instructions into .machine "z9-109".
19564         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
19565         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
19566
19567 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19568
19569         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
19570         between environment variables and auxiliary vector.
19571
19572 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
19573
19574         * Makefile: Add rules to build linkobj/libc.so.
19575         * include/libc-symbols.h: Define libc_hidden_nolink.
19576         * include/rpc/auth.h: Mark functions which are to be hidden.
19577         * include/rpc/auth_des.h: Likewise.
19578         * include/rpc/auth_unix.h: Likewise.
19579         * include/rpc/clnt.h: Likewise.
19580         * include/rpc/des_crypt.h: Likewise.
19581         * include/rpc/key_prot.h: Likewise.
19582         * include/rpc/pmap_clnt.h: Likewise.
19583         * include/rpc/pmap_prot.h: Likewise.
19584         * include/rpc/pmap_rmt.h: Likewise.
19585         * include/rpc/rpc_msg.h: Likewise.
19586         * include/rpc/svc.h: Likewise.
19587         * include/rpc/svc_auth.h: Likewise.
19588         * include/rpc/xdr.h: Likewise.
19589         * nis/Makefile: Link all DSOs against linkobj/libc.so.
19590         * nss/Makefile: Likewise.
19591         * sunrpc/Makefile: Don't install headers.  Build library with normal
19592         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
19593         * sunrpc/auth_des.c: Hide exported symbols by default, export some
19594         for the compat linking library.  Remove use of INTDEF/INTUSE.
19595         * sunrpc/auth_none.c: Likewise.
19596         * sunrpc/auth_unix.c: Likewise.
19597         * sunrpc/authdes_prot.c: Likewise.
19598         * sunrpc/authuxprot.c: Likewise.
19599         * sunrpc/clnt_gen.c: Likewise.
19600         * sunrpc/clnt_perr.c: Likewise.
19601         * sunrpc/clnt_raw.c: Likewise.
19602         * sunrpc/clnt_simp.c: Likewise.
19603         * sunrpc/clnt_tcp.c: Likewise.
19604         * sunrpc/clnt_udp.c: Likewise.
19605         * sunrpc/clnt_unix.c: Likewise.
19606         * sunrpc/des_crypt.c: Likewise.
19607         * sunrpc/des_soft.c: Likewise.
19608         * sunrpc/get_myaddr.c: Likewise.
19609         * sunrpc/key_call.c: Likewise.
19610         * sunrpc/key_prot.c: Likewise.
19611         * sunrpc/netname.c: Likewise.
19612         * sunrpc/pm_getmaps.c: Likewise.
19613         * sunrpc/pm_getport.c: Likewise.
19614         * sunrpc/pmap_clnt.c: Likewise.
19615         * sunrpc/pmap_prot.c: Likewise.
19616         * sunrpc/pmap_prot2.c: Likewise.
19617         * sunrpc/pmap_rmt.c: Likewise.
19618         * sunrpc/publickey.c: Likewise.
19619         * sunrpc/rpc_cmsg.c: Likewise.
19620         * sunrpc/rpc_common.c: Likewise.
19621         * sunrpc/rpc_dtable.c: Likewise.
19622         * sunrpc/rpc_prot.c: Likewise.
19623         * sunrpc/rpc_thread.c: Likewise.
19624         * sunrpc/rtime.c: Likewise.
19625         * sunrpc/svc.c: Likewise.
19626         * sunrpc/svc_auth.c: Likewise.
19627         * sunrpc/svc_authux.c: Likewise.
19628         * sunrpc/svc_raw.c: Likewise.
19629         * sunrpc/svc_run.c: Likewise.
19630         * sunrpc/svc_simple.c: Likewise.
19631         * sunrpc/svc_tcp.c: Likewise.
19632         * sunrpc/svc_udp.c: Likewise.
19633         * sunrpc/svc_unix.c: Likewise.
19634         * sunrpc/svcauth_des.c: Likewise.
19635         * sunrpc/xcrypt.c: Likewise.
19636         * sunrpc/xdr.c: Likewise.
19637         * sunrpc/xdr_array.c: Likewise.
19638         * sunrpc/xdr_float.c: Likewise.
19639         * sunrpc/xdr_intXX_t.c: Likewise.
19640         * sunrpc/xdr_mem.c: Likewise.
19641         * sunrpc/xdr_rec.c: Likewise.
19642         * sunrpc/xdr_ref.c: Likewise.
19643         * sunrpc/xdr_sizeof.c: Likewise.
19644         * sunrpc/xdr_stdio.c: Likewise.
19645
19646 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
19647
19648         [BZ #12650]
19649         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
19650         * sysdeps/ia64/dl-tls.h: Likewise.
19651         * sysdeps/powerpc/dl-tls.h: Likewise.
19652         * sysdeps/s390/dl-tls.h: Likewise.
19653         * sysdeps/sh/dl-tls.h: Likewise.
19654         * sysdeps/sparc/dl-tls.h: Likewise.
19655         * sysdeps/x86_64/dl-tls.h: Likewise.
19656         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
19657
19658 2011-03-14  Andreas Schwab  <schwab@redhat.com>
19659
19660         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
19661         rpath element also skip the following colon.
19662         (expand_dynamic_string_token): Add is_path parameter and pass
19663         down to DL_DST_REQUIRED and _dl_dst_substitute.
19664         (decompose_rpath): Call expand_dynamic_string_token with
19665         non-zero is_path.  Ignore empty rpaths.
19666         (_dl_map_object_from_fd): Call expand_dynamic_string_token
19667         with zero is_path.
19668
19669 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
19670
19671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
19672         Make cancelable.
19673
19674 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
19675
19676         [BZ #12655]
19677         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19678         Patch by Filipe David Manana <fdmanana@apache.org>.
19679
19680 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19681
19682         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19683         Maintain aligned stack.
19684         (CHECK_RSP): Remove unused macro.
19685
19686 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19687
19688         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19689         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19690
19691 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19692
19693         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19694
19695         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19696
19697 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19698
19699         [BZ #12518]
19700         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19701         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19702         * sysdeps/x86_64/memmove.c: New file.
19703         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19704         (memcpy): Renamed to ...
19705         (__new_memcpy): This.
19706         (memcpy): Provide GLIBC_2_14 memcpy.
19707         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19708         (memcpy): Provide GLIBC_2_2_5 memcpy.
19709
19710 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19711
19712         [BZ #12631]
19713         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19714
19715 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19716
19717         * misc/syncfs.c: New file.
19718         * misc/Makefile (routines): Add syncfs.
19719         * posix/unistd.h: Declare syncfs.
19720         * sysdeps/unix/syscalls.list: Add syncfs.
19721
19722 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19723
19724         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19725         open_by_handle_at.
19726         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19727         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19728         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19729         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19730         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19731         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19732         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19733
19734 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19735
19736         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19737         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19738         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19739         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19740         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19741         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19742         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19743
19744         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19745         sync_file_range.c with -fexceptions.
19746         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19747         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19748         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19749         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19750         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19751         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19752         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19753         sync_file_range as cancellation point
19754         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19755         now a wrapper around __call_sync_file_range with cancellation handling.
19756         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19757         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19758         function name to __call_sync_file_range.
19759         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19760         Add call_sync_file_range.
19761
19762 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19763
19764         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19765         bits/timex.h.
19766
19767 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19768
19769         * iconv/iconv.h: Fix typo in comment.
19770         * io/fcntl.h: Likewise.
19771         * libio/stdio.h: Likewise.
19772         * posix/spawn.h: Likewise.
19773         * posix/unistd.h: Likewise.
19774         * stdlib/stdlib.h: Likewise.
19775         * time/time.h: Likewise.
19776         * wcsmbs/wchar.h: Likewise.
19777
19778         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19779         open_by_handle): Add.
19780         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19781         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19782         Augment a few comments.
19783         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19784         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19785         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19786         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19787         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19788         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19789         open_by_handle.
19790
19791         * io/fcntl.h (AT_EMPTY_PATH): Define.
19792
19793 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19794
19795         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19796         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19797         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19798         to...
19799         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19800         * Versions.def: Add GLIBC_2.14.
19801         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19802         Export.
19803
19804 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19805
19806         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19807         round counter.
19808         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19809
19810 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19811
19812         [BZ #12597]
19813         * string/test-strncmp.c (do_page_test): New function.
19814         (check2): Likewise.
19815         (test_main): Call check2.
19816         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19817
19818 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19819
19820         [BZ #12587]
19821         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19822         Handle cache information in CPU leaf 4.
19823         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19824
19825 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19826
19827         [BZ #12583]
19828         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19829         character representation.
19830         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19831
19832 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19833
19834         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19835         END(__isnan) to END(__isnanf) to match function entry point/label
19836         EALIGN(__isnanf,...).
19837
19838 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19839
19840         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19841
19842 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19843
19844         [BZ #12510]
19845         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19846         copy from the symbol referenced in the relocation to initialize the
19847         used variable.
19848         Patch by Piotr Bury <pbury@goahead.com>.
19849         * elf/Makefile: Add rules to build and tst-unique3.
19850         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19851         * elf/tst-unique3.cc: New file.
19852         * elf/tst-unique3.h: New file.
19853         * elf/tst-unique3lib.cc: New file.
19854         * elf/tst-unique3lib2.cc: New file.
19855
19856         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19857
19858 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19859
19860         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19861         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19862         to _start.
19863
19864 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19865
19866         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19867         to-be-loaded object along a path to loader is ld.so.
19868
19869 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19870             Ulrich Drepper  <drepper@gmail.com>
19871
19872         * sysdeps/x86_64/memset.S: After aligning destination, code
19873         branches to different locations depending on the value of
19874         misalignment, when multiarch is enabled. Fix this.
19875
19876 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19877
19878         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19879         Set _x86_64_preferred_memory_instruction for AMD processsors.
19880         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19881         Set bit_Prefer_SSE_for_memop for AMD processors.
19882
19883 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19884
19885         * libio/fmemopen.c (fmemopen): Optimize a bit.
19886
19887 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19888
19889         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19890
19891 2011-03-03  Roland McGrath  <roland@redhat.com>
19892
19893         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19894
19895 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19896
19897         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19898         __bzero_ultra1 instead of __memset_ultra1.
19899
19900 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19901             Ulrich Drepper  <drepper@gmail.com>
19902
19903         [BZ #12509]
19904         * include/link.h (struct link_map): Add l_orig_initfini.
19905         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19906         returning unsuccessfully.
19907         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19908         close of a file loaded at startup, restore the original l_initfini
19909         list.
19910         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19911         list, store the pointer.
19912         * elf/Makefile ($(objpfx)noload-mem): New rule.
19913         (noload-ENV): Define.
19914         (tests): Add $(objpfx)noload-mem.
19915         * elf/noload.c: Include <memcheck.h>.
19916         (main): Call mtrace.  Close all opened handles.
19917
19918 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19919
19920         [BZ #12454]
19921         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19922         dependencies are missing.
19923
19924 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19925
19926         Fix __if_freereq crash: Unlike the generic version which uses free,
19927         Hurd needs munmap.
19928         * sysdeps/mach/hurd/ifreq.h: New file.
19929
19930 2011-01-27  Petr Baudis  <pasky@suse.cz>
19931             Ulrich Drepper  <drepper@gmail.com>
19932
19933         [BZ 12445]#
19934         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19935         to extend_alloca().
19936         * stdio-common/bug23.c: New file.
19937         * stdio-common/Makefile (tests): Add bug23.
19938
19939 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19940             Ulrich Drepper  <drepper@gmail.com>
19941
19942         [BZ #12489]
19943         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19944         before performing relro protection.  At old place add assertion
19945         to make sure nothing changed.
19946
19947 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19948             Glauber de Oliveira Costa  <glommer@gmail.com>
19949
19950         * elf/elf.h: Add new ARM TLS relocs.
19951
19952 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19953
19954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19955         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19956         cast from r3.
19957         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19958         'tests' variable.
19959         * sysdeps/wordsize-64/tst-writev.c: New file.
19960
19961 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19962
19963         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19964         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19965         insns in _dl_start to prevent a TOC reference before relocs are
19966         resolved.
19967
19968 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19969
19970         [BZ #12469]
19971         * Makeconfig: Remove RANLIB definition.
19972         * Makerules: Don't use RANLIB.
19973         * aclocal.m4: Remove ranlib test.
19974         * configure.in: No need to check for ranlib.
19975         * elf/rtld-Rules: Don't use RANLIB.
19976
19977 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19978
19979         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19980         protection macro.
19981         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19982         inclusion protection macro.
19983
19984         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19985         SIGRTMIN and SIGRTMAX and print information in that case only when
19986         SIGRTMIN is defined.
19987
19988 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19989
19990         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19991         arginfo fn returning -1.
19992
19993         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19994         and thousands string is zero terminated.
19995
19996 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19997
19998         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19999         sysdeps/unix/sysv/linux/bits/socket.h.
20000
20001 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20002
20003         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20004         (__CPU_COUNT): Remove old macros.
20005         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20006         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20007         (__CPU_ALLOC, __CPU_FREE): Add macros.
20008         (__sched_cpualloc, __sched_cpufree): Add declarations.
20009
20010 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20011
20012         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20013         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20014         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20015         (readdhstai): Return value of addhstaiX call.
20016         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20017         (addgrbyX): Return value returned by cache_addgr.
20018         (readdgrbyname): Return value returned by addgrbyX.
20019         (readdgrbygid): Likewise.
20020         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20021         (addpwbyX): Return value returned by cache_addpw.
20022         (readdpwbyname): Return value returned by addhstbyX.
20023         (readdpwbyuid): Likewise.
20024         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20025         (addservbyX): Return value returned by cache_addserv.
20026         (readdservbyname): Return value returned by addservbyX:
20027         (readdservbyport): Likewise.
20028         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20029         (addhstbyX): Return value returned by cache_addhst.
20030         (readdhstbyname): Return value returned by addhstbyX.
20031         (readdhstbyaddr): Likewise.
20032         (readdhstbynamev6): Likewise.
20033         (readdhstbyaddrv6): Likewise.
20034         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20035         (readdinitgroups): Return value returned by addinitgroupsX.
20036         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20037         (prune_cache): Keep track of timeout value of re-added entries.
20038         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20039         * nscd/nscd.h: Adjust prototypes of readd* functions.
20040
20041 2011-02-04  Roland McGrath  <roland@redhat.com>
20042
20043         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20044         (nis_stats): Likewise.
20045         * nis/nis_modify.c (nis_modify): Likewise.
20046         * nis/nis_remove.c (nis_remove): Likewise.
20047         * nis/nis_add.c (nis_add): Likewise.
20048
20049         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20050
20051         * posix/fnmatch_loop.c: Add some consts.
20052
20053         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20054
20055 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20056
20057         [BZ #12460]
20058         * config.make.in (config-cflags-novzeroupper): Define.
20059         * configure.in: Substitute libc_cv_cc_novzeroupper.
20060         * elf/Makefile (AVX-CFLAGS): Define.
20061         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20062         (CFLAGS-tst-auditmod4a.c): Likewise.
20063         (CFLAGS-tst-auditmod4b.c): Likewise.
20064         (CFLAGS-tst-auditmod6b.c): Likewise.
20065         (CFLAGS-tst-auditmod6c.c): Likewise.
20066         (CFLAGS-tst-auditmod7b.c): Likewise.
20067         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20068
20069 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20070
20071         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20072         function to the callback.
20073         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20074
20075 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20076
20077         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20078         of errno.
20079
20080 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20081
20082         [BZ #11724]
20083         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20084         of constructors.
20085         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20086         of destructors.
20087         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20088
20089         [BZ #11724]
20090         * elf/Makefile: Add rules to build and run new test.
20091         * elf/tst-initorder.c: New file.
20092         * elf/tst-initorder.exp: New file.
20093         * elf/tst-initordera1.c: New file.
20094         * elf/tst-initordera2.c: New file.
20095         * elf/tst-initordera3.c: New file.
20096         * elf/tst-initordera4.c: New file.
20097         * elf/tst-initorderb1.c: New file.
20098         * elf/tst-initorderb2.c: New file.
20099         * elf/tst-order-a1.c: New file.
20100         * elf/tst-order-a2.c: New file.
20101         * elf/tst-order-a3.c: New file.
20102         * elf/tst-order-a4.c: New file.
20103         * elf/tst-order-b1.c: New file.
20104         * elf/tst-order-b2.c: New file.
20105         * elf/tst-order-main.c: New file.
20106         New test case by George Gensure <werkt0@gmail.com>.
20107
20108 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20109
20110         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20111         decoding ACE if AI_CANONIDN.
20112
20113 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20114
20115         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20116
20117 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20118
20119         * version.h (RELEASE): Bump for 2.13 release.
20120         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20121
20122         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20123
20124         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20125         MADV_NOHUGEPAGE.
20126         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20127         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20128         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20129         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20130         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20131         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20132
20133         * posix/getconf.c: Update copyright year.
20134         * catgets/gencat.c: Likewise.
20135         * csu/version.c: Likewise.
20136         * debug/catchsegv.sh: Likewise.
20137         * debug/xtrace.sh: Likewise.
20138         * elf/ldconfig.c: Likewise.
20139         * elf/ldd.bash.in: Likewise.
20140         * elf/sprof.c (print_version): Likewise.
20141         * iconv/iconv_prog.c: Likewise.
20142         * iconv/iconvconfig.c: Likewise.
20143         * locale/programs/locale.c: Likewise.
20144         * locale/programs/localedef.c: Likewise.
20145         * malloc/memusage.sh: Likewise.
20146         * malloc/mtrace.pl: Likewise.
20147         * nscd/nscd.c (print_version): Likewise.
20148         * nss/getent.c: Likewise.
20149
20150         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20151         PF_CAIF, and PF_ALG.
20152         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20153
20154 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20155
20156         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20157         (modules-names): Use them.
20158         (ifunc-test-modules, ifunc-pie-tests): Define.
20159         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20160         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20161         (test-extras): Likewise.
20162         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20163         $(compile-command.c).
20164         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20165         (all-built-dso): Define.
20166         (check-textrel.out, check-execstack.out): Depend on it.
20167
20168         * configure.in: Don't override --enable-multi-arch.
20169
20170 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20171
20172         [BZ #6812]
20173         * nscd/hstcache.c (tryagain): Define.
20174         (cache_addhst): Return tryagain not notfound for temporary errors.
20175         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20176         failed.
20177
20178 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20179
20180         [BZ #10563]
20181         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20182         to make the syscall.
20183         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20184
20185         [BZ #12378]
20186         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20187         and fall back to matching as normal character if the string ends before
20188         the matching ']' is found.  This is what POSIX requires.
20189         * posix/testfnm.c: Adjust test result.
20190         * posix/globtest.sh: Adjust test result.  Add new test.
20191         * posix/tst-fnmatch.input: Likewise.
20192         * posix/tst-fnmatch2.c: Add new test.
20193
20194 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20195
20196         * elf/Makefile (check-execstack): Revert last change.  Depend on
20197         check-execstack.h.
20198         (check-execstack.h): New target.
20199         (generated): Add check-execstack.h.
20200         * elf/check-execstack.c: Include "check-execstack.h".
20201         (main): Revert last change.
20202         (handle_file): Return zero if GNU_STACK is absent and
20203         DEFAULT_STACK_PERMS doesn't include PF_X.
20204
20205 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20206
20207         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20208         in child fails because the descriptor is already closed.
20209         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20210         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20211         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20212
20213         [BZ #12397]
20214         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20215         syscall.
20216
20217         [BZ #10484]
20218         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20219         temporary buffer used to handle multi lookups locally.
20220         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20221
20222 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20223
20224         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20225         loader is ld.so.
20226
20227 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20228
20229         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20230         alignment for SSE2.
20231
20232 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20233
20234         [BZ #12394]
20235         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20236         characters.  When rounding increased number of integer digits recompute
20237         number of groups.
20238         * stdio-common/tst-grouping.c: New file.
20239         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20240
20241 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20242
20243         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20244         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20245
20246         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20247         void.
20248         * bits/select.h: Likewise.
20249
20250 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20251
20252         * po/ja.po: Update from translation team.
20253
20254 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20255
20256         [BZ #11155]
20257         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20258         implementation just like for lxstat, fxstatat, et al.
20259
20260 2010-12-27  Jim Meyering  <meyering@redhat.com>
20261
20262         [BZ #12348]
20263         * posix/regexec.c (build_trtable): Return failure indication upon
20264         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20265
20266 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20267
20268         [BZ #12201]
20269         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20270         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20271         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20272         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20273
20274         [BZ #12207]
20275         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20276
20277         [BZ #12204]
20278         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20279         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20280
20281 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20282
20283         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20284         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20285         script has SORT_BY_INIT_PRIORITY.
20286         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20287         NO_CTORS_DTORS_SECTIONS is defined.
20288         * elf/soinit.c: Likewise.
20289         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20290         NO_CTORS_DTORS_SECTIONS is defined.
20291         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
20292         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
20293         * sysdeps/sh/init-first.c: Likewise.
20294         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
20295
20296 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
20297
20298         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
20299         always use the slow path.
20300
20301 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
20302
20303         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
20304         similar rule which adds the sysdep directories to the header search in
20305         order to pick up the correct platform stackinfo.h.
20306         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
20307         perform test if it is, otherwise return successfully without testing.
20308         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
20309         DEFAULT_STACK_PERMS define in stackinfo.h.
20310         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
20311         defined in stackinfo.h.
20312         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
20313         DEFAULT_STACK_PERMS defined in stackinfo.h.
20314         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
20315         * sysdeps/ia64/stackinfo.h: Likewise.
20316         * sysdeps/s390/stackinfo.h: Likewise.
20317         * sysdeps/sh/stackinfo.h: Likewise.
20318         * sysdeps/sparc/stackinfo.h: Likewise.
20319         * sysdeps/x86_64/stackinfo.h: Likewise.
20320         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
20321         PF_X for powerpc64.  Retain PF_X for powerpc32.
20322
20323 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
20324
20325         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
20326         accurately.
20327         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
20328         GETDENTS_64BIT_ALIGNED.
20329
20330 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
20331
20332         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
20333
20334 2010-12-10  Andreas Schwab  <schwab@redhat.com>
20335
20336         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
20337         _GNU_SOURCE.
20338
20339         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
20340         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
20341         Remove __restrict.
20342         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
20343         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
20344
20345 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
20346
20347         [BZ #11655]
20348         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
20349         are initialized.
20350
20351 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
20352
20353         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
20354
20355 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
20356
20357         * po/it.po: Update from translation team.
20358
20359 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20360
20361         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
20362         unused codes.
20363
20364 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
20365
20366         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
20367
20368 2010-11-24  Andreas Schwab  <schwab@redhat.com>
20369
20370         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
20371         specially.
20372         (gaih_getanswer_slice): Likewise.
20373
20374 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
20375
20376         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
20377
20378 2010-05-31  Petr Baudis  <pasky@suse.cz>
20379
20380         [BZ #11149]
20381         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
20382         silently even in the chroot mode.
20383
20384 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
20385
20386         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
20387         last patch a bit.  Pretty printing
20388
20389 2010-05-31  Petr Baudis <pasky@suse.cz>
20390
20391         [BZ #10085]
20392         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
20393         initialization of skip_initgroups_dyn.
20394
20395 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
20396
20397         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
20398         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20399
20400 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
20401
20402         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
20403
20404 2010-11-11  Andreas Schwab  <schwab@redhat.com>
20405
20406         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
20407         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
20408         (tst-fnmatch-ENV): Set MALLOC_TRACE.
20409         ($(objpfx)tst-fnmatch-mem): New rule.
20410         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
20411         * posix/tst-fnmatch.c (main): Call mtrace.
20412
20413 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
20414
20415         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20416         Support Intel processor model 6 and model 0x2c.
20417
20418 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
20419
20420         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
20421           signed comparison.
20422
20423 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
20424
20425         [BZ #12205]
20426         * string/test-strncasecmp.c (check_result): New function.
20427         (do_one_test): Use it.
20428         (check1): New function.
20429         (test_main): Use it.
20430         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
20431         Support strcasecmp and strncasecmp.
20432
20433 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
20434
20435         [BZ #12194]
20436         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
20437         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20438
20439 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20440
20441         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
20442         IFUNC support.
20443         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20444         memset-x86-64.
20445         * sysdeps/x86_64/multiarch/bzero.S: New file.
20446         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
20447         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
20448         * sysdeps/x86_64/multiarch/memset.S: New file.
20449         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
20450         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20451         Set bit_Prefer_SSE_for_memop for Intel processors.
20452         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
20453         Define.
20454         (index_Prefer_SSE_for_memop): Define.
20455         (HAS_PREFER_SSE_FOR_MEMOP): Define.
20456
20457 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
20458
20459         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
20460         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
20461
20462 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
20463
20464         [BZ #12191]
20465         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20466         (__x86_64_raw_data_cache_size_half): Likewise.
20467         (__x86_64_raw_shared_cache_size): Likewise.
20468         (__x86_64_raw_shared_cache_size_half): Likewise.
20469
20470         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20471         (__x86_64_raw_data_cache_size_half): Likewise.
20472         (__x86_64_raw_shared_cache_size): Likewise.
20473         (__x86_64_raw_shared_cache_size_half): Likewise.
20474         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
20475         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
20476         and __x86_64_raw_shared_cache_size_half.  Round
20477         __x86_64_data_cache_size_half, __x86_64_data_cache_size
20478         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
20479         to multiple of 256 bytes.
20480
20481 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
20482
20483         [BZ #12167]
20484         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
20485         of inacessible symlinks.  Verify result of symlink before returning it.
20486         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
20487         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
20488
20489 2010-10-28  Erich Ritz  <erichritz@gmail.com>
20490
20491         * math/math.h (isinf): Fix typo in comment.
20492
20493 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
20494
20495         * po/da.po: Update from translation team.
20496
20497 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
20498
20499         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
20500         is added to the list.
20501
20502 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20503             Ulrich Drepper  <drepper@gmail.com>
20504
20505         * elf/dl-object.c (_dl_new_object): Don't append the new object to
20506         the global list here.  Move code to...
20507         (_dl_add_to_namespace_list): ...here.  New function.
20508         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
20509         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
20510         * elf/dl-load.c (lose): Don't remove the element from the list.
20511         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
20512         (_dl_map_object): Likewise.
20513
20514 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
20515
20516         [BZ #12159]
20517         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
20518         into all bytes of SSE register.
20519         Patch by Richard Li <richardpku@gmail.com>.
20520
20521 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
20522
20523         [BZ #12140]
20524         * malloc/malloc.c (_int_free): Fill correct number of bytes when
20525         perturbing.
20526
20527 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
20528
20529         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
20530         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
20531         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
20532         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
20534         submachine.
20535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
20536
20537 2010-10-22  Andreas Schwab  <schwab@redhat.com>
20538
20539         * include/dlfcn.h (__RTLD_SECURE): Define.
20540         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
20541         mode & __RTLD_SECURE instead.
20542         (open_path): Rename preloaded parameter to secure.
20543         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
20544         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
20545         * elf/dl-deps.c (openaux): Likewise.
20546         * elf/rtld.c (struct map_args): Remove is_preloaded.
20547         (map_doit): Don't use it.
20548         (dl_main): Likewise.
20549         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
20550         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
20551
20552 2010-09-09  Andreas Schwab  <schwab@redhat.com>
20553
20554         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
20555         (sysd-rules-targets): Remove duplicates.
20556         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
20557         rtld-%.$o dependency.
20558
20559 2010-10-18  Andreas Schwab  <schwab@redhat.com>
20560
20561         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
20562         _dl_map_object do it.
20563
20564 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
20565
20566         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
20567         fast fma builtins, define the macros in the C99 standard.
20568         (FP_FAST_FMAF): Likewise.
20569         (FP_FAST_FMAL): Likewise.
20570         * sysdeps/x86_64/bits/mathdef.h: Likewise.
20571
20572         * bits/mathdef.h: Update copyright year.
20573         * sysdeps/powerpc/bits/mathdef.h: Likewise.
20574
20575 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20576
20577         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
20578         builtins, define the macros in the C99 standard.
20579         (FP_FAST_FMAF): Likewise.
20580         (FP_FAST_FMAL): Likewise.
20581         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
20582         multiply/add.
20583         (FP_FAST_FMAF): Likewise.
20584
20585 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
20586
20587         [BZ #3268]
20588         * math/libm-test.inc (fma_test): Some new testcases.
20589         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
20590         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
20591         y and infinite z.  Do multiplication by C already in long double.
20592         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
20593         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
20594         y and infinite z.  Do bitwise or of inexact bit into u.d.
20595         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
20596         * sysdeps/i386/fpu/s_fmaf.S: Removed.
20597         * sysdeps/i386/fpu/s_fma.S: Removed.
20598         * sysdeps/i386/fpu/s_fmal.S: Removed.
20599
20600 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
20601
20602         [BZ #3268]
20603         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
20604         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
20605         computation is not scheduled after fetestexcept.  Fix value
20606         of minimum denormal long double.
20607
20608 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
20609
20610         [BZ #3268]
20611         * math/libm-test.inc (fma_test): Add some more tests.
20612         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
20613         correctly.
20614
20615 2010-10-15  Andreas Schwab  <schwab@redhat.com>
20616
20617         * scripts/data/localplt-s390-linux-gnu.data: New file.
20618         * scripts/data/localplt-s390x-linux-gnu.data: New file.
20619
20620 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
20621
20622         [BZ #3268]
20623         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
20624         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
20625         instead of dbl-64.
20626         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
20627         inlines.
20628         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
20629         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
20630         if one of x and y is very large and the other is subnormal.
20631         * sysdeps/s390/fpu/s_fmaf.c: New file.
20632         * sysdeps/s390/fpu/s_fma.c: New file.
20633         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
20634         * sysdeps/powerpc/fpu/s_fma.S: New file.
20635         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
20636         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
20637         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
20638
20639 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
20640
20641         [BZ #3268]
20642         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
20643         fma tests.
20644         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
20645         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
20646         * sysdeps/i386/i686/multiarch/s_fma.c: Include
20647         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
20648         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
20649         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
20650         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
20651
20652 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
20653
20654         [BZ #12078]
20655         * posix/regcomp.c (parse_branch): One more memory leak plugged.
20656         * posix/bug-regex31.input: Add test case.
20657
20658 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20659
20660         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
20661         * posix/bug-regex31.input: New file.
20662
20663         [BZ #12078]
20664         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
20665         (parse_sub_exp): Fix last change, use postorder.
20666
20667         * posix/bug-regex31.c: New file.
20668         * posix/Makefile: Add rules to build and run bug-regex31.
20669
20670         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
20671
20672         [BZ #12078]
20673         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
20674
20675         [BZ #12108]
20676         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20677         to have entries in sys_siglist.
20678
20679         [BZ #12093]
20680         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20681         be NULL.
20682
20683 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20684
20685         [BZ #3268]
20686         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20687         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20688         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20689         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20690         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20691         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20692         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20693         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20694         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20695         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20696         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20697         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20698         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20699         * math/ftestexcept.c (fetestexcept): Likewise.
20700         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20701         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20702         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20703         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20704         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20705         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20706         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20707
20708 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20709
20710         [BZ #12107]
20711         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20712         newline.
20713
20714 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20715
20716         * string/bug-strstr1.c: New file.
20717         * string/Makefile: Add rules to build and run bug-strstr1.
20718
20719 2010-10-05  Eric Blake  <eblake@redhat.com>
20720
20721         [BZ #12092]
20722         * string/str-two-way.h (two_way_long_needle): Always clear memory
20723         when skipping input due to the shift table.
20724
20725 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20726
20727         [BZ #12005]
20728         * malloc/mcheck.c: Handle large requests.
20729
20730         [BZ #12077]
20731         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20732         for strncmp and strncasecmp.
20733         * string/stratcliff.c: Add tests for strcmp and strncmp.
20734         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20735
20736 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20737
20738         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20739         __set_fpscr.
20740
20741 2010-09-30  Andreas Jaeger  <aj@suse.de>
20742
20743         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20744         (CGROUP_SUPER_MAGIC): Define.
20745         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20746         Handle btrfs and cgroup file systems.
20747         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20748         Likewise.
20749
20750 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20751
20752         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20753         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20754
20755 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20756
20757         [BZ #12067]
20758         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20759         trying to locate the ELF header.
20760
20761 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20762
20763         [BZ #11611]
20764         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20765         Mask out sign-bit copies when constructing f_fsid.
20766
20767 2010-09-24  Petr Baudis <pasky@suse.cz>
20768
20769         * debug/stack_chk_fail_local.c: Add missing licence exception.
20770         * debug/warning-nop.c: Likewise.
20771
20772 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20773
20774         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20775         implementing getdents64 using getdents syscall, set d_type if
20776         __ASSUME_GETDENTS32_D_TYPE.
20777
20778 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20779
20780         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20781         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20782
20783 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20784
20785         [BZ #12037]
20786         * posix/unistd.h: Undo change of feature selection for ftruncate from
20787         2010-01-11.
20788
20789 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20790
20791         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20792         detection.
20793
20794 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20795
20796         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20797         fanotify_mark.
20798         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20799
20800 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20801
20802         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20803         variables after CHECK_SP call.
20804         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20805
20806 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20807             Ulrich Drepper  <drepper@redhat.com>
20808
20809         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20810         re-relocationg ld.so.
20811         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20812         _dl_init_paths call.
20813         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20814         here anymore.
20815
20816 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20817
20818         * resolv/res_init.c (__res_vinit): Count the default server we added.
20819
20820 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20821             Ulrich Drepper  <drepper@redhat.com>
20822
20823         [BZ #11968]
20824         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20825         (____longjmp_chk): Use %ebx for saving value across system call.
20826         Add unwind info.
20827
20828 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20829
20830         * manual/Makefile: Don't mix pattern rules with normal rules.
20831
20832 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20833
20834         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20835         operation.
20836         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20837         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20838         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20839         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20840         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20841         Likewise.
20842
20843 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20844
20845         [BZ #11979]
20846         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20847         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20848
20849 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20850
20851         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20852         * sysdeps/x86_64/addmul_1.S: Likewise.
20853         * sysdeps/x86_64/lshift.S: Likewise.
20854         * sysdeps/x86_64/mul_1.S: Likewise.
20855         * sysdeps/x86_64/rshift.S: Likewise.
20856         * sysdeps/x86_64/sub_n.S: Likewise.
20857         * sysdeps/x86_64/submul_1.S: Likewise.
20858
20859 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20860
20861         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20862         Define __sched_param instead of SCHED_* and sched_param when
20863         <bits/sched.h> is included with __need_schedparam defined.
20864         * bits/sched.h [__need_schedparam]
20865         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20866         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20867         (__defined_schedparam): Define to 1.
20868         (__sched_param): New structure, identical to sched_param.
20869         (__need_schedparam): Undefine.
20870
20871 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20872
20873         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20874         (epoll_create1): Declare.
20875
20876         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20877
20878 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20879
20880         [BZ #7066]
20881         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20882         shifting retval into place.
20883
20884 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20885
20886         * nis/rpcsvc/nis.h: Update copyright notice.
20887         * nis/rpcsvc/nis.x: Likewise.
20888         * nis/rpcsvc/nis_callback.h: Likewise.
20889         * nis/rpcsvc/nis_callback.x: Likewise.
20890         * nis/rpcsvc/nis_object.x: Likewise.
20891         * nis/rpcsvc/nis_tags.h: Likewise.
20892         * nis/rpcsvc/yp.h: Likewise.
20893         * nis/rpcsvc/yp.x: Likewise.
20894         * nis/rpcsvc/ypupd.h: Likewise.
20895         * nis/yp_xdr.c: Likewise.
20896         * nis/ypupdate_xdr.c: Likewise.
20897
20898         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20899         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20900         (pmap_getport): Use __libc_rpc_getport.
20901         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20902         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20903         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20904
20905 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20906
20907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20908         fanotify_mark.
20909
20910 2010-08-27  Roland McGrath  <roland@redhat.com>
20911
20912         * sysdeps/i386/i686/multiarch/Makefile
20913         (CFLAGS-varshift.c): New variable.
20914
20915 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20916
20917         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20918         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20919
20920         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20921
20922         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20923
20924 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20925
20926         * sysdeps/x86_64/strlen.S: Unroll the loop.
20927         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20928         strlen-sse2 strlen-sse2-bsf.
20929         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20930         __strlen_no_bsf if bit_Slow_BSF is set.
20931         (__strlen_sse42): Removed.
20932         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20933         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20934
20935 2010-08-25  Roland McGrath  <roland@redhat.com>
20936
20937         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20938         * sysdeps/x86_64/multiarch/varshift.c: New file.
20939         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20940         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20941         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20942         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20943
20944 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20945
20946         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20947         strlen-sse2 strlen-sse2-bsf.
20948         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20949         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20950         (__strlen_sse2): Removed.
20951         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20952         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20953         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20954         bit_Slow_BSF for Atom.
20955         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20956         (index_Slow_BSF): Define.
20957         (HAS_SLOW_BSF): Define.
20958
20959 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20960
20961         [BZ #10851]
20962         * resolv/res_init.c (__res_vinit): When no server address at all
20963         is given default to loopback.
20964
20965 2010-08-24  Roland McGrath  <roland@redhat.com>
20966
20967         * configure.in: Remove config-name.h generation.
20968         * configure: Regenerated.
20969         * config-name.in: File removed.
20970         * scripts/config-uname.sh: New file.
20971         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20972         ($(objdir)config-name.h): New target.
20973
20974         * sunrpc/rpc_parse.h: Avoid nested comment.
20975
20976 2010-08-24  Richard Henderson  <rth@redhat.com>
20977             Ulrich Drepper  <drepper@redhat.com>
20978             H.J. Lu  <hongjiu.lu@intel.com>
20979
20980         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20981         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20982         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20983         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20984         _mm_alignr_epi8 with _mm_loadu_si128.
20985         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20986         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20987         (__m128i_shift_right): Removed.
20988         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20989         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20990         * sysdeps/x86_64/multiarch/varshift.h: New file.
20991         * sysdeps/x86_64/multiarch/varshift.S: New file.
20992
20993 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20994
20995         * configure.in: Move assembler checks to before sysdep dir checking.
20996
20997 2010-08-20  Petr Baudis  <pasky@suse.cz>
20998
20999         * LICENSES: Sync the sunrpc license.
21000
21001 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21002
21003         * sunrpc/auth_des.c: Update copyright notice once again.
21004         * sunrpc/auth_none.c: Likewise.
21005         * sunrpc/auth_unix.c: Likewise.
21006         * sunrpc/authdes_prot.c: Likewise.
21007         * sunrpc/authuxprot.c: Likewise.
21008         * sunrpc/bindrsvprt.c: Likewise.
21009         * sunrpc/clnt_gen.c: Likewise.
21010         * sunrpc/clnt_perr.c: Likewise.
21011         * sunrpc/clnt_raw.c: Likewise.
21012         * sunrpc/clnt_simp.c: Likewise.
21013         * sunrpc/clnt_tcp.c: Likewise.
21014         * sunrpc/clnt_udp.c: Likewise.
21015         * sunrpc/clnt_unix.c: Likewise.
21016         * sunrpc/des_crypt.c: Likewise.
21017         * sunrpc/des_soft.c: Likewise.
21018         * sunrpc/get_myaddr.c: Likewise.
21019         * sunrpc/getrpcport.c: Likewise.
21020         * sunrpc/key_call.c: Likewise.
21021         * sunrpc/key_prot.c: Likewise.
21022         * sunrpc/openchild.c: Likewise.
21023         * sunrpc/pm_getmaps.c: Likewise.
21024         * sunrpc/pm_getport.c: Likewise.
21025         * sunrpc/pmap_clnt.c: Likewise.
21026         * sunrpc/pmap_prot.c: Likewise.
21027         * sunrpc/pmap_prot2.c: Likewise.
21028         * sunrpc/pmap_rmt.c: Likewise.
21029         * sunrpc/rpc/auth.h: Likewise.
21030         * sunrpc/rpc/auth_unix.h: Likewise.
21031         * sunrpc/rpc/clnt.h: Likewise.
21032         * sunrpc/rpc/des_crypt.h: Likewise.
21033         * sunrpc/rpc/key_prot.h: Likewise.
21034         * sunrpc/rpc/netdb.h: Likewise.
21035         * sunrpc/rpc/pmap_clnt.h: Likewise.
21036         * sunrpc/rpc/pmap_prot.h: Likewise.
21037         * sunrpc/rpc/pmap_rmt.h: Likewise.
21038         * sunrpc/rpc/rpc.h: Likewise.
21039         * sunrpc/rpc/rpc_des.h: Likewise.
21040         * sunrpc/rpc/rpc_msg.h: Likewise.
21041         * sunrpc/rpc/svc.h: Likewise.
21042         * sunrpc/rpc/svc_auth.h: Likewise.
21043         * sunrpc/rpc/types.h: Likewise.
21044         * sunrpc/rpc/xdr.h: Likewise.
21045         * sunrpc/rpc_clntout.c: Likewise.
21046         * sunrpc/rpc_cmsg.c: Likewise.
21047         * sunrpc/rpc_common.c: Likewise.
21048         * sunrpc/rpc_cout.c: Likewise.
21049         * sunrpc/rpc_dtable.c: Likewise.
21050         * sunrpc/rpc_hout.c: Likewise.
21051         * sunrpc/rpc_main.c: Likewise.
21052         * sunrpc/rpc_parse.c: Likewise.
21053         * sunrpc/rpc_parse.h: Likewise.
21054         * sunrpc/rpc_prot.c: Likewise.
21055         * sunrpc/rpc_sample.c: Likewise.
21056         * sunrpc/rpc_scan.c: Likewise.
21057         * sunrpc/rpc_scan.h: Likewise.
21058         * sunrpc/rpc_svcout.c: Likewise.
21059         * sunrpc/rpc_tblout.c: Likewise.
21060         * sunrpc/rpc_util.c: Likewise.
21061         * sunrpc/rpc_util.h: Likewise.
21062         * sunrpc/rpcinfo.c: Likewise.
21063         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21064         * sunrpc/rpcsvc/key_prot.x: Likewise.
21065         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21066         * sunrpc/rpcsvc/mount.x: Likewise.
21067         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21068         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21069         * sunrpc/rpcsvc/rex.x: Likewise.
21070         * sunrpc/rpcsvc/rstat.x: Likewise.
21071         * sunrpc/rpcsvc/rusers.x: Likewise.
21072         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21073         * sunrpc/rpcsvc/spray.x: Likewise.
21074         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21075         * sunrpc/rtime.c: Likewise.
21076         * sunrpc/svc.c: Likewise.
21077         * sunrpc/svc_auth.c: Likewise.
21078         * sunrpc/svc_authux.c: Likewise.
21079         * sunrpc/svc_raw.c: Likewise.
21080         * sunrpc/svc_run.c: Likewise.
21081         * sunrpc/svc_simple.c: Likewise.
21082         * sunrpc/svc_tcp.c: Likewise.
21083         * sunrpc/svc_udp.c: Likewise.
21084         * sunrpc/svc_unix.c: Likewise.
21085         * sunrpc/svcauth_des.c: Likewise.
21086         * sunrpc/xcrypt.c: Likewise.
21087         * sunrpc/xdr.c: Likewise.
21088         * sunrpc/xdr_array.c: Likewise.
21089         * sunrpc/xdr_float.c: Likewise.
21090         * sunrpc/xdr_mem.c: Likewise.
21091         * sunrpc/xdr_rec.c: Likewise.
21092         * sunrpc/xdr_ref.c: Likewise.
21093         * sunrpc/xdr_sizeof.c: Likewise.
21094         * sunrpc/xdr_stdio.c: Likewise.
21095
21096         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21097         handling.
21098
21099 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21100
21101         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21102
21103 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21104
21105         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21106         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21107         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21108         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21109         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21110         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21111         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21112         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21113         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21114         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21115         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21116         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21117         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21118         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21119
21120 2010-07-26  Anton Blanchard  <anton@samba.org>
21121
21122         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21123         * malloc/arena.c (heap_trim): Likewise.
21124
21125 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21126
21127         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21128         here.  Not...
21129         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21130         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21131
21132 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21133
21134         * sysdeps/i386/elf/Makefile: New file.
21135
21136 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21137
21138         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21139         from fanotify_init.
21140         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21141         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21142
21143 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21144
21145         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21146         of strncasecmp_l.
21147         * sysdeps/multiarch/strcmp.S: Likewise.
21148
21149 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21150
21151         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21152         strncase_l-nonascii.
21153         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21154         Add strncase_l-ssse3.
21155         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21156         * sysdeps/x86_64/strcmp.S: Likewise.
21157         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21158         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21159         * sysdeps/x86_64/strncase.S: New file.
21160         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21161         * sysdeps/x86_64/strncase_l.S: New file.
21162         * string/Makefile (strop-tests): Add strncasecmp.
21163         * string/test-strncasecmp.c: New file.
21164
21165         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21166         warning.
21167
21168         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21169         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21170
21171 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21172
21173         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21174
21175 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21176
21177         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21178         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21179         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21180
21181 2010-05-01  Alan Modra  <amodra@gmail.com>
21182
21183         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21184         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21185         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21186         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21187         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21188         tidying.  Don't tail-call __sigjmp_save for static lib.
21189         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21190         save location.
21191         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21192         (CALL_MCOUNT): Add eh info, and nop after bl.
21193         (TAIL_CALL_SYSCALL_ERROR): New macro.
21194         (PSEUDO_RET): Use it.
21195         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21196         Correct save location of integer regs and cr.
21197         (_dl_profile_resolve): Correct cr save location.  Delete nops
21198         after bl when SHARED.  Reduce cfi size a little by better
21199         placement of cfi directives.
21200         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21201         make a stack frame.  Instead use parm save area as a temp.
21202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21203         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21205         Don't make a stack frame for parent, use parm save area.
21206         Increase child stack frame to 112 bytes.  Don't save unused reg,
21207         and adjust reg usage.  Set up cfi on error recovery and
21208         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21210         (__makecontext): Add dummy nop after jump to exit.
21211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21212         Use correct parm save area and cr save, reduce stack frame.
21213         Correct cfi for possible PSEUDO_RET frame setup.
21214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21215         Branch to local label emitted by PSEUDO_RET rather than
21216         __syscall_error.
21217
21218 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21219
21220         [BZ #11904]
21221         * locale/programs/locale.c (print_assignment): New function.
21222         (show_locale_vars): Use it.
21223
21224 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21225
21226         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21227         field.
21228         (struct statfs64): Likewise.
21229         (_STATFS_F_FLAGS): Define.
21230         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21231         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21232         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21233         (ST_VALID): Define locally.
21234         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21235         __statvfs_getflags, use the provided value.
21236         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21237         __ASSUME_STATFS_F_FLAGS.
21238
21239         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21240
21241         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21242         Add sys/fanotify.h.
21243         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21244         fanotify_mask for GLIBC_2.13.
21245         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21246         fanotify_init and fanotify_mark.
21247         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21248         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21249
21250         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21251         Add prlimit.
21252         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21253         prlimit64 for GLIBC_2.13.
21254         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21255         prlimit64.
21256         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21257         syscall.
21258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21259         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21260         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21261         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21262         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21263         add prlimit alias.
21264         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21265
21266         [BZ #11903]
21267         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21268         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21269
21270         * nss/Makefile: Add rules to build and run tst-nss-test1.
21271         * shlib-versions: Add entry for libnss_test1.
21272         * nss/nss_test1.c: New file.
21273         * nss/tst-nss-test1.c: New file.
21274
21275         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21276         (__nss_configure_lookup): Set appropriate entry in
21277         __nss_configure_lookup to true.
21278         * nss/nsswitch.h: Define enum with indeces of databases in
21279         databases and __nss_database_custom arrays.  Declare
21280         __nss_database_custom.
21281         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21282         to avoid using nscd when custom rules are installed.
21283         * nss/getXXbyYY_r.c: Likewise.
21284         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21285
21286         * nss/nss_files/files-parse.c: Whitespace fixes.
21287
21288 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21289
21290         [BZ #11883]
21291         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
21292         * posix/fnmatch_loop.c: Likewise.
21293
21294 2010-07-17  Andi Kleen  <ak@linux.intel.com>
21295
21296         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
21297         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
21298         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
21299         * Versions.def [GLIBC_2.13]: Add.
21300
21301 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
21302
21303         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21304         Also fail if tpwd after pwuid call is NULL.
21305
21306 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21307
21308         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
21309         when converting to ms.
21310
21311 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21312
21313         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
21314         EOPNOTSUPP errors with ENOTTY.
21315         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
21316         EOPNOTSUPP errors with ENOTTY.
21317
21318 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
21319
21320         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21321         Add strcasecmp_l-ssse3.
21322         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
21323         strcasecmp.
21324         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
21325         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
21326         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
21327
21328 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
21329
21330         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
21331
21332         * string/Makefile (strop-tests): Add strcasecmp.
21333         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21334         strcasecmp_l-nonascii.
21335         (gen-as-const-headers): Add locale-defines.sym.
21336         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
21337         * sysdeps/x86_64/strcasecmp.S: New file.
21338         * sysdeps/x86_64/strcasecmp_l.S: New file.
21339         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
21340         * sysdeps/x86_64/locale-defines.sym: New file.
21341         * string/test-strcasecmp.c: New file.
21342
21343         * string/test-strcasestr.c: Test both ends of the range of characters.
21344         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
21345
21346 2010-07-29  Roland McGrath  <roland@redhat.com>
21347
21348         [BZ #11856]
21349         * manual/locale.texi (Yes-or-No Questions): Fix example code.
21350
21351 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
21352
21353         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
21354         for ld.so.
21355
21356 2010-07-27  Andreas Schwab  <schwab@redhat.com>
21357
21358         * manual/memory.texi (Malloc Tunable Parameters): Document
21359         M_PERTURB.
21360
21361 2010-07-26  Roland McGrath  <roland@redhat.com>
21362
21363         [BZ #11840]
21364         * configure.in (-fgnu89-inline check): Set and substitute
21365         gnu89_inline, not libc_cv_gnu89_inline.
21366         * configure: Regenerated.
21367         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
21368
21369 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
21370
21371         * string/test-strnlen.c: New file.
21372         * string/Makefile (strop-tests): Add strnlen.
21373         * string/tester.c (test_strnlen): Add a few more test cases.
21374         * string/tst-strlen.c: Better error reporting.
21375
21376         * sysdeps/x86_64/strnlen.S: New file.
21377
21378 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
21379
21380         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
21381         lower-latency instructions.
21382
21383 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
21384
21385         * string/test-strcasestr.c: New file.
21386         * string/test-strstr.c: New file.
21387         * string/Makefile (strop-tests): Add strstr and strcasestr.
21388         * string/str-two-way.h: Don't undefine MAX.
21389         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
21390
21391 2010-07-21  Andreas Schwab  <schwab@redhat.com>
21392
21393         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21394         strcasestr-nonascii.
21395         (CFLAGS-strcasestr-nonascii.c): Define.
21396         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
21397         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
21398         Remove unused attribute.
21399
21400 2010-07-20  Roland McGrath  <roland@redhat.com>
21401
21402         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
21403         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
21404         ld.so.cache was broken.  With it, there is no way to disable dsocaps
21405         like LD_HWCAP_MASK can disable hwcaps.
21406
21407 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21408
21409         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
21410
21411 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
21412
21413         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
21414         call in strcasestr.
21415         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
21416         __strcasestr_sse42_nonascii.
21417         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
21418         strcasestr-nonascii.c.
21419         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
21420
21421 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
21422
21423         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
21424         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
21425         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
21426         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
21427
21428 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
21429
21430         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
21431         fcntl.
21432
21433 2010-07-06  Andreas Schwab  <schwab@redhat.com>
21434
21435         [BZ #11577]
21436         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
21437         dl_signal_cerror.
21438
21439 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
21440
21441         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
21442         _PC_PIPE_BUF using F_GETPIPE_SZ.
21443
21444 2010-07-05  Roland McGrath  <roland@redhat.com>
21445
21446         * manual/arith.texi (Rounding Functions): Fix rint description
21447         implicit in round description.
21448
21449 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
21450
21451         * elf/Makefile: Fix linking for a few tests to make recent linker
21452         happy.
21453
21454 2010-06-30  Andreas Schwab  <schwab@redhat.com>
21455
21456         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
21457         $(common-objpfx)libc_nonshared.a.
21458
21459 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
21460
21461         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
21462         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
21463         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21464         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21465         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
21466         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
21467         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21468         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
21470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
21471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
21472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
21474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
21476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
21477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
21478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
21479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
21481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
21483         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
21484         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
21485         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
21486         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
21487         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
21488         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
21489         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
21490         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
21491         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
21492         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
21493         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
21494         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
21495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
21496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
21497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
21498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
21499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
21500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
21501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
21502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
21503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
21504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
21505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
21506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
21507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
21508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
21509
21510 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21511
21512         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
21513         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
21514         * string/memmove.c (memmove): Renamed to ...
21515         (MEMMOVE): ...this.  Default to memmove.
21516         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
21517         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
21518         (END_CHK): Define.
21519         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21520         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
21521         mempcpy-ssse3-back memmove-ssse3-back.
21522         * sysdeps/x86_64/multiarch/bcopy.S: New file .
21523         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
21524         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
21525         * sysdeps/x86_64/multiarch/memcpy.S: New file.
21526         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
21527         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
21528         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
21529         * sysdeps/x86_64/multiarch/memmove.c: New file.
21530         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
21531         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
21532         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
21533         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
21534         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
21535         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
21536         Define.
21537         (index_Fast_Copy_Backward): Define.
21538         (HAS_ARCH_FEATURE): Define.
21539         (HAS_FAST_REP_STRING): Define.
21540         (HAS_FAST_COPY_BACKWARD): Define.
21541
21542 2010-06-21  Andreas Schwab  <schwab@redhat.com>
21543
21544         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21545         Restore proper fallback handling.
21546
21547 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
21548
21549         [BZ #11701]
21550         * posix/group_member.c (__group_member): Correct checking loop.
21551
21552         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
21553         OOM in getpwuid_r correctly.  Return error number when the caller
21554         should return, otherwise -1.
21555         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
21556         call returning > 0 value.
21557         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
21558
21559 2010-06-07  Andreas Schwab  <schwab@redhat.com>
21560
21561         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
21562         libc_nonshared.a from targets in modules-names.
21563
21564 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
21565
21566         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
21567         requires it.
21568
21569 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
21570
21571         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
21572         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
21573         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
21574         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
21575
21576 2010-06-02  Andreas Schwab  <schwab@redhat.com>
21577
21578         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
21579
21580 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
21581
21582         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
21583         and F_GETPIPE_SZ.
21584         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
21585         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21586         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21587         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21588         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21589         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
21590
21591 2010-06-14  Roland McGrath  <roland@redhat.com>
21592
21593         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
21594
21595 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
21596
21597         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
21598         __REDIRECT followed by __THROW.
21599         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
21600         * posix/getopt.h (getopt): Likewise.
21601
21602 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21603
21604         * hurd/lookup-at.c (__file_name_lookup_at): Accept
21605         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
21606         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
21607         in AT_FLAGS.
21608         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
21609         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
21610
21611 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
21612
21613         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
21614
21615 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
21616
21617         [BZ #11640]
21618         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21619         Properly check family and model.
21620
21621 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
21622
21623         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
21624
21625 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
21626
21627         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
21628
21629 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
21630
21631         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
21632         symbol reference.
21633
21634 2010-05-19  Andreas Schwab  <schwab@redhat.com>
21635
21636         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
21637         symbol reference.
21638
21639 2010-05-21  Andreas Schwab  <schwab@redhat.com>
21640
21641         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
21642         and internal_recvmmsg.
21643         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
21644         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
21645         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
21646         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
21647
21648         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
21649         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
21650         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
21651
21652 2010-05-20  Andreas Schwab  <schwab@redhat.com>
21653
21654         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
21655
21656 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
21657
21658         POWER7 optimizations.
21659         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
21660         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
21661
21662 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
21663
21664         * version.h: Update for 2.13 development version.
21665
21666 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
21667
21668         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
21669         exceptions.  Return 0.
21670
21671 2010-05-07  Roland McGrath  <roland@redhat.com>
21672
21673         * elf/ldconfig.c (main): Add a const.
21674
21675 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
21676
21677         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21678         (args_options): Add no-idn option.
21679         (ahosts_keys_int): Add idn_flags to ai_flags.
21680         (parse_option): Handle 'i' option to clear idn_flags.
21681
21682         * malloc/malloc.c (_int_free): Possible race in the most recently
21683         added check.  Only act on the data if no current modification
21684         happened.
21685
21686 See ChangeLog.17 for earlier changes.