S/390: Sync AUXV capabilities and archs with kernel
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2
3         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
4         _dl_s390_cap_flags with kernel. Increase string length.
5         (_dl_s390_platforms): Add z196 and zEC12.
6
7 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
8
9         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
10         Change XOPEN21K to XOPEN2K.
11
12 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
13
14         * string/memmove.c: Use memcpy when possible.
15
16 2012-11-06  Andreas Jaeger  <aj@suse.de>
17
18         * po/eo.po: Update from translation team.
19
20 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
21
22         [BZ #14793]
23         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
24         exponent and small x and y exponents, scale x or y up.  Increase
25         by 2 the exponent used in scaling up.
26         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
28         * math/libm-test.inc (fma_test): Add more tests.
29         (fma_test_towardzero): Likewise.
30         (fma_test_downward): Likewise.
31         (fma_test_upward): Likewise.
32
33 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
34
35         [BZ #14805]
36         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
37         fenv_t *.
38
39         [BZ #14801]
40         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
41         namespace for names of struct fields.
42         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
43         fenv_t fields.
44         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
45         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
46
47 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
48
49         [BZ #3665]
50         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
51
52 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
53
54         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55         PTR_DEMANGLE.
56
57         [BZ #5246]
58         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
59         PTR_DEMANGLE.
60
61 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
62
63         [BZ #14797]
64         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
65         definitely overflow as x * y not x * y + z.
66         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
67         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
68         * math/libm-test.inc (fma_test): Add more tests.
69         (fma_test_towardzero): Likewise.
70         (fma_test_downward): Likewise.
71         (fma_test_upward): Likewise.
72
73 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
74
75         [BZ #157]
76
77         * include/stub-tag.h: Remove file.
78         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
79         '#include' of it.
80         * manual/maint.texi (Porting): Don't reference it.
81         * Makerules ($(objpfx)stubs): Likewise.
82         * dirent/closedir.c: Don't include <stub-tag.h>.
83         * dirent/dirfd.c: Likewise.
84         * dirent/fdopendir.c: Likewise.
85         * dirent/getdents.c: Likewise.
86         * dirent/getdents64.c: Likewise.
87         * dirent/opendir.c: Likewise.
88         * dirent/readdir.c: Likewise.
89         * dirent/readdir64.c: Likewise.
90         * dirent/readdir64_r.c: Likewise.
91         * dirent/readdir_r.c: Likewise.
92         * dirent/rewinddir.c: Likewise.
93         * dirent/seekdir.c: Likewise.
94         * dirent/telldir.c: Likewise.
95         * gmon/profil.c: Likewise.
96         * grp/setgroups.c: Likewise.
97         * inet/if_index.c: Likewise.
98         * io/access.c: Likewise.
99         * io/chdir.c: Likewise.
100         * io/chmod.c: Likewise.
101         * io/chown.c: Likewise.
102         * io/close.c: Likewise.
103         * io/dup.c: Likewise.
104         * io/dup2.c: Likewise.
105         * io/dup3.c: Likewise.
106         * io/euidaccess.c: Likewise.
107         * io/faccessat.c: Likewise.
108         * io/fchdir.c: Likewise.
109         * io/fchmod.c: Likewise.
110         * io/fchmodat.c: Likewise.
111         * io/fchown.c: Likewise.
112         * io/fchownat.c: Likewise.
113         * io/fcntl.c: Likewise.
114         * io/flock.c: Likewise.
115         * io/fstatfs.c: Likewise.
116         * io/fstatfs64.c: Likewise.
117         * io/fstatvfs.c: Likewise.
118         * io/fstatvfs64.c: Likewise.
119         * io/futimens.c: Likewise.
120         * io/fxstat.c: Likewise.
121         * io/fxstat64.c: Likewise.
122         * io/fxstatat.c: Likewise.
123         * io/fxstatat64.c: Likewise.
124         * io/getcwd.c: Likewise.
125         * io/isatty.c: Likewise.
126         * io/lchmod.c: Likewise.
127         * io/lchown.c: Likewise.
128         * io/link.c: Likewise.
129         * io/linkat.c: Likewise.
130         * io/lseek.c: Likewise.
131         * io/lseek64.c: Likewise.
132         * io/lxstat64.c: Likewise.
133         * io/mkdir.c: Likewise.
134         * io/mkdirat.c: Likewise.
135         * io/mkfifo.c: Likewise.
136         * io/mkfifoat.c: Likewise.
137         * io/open.c: Likewise.
138         * io/open64.c: Likewise.
139         * io/openat.c: Likewise.
140         * io/openat64.c: Likewise.
141         * io/pipe.c: Likewise.
142         * io/pipe2.c: Likewise.
143         * io/poll.c: Likewise.
144         * io/posix_fadvise.c: Likewise.
145         * io/posix_fadvise64.c: Likewise.
146         * io/posix_fallocate.c: Likewise.
147         * io/posix_fallocate64.c: Likewise.
148         * io/read.c: Likewise.
149         * io/readlink.c: Likewise.
150         * io/readlinkat.c: Likewise.
151         * io/rmdir.c: Likewise.
152         * io/sendfile.c: Likewise.
153         * io/sendfile64.c: Likewise.
154         * io/statfs.c: Likewise.
155         * io/statfs64.c: Likewise.
156         * io/statvfs.c: Likewise.
157         * io/statvfs64.c: Likewise.
158         * io/symlink.c: Likewise.
159         * io/symlinkat.c: Likewise.
160         * io/ttyname.c: Likewise.
161         * io/ttyname_r.c: Likewise.
162         * io/umask.c: Likewise.
163         * io/unlink.c: Likewise.
164         * io/unlinkat.c: Likewise.
165         * io/utime.c: Likewise.
166         * io/utimensat.c: Likewise.
167         * io/write.c: Likewise.
168         * io/xmknod.c: Likewise.
169         * io/xmknodat.c: Likewise.
170         * io/xstat.c: Likewise.
171         * io/xstat64.c: Likewise.
172         * login/getpt.c: Likewise.
173         * login/grantpt.c: Likewise.
174         * login/unlockpt.c: Likewise.
175         * math/e_acoshl.c: Likewise.
176         * math/e_acosl.c: Likewise.
177         * math/e_asinl.c: Likewise.
178         * math/e_atan2l.c: Likewise.
179         * math/e_atanhl.c: Likewise.
180         * math/e_coshl.c: Likewise.
181         * math/e_expl.c: Likewise.
182         * math/e_fmodl.c: Likewise.
183         * math/e_gammal_r.c: Likewise.
184         * math/e_hypotl.c: Likewise.
185         * math/e_j0l.c: Likewise.
186         * math/e_j1l.c: Likewise.
187         * math/e_jnl.c: Likewise.
188         * math/e_lgammal_r.c: Likewise.
189         * math/e_log10l.c: Likewise.
190         * math/e_log2l.c: Likewise.
191         * math/e_logl.c: Likewise.
192         * math/e_powl.c: Likewise.
193         * math/e_rem_pio2l.c: Likewise.
194         * math/e_sinhl.c: Likewise.
195         * math/e_sqrtl.c: Likewise.
196         * math/fclrexcpt.c: Likewise.
197         * math/fedisblxcpt.c: Likewise.
198         * math/feenablxcpt.c: Likewise.
199         * math/fegetenv.c: Likewise.
200         * math/fegetexcept.c: Likewise.
201         * math/fegetround.c: Likewise.
202         * math/feholdexcpt.c: Likewise.
203         * math/fesetenv.c: Likewise.
204         * math/fesetround.c: Likewise.
205         * math/feupdateenv.c: Likewise.
206         * math/fgetexcptflg.c: Likewise.
207         * math/fraiseexcpt.c: Likewise.
208         * math/fsetexcptflg.c: Likewise.
209         * math/ftestexcept.c: Likewise.
210         * math/k_cosl.c: Likewise.
211         * math/k_rem_pio2l.c: Likewise.
212         * math/k_sinl.c: Likewise.
213         * math/k_tanl.c: Likewise.
214         * math/s_asinhl.c: Likewise.
215         * math/s_atanl.c: Likewise.
216         * math/s_cbrtl.c: Likewise.
217         * math/s_erfl.c: Likewise.
218         * math/s_expm1l.c: Likewise.
219         * math/s_log1pl.c: Likewise.
220         * math/s_tanhl.c: Likewise.
221         * misc/acct.c: Likewise.
222         * misc/brk.c: Likewise.
223         * misc/chflags.c: Likewise.
224         * misc/chroot.c: Likewise.
225         * misc/fchflags.c: Likewise.
226         * misc/fgetxattr.c: Likewise.
227         * misc/flistxattr.c: Likewise.
228         * misc/fremovexattr.c: Likewise.
229         * misc/fsetxattr.c: Likewise.
230         * misc/fsync.c: Likewise.
231         * misc/ftruncate.c: Likewise.
232         * misc/futimes.c: Likewise.
233         * misc/futimesat.c: Likewise.
234         * misc/getdomain.c: Likewise.
235         * misc/getdtsz.c: Likewise.
236         * misc/gethostid.c: Likewise.
237         * misc/gethostname.c: Likewise.
238         * misc/getloadavg.c: Likewise.
239         * misc/getpagesize.c: Likewise.
240         * misc/getsysstats.c: Likewise.
241         * misc/getxattr.c: Likewise.
242         * misc/gtty.c: Likewise.
243         * misc/ioctl.c: Likewise.
244         * misc/lgetxattr.c: Likewise.
245         * misc/listxattr.c: Likewise.
246         * misc/llistxattr.c: Likewise.
247         * misc/lremovexattr.c: Likewise.
248         * misc/lsetxattr.c: Likewise.
249         * misc/lutimes.c: Likewise.
250         * misc/madvise.c: Likewise.
251         * misc/mincore.c: Likewise.
252         * misc/mlock.c: Likewise.
253         * misc/mlockall.c: Likewise.
254         * misc/mmap.c: Likewise.
255         * misc/mprotect.c: Likewise.
256         * misc/msync.c: Likewise.
257         * misc/munlock.c: Likewise.
258         * misc/munlockall.c: Likewise.
259         * misc/munmap.c: Likewise.
260         * misc/preadv.c: Likewise.
261         * misc/preadv64.c: Likewise.
262         * misc/ptrace.c: Likewise.
263         * misc/pwritev.c: Likewise.
264         * misc/pwritev64.c: Likewise.
265         * misc/readv.c: Likewise.
266         * misc/reboot.c: Likewise.
267         * misc/remap_file_pages.c: Likewise.
268         * misc/removexattr.c: Likewise.
269         * misc/revoke.c: Likewise.
270         * misc/select.c: Likewise.
271         * misc/setdomain.c: Likewise.
272         * misc/setegid.c: Likewise.
273         * misc/seteuid.c: Likewise.
274         * misc/sethostid.c: Likewise.
275         * misc/sethostname.c: Likewise.
276         * misc/setregid.c: Likewise.
277         * misc/setreuid.c: Likewise.
278         * misc/setxattr.c: Likewise.
279         * misc/sstk.c: Likewise.
280         * misc/stty.c: Likewise.
281         * misc/swapoff.c: Likewise.
282         * misc/swapon.c: Likewise.
283         * misc/sync.c: Likewise.
284         * misc/syncfs.c: Likewise.
285         * misc/syscall.c: Likewise.
286         * misc/truncate.c: Likewise.
287         * misc/ualarm.c: Likewise.
288         * misc/usleep.c: Likewise.
289         * misc/ustat.c: Likewise.
290         * misc/utimes.c: Likewise.
291         * misc/vhangup.c: Likewise.
292         * misc/writev.c: Likewise.
293         * posix/_exit.c: Likewise.
294         * posix/alarm.c: Likewise.
295         * posix/execve.c: Likewise.
296         * posix/fexecve.c: Likewise.
297         * posix/fork.c: Likewise.
298         * posix/fpathconf.c: Likewise.
299         * posix/getaddrinfo.c: Likewise.
300         * posix/getegid.c: Likewise.
301         * posix/geteuid.c: Likewise.
302         * posix/getgid.c: Likewise.
303         * posix/getgroups.c: Likewise.
304         * posix/getlogin.c: Likewise.
305         * posix/getlogin_r.c: Likewise.
306         * posix/getpgid.c: Likewise.
307         * posix/getpid.c: Likewise.
308         * posix/getppid.c: Likewise.
309         * posix/getresgid.c: Likewise.
310         * posix/getresuid.c: Likewise.
311         * posix/getsid.c: Likewise.
312         * posix/getuid.c: Likewise.
313         * posix/glob64.c: Likewise.
314         * posix/nanosleep.c: Likewise.
315         * posix/pathconf.c: Likewise.
316         * posix/pause.c: Likewise.
317         * posix/posix_madvise.c: Likewise.
318         * posix/pread.c: Likewise.
319         * posix/pread64.c: Likewise.
320         * posix/pwrite.c: Likewise.
321         * posix/pwrite64.c: Likewise.
322         * posix/sched_getaffinity.c: Likewise.
323         * posix/sched_getp.c: Likewise.
324         * posix/sched_gets.c: Likewise.
325         * posix/sched_primax.c: Likewise.
326         * posix/sched_primin.c: Likewise.
327         * posix/sched_rr_gi.c: Likewise.
328         * posix/sched_setaffinity.c: Likewise.
329         * posix/sched_setp.c: Likewise.
330         * posix/sched_sets.c: Likewise.
331         * posix/sched_yield.c: Likewise.
332         * posix/setgid.c: Likewise.
333         * posix/setlogin.c: Likewise.
334         * posix/setpgid.c: Likewise.
335         * posix/setresgid.c: Likewise.
336         * posix/setresuid.c: Likewise.
337         * posix/setsid.c: Likewise.
338         * posix/setuid.c: Likewise.
339         * posix/sleep.c: Likewise.
340         * posix/spawni.c: Likewise.
341         * posix/sysconf.c: Likewise.
342         * posix/times.c: Likewise.
343         * posix/wait.c: Likewise.
344         * posix/wait3.c: Likewise.
345         * posix/wait4.c: Likewise.
346         * posix/waitpid.c: Likewise.
347         * resolv/gai_sigqueue.c: Likewise.
348         * resource/getpriority.c: Likewise.
349         * resource/getrlimit.c: Likewise.
350         * resource/getrusage.c: Likewise.
351         * resource/nice.c: Likewise.
352         * resource/setpriority.c: Likewise.
353         * resource/setrlimit.c: Likewise.
354         * resource/ulimit.c: Likewise.
355         * rt/aio_cancel.c: Likewise.
356         * rt/aio_fsync.c: Likewise.
357         * rt/aio_read.c: Likewise.
358         * rt/aio_sigqueue.c: Likewise.
359         * rt/aio_suspend.c: Likewise.
360         * rt/aio_write.c: Likewise.
361         * rt/clock_getres.c: Likewise.
362         * rt/clock_gettime.c: Likewise.
363         * rt/clock_nanosleep.c: Likewise.
364         * rt/clock_settime.c: Likewise.
365         * rt/lio_listio.c: Likewise.
366         * rt/mq_close.c: Likewise.
367         * rt/mq_getattr.c: Likewise.
368         * rt/mq_notify.c: Likewise.
369         * rt/mq_open.c: Likewise.
370         * rt/mq_receive.c: Likewise.
371         * rt/mq_send.c: Likewise.
372         * rt/mq_setattr.c: Likewise.
373         * rt/mq_timedreceive.c: Likewise.
374         * rt/mq_timedsend.c: Likewise.
375         * rt/mq_unlink.c: Likewise.
376         * rt/shm_open.c: Likewise.
377         * rt/shm_unlink.c: Likewise.
378         * rt/timer_create.c: Likewise.
379         * rt/timer_delete.c: Likewise.
380         * rt/timer_getoverr.c: Likewise.
381         * rt/timer_gettime.c: Likewise.
382         * rt/timer_settime.c: Likewise.
383         * setjmp/__longjmp.c: Likewise.
384         * setjmp/setjmp.c: Likewise.
385         * signal/kill.c: Likewise.
386         * signal/killpg.c: Likewise.
387         * signal/raise.c: Likewise.
388         * signal/sigaction.c: Likewise.
389         * signal/sigaltstack.c: Likewise.
390         * signal/sigblock.c: Likewise.
391         * signal/sigignore.c: Likewise.
392         * signal/sigintr.c: Likewise.
393         * signal/signal.c: Likewise.
394         * signal/sigpause.c: Likewise.
395         * signal/sigpending.c: Likewise.
396         * signal/sigqueue.c: Likewise.
397         * signal/sigreturn.c: Likewise.
398         * signal/sigset.c: Likewise.
399         * signal/sigsetmask.c: Likewise.
400         * signal/sigstack.c: Likewise.
401         * signal/sigsuspend.c: Likewise.
402         * signal/sigtimedwait.c: Likewise.
403         * signal/sigvec.c: Likewise.
404         * signal/sigwait.c: Likewise.
405         * signal/sigwaitinfo.c: Likewise.
406         * signal/sysv_signal.c: Likewise.
407         * socket/accept.c: Likewise.
408         * socket/accept4.c: Likewise.
409         * socket/bind.c: Likewise.
410         * socket/connect.c: Likewise.
411         * socket/getpeername.c: Likewise.
412         * socket/getsockname.c: Likewise.
413         * socket/getsockopt.c: Likewise.
414         * socket/isfdtype.c: Likewise.
415         * socket/listen.c: Likewise.
416         * socket/recv.c: Likewise.
417         * socket/recvfrom.c: Likewise.
418         * socket/recvmsg.c: Likewise.
419         * socket/send.c: Likewise.
420         * socket/sendmsg.c: Likewise.
421         * socket/sendto.c: Likewise.
422         * socket/setsockopt.c: Likewise.
423         * socket/shutdown.c: Likewise.
424         * socket/sockatmark.c: Likewise.
425         * socket/socket.c: Likewise.
426         * socket/socketpair.c: Likewise.
427         * stdio-common/ctermid.c: Likewise.
428         * stdio-common/cuserid.c: Likewise.
429         * stdio-common/remove.c: Likewise.
430         * stdio-common/rename.c: Likewise.
431         * stdio-common/renameat.c: Likewise.
432         * stdio-common/tempname.c: Likewise.
433         * stdlib/getcontext.c: Likewise.
434         * stdlib/makecontext.c: Likewise.
435         * stdlib/setcontext.c: Likewise.
436         * stdlib/swapcontext.c: Likewise.
437         * stdlib/system.c: Likewise.
438         * streams/fattach.c: Likewise.
439         * streams/fdetach.c: Likewise.
440         * streams/getmsg.c: Likewise.
441         * streams/getpmsg.c: Likewise.
442         * streams/putmsg.c: Likewise.
443         * streams/putpmsg.c: Likewise.
444         * sysdeps/unix/bsd/getpt.c: Likewise.
445         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
446         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
447         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
449         Likewise.
450         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
451         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
452         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
453         * sysvipc/msgctl.c: Likewise.
454         * sysvipc/msgget.c: Likewise.
455         * sysvipc/msgrcv.c: Likewise.
456         * sysvipc/msgsnd.c: Likewise.
457         * sysvipc/semctl.c: Likewise.
458         * sysvipc/semget.c: Likewise.
459         * sysvipc/semop.c: Likewise.
460         * sysvipc/semtimedop.c: Likewise.
461         * sysvipc/shmat.c: Likewise.
462         * sysvipc/shmctl.c: Likewise.
463         * sysvipc/shmdt.c: Likewise.
464         * sysvipc/shmget.c: Likewise.
465         * termios/tcdrain.c: Likewise.
466         * termios/tcflow.c: Likewise.
467         * termios/tcflush.c: Likewise.
468         * termios/tcgetattr.c: Likewise.
469         * termios/tcgetpgrp.c: Likewise.
470         * termios/tcsendbrk.c: Likewise.
471         * termios/tcsetattr.c: Likewise.
472         * termios/tcsetpgrp.c: Likewise.
473         * time/adjtime.c: Likewise.
474         * time/clock.c: Likewise.
475         * time/getitimer.c: Likewise.
476         * time/gettimeofday.c: Likewise.
477         * time/setitimer.c: Likewise.
478         * time/settimeofday.c: Likewise.
479         * time/stime.c: Likewise.
480         * time/time.c: Likewise.
481
482 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
483
484         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
485         /usr/old/bin.
486
487         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
488         instead of spaces.
489         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
490
491 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
492
493         [BZ #14796]
494         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
495         FE_TONEAREST before applying Dekker multiplication and Knuth
496         addition.  Clear inexact exceptions and check for exact zero
497         results afterwards.
498         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
499         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
500         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
501         * math/libm-test.inc (fma_test): Add more tests.
502         (fma_test_towardzero): Likewise.
503         (fma_test_downward): Likewise.
504         (fma_test_upward): Likewise.
505         * sysdeps/generic/math_private.h (default_libc_fesetround): New
506         function.
507         (libc_fesetround): New macro.
508         (libc_fesetroundf): Likewise.
509         (libc_fesetroundl): Likewise.
510         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
511         function.
512         (libc_fesetround_387): Likewise.
513         (libc_fesetroundf): New macro.
514         (libc_fesetround): Likewise.
515         (libc_fesetroundl): Likewise.
516         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
517         function.
518         (libc_fesetroundf): New macro.
519         (libc_fesetround): Likewise.
520         (libc_fesetroundl): Likewise.
521         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
522         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
523         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
524         libm_hidden_ver.
525         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
526         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
527         libm_hidden_def.
528         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
529         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
530         libm_hidden_ver.
531         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
532         libm_hidden_def.
533
534         [BZ #3439]
535         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
536         integer constant usable in #if and use that to give value to enum
537         constant.
538         (FE_DIVBYZERO): Likewise.
539         (FE_UNDERFLOW): Likewise.
540         (FE_OVERFLOW): Likewise.
541         (FE_INVALID): Likewise.
542         (FE_INVALID_SNAN): Likewise.
543         (FE_INVALID_ISI): Likewise.
544         (FE_INVALID_IDI): Likewise.
545         (FE_INVALID_ZDZ): Likewise.
546         (FE_INVALID_IMZ): Likewise.
547         (FE_INVALID_COMPARE): Likewise.
548         (FE_INVALID_SOFTWARE): Likewise.
549         (FE_INVALID_SQRT): Likewise.
550         (FE_INVALID_INTEGER_CONVERSION): Likewise.
551         (FE_TONEAREST): Likewise.
552         (FE_TOWARDZERO): Likewise.
553         (FE_UPWARD): Likewise.
554         (FE_DOWNWARD): Likewise.
555         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
556         (FE_DIVBYZERO): Likewise.
557         (FE_OVERFLOW): Likewise.
558         (FE_UNDERFLOW): Likewise.
559         (FE_INEXACT): Likewise.
560         (FE_TONEAREST): Likewise.
561         (FE_DOWNWARD): Likewise.
562         (FE_UPWARD): Likewise.
563         (FE_TOWARDZERO): Likewise.
564         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
565         (FE_UNDERFLOW): Likewise.
566         (FE_OVERFLOW): Likewise.
567         (FE_DIVBYZERO): Likewise.
568         (FE_INVALID): Likewise.
569         (FE_TONEAREST): Likewise.
570         (FE_TOWARDZERO): Likewise.
571         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
572         (FE_OVERFLOW): Likewise.
573         (FE_UNDERFLOW): Likewise.
574         (FE_DIVBYZERO): Likewise.
575         (FE_INEXACT): Likewise.
576         (FE_TONEAREST): Likewise.
577         (FE_TOWARDZERO): Likewise.
578         (FE_UPWARD): Likewise.
579         (FE_DOWNWARD): Likewise.
580         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
581         (FE_DIVBYZERO): Likewise.
582         (FE_OVERFLOW): Likewise.
583         (FE_UNDERFLOW): Likewise.
584         (FE_INEXACT): Likewise.
585         (FE_TONEAREST): Likewise.
586         (FE_DOWNWARD): Likewise.
587         (FE_UPWARD): Likewise.
588         (FE_TOWARDZERO): Likewise.
589
590 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
591
592         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
593
594 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
595
596         * scripts/cross-test-ssh.sh (command): Use newlines to separate
597         commands.  Quote $PWD.
598         (blacklist_exports): Don't use remove_newlines.  Replace "declare
599         -x" by "export".
600         (remove_newlines): Remove.
601
602 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
603
604         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
605         * stdlib/stdlib.h (atof): Moved to ...
606         * include/bits/stdlib-float.h: Here.  New file.
607         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
608         * stdlib/bits/stdlib-float.h: New file.
609         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
610         -mno-sse -mno-mmx.
611         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
612         <xmmintrin.h>.
613
614 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
615
616         * conform/conformtest.pl (@headers): Add fenv.h.
617         * conform/data/fenv.h-data: New file.
618         * include/fenv.h [_ISOMAC]: Disable all contents of file except
619         include of <math/fenv.h>.
620
621         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
622         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
623         && !UNIX98].  Enables tests for XOPEN2K8.
624         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
625         POSIX2008]: Likewise.
626
627         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
628         (struct rusage): Do not expect type or its members.
629
630         [BZ #3439]
631         * math/math.h (FP_NAN): Define macro to integer constant usable in
632         #if and use that to give value to enum constant.
633         (FP_INFINITE): Likewise.
634         (FP_ZERO): Likewise.
635         (FP_SUBNORMAL): Likewise.
636         (FP_NORMAL): Likewise.
637
638 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
639
640         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
641         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
642         arguments.
643
644 2012-11-02  Roland McGrath  <roland@hack.frob.com>
645
646         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
647         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
648         autoconf-time if not.
649         * configure.in: Remove AC_PREREQ.
650
651 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
652
653         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
654         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
655         of the internal implementation.
656
657 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
658
659         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
660         except include of <misc/sys/syslog.h>.
661
662 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
663
664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
665         function returns with a NULL context exit with zero.
666
667 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
668
669         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
670
671 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
672
673         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
674         (run_program_cmd): This.
675         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
676         (tst_langinfo): New variable.  Use it.
677
678 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
679
680         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
681         floating point opcodes.
682
683 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
684
685         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
686         variable.
687
688         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
689
690         * sysdeps/mach/hurd/powerpc: Remove directory.
691         * sysdeps/mach/powerpc: Likewise.
692
693 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
694
695         * scripts/check-local-headers.sh: Ignore c++ headers.
696
697 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
698
699         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
700         __libc_cleanup_region_start argument.
701
702 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
703
704         [BZ #14784]
705         [BZ #14785]
706         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
707         x * y using scaling, not as x * y + z.
708         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
709         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
710         * math/libm-test.inc (fma_test): Add more tests.
711         (fma_test_towardzero): Likewise.
712         (fma_test_downward): Likewise.
713         (fma_test_upward): Likewise.
714
715 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
716
717         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
718
719 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
720
721         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
722         New variable.
723
724 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
725
726         * rt/tst-shm.c (worker): Correct checking for mmap failure.
727
728 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
729
730         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
731         Fix sort order.
732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
733         Likewise.
734
735 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
736
737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
738         Fix the order of the list for glibc 2.17.
739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
740         Likewise.
741
742 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
743
744         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
745
746 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
747
748         [BZ #14610]
749         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
750         for low part of x being zero before using __atanl (y).
751         * math/libm-test.inc (atan2_test): Add another test.
752
753         * manual/install.texi (Configuring and compiling): Document
754         general use of test-wrapper and test-wrapper-env.
755         * INSTALL: Regenerated.
756
757         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
758         (__fma): Do not extract and scale down low bits on after-rounding
759         systems when result rounded to normal precision would have normal
760         exponent.
761         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
762         (__fmal): Do not extract and scale down low bits on after-rounding
763         systems when result rounded to normal precision would have normal
764         exponent.
765         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
766         (__fmal): Do not extract and scale down low bits on after-rounding
767         systems when result rounded to normal precision would have normal
768         exponent.
769         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
770         macro.
771         (fma_test): Add more tests.
772         (fma_test_towardzero): Likewise.
773         (fma_test_downward): Likewise.
774         (fma_test_upward): Likewise.
775
776 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
777
778         * sysdeps/i386/tininess.h: Renamed to ...
779         * sysdeps/x86/tininess.h: This.
780         * sysdeps/x86_64/tininess.h: Removed.
781
782 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
783
784         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
785         input.  Use $(build-program-cmd).
786         ($(objpfx)tst-array1-static.out): Likewise.
787         ($(objpfx)tst-array2.out): Likewise.
788         ($(objpfx)tst-array3.out): Likewise.
789         ($(objpfx)tst-array4.out): Likewise.
790         ($(objpfx)tst-array5.out): Likewise.
791         ($(objpfx)tst-array5-static.out): Likewise.
792
793 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
794
795         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
796         if defined.
797
798         * nss/nsswitch.h (nss_interface_function): Provide new
799         macro for use with NSS functions.
800         * grp/initgroups.c: Use new macro.
801         * nss/getXXbyYY.c: Likewise.
802         * nss/getXXbyYY_r.c: Likewise.
803         * nss/getXXent.c: Likewise.
804         * nss/getXXent_r.c: Likewise.
805         * sysdeps/posix/getaddrinfo.c: Likewise.
806
807 2012-10-30  Andreas Jaeger  <aj@suse.de>
808
809         * po/ru.po: Update Russion translation from translation project.
810
811 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
812
813         [BZ #14152]
814         [BZ #14783]
815         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
816         result and shift together with sticky bit instead of replicating
817         round-to-nearest rounding.
818         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
819         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
820         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
821         missing underflow exceptions.
822         (fma_test_towardzero): Add more tests.
823         (fma_test_downward): Likewise.
824         (fma_test_upward): Likewise.
825
826         [BZ #14047]
827         * sysdeps/generic/tininess.h: New file.
828         * sysdeps/i386/tininess.h: Likewise.
829         * sysdeps/sh/tininess.h: Likewise.
830         * sysdeps/x86_64/tininess.h: Likewise.
831         * stdlib/tst-strtod-underflow.c: Likewise.
832         * stdlib/tst-tininess.c: Likewise.
833         * stdlib/strtod_l.c: Include <tininess.h>.
834         (round_and_return): Do not set errno for exact underflow cases.
835         Force an underflow exception when setting errno for underflow.
836         Determine underflow based on rounding to normal precision if
837         TININESS_AFTER_ROUNDING.
838         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
839         ERANGE for exact underflow cases.
840         * stdlib/Makefile (tests): Add tst-tininess and
841         tst-strtod-underflow.
842         ($(objpfx)tst-tininess): Use $(link-libm).
843         ($(objpfx)tst-strtod-underflow): Likewise.
844
845 2012-10-30  Andreas Jaeger  <aj@suse.de>
846
847         [BZ#14767]
848         * elf/Makefile (tests): Remove conditional for have-initfini-array
849         since this is now always required and the variable does not exist
850         anymore.
851         (tests-static): Likewise.
852         (modules-names): Likewise.
853
854         * po/eo.po: Add Esperanto translation from translation project.
855
856         * elf/tst-array1.c (fini_array): Make writeable so that it can be
857         merged with constructor/destructor.
858         (init_array): Likewise.
859         * elf/tst-array2dep.c (fini_array): Likewise.
860         (init_array): Likewise.
861
862 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
863
864         * manual/message.texi: Delete @cartouche tags.
865
866 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
867
868         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
869         EOPNOTSUPP.
870         * sysdeps/mach/hurd/fsync.c: Likewise.
871
872         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
873         [_POSIX_REALTIME_SIGNALS]: Change condition to
874         [_POSIX_REALTIME_SIGNALS > 0].
875
876 2012-10-27  Andreas Jaeger  <aj@suse.de>
877
878         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
879         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
880         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
881         [__WORDSIZE != 64]: Likewise.
882
883 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
884
885         *  iconvdata/tst-table.sh: Remove ${SHELL}.
886         *  iconvdata/tst-tables.sh: Likewise.
887
888 2012-10-25  David S. Miller  <davem@davemloft.net>
889
890         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
891         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
892         of strtoull.
893
894         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
895         ifunc-impl-list.c
896         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
897         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
898         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
899         file.
900
901 2012-10-25  Roland McGrath  <roland@hack.frob.com>
902
903         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
904         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
905         __getdirentries.
906
907 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
908             Jim Blandy  <jimb@codesourcery.com>
909
910         * scripts/cross-test-ssh.sh: New file.
911         * manual/install.texi (Configuring and compiling): Document use of
912         cross-test-ssh.sh.
913         * INSTALL: Regenerated.
914
915 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
916
917         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
918         EOPNOTSUPP.
919
920 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
921
922         * Makeconfig (run-program-prefix): Fix comment.
923
924 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
925             Jim Blandy  <jimb@codesourcery.com>
926
927         * Makeconfig (test-wrapper): New variable,
928         (test-wrapper-env): Likewise.
929         [$(cross-compiling) = yes && $(test-wrapper) != ""]
930         (run-built-tests): Define to yes.
931         (run-program-prefix): Use $(test-wrapper).
932         (built-program-cmd): Likewise.
933         * Rules (make-test-out): Use $(test-wrapper-env) and
934         $(host-built-program-cmd).
935         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
936         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
937         tst-pathopt.sh.
938         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
939         $(test-wrapper-env) to tst-rtld-load-self.sh.
940         ($(objpfx)order2.out): Use $(test-wrapper).
941         ($(objpfx)tst-initorder.out): Likewise.
942         ($(objpfx)tst-initorder2.out): Likewise.
943         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
944         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
945         (test_wrapper_env): New variable.  Use it to run ld.so.
946         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
947         Use it to run ld.so.
948         (test_wrapper_env): Likewise.
949         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
950         $(test-wrapper) to run-iconv-test.sh.
951         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
952         (ICONV): Use $test_wrapper.
953         * posix/Makefile ($(objpfx)globtest.out): Pass
954         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
955         globtest.sh, not $(run-program-prefix).
956         * posix/globtest.sh (run_via_rtld_prefix): New variable.
957         (test_wrapper): Likewise.
958         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
959         set together with run_via_rtld_prefix.
960         (run_program_prefix): Define in terms of test_wrapper and
961         run_via_rtld_prefix.
962
963 2012-10-24  Roland McGrath  <roland@hack.frob.com>
964
965         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
966         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
967         Targets removed.
968
969         [BZ #14743]
970         * include/time.h: Remove librt_hidden_proto (clock_gettime).
971         Declare __clock_getres, __clock_gettime, __clock_settime,
972         __clock_nanosleep, and __clock_getcpuclockid.
973         * rt/clock_gettime.c: Define __clock_gettime as an alias.
974         Remove librt_hidden_def (clock_gettime).
975         * sysdeps/unix/clock_gettime.c: Likewise.
976         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
977         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
978         * rt/clock_getres.c: Define __clock_getres as an alias.
979         * sysdeps/posix/clock_getres.c: Likewise.
980         * rt/clock_settime.c: Define __clock_settime as an alias.
981         * sysdeps/unix/clock_settime.c: Likewise.
982         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
983         * sysdeps/unix/clock_nanosleep.c: Likewise.
984         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
985         * rt/clock-compat.c: New file.
986         * rt/Makefile (librt-routines): Add clock-compat and move
987         $(clock-routines) to ...
988         (routines): ... here, new variable.
989         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
990         Don't add get_clockfreq here.
991         * rt/Versions (libc: GLIBC_2.17): New version set.
992         Add clock_* symbols here.
993         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
994         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
995         (GLIBC_2.17): Add clock_* symbols.
996         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
997         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
998         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1000         Likewise.
1001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1002         Likewise.
1003         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1004         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1005         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1006         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1007         * NEWS: Mention the move.
1008
1009         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1010         Use __open, __read, __close rather than their public counterparts.
1011         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1012         (__get_clockfreq_via_cpuinfo): Likewise.
1013         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1014         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1015
1016         * config.h.in (HAVE_IFUNC): New #undef.
1017         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1018         was successful.
1019         * configure: Regenerated.
1020
1021 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1022
1023         * configure.in: Move READELF check to start of file.
1024         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1025         libc_cv_asm_gnu_indirect_function in the process.
1026         * configure: Regenerated.
1027
1028 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1029
1030         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1031         send the output to /dev/null.
1032         (libc_cv_cc_with_libunwind): Likewise.
1033         (libc_cv_as_noexecstack): Likewise.
1034         * configure: Regenerate.
1035
1036 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1037
1038         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1039
1040         * posix/globtest.sh (TMPDIR): Do not set.
1041         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1042         (testout): Likewise.
1043
1044 2012-10-24  Andreas Jaeger  <aj@suse.de>
1045
1046         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1047         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1048         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1049         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1050         posix_fadvise64, posix_fallocate64.
1051
1052         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1053         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1054         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1055         Likewise.
1056         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1057         Likewise.
1058         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1059
1060         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1061         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1062         <bits/fcntl-linux.h>.
1063         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1064
1065         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1066         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1067         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1068         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1069         [__WORDSIZE != 64]: Likewise.
1070
1071 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1072
1073         * Makeconfig (run-built-tests): New variable.
1074         * Rules [$(cross-compiling) = yes]: Change condition to
1075         [$(run-built-tests) = no].
1076         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1077         to [$(run-built-tests) = yes].
1078         * elf/Makefile [$(cross-compiling) = no]: Likewise
1079         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1080         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1081         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1082         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1083         * io/Makefile [$(cross-compiling) = no]: Likewise.
1084         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1085         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1086         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1087         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1088         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1089         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1090         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1091         * string/Makefile [$(cross-compiling) = no]: Likewise.
1092
1093         * posix/Makefile ($(objpfx)globtest.out): Pass
1094         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1095         $(rtld-installed-name).
1096         * posix/globtest.sh (elf_objpfx): Remove variable.
1097         (rtld_installed_name): Likewise.
1098         (library_path): Likewise.
1099         (run_program_prefix): New variable.  Use for running globtest
1100         binary.
1101
1102 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1103             Joseph Myers  <joseph@codesourcery.com>
1104
1105         * Makeconfig (host-built-program-cmd): New variable.
1106         * elf/Makefile (tst-stackguard1-ARGS): Use
1107         $(host-built-program-cmd).
1108         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1109         (tst-spawn-ARGS): Likewise.
1110         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1111
1112 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1113             Jim Blandy  <jimb@codesourcery.com>
1114
1115         * Makeconfig (run-via-rtld-prefix): New variable.
1116         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1117         (built-program-cmd): Likewise.
1118
1119 2012-10-22  Andreas Jaeger  <aj@suse.de>
1120
1121         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1122         __O_RSYNC if it exists, otherwise to O_SYNC.
1123
1124 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1125             Joseph Myers  <joseph@codesourcery.com>
1126
1127         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1128         /dev/null.
1129         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1130         from /dev/null
1131         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1132         /dev/null.
1133
1134 2012-10-22  Andreas Jaeger  <aj@suse.de>
1135
1136         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1137         Define always.
1138         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1139
1140         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1141         bits/fcntl-linux.h.
1142
1143         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1144         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1145
1146         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1147         to __O_LARGEFILE.
1148         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1149         to __O_LARGEFILE.
1150
1151 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1152             Joseph Myers  <joseph@codesourcery.com>
1153
1154         * config.make.in (NM): New variable.
1155
1156 2012-10-21  Andreas Jaeger  <aj@suse.de>
1157
1158         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1159         definitions and declarations that are provided by
1160         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1161
1162 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1163
1164         [BZ #14683]
1165         * elf/Makefile (tests-static): Add tst-leaks1-static.
1166         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1167         ($(objpfx)tst-leaks1-static): New rule.
1168         ($(objpfx)tst-leaks1-static-mem): Likewise.
1169         (tst-leaks1-static-ENV): New macro.
1170         * elf/dl-open.c (dl_open_worker): Check the main application
1171         only if SHARED is defined.
1172         * elf/tst-leaks1-static.c: New file.
1173
1174 2012-10-20  Andreas Jaeger  <aj@suse.de>
1175
1176         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1177         generic values for Linux.
1178         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1179         and declarations that are provided by <bits/fcntl-linux.h> and
1180         include <bits/fcntl-linux.h>.
1181         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1182         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1183
1184 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1185
1186         * io/fcntl.h: Move include of <bits/types.h> to the top and
1187         include it unconditionally.
1188
1189 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1190
1191         * wcsmbs/Makefile (tests-ifunc): New variable.
1192         (tests): Add $(tests-ifunc).
1193         * wcsmbs/test-wcschr-ifunc.c: New file.
1194         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1195         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1196         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1197         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1198         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1199
1200         * string/Makefile (tests-ifunc): New variable.
1201         (tests): Add $(tests-ifunc).
1202         * string/test-memccpy.c (TEST_NAME): New macro.
1203         * string/test-memchr.c (TEST_NAME): Likewise.
1204         * string/test-memcmp.c (TEST_NAME): Likewise.
1205         * string/test-memcpy.c (TEST_NAME): Likewise.
1206         * string/test-memmem.c (TEST_NAME): Likewise.
1207         * string/test-memmove.c (TEST_NAME): Likewise.
1208         * string/test-memset.c (TEST_NAME): Likewise.
1209         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1210         * string/test-stpcpy.c (TEST_NAME): Likewise.
1211         * string/test-stpncpy.c (TEST_NAME): Likewise.
1212         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1213         * string/test-strcasestr.c (TEST_NAME): Likewise.
1214         * string/test-strcat.c (TEST_NAME): Likewise.
1215         * string/test-strchr.c (TEST_NAME): Likewise.
1216         * string/test-strcmp.c(TEST_NAME): Likewise.
1217         * string/test-strcpy.c (TEST_NAME): Likewise.
1218         * string/test-strcspn.c (TEST_NAME): Likewise.
1219         * string/test-strlen.c (TEST_NAME): Likewise.
1220         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1221         * string/test-strncmp.c (TEST_NAME): Likewise.
1222         * string/test-strncpy.c (TEST_NAME): Likewise.
1223         * string/test-strnlen.c (TEST_NAME): Likewise.
1224         * string/test-strpbrk.c (TEST_NAME): Likewise.
1225         * string/test-strrchr.c (TEST_NAME): Likewise.
1226         * string/test-strspn.c (TEST_NAME): Likewise.
1227         * string/test-strstr.c (TEST_NAME): Likewise.
1228         * string/test-bcopy-ifunc.c: New file.
1229         * string/test-bzero-ifunc.c: Likewise.
1230         * string/test-memccpy-ifunc.c: Likewise.
1231         * string/test-memchr-ifunc.c: Likewise.
1232         * string/test-memcmp-ifunc.c: Likewise.
1233         * string/test-memcpy-ifunc.c: Likewise.
1234         * string/test-memmem-ifunc.c: Likewise.
1235         * string/test-memmove-ifunc.c: Likewise.
1236         * string/test-mempcpy-ifunc.c: Likewise.
1237         * string/test-memset-ifunc.c: Likewise.
1238         * string/test-rawmemchr-ifunc.c: Likewise.
1239         * string/test-stpcpy-ifunc.c: Likewise.
1240         * string/test-stpncpy-ifunc.c: Likewise.
1241         * string/test-strcasecmp-ifunc.c: Likewise.
1242         * string/test-strcasestr-ifunc.c: Likewise.
1243         * string/test-strcat-ifunc.c: Likewise.
1244         * string/test-strchr-ifunc.c: Likewise.
1245         * string/test-strchrnul-ifunc.c: Likewise.
1246         * string/test-strcmp-ifunc.c: Likewise.
1247         * string/test-strcpy-ifunc.c: Likewise.
1248         * string/test-strcspn-ifunc.c: Likewise.
1249         * string/test-strlen-ifunc.c: Likewise.
1250         * string/test-strncasecmp-ifunc.c: Likewise.
1251         * string/test-strncat-ifunc.c: Likewise.
1252         * string/test-strncmp-ifunc.c: Likewise.
1253         * string/test-strncpy-ifunc.c: Likewise.
1254         * string/test-strnlen-ifunc.c: Likewise.
1255         * string/test-strpbrk-ifunc.c: Likewise.
1256         * string/test-strrchr-ifunc.c: Likewise.
1257         * string/test-strspn-ifunc.c: Likewise.
1258         * string/test-strstr-ifunc.c: Likewise.
1259
1260         * debug/Makefile (tests-ifunc): New variable.
1261         (tests): Add $(tests-ifunc).
1262         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1263         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1264         * debug/test-stpcpy_chk-ifunc.c: New file.
1265         * debug/test-strcpy_chk-ifunc.c: Likewise.
1266
1267 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1268
1269         [BZ #13601]
1270         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1271         header is not read in.
1272
1273 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1274
1275         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1276         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1277         directly.  Pass built executable to script as
1278         $(built-program-cmd).
1279         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1280         $testprogram without using LD_LIBRARY_PATH and $ldso.
1281
1282         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1283         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1284         $(rtld-installed-name).
1285         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1286         (rtld_installed_name): Likewise.
1287         (library_path): Likewise.
1288         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1289         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1290         $(run-program-prefix) to tst-tables.sh.
1291         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1292         it to run tst-table-from and tst-table-to.
1293         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1294         Pass it to tst-table.sh.
1295         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1296         $(run-program-prefix) to tst-gettext.sh.
1297         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1298         tst-translit.sh.
1299         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1300         tst-gettext2.sh.
1301         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1302         to run tst-gettext.
1303         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1304         to run tst-gettext2.
1305         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1306         to run tst-translit.
1307         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
1308         $(run-program-prefix) to tst-mtrace.sh.
1309         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
1310         to run tst-mtrace.
1311         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
1312         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
1313         $(rtld-installed-name).
1314         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
1315         (rtld_installed_name): Likewise.
1316         (run_program_prefix): New variable.  Use it to run wordexp-test.
1317
1318         * Makeconfig (ARCH): Remove all definitions.
1319         (machine): Likewise.
1320         [ARCH]: Remove conditional code.
1321         [!objdir]: Give error.
1322         [!objdir] (objpfx): Remove.
1323         [!objdir] (common-objpfx): Likewise.
1324         [!objdir] (common-objdir): Likewise.
1325         * configure.in (config_makefile): Remove.  Hardcode Makefile in
1326         AC_CONFIG_FILES call.
1327         * configure: Regenerated.
1328
1329         [BZ #13888]
1330         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
1331         or TMPDIR.
1332         (testout): Likewise.
1333
1334         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
1335         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
1336         $(rtld-installed-name).
1337         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
1338         (rtld_installed_name): Likwise.
1339         (runit): Remove function.
1340         (run_getconf): New variable,  Use it for running getconf binary.
1341
1342 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
1343
1344         [BZ #14716]
1345         * string/test-memmem.c (check_result): New function.
1346         (do_one_test): Use it.
1347         (check1): New function.
1348         (test_main): Use it.
1349
1350 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1351
1352         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
1353
1354 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
1355
1356         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
1357         (_G_LSEEK64): Likewise.
1358         (_G_MMAP64): Likewise.
1359         (_G_FSTAT64): Likewise.
1360         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
1361         (_G_LSEEK64): Likewise.
1362         (_G_MMAP64): Likewise.
1363         (_G_FSTAT64): Likewise.
1364         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
1365         unconditional.  Call __mmap64 directly.
1366         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
1367         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
1368         __lseek64 directly.
1369         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
1370         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
1371         __mmap64 directly.
1372         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
1373         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1374         __lseek64 directly.
1375         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
1376         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1377         __lseek64 directly.
1378         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
1379         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
1380         __lseek64 directly.
1381         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
1382         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
1383         __fxstat64 directly.
1384         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
1385         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
1386         unconditional.
1387         (freopen64) [!_G_OPEN64]: Remove conditional code.
1388         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
1389         unconditional.
1390         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
1391         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
1392         unconditional.
1393         (ftello64) [!_G_LSEEK64]: Remove conditional code.
1394         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
1395         unconditional.
1396         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1397         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
1398         unconditional.
1399         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
1400         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
1401         unconditional.
1402         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1403         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
1404         unconditional.
1405         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1406         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
1407         unconditional.
1408         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1409
1410 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1411
1412         [BZ #12140]
1413         * manual/memory.texi (Malloc Tunable Parameters): Add note
1414         about free list pointers overwriting some perturb bytes.
1415         Wording suggested by Roland McGrath.
1416
1417 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
1418
1419         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
1420         (lgamma_test): Likewise.
1421         (tgamma_test): Likewise.
1422
1423 2012-10-16  Florian Weimer  <fweimer@redhat.com>
1424
1425         [BZ #14700]
1426         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
1427         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
1428
1429 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
1430
1431         * NEWS: Mention BZ #14716.
1432         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
1433         when removing AVAILABLE1_USES_J macro.
1434
1435 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1436
1437         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
1438         (__bswap_64): __uint64_t for unsigned 64-bit int.
1439
1440 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
1441
1442         * include/string.h (memmem): Declare libc hidden alias.
1443         * string/memmem.c (memmem): Define libc hidden alias.
1444         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
1445         __read, __close instead of open, read, close.
1446
1447 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1448
1449         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
1450         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
1451         global and hidden.
1452         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
1453         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
1454         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
1455         Likewise.
1456         (__rawmemchr_sse2): Likewise.
1457         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
1458         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
1459         (__strchr_sse2): Likewise.
1460         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
1461         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
1462         (__strcasecmp_sse2): Likewise.
1463         (__strncasecmp_sse2): Likewise.
1464         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
1465         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
1466         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
1467         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
1468         (__strrchr_sse2): Likewise.
1469         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
1470         ifunc-impl-list.c.
1471         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
1472         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
1473         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1474         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1475         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
1476         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
1477         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1478         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1479         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1480         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
1481         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
1482         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
1483         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
1484         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
1485         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1486         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1487         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1488         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1489         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1490         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
1491         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
1492         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
1493         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
1494         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1495         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
1496         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1497         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1498         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1499         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
1500         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
1501
1502         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
1503         global and hidden.
1504         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
1505         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
1506         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
1507         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
1508         Likewise.
1509         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
1510         Likewise.
1511         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
1512         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
1513         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
1514         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
1515         ifunc-impl-list.c.
1516         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
1517         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
1518         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
1519         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
1520         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
1521         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
1522         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
1523         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
1524         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
1525         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
1526         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
1527         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
1528         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
1529         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
1530         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
1531         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1532         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
1533         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
1534         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
1535         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
1536         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
1537         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
1538         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
1539         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1540         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1541         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
1542         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
1543         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
1544         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
1545         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
1546         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
1547         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
1548         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1549         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
1550         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
1551         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
1552         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
1553         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
1554         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
1555         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
1556         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
1557
1558         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
1559         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
1560         * include/ifunc-impl-list.h: New file.
1561         * misc/ifunc-impl-list.c: Likewise.
1562         * misc/Makefile (routines): Add ifunc-impl-list.
1563         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
1564         * string/test-string.h: Include <ifunc-impl-list.h>.
1565         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
1566         impl_array): New variables.
1567         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
1568         are defined.
1569         (test_init): Call __libc_ifunc_impl_list to initialize
1570         func_list if TEST_IFUNC and TEST_NAME are defined.
1571
1572         * string/Makefile (strop-tests): Add bcopy and bzero.
1573         * string/test-bcopy.c: New file.
1574         * string/test-bzero.c: Likewise.
1575         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
1576         defined.
1577         * string/test-memset.c: Support bzero test if TEST_BZERO is
1578         defined.
1579         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
1580         __libc_memmove.
1581         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
1582         __libc_memset.
1583         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
1584         of memset.
1585
1586 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
1587
1588         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
1589         * configure: Regenerated.
1590
1591         * Makeconfig (+link-static-before-libc): Don't include
1592         $(link-static-libc).
1593
1594         * libio/libio.h (_IO_pos_t): Remove.
1595
1596 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1597
1598         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
1599         McGrath.
1600
1601 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1602
1603         * crypt/crypt-entry.c: Include fips-private.h.
1604         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
1605         * crypt/md5c-test.c (main): Tolerate disabled MD5.
1606         * sysdeps/unix/sysv/linux/fips-private.h: New file.
1607         * sysdeps/generic/fips-private.h: New file, dummy fallback.
1608
1609 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1610
1611         * crypt/crypt-private.h: Include stdbool.h.
1612         (_ufc_setup_salt_r): Return bool.
1613         * crypt/crypt-entry.c: Include errno.h.
1614         (__crypt_r): Return NULL with EINVAL for bad salt.
1615         * crypt/crypt_util.c (bad_for_salt): New.
1616         (_ufc_setup_salt_r): Check that salt is long enough and within
1617         the specified alphabet.
1618         * crypt/badsalttest.c: New file.
1619         * crypt/Makefile (tests): Add it.
1620         ($(objpfx)badsalttest): New.
1621
1622 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1623
1624         * NEWS: Add entry for BZ #14602.
1625
1626 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1627
1628         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
1629         type-generic.
1630         * math/libm-test.inc: Update comment listing what functions and
1631         macros are tested.
1632         (isgreater_test): New function.
1633         (isgreaterequal_test): Likewise.
1634         (isless_test): Likewise.
1635         (islessequal_test): Likewise.
1636         (islessgreater_test): Likewise.
1637         (isunordered_test): Likewise.
1638         (main): Call the new functions.
1639
1640 2012-10-09  Roland McGrath  <roland@hack.frob.com>
1641
1642         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
1643         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
1644         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
1645         * sysdeps/i386/configure: Regenerated.
1646         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
1647         * sysdeps/mach/configure: Regenerated.
1648         * sysdeps/mach/hurd/configure: Regenerated.
1649         * sysdeps/powerpc/configure: Regenerated.
1650         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1651         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1652         * sysdeps/s390/s390-32/configure: Regenerated.
1653         * sysdeps/s390/s390-64/configure: Regenerated.
1654         * sysdeps/sh/configure: Regenerated.
1655         * sysdeps/sparc/configure: Regenerated.
1656         * sysdeps/unix/sysv/linux/configure: Regenerated.
1657         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
1658         * sysdeps/x86_64/configure: Regenerated.
1659
1660         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
1661         defined.  Don't check if MAP is NULL.
1662
1663 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1664
1665         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
1666         (_G_stat64): Likewise.
1667         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
1668         (_G_stat64): Likewise.
1669         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
1670         instead of struct _G_stat64.
1671         * libio/fileops.c (mmap_remap_check): Likewise.
1672         (decide_maybe_mmap): Likewise.
1673         (_IO_new_file_seekoff): Likewise.
1674         (_IO_file_stat): Likewise.
1675         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
1676         _G_off64_t.
1677         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
1678         instead of struct _G_stat64.
1679         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1680
1681 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
1682
1683         [BZ #14602]
1684         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1685         Replace with ...
1686         (CHECK_EOL): New macro.
1687         (two_way_short_needle): Check beginning of haystack for EOL.  Use
1688         CHECK_EOL.
1689         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1690         Replace with CHECK_EOL.
1691         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1692         Replace with CHECK_EOL.
1693
1694 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1695
1696         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1697         type-generic.
1698         * math/libm-test.inc: Update comment listing what functions and
1699         macros are tested.
1700         (finite_test): New function.
1701         (isinf_test): Likewise.
1702         (isnan_test): Likewise.
1703         (fpclassify_test): Test subnormal input.
1704         (isfinite_test): Likewise.
1705         (isnormal_test): Likewise.
1706         (main): Call the new functions.
1707
1708 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1709
1710         [BZ #14660]
1711         * Makerules (%.dynsym): Force C locale when running
1712         $(OBJDUMP) --dynamic-syms.
1713
1714 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1715
1716         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1717         <stdint.h>.
1718
1719 2012-10-06  David S. Miller  <davem@davemloft.net>
1720
1721         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1722         upper 32-bits of the length value in %o2 since we use branch-on-register
1723         tests which consider the entire 64-bit register.
1724
1725 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1726
1727         * string/test-strstr.c (check2): Add a test for page boundary.
1728
1729 2012-10-05  David S. Miller  <davem@davemloft.net>
1730
1731         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1732         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1733         file.
1734         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1735         sysdep_routines.
1736         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1737         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1738         and bzero when HWCAP_SPARC_CRYPTO is present.
1739
1740 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1741
1742         [BZ #14602]
1743         * string/test-strstr.c (check2): New function.
1744         (test_main): Call check2.
1745
1746         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1747         and bug-strchr1.
1748         * string/bug-strcasestr1.c (do_test): Moved to ...
1749         * string/test-strcasestr.c (check1): Here.  New function.
1750         (do_one_test): Break out result checking code into ...
1751         (check_result): This.  New function.
1752         (do_one_test): Call check_result.
1753         (test_main): Call check1.
1754         * string/bug-strchr1.c (do_test): Moved to ...
1755         * string/test-strchr.c (check1): Here.  New function.
1756         (do_one_test): Break out result checking code into ...
1757         (check_result): This.  New function.
1758         (do_one_test): Call check_result.
1759         (test_main): Call check1.
1760         * string/bug-strstr1.c (main): Moved to ...
1761         * string/test-strchr.c (check1): Here.  New function.
1762         (do_one_test): Break out result checking code into ...
1763         (check_result): This.  New function.
1764         (do_one_test): Call check_result.
1765         (test_main): Call check1.
1766         * string/bug-strcasestr1.c: Removed.
1767         * string/bug-strchr1.c: Likewise.
1768         * string/bug-strstr1.c: Likewise.
1769
1770         * elf/Makefile (dl-routines): Add hwcaps.
1771         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1772         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1773         (_dl_important_hwcaps): Moved to ...
1774         * elf/dl-hwcaps.c: Here.  New file.
1775         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1776
1777         [BZ #14557]
1778         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1779         if IS_IN_rtld isn't defined.
1780
1781         * elf/dl-support.c (_dl_sysinfo_map): New.
1782         Include "get-dynamic-info.h" and "setup-vdso.h".
1783         (_dl_non_dynamic_init): Call setup_vdso.
1784         * elf/dynamic-link.h: Don't include <assert.h>.
1785         (elf_get_dynamic_info): Moved to ...
1786         * elf/get-dynamic-info.h: Here.  New file.
1787         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1788         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1789         * elf/setup-vdso.h: Here.  New file.
1790         * elf/rtld.c: Include "setup-vdso.h".
1791         (dl_main): Call setup_vdso.
1792
1793 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1794
1795         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1796         creal in comment listing functions tested.  List finite, isinf,
1797         isnan, isless, islessequal, isgreater, isgreaterequal,
1798         islessgreater, isunordered, lgamma_r and pow10 as functions and
1799         macros not tested.  Mention which functions not tested are aliases
1800         for other functions.  Fix typo.  Note that signs of NaNs are not
1801         tested.
1802
1803         * scripts/config.guess: Update from config.git.
1804         * scripts/config.sub: Likewise.
1805
1806 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1807
1808         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1809         * misc/madvise.c (madvise): Renamed to __madvise.
1810         Make madvise a weak alias.
1811         * include/sys/mman.h: Declare __madvise.
1812         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1813         * sysdeps/unix/syscalls.list
1814         (madvise): Make __madvise the strong name, and madvise a weak alias.
1815         * sysdeps/unix/sysv/linux/syscalls.list
1816         (madvise, mmap): Remove redundant entries.
1817         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1818         * malloc/malloc.c (mtrim): Likewise.
1819         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1820
1821 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1822
1823         * sysdeps/mach/hurd/dl-cache.c: File removed.
1824         * config.h.in (USE_LDCONFIG): New #undef.
1825         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1826         * configure: Regenerated.
1827         * elf/Makefile (dl-routines): Add dl-cache only under
1828         [$(use-ldconfig) = yes].
1829         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1830         cache on [USE_LDCONFIG].
1831         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1832         [USE_LDCONFIG].
1833         * elf/rtld.c (dl_main): Likewise.
1834
1835 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1836
1837         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1838         _SC_LEVEL4_CACHE_LINESIZE.
1839
1840 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1841
1842         * sysdeps/unix/bsd/confstr.h: File removed.
1843
1844 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1845
1846         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1847         sys/sdt-config.h.
1848
1849 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1850
1851         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1852         Make 'mapoff' field ElfW(Off) rather than off_t.
1853
1854 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1855
1856         * nscd/Makefile: Remove nscd-cflags and all its users.
1857         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1858         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1859
1860         [BZ #10631]
1861         * malloc.c (malloc_printerr): Clarify error message.
1862
1863 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1864
1865         [BZ #14648]
1866         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1867         Set bit_FMA_Usable if FMA is supported.
1868         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1869         macro.
1870         (bit_FMA4_Usable): Updated.
1871         (index_FMA_Usable): New macro.
1872         (CPUID_FMA): Likewise
1873         (HAS_FMA): Defined with bit_FMA_Usable.
1874
1875 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1876
1877         * bits/types.h (__swblk_t): Type removed.
1878         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1879         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1880         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1881         (__SWBLK_T_TYPE): Likewise.
1882         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1883         (__SWBLK_T_TYPE): Likewise.
1884         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1885         (__SWBLK_T_TYPE): Likewise.
1886         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1887         (__SWBLK_T_TYPE): Likewise.
1888
1889 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1890             Honza Horak <hhorak@redhat.com>
1891
1892         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1893         (xdr_mapname): Use YPMAXMAP as maxsize.
1894         (xdr_peername): Use YPMAXPEER as maxsize.
1895         (xdr_keydat): Use YPAXRECORD as maxsize.
1896         (xdr_valdat): Use YPMAXRECORD as maxsize.
1897
1898 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1899
1900         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1901
1902         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1903         * csu/init-first.c: ... here.
1904         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1905         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1906         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1907         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1908         * sysdeps/i386/init-first.c: File removed.
1909         * sysdeps/sh/init-first.c: File removed.
1910
1911 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1912
1913         [BZ #14645]
1914         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1915         if x * y might underflow to zero and z is zero.
1916         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1917         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1918         * math/libm-test.inc (min_subnorm_value): New variable.
1919         (fma_test): Add more tests.
1920         (fma_test_towardzero): Likewise.
1921         (fma_test_downward): Likewise
1922         (fma_test_upward): Likewise.
1923         (initialize): Set min_subnorm_value.
1924
1925 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1926
1927         [BZ #14638]
1928         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1929         0 + 0.
1930         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1931         mode for addition resulting in exact zero.
1932         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1933         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1934         exact 0 + 0.
1935         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1936         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1937         * math/libm-test.inc (fma_test): Add more tests.
1938         (fma_test_towardzero): New function.
1939         (fma_test_downward): Likewise.
1940         (fma_test_upward): Likewise.
1941         (main): Call the new functions.
1942
1943 2012-09-28  David S. Miller  <davem@davemloft.net>
1944
1945         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1946
1947 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1948
1949         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1950         instead of SIGALRM.
1951
1952         * sysdeps/gnu/_G_config.h: Moved to ...
1953         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1954         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1955         * sysdeps/generic/_G_config.h: ... here.
1956
1957         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1958
1959         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1960
1961         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1962         Conditionalize target on [libnss_test1.so-version].
1963
1964         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1965
1966         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1967         (elfobjdir): Move out of conditionals.
1968
1969         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1970         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1971         (__nss_lookup_function): Conditionalize label remove_from_tree on
1972         [!DO_STATIC_NSS || SHARED], matching its only use.
1973
1974 2012-09-28  David S. Miller  <davem@davemloft.net>
1975
1976         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1977         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1978         file.
1979         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1980         sysdep_routines.
1981         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1982         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1983         when HWCAP_SPARC_CRYPTO is present.
1984
1985 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1986
1987         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1988
1989 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1990
1991         [BZ #6530]
1992         * stdio-common/vfprintf.c (process_string_arg): Revert
1993         2000-07-22 change.
1994
1995 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1996
1997         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1998         for testcase.
1999         * stdio-common/tst-sprintf.c: Include <locale.h>
2000         (main): Test sprintf's handling of incomplete multibyte
2001         characters.
2002
2003 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2004
2005         * elf/dl-runtime.c (VERSYMIDX): Removed.
2006         * elf/dl-version.c (VERSYMIDX): Likewise.
2007         * elf/do-rel.h (VERSYMIDX): Likewise.
2008         (VALIDX): Likewise.
2009         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2010         * elf/rtld.c (VALIDX): Likewise.
2011         (ADDRIDX): Likewise.
2012         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2013         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2014         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2015         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2016         (VALIDX): Likewise.
2017         (ADDRIDX): Likewise.
2018
2019 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2020
2021         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2022
2023 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2024
2025         [BZ #11438]
2026         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2027         to global scope.
2028         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2029         addresses are in the same scope as 192.0.2/24.
2030         * posix/gai.conf: Document new scope table defaults.
2031
2032 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2033
2034         [BZ #5298]
2035         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2036         for ftell.  Compute offsets from write pointers instead.
2037         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2038
2039 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2040
2041         [BZ #14543]
2042         * libio/Makefile (tests): New test case tst-fseek.
2043         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2044         combination works in wide mode.
2045         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2046         state when the external buffer state changes.
2047
2048 2012-09-27  David S. Miller  <davem@davemloft.net>
2049
2050         [BZ #14376]
2051         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2052         pass reloc->r_addend in as the 'high' argument to
2053         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2054
2055         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2056
2057 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2058
2059         * rt/tst-aio2.c: Include <pthread.h>.
2060         * rt/tst-aio3.c: Likewise.
2061
2062 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2063
2064         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2065
2066 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2067
2068         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2069         contents on [SHARED].
2070
2071 2012-09-26  Marek Polacek  <polacek@redhat.com>
2072
2073         [BZ #14530]
2074         [BZ #13741]
2075         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2076         for C++ and GCC <4.3 as well as for non GCC compilers.
2077
2078 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2079
2080         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2081
2082 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2083
2084         * Makefile.in (all, install): Declare with .PHONY.
2085         Reported by Michael Hope <michael.hope@linaro.org>.
2086
2087 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2088
2089         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2090         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2091         system header.
2092         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2093         Likewise.
2094         (sydep_routines): Add the new and the internal functions.
2095         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2096         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2098         (GLIBC_2.17): Add the new function.
2099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2100         (GLIBC_2.17): Likewise.
2101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2102         (GLIBC_2.17): Likewise.
2103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2104         (GLIBC_2.17): Likewise.
2105         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2106
2107 2012-09-25  Alan Modra  <amodra@gmail.com>
2108
2109         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2110         Add release barrier before setting once_control to say
2111         initialisation is done.  Add hints on lwarx.  Use macro in
2112         place of isync.
2113         (clear_once_control): Add release barrier.
2114
2115 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2116
2117         [BZ #13629]
2118         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2119         specially.
2120         * math/s_clog10.c (__clog10): Likewise.
2121         * math/s_clog10f.c (__clog10f): Likewise.
2122         * math/s_clog10l.c (__clog10l): Likewise.
2123         * math/s_clogf.c (__clogf): Likewise.
2124         * math/s_clogl.c (__clogl): Likewise.
2125         * math/Makefile (libm-calls): Add x2y2m1.
2126         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2127         (__x2y2m1): Likewise.
2128         (__x2y2m1l): Likewise.
2129         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2130         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2131         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2132         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2133         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2134         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2135         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2136         * sysdeps/i386/fpu/libm-test-ulps: Update.
2137         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2138
2139         [BZ #14621]
2140         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2141         int as type of variable DEPTH.
2142         (glob): Use size_t instead of int as type of variables NEWCOUNT
2143         and OLD_PATHC.
2144
2145 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2146
2147         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2148         Add s_sincosf-sse2.
2149         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2150         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2151         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2152         macros for using routine as __sincosf_ia32.
2153         Use macro for function declaration and weak_alias.
2154         * sysdeps/i386/fpu/libm-test-ulps: Update.
2155
2156         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2157         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2158
2159         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2160         subnormal argument.
2161         * math/s_cexpf.c (__cexpf): Likewise.
2162         * math/s_csinf.c (__csinf): Likewise.
2163         * math/s_csinhf.c (__csinhf): Likewise.
2164         * math/s_ctanf.c (__ctanf): Likewise.
2165         * math/s_ctanhf.c (__ctanhf): Likewise.
2166         * math/s_ccosh.c (__ccoshf): Likewise.
2167         * math/s_cexp.c (__cexpl): Likewise.
2168         * math/s_csin.c (__csin): Likewise.
2169         * math/s_csinh.c (__csinh): Likewise.
2170         * math/s_ctan.c (__ctan): Likewise.
2171         * math/s_ctanh.c (ctanh): Likewise.
2172         * math/s_ccoshl.c (__ccoshl): Likewise.
2173         * math/s_cexpl.c (__cexpl): Likewise.
2174         * math/s_csinl.c (__csinl): Likewise.
2175         * math/s_csinhl.c (__csinhl): Likewise.
2176         * math/s_ctanl.c (__ctanl): Likewise.
2177         * math/s_ctanhl.c (__ctanhl): Likewise.
2178
2179 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2180
2181         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2182         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2183         (_IO_off_t): Define to __off_t, not _G_off_t.
2184         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2185         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2186         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2187         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2188         type of __dummy and __dummy2 fields.
2189         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2190         (_G_ssize_t): Likewise.
2191         (_G_off_t): Likewise.
2192         (_G_pid_t): Likewise.
2193         (_G_uid_t): Likewise.
2194         (_G_wchar_t): Likewise.
2195         (_G_wint_t): Likewise.
2196         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2197         (_G_ssize_t): Likewise.
2198         (_G_off_t): Likewise.
2199         (_G_pid_t): Likewise.
2200         (_G_uid_t): Likewise.
2201         (_G_wchar_t): Likewise.
2202         (_G_wint_t): Likewise.
2203         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2204         (_G_ssize_t): Likewise.
2205         (_G_off_t): Likewise.
2206         (_G_pid_t): Likewise.
2207         (_G_uid_t): Likewise.
2208         (_G_wchar_t): Likewise.
2209         (_G_wint_t): Likewise.
2210
2211 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2212
2213         * malloc/arena.c: Include malloc-sysdep.h.
2214         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2215         is sufficient to shrink the heap or an unmap is needed.
2216         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2217         new function check_may_shrink_heap.
2218         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2219         new function check_may_shrink_heap.
2220
2221 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2222
2223         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2224         comments.
2225
2226 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2227
2228         * catgets/test-gencat.sh: Add "set -e".
2229         * elf/tst-pathopt.sh: Likewise.
2230         * grp/tst_fgetgrent.sh: Likewise.
2231         * iconvdata/run-iconv-test.sh: Likewise.
2232         * intl/tst-gettext.sh: Likewise.
2233         * intl/tst-gettext2.sh: Likewise.
2234         * intl/tst-gettext4.sh: Likewise.
2235         * intl/tst-gettext6.sh: Likewise.
2236         * intl/tst-translit.sh: Likewise.
2237         * io/ftwtest-sh: Likewise.
2238         * libio/test-freopen.sh: Likewise.
2239         * malloc/tst-mtrace.sh: Likewise.
2240         * posix/globtest.sh: Likewise.
2241         * posix/tst-getconf.sh: Likewise.
2242         * posix/wordexp-tst.sh: Likewise.
2243         * stdio-common/tst-printf.sh: Likewise.
2244         * stdio-common/tst-unbputc.sh: Likewise.
2245         * stdlib/tst-fmtmsg.sh: Likewise.
2246         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2247         * catgets/Makefile: Do not specify -e option when running
2248         testsuite shell scripts.
2249         * elf/Makefile: Likewise.
2250         * grp/Makefile: Likewise.
2251         * iconvdata/Makefile: Likewise.
2252         * intl/Makefile: Likewise.
2253         * io/Makefile: Likewise.
2254         * libio/Makefile: Likewise.
2255         * malloc/Makefile: Likewise.
2256         * posix/Makefile: Likewise.
2257         * stdio-common/Makefile: Likewise.
2258         * stdlib/Makefile: Likewise.
2259         * sysdeps/x86_64/Makefile: Likewise.
2260
2261         * io/ftwtest-sh: Add copyright header.
2262         * posix/globtest.sh: Likewise.
2263         * posix/tst-getconf.sh: Likewise.
2264         * posix/wordexp-tst.sh: Likewise.
2265         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2266
2267 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2268
2269         [BZ #13679]
2270         * Makeconfig (+link): Defined as $(+link-static) if
2271         $(build-shared) isn't yes.
2272         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2273         isn't yes.
2274         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2275
2276         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2277
2278         [BZ #14562]
2279         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2280         new chunk size with MALLOC_ALIGN_MASK.
2281
2282 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2283
2284         [BZ #5044]
2285         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2286         <rounding-mode.h>.
2287         (__printf_fphex): Determine rounding using get_rounding_mode and
2288         round_away.
2289         * stdio-common/tst-printf-round.c (struct hex_test): New
2290         structure.
2291         (hex_tests): New variable.
2292         (test_hex_in_one_mode): New function.
2293         (do_test): Also run tests for hex float output.
2294
2295 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2296
2297         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2298         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2299         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2300         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2301         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2302         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2303         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2304         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2305
2306 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2307
2308         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
2309         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
2310         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
2311         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
2312
2313 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
2314
2315         [BZ #14579]
2316         * elf/rtld.c (dl_main): Limit the check for self loading to normal
2317         mode only.
2318         * elf/tst-rtld-load-self.sh: New test.
2319         * elf/Makefile: Run it.
2320
2321 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
2322
2323         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
2324         (tst-writev-ENV): Remove.
2325         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
2326
2327 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
2328
2329         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
2330
2331 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
2332
2333         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
2334         unconditional.
2335         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
2336         Likewise.
2337         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
2338         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
2339         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
2340         Likewise.
2341
2342 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2343
2344         [BZ #14587]
2345         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
2346         * config.make.in (have-cpp-asm-debuginfo): Removed.
2347         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
2348         * configure: Regenerated.
2349
2350 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2351
2352         [BZ #5044]
2353         * stdio-common/printf_fp.c: Include <stdbool.h> and
2354         <rounding-mode.h>.
2355         (___printf_fp): Determine rounding using get_rounding_mode and
2356         round_away.
2357         * stdio-common/tst-printf-round.c: New file.
2358         * stdio-common/Makefile (tests): Add tst-printf-round.
2359         (link-libm): New variable.
2360         ($(objpfx)tst-printf-round): Depend in $(link-libm).
2361
2362 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2363
2364         [BZ #14576]
2365         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
2366         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
2367         Likewise.
2368         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
2369         Likewise.
2370
2371 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
2372
2373         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
2374         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2375         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2376         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2377
2378 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
2379
2380         [BZ #14518]
2381         * include/rounding-mode.h: New file.
2382         * sysdeps/generic/get-rounding-mode.h: Likewise.
2383         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
2384         * stdlib/strtod_l.c: Include <rounding-mode.h>.
2385         (MAX_VALUE): New macro.
2386         (MIN_VALUE): Likewise.
2387         (overflow_value): New function.
2388         (underflow_value): Likewise.
2389         (round_and_return): Use overflow_value and underflow_value to
2390         determine return values in overflow and underflow cases.  Use
2391         round_away to determine rounding depending on rounding mode.
2392         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
2393         determine return values in overflow and underflow cases.
2394         * stdlib/tst-strtod-round.c: Include <fenv.h>.
2395         (struct test_results): New structure.
2396         (struct test): Use struct test_results to store expected results
2397         for all rounding modes.
2398         (TEST): Include expected results for all rounding modes.
2399         (test_in_one_mode): New function.
2400         (do_test): Use test_in_one_mode to compute and check results.
2401         Check results for all rounding modes.
2402         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
2403         $(link-libm).
2404
2405 2012-12-09  Allan McRae  <allan@archlinux.org>
2406
2407         * sysdeps/i386/fpu/libm-test-ulps: Update
2408
2409 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
2410
2411         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
2412         (_G_int32_t): Likewise.
2413         (_G_uint16_t): Likewise.
2414         (_G_uint32_t): Likewise.
2415         (_G_HAVE_BOOL): Likewise.
2416         (_G_HAVE_ATEXIT): Likewise.
2417         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2418         (_G_HAVE_IO_FILE_OPEN): Likewise.
2419         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
2420         (_G_int32_t): Likewise.
2421         (_G_uint16_t): Likewise.
2422         (_G_uint32_t): Likewise.
2423         (_G_HAVE_BOOL): Likewise.
2424         (_G_HAVE_ATEXIT): Likewise.
2425         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2426         (_G_HAVE_IO_FILE_OPEN): Likewise.
2427         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
2428         (_G_int32_t): Likewise.
2429         (_G_uint16_t): Likewise.
2430         (_G_uint32_t): Likewise.
2431         (_G_HAVE_BOOL): Likewise.
2432         (_G_HAVE_ATEXIT): Likewise.
2433         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2434         (_G_HAVE_IO_FILE_OPEN): Likewise.
2435
2436 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2437
2438         * csu/libc-tls.c: Update copyright years.
2439
2440 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
2441
2442         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
2443         [!_G_USING_THUNKS]: Remove conditional code.
2444         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
2445         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
2446
2447         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
2448         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
2449         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2450         (_G_VTABLE_LABEL_PREFIX): Likewise.
2451         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2452         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2453         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2454         (_G_VTABLE_LABEL_PREFIX): Likewise.
2455         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2456         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2457         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2458         (_G_VTABLE_LABEL_PREFIX): Likewise.
2459         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2460
2461 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2462
2463         * libio/Makefile: Include ../Makeconfig before tests.
2464         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
2465         only if $(build-shared) is yes.
2466
2467         * iconv/gconv_db.c: Update copyright years.
2468
2469 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2470
2471         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
2472         unwind info if defined PIC. Fix special cases description.
2473         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
2474
2475         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
2476         DP_HI_MASK entry.
2477         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
2478
2479 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2480
2481         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
2482
2483         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
2484         is NULL.
2485
2486         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
2487         (LDLIBS-tst-chk4): This.
2488         (LDFLAGS-tst-chk5): Renamed to ...
2489         (LDLIBS-tst-chk5): This.
2490         (LDFLAGS-tst-chk6): Renamed to ...
2491         (LDLIBS-tst-chk6): This.
2492         (LDFLAGS-tst-lfschk4): Renamed to ...
2493         (LDLIBS-tst-lfschk4): This.
2494         (LDFLAGS-tst-lfschk5): Renamed to ...
2495         (LDLIBS-tst-lfschk5): This.
2496         (LDFLAGS-tst-lfschk6): Renamed to ...
2497         (LDLIBS-tst-lfschk6): This.
2498
2499         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
2500         on $(common-objpfx)soversions.mk.
2501
2502 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
2503
2504         [BZ #10014]
2505         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
2506         example host name.
2507
2508 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2509
2510         * malloc/arena.c (arena_get_retry): New function that gets
2511         another arena for the caller to try its request on.
2512         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
2513         current arena cannot fulfill the request.
2514         (__libc_memalign): Likewise.
2515         (__libc_memalign): Likewise.
2516         (__libc_pvalloc): Likewise.
2517         (__libc_calloc): Likewise.
2518
2519 2012-09-05  John Tobey  <john.tobey@gmail.com>
2520
2521         [BZ #13542]
2522         * manual/arith.texi (Operations on Complex): Fix description
2523         of carg branch cut.
2524
2525 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2526
2527         [BZ #10014]
2528         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
2529         host name.
2530
2531         [BZ #10038]
2532         * manual/memory.texi (Memory): Make order of menu items match
2533         order of sections.
2534
2535 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2536
2537         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
2538         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
2539         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
2540
2541 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2542
2543         * csu/libc-tls.c (static_dtv): Renamed to ...
2544         (_dl_static_dtv): This.  Make it global.
2545         (_dl_initial_dtv): Removed.
2546         (__libc_setup_tls): Updated.
2547         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
2548         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
2549         DL_INITIAL_DTV.
2550
2551 2012-09-06  Petr Machata  <pmachata@redhat.com>
2552
2553         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
2554         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
2555         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
2556         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
2557
2558 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2559
2560         [BZ #14545]
2561         * csu/libc-tls.c (_dl_initial_dtv): New variable.
2562         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
2563         freeing dtv[-1].
2564
2565 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2566
2567         [BZ #14544]
2568         * Makeconfig (link-static-before-libc): Replace $(+prector)
2569         with $(+prectorT).
2570         (link-static-after-libc): Replace $(+postctor) with
2571         $(+postctorT).
2572         (link-bounded): Replace $(+prector)/$(+postctor) with
2573         $(+prectorT)/$(+postctorT).
2574         (+prectorT): New macro.
2575         (+postctorT): Likewise.
2576
2577 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2578
2579         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
2580         (round_str): Handle values above the maximum for IBM long double
2581         as inexact.
2582         * stdlib/tst-strtod-round.c (tests): Regenerated.
2583
2584 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2585
2586         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
2587         assembler flag.
2588         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
2589         zarch_nohighgprs around the zarch optimized routines.
2590         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
2591         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
2592         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
2593         for zarch.
2594
2595 2012-09-05  David S. Miller  <davem@davemloft.net>
2596
2597         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2598
2599         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
2600         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
2601         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
2602         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
2603         entries.
2604
2605 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2606
2607         * malloc/arena.c: Fold copyright years.
2608         * malloc/mcheck.c, malloc/memusage.c: Likewise.
2609
2610 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2611
2612         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
2613
2614 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2615
2616         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
2617
2618 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2619
2620         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
2621         change internal state upon failure.
2622
2623 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2624
2625         * malloc/mcheck.c (mcheck_check_all): Fix typo.
2626         * malloc/memusage.c (mmap): Likewise.
2627         (mmap64, mremap): Likewise.  Adjust name in comment.
2628
2629 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2630
2631         * libio/fileops.c: Fix typos in comments.
2632         * libio/oldfileops.c: Likewise.
2633         * libio/wfileops.c: Likewise.
2634
2635 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2636
2637         [BZ #1349]
2638         * malloc/Makefile (tests): Add tst-malloc-usable test case.
2639         (tst-malloc-usable-ENV): Set environment for test case.
2640         * malloc/hooks.c (malloc_check_get_size): New function to get
2641         requested size.
2642         * malloc/malloc.c (musable): Use malloc_check_get_size.
2643         * malloc/tst-malloc-usable.c: New test case.
2644
2645 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2646
2647         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
2648
2649 2012-09-05  Allan McRae  <allan@archlinux.org>
2650
2651         [BZ #13966]
2652         * configure.in (CXX_SYSINCLUDES): Use compiler output to
2653         determine header location.
2654         * configure: Regenerated.
2655
2656 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2657
2658         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
2659         float format.
2660         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
2661         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
2662         format.
2663         (test): Regenerate.
2664
2665 2012-09-04  David S. Miller  <davem@davemloft.net>
2666
2667         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
2668         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
2669         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
2670
2671 2012-09-04  Florian Weimer  <fweimer@redhat.com>
2672
2673         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
2674         failures.
2675
2676         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
2677
2678 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
2679
2680         [BZ #9914]
2681         * libio/iogetdelim.c: Include <limits.h>.
2682         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
2683         + len + 1 would overflow.
2684
2685 2012-09-03  Andreas Jaeger  <aj@suse.de>
2686
2687         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2688         * sysdeps/i386/fpu/libm-test-ulps: Update.
2689
2690 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2691
2692         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2693         Add s_sinf-sse2, s_conf-sse2.
2694
2695         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2696         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2697         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2698         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2699
2700         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2701         for using routine as __sinf_ia32.
2702         Use macro for function declaration and weak_alias.
2703         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2704         for using routine as __cosf_ia32.
2705         Use macro for function declaration and weak_alias.
2706
2707         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2708         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2709
2710         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2711         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2712         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2713
2714         * math/libm-test.inc (cos_test): Add more test cases.
2715         (sin_test): Likewise.
2716         (sincos_test): Likewise.
2717
2718 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2719
2720         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2721         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2722         hidden.
2723         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2724
2725 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2726
2727         [BZ #14538]
2728         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2729         first element of the GOT.
2730         (elf_machine_load_address): Return the difference between
2731         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2732
2733 2012-09-01  Allan McRae  <allan@archlinux.org>
2734
2735         [BZ #13412]
2736         * configure.in (AWK): Require gawk version 3.0 or later.
2737         * configure: Regenerated.
2738
2739 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2740
2741         * sysdeps/unix/sysv/linux/kernel-features.h
2742         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2743         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2744         [__NR_clock_getres]: Make code unconditional.
2745         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2746         (clock_getcpuclockid): Remove code left unreachable by removal of
2747         conditionals.
2748         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2749         code unconditional.
2750         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2751         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2752         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2753         Make code unconditional.
2754         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2755         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2756         * sysdeps/unix/sysv/linux/clock_settime.c
2757         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2758         conditional code.
2759         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2760         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2761
2762 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2763
2764         [BZ #14476]
2765         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2766         scripts/test-installation.pl.
2767
2768         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2769         and $ld_so_version if it is set.
2770
2771 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2772
2773         [BZ #14516]
2774         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2775         failure if reading from procfs failed.
2776         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2777
2778 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2779
2780         * sysdeps/unix/sysv/linux/kernel-features.h
2781         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2782         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2783         Remove conditional code.
2784         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2785         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2786         Remove conditional code.
2787         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2788         * sysdeps/unix/sysv/linux/i386/fxstat.c
2789         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2790         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2791         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2792         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2793         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2794         * sysdeps/unix/sysv/linux/i386/lxstat.c
2795         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2796         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2797         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2798         Remove conditional code.
2799         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2800         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2801         Remove conditional code.
2802         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2803         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2804         <kernel-features.h>.
2805         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2806         Remove.
2807         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2808         Remove conditional code.
2809         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2810         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2811         Remove conditional.
2812
2813 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2814
2815         [BZ #5400]
2816         * NEWS: Add fixed bug number.
2817
2818 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2819
2820         [BZ #14519]
2821         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2822         underflowing exponent in case of negative sign.
2823         * stdlib/tst-strtod-round-data: Add more tests.
2824         * stdlib/tst-strtod-round.c (tests): Regenerated.
2825
2826         [BZ #3479]
2827         * stdlib/strtod_l.c (NDIG): Remove.
2828         (HEXNDIG): Likewise.
2829         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2830         smallest representable value.
2831         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2832         lie within an exact representation of 1/2 ulp of the result.
2833         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2834         unconditionally.
2835         (TENS_P9_IDX): Define unconditionally.
2836         (TENS_P9_SIZE): Likewise.
2837         (TENS_P10_IDX): Likewise.
2838         (TENS_P10_SIZE): Likewise.
2839         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2840         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2841         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2842         entries for 10^2^13 and 10^2^14.
2843         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2844         (TENS_P13_IDX): Define.
2845         (TENS_P13_SIZE): Likewise.
2846         (TENS_P14_IDX): Likewise.
2847         (TENS_P14_SIZE): Likewise.
2848         (_fpioconst_pow10): Change array size to
2849         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2850         unconditional.
2851         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2852         1024]: Add entries for 10^2^13 and 10^2^14.
2853         [LAST_POW10 > _LAST_POW10]: Remove #error.
2854         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2855         (_fpioconst_pow10): Change array size to
2856         FPIOCONST_POW10_ARRAY_SIZE.
2857         * stdlib/gen-fpioconst.c: New file.
2858         * stdlib/gen-tst-strtod-round.c: Likewise.
2859         * stdlib/tst-strtod-round-data: Likewise.
2860         * stdlib/tst-strtod-round.c: Likewise.
2861         * stdlib/Makefile (tests): Add tst-strtod-round.
2862
2863         [BZ #14459]
2864         * stdlib/strtod_l.c: Include <stdint.h>.
2865         (NDEBUG): Do not define.
2866         (round_and_return): Change EXPONENT parameter to type intmax_t.
2867         Rearrange calculations to avoid internal overflow possibilities.
2868         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2869         Rearrange calculations to avoid internal overflow possibilities.
2870         Assert that number fits inside MPNSIZE limbs.
2871         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2872         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2873         calculations and add assertions to avoid internal overflow
2874         possibilities.  Add casts to avoid signed/unsigned operations.
2875         * stdlib/tst-strtod-overflow.c: New file.
2876         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2877
2878 2012-08-25  Marek Polacek  <polacek@redhat.com>
2879
2880         * time/time.h: Fix some typos in comments.
2881
2882 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2883
2884         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2885         * posix/tst-rfc3484-2.c: Likewise.
2886         * posix/tst-rfc3484-3.c: Likewise.
2887
2888 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2889
2890         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2891         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2892
2893 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2894
2895         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2896         #include of fxstatat64.c.
2897
2898 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2899
2900         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2901         * shadow/getspent_r.c: Likewise.
2902         * shadow/getspnam.c: Likewise.
2903         * shadow/getspnam_r.c: Likewise.
2904         * gshadow/getsgent.c: Likewise.
2905         * gshadow/getsgent_r.c: Likewise.
2906         * gshadow/getsgnam.c: Likewise.
2907         * gshadow/getsgnam_r.c: Likewise.
2908         * inet/getnetbyad.c: Likewise.
2909         * inet/getnetbyad_r.c: Likewise.
2910         * inet/getnetbynm.c: Likewise.
2911         * inet/getnetbynm_r.c: Likewise.
2912         * inet/getnetent.c: Likewise.
2913         * inet/getnetent_r.c: Likewise.
2914         * inet/getproto.c: Likewise.
2915         * inet/getproto_r.c: Likewise.
2916         * inet/getprtent.c: Likewise.
2917         * inet/getprtent_r.c: Likewise.
2918         * inet/getprtname.c: Likewise.
2919         * inet/getprtname_r.c: Likewise.
2920         * inet/getrpcbyname.c: Likewise.
2921         * inet/getrpcbyname_r.c: Likewise.
2922         * inet/getrpcbynumber.c: Likewise.
2923         * inet/getrpcbynumber_r.c: Likewise.
2924         * inet/getrpcent.c: Likewise.
2925         * inet/getrpcent_r.c: Likewise.
2926         * inet/getaliasent.c: Likewise.
2927         * inet/getaliasent_r.c: Likewise.
2928         * inet/getaliasname.c: Likewise.
2929         * inet/getaliasname_r.c: Likewise.
2930         * nscd/getgrgid_r.c: Likewise.
2931         * nscd/getgrnam_r.c: Likewise.
2932         * nscd/gethstbyad_r.c: Likewise.
2933         * nscd/gethstbynm3_r.c: Likewise.
2934         * nscd/getpwnam_r.c: Likewise.
2935         * nscd/getpwuid_r.c: Likewise.
2936         * nscd/getsrvbynm_r.c: Likewise.
2937         * nscd/getsrvbypt_r.c: Likewise.
2938         * nscd/gai.c: Likewise.
2939
2940         * configure.in (build_nscd): New substituted variable, set
2941         by --disable-build-nscd and defaults to $use_nscd.
2942         * configure: Regenerated.
2943         * config.make.in (build-nscd): New substituted variable.
2944         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2945         Change conditional to require [$(build-nscd) = yes] as well.
2946         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2947
2948         [BZ# 13696]
2949         * configure.in (use_nscd): New substituted variable, set by
2950         --disable-nscd.  If enabled, define USE_NSCD.
2951         * configure: Regenerated.
2952         * config.h.in: Add USE_NSCD.
2953         * config.make.in (use-nscd): New substituted variable.
2954         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2955         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2956         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2957         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2958         (CFLAGS-getgrnam_r.c): Likewise.
2959         (CFLAGS-initgroups.c): Likewise.
2960         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2961         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2962         Variables removed.
2963         * inet/getnetgrent_r.c
2964         (nscd_setnetgrent): New function, broken out of ...
2965         (setnetgrent): ... here.  Call it.
2966         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2967         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2968         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2969         * nscd/Makefile (routines, aux): Move definitions after include of
2970         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2971         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2972         Conditionalize on [USE_NSCD].
2973         (is_nscd, nscd_init_cb): Likewise.
2974         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2975         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2976         * nss/nss_db/db-init.c: Likewise.
2977         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2978         [USE_NSCD].
2979         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2980         (make_request): Use it.
2981         (cache_valid_p): New function.
2982         (__check_pf): Use it.
2983         * NEWS: Add item for --disable-nscd.
2984
2985 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2986
2987         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2988         to support sed >= 4.2.1-20-ga9bf076.
2989         * configure: Regenerated.
2990
2991 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2992
2993         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2994         Conditionalize whole body on [IREL].
2995
2996 2012-08-22  Jeff Law <law@redhat.com>
2997
2998         [BZ #14505]
2999         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3000         if the family is PF_UNSPEC.
3001
3002 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3003
3004         * Makerules (lib-version): Rename from V.
3005         (install-lib-nosubdir): Change V to lib-version.
3006
3007 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3008
3009         [BZ #14252]
3010         * powerpc32/power6/wcschr.c: New file.
3011         * powerpc32/power6/wcscpy.c: New file.
3012         * powerpc32/power6/wcsrchr.c: New file.
3013         * powerpc64/power6/wcschr.c: New file.
3014         * powerpc64/power6/wcscpy.c: New file.
3015         * powerpc64/power6/wcsrchr.c: New file.
3016
3017 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3018
3019         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3020         (two_way_short_needle): Use it.
3021         * string/strstr.c (AVAILABLE1_USES_J): Define.
3022         * string/strcasestr.c: Likewise.
3023
3024         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3025         array references.
3026         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3027
3028         [BZ #11607]
3029         * NEWS: Add an entry.
3030         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3031         define their defaults.
3032         (two_way_short_needle): Detect end-of-string on-the-fly.
3033         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3034         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3035         * string/bug-strcasestr1.c: New test.
3036         * string/Makefile: Run it.
3037
3038 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3039
3040         [BZ #11607]
3041         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3042         the first character.
3043
3044 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3045
3046         * csu/elf-init.c (__libc_csu_irel): Function removed.
3047         * csu/libc-start.c (apply_irel): New function.
3048         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3049
3050 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3051
3052         * sysdeps/unix/sysv/linux/kernel-features.h
3053         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3054         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3055         <kernel-features.h>.
3056         [__NR_fadvise64_64]: Make code unconditional.
3057         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3058         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3059         !__NR_fadvise64_64)]: Likewise.
3060         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3061         !__NR_fadvise64_64))]: Likewise.
3062         [__NR_fadvise64]: Make code unconditional.
3063         [!__NR_fadvise64]: Remove conditional code.
3064         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3065         <kernel-features.h>.
3066         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3067         unconditional.
3068         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3069         conditional code.
3070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3071         not include <kernel-features.h>.
3072         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3073         unconditional.
3074         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3075         conditional code.
3076         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3077         include <kernel-features.h>.
3078         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3079         unconditional.
3080         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3081         conditional code.
3082
3083 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3084
3085         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3086         slight instruction rearrangements per scrollpipe analysis.
3087         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3088
3089 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3090
3091         * manual/syslog.texi (syslog; vsyslog, closelog):
3092         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3093         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3094
3095         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3096         DSOCAPS to match condition on defining it.
3097
3098 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3099
3100         * sysdeps/unix/sysv/linux/kernel-features.h
3101         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3103         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3104         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3106         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3107         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3109         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3110         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3111
3112         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3113         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3114
3115         * sysdeps/unix/sysv/linux/kernel-features.h
3116         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3117         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3118         unconditional.
3119         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3120         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3121         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3122         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3123         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3124         Make code unconditional.
3125         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3126         (__mmap64) [!__NR_mmap2]: Likewise.
3127         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3128         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3129         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3130         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3131         [__NR_mmap2]: Make code unconditional.
3132         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3133         (__mmap64) [!__NR_mmap2]: Likewise.
3134
3135 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3136
3137         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3138
3139 2012-08-18  Andreas Jaeger  <aj@suse.de>
3140
3141         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3142
3143 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3144
3145         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3146         * include/unistd.h (__have_sock_cloexec): Likewise.
3147         (__have_pipe2): Likewise.
3148         (__have_dup3): Likewise.
3149
3150 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3151
3152         [BZ #9685]
3153         * include/unistd.h (__have_pipe2): Change define into an extern int.
3154         (__have_dup3): Likewise.
3155         * socket/have_sock_cloexec.c: Include fcntl.h.
3156         (__have_pipe2): New variable.
3157         (__have_dup3): Likewise.
3158
3159 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3160
3161         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3162
3163 2012-08-17  Marek Polacek  <polacek@redhat.com>
3164
3165         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3166         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3167
3168 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3169
3170         * configure.in: Add AC_SUBST for sysheaders.
3171         * configure: Regenerated.
3172         * config.make.in (sysheaders): New substituted variable.
3173
3174         * sysdeps/unix/mkfifo.c: Moved ...
3175         * sysdeps/posix/mkfifo.c: ... here.
3176         * sysdeps/unix/mkfifoat.c: Moved ...
3177         * sysdeps/posix/mkfifoat.c: ... here.
3178
3179         * sysdeps/unix/utime.c: Moved ...
3180         * sysdeps/posix/utime.c: ... here.
3181
3182         * sysdeps/unix/time.c: Moved ...
3183         * sysdeps/posix/time.c: ... here.
3184         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3185         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3186
3187         * sysdeps/unix/nice.c: Moved ...
3188         * sysdeps/posix/nice.c: ... here.
3189
3190         * sysdeps/unix/alarm.c: Moved ...
3191         * sysdeps/posix/alarm.c: ... here.
3192
3193         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3194
3195 2012-08-17  Jeff Law <law@redhat.com>
3196
3197         * intl/Makefile (codeset_mo): New variable.
3198         ($(codeset_mo)): New target.
3199         (tst-codeset.out): Depend on that.  Remove explicit rule.
3200         (tst-gettext3.out, tst-gettext5.out): Likewise.
3201         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3202         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3203         * intl/tst-codeset.sh: Remove.
3204         * intl/tst-gettext3.sh: Likewise.
3205         * intl/tst-gettext5.sh: Likewise.
3206
3207 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3208
3209         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3210         * sysdeps/unix/syscalls.list: ... here.
3211
3212         * sysdeps/posix/getaddrinfo.c
3213         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3214         (gaiconf_init, gaiconf_reload): Use them.
3215         [!_STATBUF_ST_NSEC]
3216         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3217         Define using time_t rather than struct timespec.
3218
3219         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3220         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3221         Macros removed.
3222         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3223         [!NO_THREADS].
3224         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3225         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3226         Likewise.
3227
3228         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3229         __libc_cleanup_push argument.
3230
3231         * bits/param.h: New file.
3232         * misc/sys/param.h: New file.
3233         * include/sys/param.h: New file.
3234         * misc/Makefile (headers): Add bits/param.h.
3235         * sysdeps/generic/sys/param.h: File removed.
3236         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3237         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3238         * sysdeps/mach/hurd/bits/param.h: New file.
3239         * sysdeps/mach/hurd/sys/param.h: File removed.
3240
3241         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3242         last change.
3243
3244         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3245         [_IO_MTSAFE_IO].
3246         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3247         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3248         New macros.
3249
3250         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3251         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3252         rather than -D_IO_MTSAFE_IO conditionally.
3253         * stdio-common/Makefile (CPPFLAGS): Likewise.
3254         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3255         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3256         Use $(libio-mtsafe).
3257         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3258         of -D_IO_MTSAFE_IO.
3259         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3260         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3261         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3262         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3263         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3264         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3265         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3266         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3267         (CFLAGS-fread_u_chk.c): Likewise.
3268         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3269         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3270         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3271         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3272         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3273         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3274         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3275         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3276         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3277
3278         * libio/Makefile: Test [$(libc-reentrant) = yes]
3279         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3280
3281         * Makeconfig
3282         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3283         * sysdeps/pthread/configure: File removed.
3284         * sysdeps/pthread/Makeconfig: New file.
3285         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3286         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3287
3288 2012-08-16  Gary Benson  <gbenson@redhat.com>
3289
3290         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3291         unmapping the first object in a namespace.
3292
3293 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3294
3295         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3296         (__internal_setnetgrent): ... this.  Add internal_function to
3297         definition.  Add libc_hidden_def.
3298         (setnetgrent): Update caller.
3299         (internal_endnetgrent): Renamed to ...
3300         (__internal_endnetgrent): ... this.  Add internal_function to
3301         definition.  Add libc_hidden_def.
3302         (endnetgrent): Update caller.
3303         (internal_getnetgrent_r): Renamed to ...
3304         (__internal_getnetgrent_r): ... this.  Add internal_function to
3305         definition.  Add libc_hidden_def.
3306         (__getnetgrent_r): Update caller.
3307         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
3308
3309 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3310
3311         * stdlib/longlong.h: Update from GCC.
3312
3313 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3314
3315         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
3316         on _QL, which is set by umul_ppmm but never used.
3317         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
3318         variables, which are set by GMP macros but never used.
3319         * stdio-common/_itowa.c (_itowa): Likewise.
3320         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
3321         * stdlib/mod_1.c (mpn_mod_1): Likewise.
3322
3323 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
3324
3325         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
3326         struct La_sh_regs is not constant.
3327         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
3328         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
3329         and struct La_sparc64_regs are not constant.
3330
3331 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3332
3333         * sysdeps/unix/sysv/linux/kernel-features.h
3334         (__ASSUME_POSIX_TIMERS): Remove.
3335         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3336         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3337         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
3338         Make code unconditional.
3339         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3340         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
3341         Make code unconditional.
3342         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3343         * sysdeps/unix/sysv/linux/clock_nanosleep.c
3344         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
3345         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3346         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
3347         Make code unconditional.
3348         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3349         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
3350         (__libc_missing_posix_timers): Remove.
3351
3352 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3353
3354         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
3355         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
3356
3357         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
3358
3359         * elf/dl-sym.c: Include <stdlib.h>.
3360
3361         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
3362         constants, which avoids warnings in 32-bit builds.
3363
3364         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
3365         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
3366
3367         * misc/lseek.c: File moved to ...
3368         * io/lseek.c: ... here.
3369
3370         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
3371
3372         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
3373         shifting LEN more than 31 bits at once.
3374
3375 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3376
3377         [BZ #14195]
3378         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
3379         segmentation fault for a case of two empty input strings.
3380         * string/test-strncasecmp.c (check1): Renamed to...
3381         (bz12205): ...this.
3382         (bz14195): Add new testcase for two empty input strings and N > 0.
3383         (test_main): Call new testcase, adapt for renamed function.
3384
3385 2012-08-15  Andreas Jaeger  <aj@suse.de>
3386
3387         [BZ #14090]
3388         * crypt/md5test2.c: New test, based on test supplied by Serge
3389         Belyshev <belyshev@depni.sinp.msu.ru>.
3390         * crypt/Makefile (xtests): Add md5test-giant..
3391         * crypt/Makefile ($(objpfx)md5test-giant): Add.
3392
3393 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3394
3395         [BZ #14090]
3396         * crypt/md5.c (md5_process_block): Don't assume the buffer
3397         length is less than 2**32.
3398         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
3399         length is less than 2**64.
3400
3401 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3402
3403         * string/str-two-way.h: Include <sys/param.h>.
3404         (MAX): Macro removed.
3405
3406         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
3407         Move #define and #undef of memmove to just before and after
3408         including <string.h>.
3409
3410         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
3411         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
3412         and after including <string.h>.  Move declarations of
3413         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
3414         to before #include "string/memmove.c".
3415
3416         * include/dirent.h: Declare __getdirentries.
3417
3418         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
3419         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
3420
3421 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3422
3423         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
3424         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
3425         * sysdeps/i386/configure: Regenerated.
3426         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
3427         STABS_CURRENT_FILE, and STABS_FUN.
3428         (END): Remove call to STABS_FUN_END.
3429         (STABS_CURRENT_FILE1): Delete.
3430         (STABS_CURRENT_FILE): Likewise.
3431         (STABS_FUN): Likewise.
3432         (STABS_FUN_END): Likewise.
3433         (STABS_FUN2): Likewise.
3434         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
3435         * sysdeps/x86_64/configure: Regenerated.
3436
3437 2012-08-14  Roland McGrath  <roland@hack.frob.com>
3438
3439         * elf/dl-open.c: Include <atomic.h>.
3440         * elf/dl-lookup.c: Likewise.
3441
3442 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
3443
3444         * sysdeps/unix/sysv/linux/kernel-features.h
3445         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
3446         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
3447         unconditionally.
3448         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
3449         unconditionally.
3450         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
3451         condition on __ASSUME_CLONE_THREAD_FLAGS.
3452
3453 2012-08-14  Andreas Jaeger  <aj@suse.de>
3454
3455         * sysdeps/i386/fpu/libm-test-ulps: Update.
3456
3457 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
3458
3459         * include/atomic.h (atomic_exchange_and_add): Split into ...
3460         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
3461         New atomic macros.
3462
3463 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
3464
3465         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3466
3467 2012-08-13  Jeff Law <law@redhat.com>
3468
3469         * manual/stdio.texi (snprintf): Clarify handling of the trailing
3470         null byte in the output string.
3471
3472 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
3473
3474         * sysdeps/unix/sysv/linux/kernel-features.h
3475         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
3476         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
3477         (__ASSUME_ARG_MAX_STACK_BASED): Define.
3478         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3479         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
3480         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
3481         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
3482
3483 2012-08-09  Jeff Law <law@redhat.com>
3484
3485         [BZ #13939]
3486         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
3487         When avoid_arena is set, don't retry in the that arena.  Pick the
3488         next one, whatever it might be.
3489         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
3490         (arena_lock): Pass in new parameter to arena_get2.
3491         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
3492         arena_get2.
3493         (__libc_malloc): Unify retrying after main arena failure with
3494         __libc_memalign version.
3495         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
3496
3497 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3498
3499         [BZ #14166]
3500         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
3501         to __redirect_strstr.
3502         (__strstr_sse42): Use typeof __redirect_strstr.
3503         (__strstr_ia32): Likewise.
3504         (__libc_strstr): New prototype.
3505         (strstr): Renamed to ...
3506         (__libc_strstr): This.
3507         (strstr): New strong alias of __libc_strstr.
3508         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
3509         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
3510         __redirect_time.
3511         Include <time.h>.
3512         (__libc_time): New prototype.
3513         (time_ifunc): Replace time with __libc_time.
3514         (time): New strong alias and hidden definition of __libc_time.
3515         (__GI_time): Remove strong alias.
3516         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
3517         Include <stddef.h>.
3518         (memmove): Redefined to __redirect_memmove.
3519         (__memmove_sse2): Use typeof __redirect_memmove.
3520         (__memmove_ssse3): Likewise.
3521         (__memmove_ssse3_back): Likewise.
3522         (__libc_memmove): New prototype.
3523         (memmove): Renamed to ...
3524         (__libc_memmove): This.
3525         (memmove): New strong alias of __libc_memmove.
3526
3527 2012-08-08  Mark Salter  <msalter@redhat.com>
3528
3529         * elf/elf.h
3530         (R_MN10300_TLS_GD): Define.
3531         (R_MN10300_TLS_LD): Likewise.
3532         (R_MN10300_TLS_LDO): Likewise.
3533         (R_MN10300_TLS_GOTIE): Likewise.
3534         (R_MN10300_TLS_IE): Likewise.
3535         (R_MN10300_TLS_LE): Likewise.
3536         (R_MN10300_TLS_DTPMOD): Likewise.
3537         (R_MN10300_TLS_DTPOFF): Likewise.
3538         (R_MN10300_TLS_TPOFF): Likewise.
3539         (R_MN10300_SYM_DIFF): Likewise.
3540         (R_MN10300_ALIGN): Likewise.
3541         (R_MN10300_NUM): Update.
3542
3543 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
3544
3545         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
3546         Remove.
3547
3548 2012-08-08  Roland McGrath  <roland@hack.frob.com>
3549
3550         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
3551
3552         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
3553         sysdeps/unix -> sysdeps/posix move.
3554         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3555
3556 2012-08-07      Allan McRae     <allan@archlinux.org>
3557
3558         [BZ #14303]
3559         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
3560         (SUNOS_CPP): Likewise.
3561         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
3562         not found.
3563         (open_input): Call CPP using execvp.
3564
3565 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3566
3567         * sysdeps/unix/sysv/linux/kernel-features.h
3568         (__ASSUME_PROT_GROWSUPDOWN): Remove.
3569         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3570         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3571         (__ASSUME_WAITID_SYSCALL): Likewise.
3572         * sysdeps/unix/sysv/linux/dl-execstack.c
3573         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
3574         code unconditional.
3575         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
3576         conditional code.
3577         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
3578         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
3579         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
3580         code.
3581         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
3582         unconditional.
3583         [__ASSUME_WAITID_SYSCALL]: Likewise.
3584         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
3585
3586 2012-08-07  Roland McGrath  <roland@hack.frob.com>
3587
3588         * sysdeps/unix/closedir.c: Renamed to ...
3589         * sysdeps/posix/closedir.c: ... here.
3590         * sysdeps/unix/dirfd.c: Renamed to ...
3591         * sysdeps/posix/dirfd.c: ... here.
3592         * sysdeps/unix/dirstream.h: Renamed to ...
3593         * sysdeps/posix/dirstream.h: ... here.
3594         * sysdeps/unix/fdopendir.c: Renamed to ...
3595         * sysdeps/posix/fdopendir.c: ... here.
3596         * sysdeps/unix/opendir.c: Renamed to ...
3597         * sysdeps/posix/opendir.c: ... here.
3598         * sysdeps/unix/readdir.c: Renamed to ...
3599         * sysdeps/posix/readdir.c: ... here.
3600         * sysdeps/unix/readdir_r.c: Renamed to ...
3601         * sysdeps/posix/readdir_r.c: ... here.
3602         * sysdeps/unix/rewinddir.c: Renamed to ...
3603         * sysdeps/posix/rewinddir.c: ... here.
3604         * sysdeps/unix/seekdir.c: Renamed to ...
3605         * sysdeps/posix/seekdir.c: ... here.
3606         * sysdeps/unix/telldir.c: Renamed to ...
3607         * sysdeps/posix/telldir.c: ... here.
3608         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
3609         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
3610         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3611         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
3612
3613         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
3614         * bits/fcntl.h: ... here.
3615
3616         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
3617         not 0.
3618         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
3619         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
3620         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
3621         (struct flock): Move l_start, l_len to the beginning.
3622         Use __pid_t for l_pid.
3623         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
3624         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
3625         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
3626         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
3627         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
3628         [__USE_LARGEFILE64] (struct flock64): New type.
3629         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
3630
3631         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
3632         * bits/dirent.h: ... here.
3633
3634         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
3635         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
3636
3637 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3638
3639         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3640         Change from 2.6.0 to 2.6.16.
3641         * sysdeps/unix/sysv/linux/configure: Regenerated.
3642         * sysdeps/unix/sysv/linux/kernel-features.h
3643         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
3644         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
3645         version.
3646         (__ASSUME_UTIMES): Likewise.
3647         (__ASSUME_CLONE_STOPPED): Remove.
3648         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
3649         architectures, not kernel version.
3650         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
3651         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3652         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3653         (__ASSUME_WAITID_SYSCALL): Likewise.
3654         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
3655         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
3656         * README: State 2.6.16 as minimum Linux kernel version.  Do not
3657         refer to older versions.
3658
3659 2012-08-06  Roland McGrath  <roland@hack.frob.com>
3660
3661         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
3662         Define alphasort64 as an alias.
3663         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
3664         Define versionsort64 as an alias.
3665         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
3666         Define scandir64 as an alias.
3667         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
3668         Define scandirat64 as an alias.
3669         * dirent/alphasort64.c (alphasort64):
3670         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
3671         * dirent/versionsort64.c: Likewise.
3672         * dirent/scandir64.c: Likewise.
3673         * dirent/scandirat64.c: Likewise.
3674         * sysdeps/wordsize-64/alphasort.c: File removed.
3675         * sysdeps/wordsize-64/alphasort64.c: File removed.
3676         * sysdeps/wordsize-64/scandir.c: File removed.
3677         * sysdeps/wordsize-64/scandir64.c: File removed.
3678         * sysdeps/wordsize-64/scandirat.c: File removed.
3679         * sysdeps/wordsize-64/scandirat64.c: File removed.
3680         * sysdeps/wordsize-64/versionsort.c: File removed.
3681         * sysdeps/wordsize-64/versionsort64.c: File removed.
3682         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
3683         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
3684         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
3685         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
3686         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
3687         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
3688         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
3689         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
3690
3691         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3692         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3693         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3694         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3695         [defined __arch64__ || defined __sparcv9]
3696         (__INO_T_MATCHES_INO64_T): New macro.
3697         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3698         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3699         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3700         * sysdeps/unix/sysv/linux/bits/dirent.h
3701         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3702         (_DIRENT_MATCHES_DIRENT64): New macro.
3703
3704         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3705         Define lockf64 as an alias.
3706         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3707         Define fseeko64 as an alias.
3708         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3709         Define ftello64 as an alias.
3710         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3711         Define _IO_fgetpos64 and fgetpos64 as aliases.
3712         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3713         Define _IO_fsetpos64 and fsetpos64 as aliases.
3714         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3715         Conditionalize body on this.
3716         * libio/fseeko64.c: Likewise.
3717         * libio/ftello64.c: Likewise.
3718         * libio/iofgetpos64.c: Likewise.
3719         * libio/iofsetpos64.c: Likewise.
3720         * sysdeps/wordsize-64/lockf.c: File removed.
3721         * sysdeps/wordsize-64/lockf64.c: File removed.
3722         * sysdeps/wordsize-64/fseeko.c: File removed.
3723         * sysdeps/wordsize-64/fseeko64.c: File removed.
3724         * sysdeps/wordsize-64/ftello.c: File removed.
3725         * sysdeps/wordsize-64/ftello64.c: File removed.
3726         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3727         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3728         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3729         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3730         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3731         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3732         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3733         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3734         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3735         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3736         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3737         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3738         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3739         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3740
3741         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3742         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3743         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3744         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3745         [defined __arch64__ || defined __sparcv9]
3746         (__OFF_T_MATCHES_OFF64_T): New macro.
3747         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3748         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3749         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3750         (__OFF_T_MATCHES_OFF64_T): New macro.
3751
3752 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3753
3754         * stdlib/secure-getenv.c (__secure_getenv): Replace
3755         GLIBC_2_16 with GLIBC_2_17.
3756
3757 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3758
3759         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3760         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3761
3762 2012-08-03  David S. Miller  <davem@davemloft.net>
3763
3764         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3765
3766 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3767
3768         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3769         Remove.
3770         (__ASSUME_CORRECT_SI_PID): Likewise.
3771         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3772         (__ASSUME_TMPFS_NAME): Likewise.
3773         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3774         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3775         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3776         (HAVE_AUX_SECURE): Make definition unconditional.
3777         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3778         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3779
3780 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3781
3782         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3783         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3784         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3785         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3786         __eloop_threshold instead of SYMLOOP_MAX.
3787
3788         * sysdeps/generic/eloop-threshold.h: New file.
3789         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3790         of MAXSYMLINKS.
3791         * elf/chroot_canon.c (chroot_canon): Likewise.
3792
3793 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3794
3795         [BZ #13717]
3796         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3797         Change to 2.6.0 everywhere.
3798         * sysdeps/unix/sysv/linux/configure: Regenerated.
3799         * sysdeps/unix/sysv/linux/kernel-features.h
3800         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3801         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3802         kernel versions.
3803         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3804         (__ASSUME_FUTEX_REQUEUE): Remove.
3805         (__ASSUME_STATFS64): Define unconditionally.
3806         (__ASSUME_AT_SECURE): Likewise.
3807         (__ASSUME_CORRECT_SI_PID): Likewise.
3808         (__ASSUME_TGKILL): Define without depending on kernel version for
3809         i386.
3810         (__ASSUME_UTIMES): Likewise.
3811         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3812         kernel version.
3813         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3814         (__ASSUME_TMPFS_NAME): Likewise.
3815         * README: Update reference to Linux kernel versions.
3816
3817 2012-08-02  Marek Polacek  <polacek@redhat.com>
3818
3819         [BZ# 14150]
3820         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3821         libc_cv_asm_type_prefix with %.
3822         * configure: Regenerated.
3823         * include/libc-symbols.h: Remove comment about
3824         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3825         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3826         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3827         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3828         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3829         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3830         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3831         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3832         * elf/tst-unique2mod1.c: Likewise.
3833         * elf/tst-unique1mod2.c: Likewise.
3834         * elf/tst-unique1mod1.c: Likewise.
3835         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3836         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3837         Replace ASM_TYPE_DIRECTIVE with .type.
3838         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3839         * sysdeps/i386/sysdep.h: Likewise.
3840         * sysdeps/x86_64/sysdep.h: Likewise.
3841         * sysdeps/sh/sysdep.h: Likewise.
3842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3843         Do not define ASM_TYPE_DIRECTIVE.
3844         * sysdeps/powerpc/sysdep.h: Likewise.
3845         * sysdeps/powerpc/powerpc32/sysdep.h:
3846         Replace ASM_TYPE_DIRECTIVE with .type.
3847         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3848         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3849         * sysdeps/i386/fpu/e_powf.S: Likewise.
3850         * sysdeps/i386/fpu/e_expl.S: Likewise.
3851         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3852         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3853         * sysdeps/i386/fpu/e_pow.S: Likewise.
3854         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3855         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3856         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3857         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3858         * sysdeps/i386/fpu/e_log2.S: Likewise.
3859         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3860         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3861         * sysdeps/i386/fpu/e_powl.S: Likewise.
3862         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3863         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3864         * sysdeps/i386/fpu/e_logl.S: Likewise.
3865         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3866         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3867         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3868         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3869         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3870         * sysdeps/i386/fpu/e_log.S: Likewise.
3871         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3872         * sysdeps/i386/fpu/e_logf.S: Likewise.
3873         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3874         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3875         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3876         * sysdeps/i386/fpu/e_log10.S: Likewise.
3877         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3878         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3879         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3880         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3881         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3882         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3883         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3884         * sysdeps/i386/i686/strtok.S: Likewise.
3885         * sysdeps/i386/i386-mcount.S: Likewise.
3886         * sysdeps/i386/strtok.S: Likewise.
3887         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3888         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3889         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3890         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3891         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3892         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3893         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3894         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3895         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3896         * sysdeps/x86_64/_mcount.S: Likewise.
3897         * sysdeps/x86_64/strtok.S: Likewise.
3898         * sysdeps/sh/_mcount.S: Likewise.
3899
3900 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3901
3902         * libio/iofopen.c: Include <fcntl.h>.
3903         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3904         (_IO_fopen64, fopen64): Define as aliases.
3905         * libio/iofopen64.c: Include <fcntl.h>.
3906         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3907         Conditionalize body on this.
3908         * sysdeps/wordsize-64/iofopen.c: File removed.
3909         * sysdeps/wordsize-64/iofopen64.c: File removed.
3910
3911 2012-08-01  Marek Polacek  <polacek@redhat.com>
3912
3913         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3914         Use dlfcn directly instead of a variable.
3915         (binfmt-subdir): Do not define.
3916         (dlfcn): Likewise.
3917
3918 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3919
3920         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3921         Remove all definitions.
3922         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3923         <kernel-features.h>.
3924         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3925         (miss_F_GETOWN_EX): Remove all definitions.
3926         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3927         macro definition.
3928         [!__ASSUME_FCNTL64]: Remove conditional code.
3929         [__ASSUME_FCNTL64]: Make code unconditional.
3930         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3931         <kernel-features.h>.
3932         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3933         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3934         (lockf64) [__NR_fcntl64]: Make code unconditional.
3935         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3936
3937         * sysdeps/unix/sysv/linux/kernel-features.h
3938         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3939         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3940         Make code unconditional.
3941         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3942         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3944         [__NR_vfork]: Make code unconditional.
3945         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3946         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3948         [__NR_vfork]: Make code unconditional.
3949         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3950         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3951
3952 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3953
3954         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3955         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3956
3957         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3958         Define mkstemp64 as an alias.
3959         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3960         Define mkstemps64 as an alias.
3961         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3962         Define mkostemp64 as an alias.
3963         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3964         Define mkostemps64 as an alias.
3965         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3966         Conditionalize body on this.
3967         * misc/mkostemp64.c: Likewise.
3968         * misc/mkostemps64.c: Likewise.
3969         * misc/mkstemps64.c: Likewise.
3970         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3971         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3972         * sysdeps/wordsize-64/mkostemp.c: File removed.
3973         * sysdeps/wordsize-64/mkstemp.c: File removed.
3974         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3975         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3976         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3977         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3978
3979         [BZ #14138]
3980         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3981         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3982         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3983         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3984
3985         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3986         compat_symbol macros from <shlib-compat.h> rather than the underlying
3987         default_symbol_version and symbol_version macros, so that DEFAULT
3988         lines in shlib-versions are respected.
3989         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3990
3991 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3992
3993         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3994         Declare with warn_unused_result.
3995         (setgid, setregid, setegid, setresgid): Likewise.
3996         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3997         Likewise.
3998         * WUR-REPORT: Remove set*id functions.
3999
4000 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4001
4002         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4003
4004 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4005
4006         * include/sys/socket.h (__libc_accept, __libc_accept4):
4007         Add attribute_hidden.
4008         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4009
4010         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4011         use of PTR_MANGLE.
4012         * inet/getnetgrent_r.c (setup): Likewise.
4013
4014         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4015
4016 2012-07-31  David S. Miller  <davem@davemloft.net>
4017
4018         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4019
4020 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4021
4022         [BZ #13629]
4023         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4024         value between 1.0 and 2.0 and smaller part has absolute value less
4025         than 1.0.
4026         * math/s_clog10.c (__clog10): Likewise.
4027         * math/s_clog10f.c (__clog10f): Likewise.
4028         * math/s_clog10l.c (__clog10l): Likewise.
4029         * math/s_clogf.c (__clogf): Likewise.
4030         * math/s_clogl.c (__clogl): Likewise.
4031         * math/libm-test.inc (clog_test): Add more tests.
4032         (clog10_test): Likewise.
4033         * sysdeps/i386/fpu/libm-test-ulps: Update.
4034         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4035
4036 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4037
4038         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4039         Exit with zero in case no suitable GID is found, and write a
4040         message to standard error.
4041
4042 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4043
4044         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4045         rather than to 1.
4046         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4047         (MAXPATHLEN): Removed.
4048         (NOGROUP, NODEV): New macros.
4049         (setbit, clrbit, isset, isclr): New macros.
4050         (howmany, roundup, powerof2): New macros.
4051         (DEV_BSIZE): New macro.
4052
4053         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4054         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4055
4056         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4057         definition on [!__NO_LONG_DOUBLE_MATH].
4058
4059         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4060         PTR_MANGLE and PTR_DEMANGLE.
4061
4062         * socket/accept4.c (accept4): Rename to __libc_accept4.
4063         Define accept4 as a weak alias.
4064
4065         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4066         on [_DIRENT_HAVE_D_TYPE].
4067         * io/ftw.c (ftw_dir): Likewise.
4068
4069         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4070
4071         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4072
4073         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4074         Use the BSD numbers rather than the arbitrary ones we had.
4075         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4076         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4077         (SIGXCPU, SIGXFSZ): New macros.
4078         (_NSIG): Now 32.
4079
4080         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4081         initializer on [_LIBC_REENTRANT].
4082
4083         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4084         definitions inside [_POSIX_MAPPED_FILES].
4085
4086         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4087
4088         * dirent/opendir.c: Include <fcntl.h>.
4089
4090         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4091         (__libc_getspecific): Likewise.
4092         (__libc_key_create): Likewise.
4093
4094         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4095         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4096         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4097         (tmpfile64): Define as alias.
4098         * sysdeps/wordsize-64/tmpfile.c: File removed.
4099         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4100         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4101         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4102
4103         * stdio-common/vfscanf.c: Include <stdbool.h>.
4104         * nss/makedb.c: Likewise.
4105         * stdio-common/_i18n_number.h: Likewise.
4106         * argp/argp-help.c: Likewise.
4107         * posix/wordexp.c: Likewise.
4108         * sysdeps/posix/spawni.c: Likewise.
4109         * nss/nss_files/files-initgroups.c: Likewise.
4110         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4111         * nss/nss_files/files-initgroups.c: Likewise.
4112         * nss/nss_db/db-netgrp.c: Likewise.
4113         * nss/nss_db/db-initgroups.c: Likewise.
4114         * io/fchmodat.c: Include <sys/stat.h>.
4115
4116         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4117         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4118
4119         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4120         [HAVE_MMAP].
4121
4122         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4123         Add multiple inclusion protection.
4124
4125 2012-07-27  David S. Miller  <davem@davemloft.net>
4126
4127         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4128
4129 2012-07-27  Gary Benson  <gbenson@redhat.com>
4130
4131         [BZ #14298]
4132         * elf/rtld.c: Include <stap-probe.h>.
4133         (dl_main): Added static probes "init_start" and "init_complete".
4134         * elf/dl-load.c: Include <stap-probe.h>.
4135         (lose): Take new parameter "nsid".
4136         Added static probe "map_failed".
4137         (_dl_map_object_from_fd): Pass namespace id to lose.
4138         Added static probe "map_start".
4139         (open_verify): Pass namespace id to lose.
4140         * elf/dl-open.c: Include <stap-probe.h>.
4141         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4142         and "reloc_complete".
4143         * elf/dl-close.c: Include <stap-probe.h>.
4144         (_dl_close_worker): Added static probes "unmap_start" and
4145         "unmap_complete".
4146         * elf/rtld-debugger-interface.txt: New file documenting the above.
4147
4148 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4149
4150         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4151         rather than a string variable.
4152         * sunrpc/rpc_main.c (h_output): Likewise.
4153         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4154
4155 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4156
4157         * inet/check_native.c: New file.
4158
4159 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4160
4161         [BZ #13629]
4162         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4163         if larger part has absolute value 1.0.
4164         * math/s_clog10.c (__clog10): Likewise.
4165         * math/s_clog10f.c (__clog10f): Likewise.
4166         * math/s_clog10l.c (__clog10l): Likewise.
4167         * math/s_clogf.c (__clogf): Likewise.
4168         * math/s_clogl.c (__clogl): Likewise.
4169         * math/libm-test.inc (clog_test): Add more tests.
4170         (clog10_test): Likewise.
4171         * sysdeps/i386/fpu/libm-test-ulps: Update.
4172         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4173
4174         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4175         (pltexit): Likewise.
4176         (La_regs): Likewise.
4177         (La_retval): Likewise.
4178         (int_retval): Likewise.
4179         Update #error for removed macros to refer only to definitions in
4180         tst-audit.h.
4181         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4182         macro.
4183         (pltexit): Likewise.
4184         (La_regs): Likewise.
4185         (La_retval): Likewise.
4186         (int_retval): Likewise.
4187         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4188         macro.
4189         (pltexit): Likewise.
4190         (La_regs): Likewise.
4191         (La_retval): Likewise.
4192         (int_retval): Likewise.
4193         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4194         macro.
4195         (pltexit): Likewise.
4196         (La_regs): Likewise.
4197         (La_retval): Likewise.
4198         (int_retval): Likewise.
4199         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4200         macro.
4201         (pltexit): Likewise.
4202         (La_regs): Likewise.
4203         (La_retval): Likewise.
4204         (int_retval): Likewise.
4205         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4206         macro.
4207         (pltexit): Likewise.
4208         (La_regs): Likewise.
4209         (La_retval): Likewise.
4210         (int_retval): Likewise.
4211         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4212         macro.
4213         (pltexit): Likewise.
4214         (La_regs): Likewise.
4215         (La_retval): Likewise.
4216         (int_retval): Likewise.
4217         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4218         macro definitions in tst-audit.h.
4219         * sysdeps/i386/tst-audit.h: New file.
4220         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4221         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4222         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4223         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4224         * sysdeps/sh/tst-audit.h: Likewise.
4225         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4226         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4227         * sysdeps/x86_64/tst-audit.h: Likewise.
4228
4229 2012-07-26  Andreas Jaeger  <aj@suse.de>
4230
4231         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4232         ptrace.
4233
4234         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4235         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4236         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4237         PTRACE_O_MASK.
4238         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4239         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4240         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4241
4242         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4243         value.
4244
4245         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4246         _sigsys.
4247         (si_call_addr, si_syscall, si_arch): Define new macro.
4248         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4249         _sigsys.
4250         (si_call_addr, si_syscall, si_arch): Define new marcro.
4251         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4252         _sigsys.
4253         (si_call_addr, si_syscall, si_arch): Define new macro.
4254         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4255         _sigsys.
4256         (si_call_addr, si_syscall, si_arch): Define new macro.
4257
4258 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4259
4260         [BZ #13717]
4261         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4262         Change to 2.4.21 where previously 2.4.1.
4263         * sysdeps/unix/sysv/linux/configure: Regenerated.
4264         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4265         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4266         Linux kernel version.
4267         (__ASSUME_STD_AUXV): Remove.
4268         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4269         kernel version.
4270         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4271         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4272         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4273         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4274         (__ASSUME_NETLINK_SUPPORT): Likewise.
4275         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4276         (__no_netlink_support): Remove conditional definition.
4277         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4278         Remove.
4279         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4280         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4281         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4282         (if_nameindex_ioctl): Remove.
4283         (if_nameindex_netlink): Do not handle __no_netlink_support.
4284         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4285         code.
4286         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4287         Remove conditional code.
4288         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4289         code.
4290         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4291         unconditional.
4292         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4293         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4294         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4295         Remove.
4296         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4297         [!__ASSUME_STD_AUXV]: Remove conditional code.
4298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4299         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4300         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4302         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4303         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4304         code.
4305         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
4307         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
4308         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4309         conditional code.
4310         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
4312         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4313         code.
4314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
4315         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4316         conditional code.
4317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4318         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4319         code unconditional.
4320         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4321         conditional code.
4322         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4323         unconditional.
4324         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4325         conditional code.
4326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4327         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4328         unconditional.
4329         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4330         conditional code.
4331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4332         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4333         code unconditional.
4334         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4335         conditional code.
4336         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4337         unconditional.
4338         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4339         conditional code.
4340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4341         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4342         code unconditional.
4343         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4344         conditional code.
4345         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4346         unconditional.
4347         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4348         conditional code.
4349
4350 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
4351
4352         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
4353         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
4354         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4355         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
4356         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
4357         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4358         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4359         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
4360         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
4361         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4362         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
4363         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4364         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
4365         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4366         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4367         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
4368         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
4369         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
4370         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
4371         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
4372         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
4373         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4374         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4375
4376 2012-07-25  Florian Weimer  <fweimer@redhat.com>
4377
4378         * Versions.def: Add GLIBC_2.17.
4379         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
4380         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
4381         Introduce __libc_secure_getenv.
4382         * stdlib/Versions (2.17): Add secure_getenv
4383         (GLIBC_PRIVATE): Add __libc_secure_getenv.
4384         * stdlib/secure-getenv.c: Rename __secure_getenv to
4385         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
4386         symbol __secure_getenv for GLIBC_2.0.
4387         * stdlib/tst-secure-getenv.c: New.
4388         * stdlib/Makefile (tests): Add testcase.
4389         * manual/startup.texi (Environment Access): Document
4390         secure_getenv.
4391         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
4392         __libc_secure_getenv.
4393         * inet/ruserpass.c (ruserpass): Likewise.
4394         * malloc/mtrace.c (mtrace): Likewise.
4395         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
4396         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4397         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
4398         * sysdeps/posix/tempname.c: Likewise.  Evaluate
4399         HAVE_SECURE_GETENV.
4400         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
4401         __secure_getenv to __libc_secure_getenv.
4402         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
4403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4404         Likewise.
4405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4406         Likewise.
4407         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
4408         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
4409         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4410         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
4411         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
4412         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4413         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
4414
4415 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4416
4417         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
4418         (struct La_i86_retval): Likewise.
4419         (struct La_x86_64_regs): Likewise.
4420         (struct La_x86_64_retval): Likewise.
4421         (struct La_x32_regs): Likewise.
4422         (struct La_x32_retval): Likewise.
4423         (struct La_ppc32_regs): Likewise.
4424         (struct La_ppc32_retval): Likewise.
4425         (struct La_ppc64_regs): Likewise.
4426         (struct La_ppc64_retval): Likewise.
4427         (struct La_sh_regs): Likewise.
4428         (struct La_sh_retval): Likewise.
4429         (struct La_s390_32_regs): Likewise.
4430         (struct La_s390_32_retval): Likewise.
4431         (struct La_s390_64_regs): Likewise.
4432         (struct La_s390_64_retval): Likewise.
4433         (struct La_sparc32_regs): Likewise.
4434         (struct La_sparc32_retval): Likewise.
4435         (struct La_sparc64_regs): Likewise.
4436         (struct La_sparc64_retval): Likewise.
4437         (struct audit_ifaces): Remove architecture-specific pltenter and
4438         pltexit members.
4439         * sysdeps/i386/ldsodefs.h: New file.
4440         * sysdeps/powerpc/ldsodefs.h: Likewise.
4441         * sysdeps/s390/ldsodefs.h: Likewise.
4442         * sysdeps/sh/ldsodefs.h: Likewise.
4443         * sysdeps/sparc/ldsodefs.h: Likewise.
4444         * sysdeps/x86_64/ldsodefs.h: Likewise.
4445
4446 2012-07-25  Marek Polacek  <polacek@redhat.com>
4447
4448         [BZ #6808]
4449         * math/libm-test.inc (yn_test): Add another test.
4450         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
4451         to ERANGE when the result is +-Inf.
4452         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
4453         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4454         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
4455         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
4456
4457 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
4458
4459         * conform/data/time.h-data (NULL): Use macro-constant.  Require
4460         equal to 0.
4461         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
4462         clock_t.
4463         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
4464
4465 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
4466
4467         * configure.in <sysdeps resolving>: Correct printing
4468         Implies_before.
4469         * configure: Regenerate.
4470
4471 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
4472
4473         * math/w_ilogb.c: Include <limits.h>.
4474         * math/w_ilogbl.c: Likewise.
4475
4476 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4477
4478         * manual/lang.texi (__va_copy): Document primarily as ISO C99
4479         va_copy.  Document allowing for unavailable va_copy only as
4480         pre-C99 compatibility.
4481         * manual/string.texi (Copying and Concatenation): Use va_copy
4482         instead of __va_copy in concat example.
4483
4484 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
4485
4486         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
4487         (__sendto): Use create_address_port.  Initialize APORT and deallocate
4488         it if not null.
4489
4490         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
4491         with O_NOLINK passed to __file_name_lookup.
4492
4493         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
4494         with O_NOLINK passed to __file_name_lookup.
4495
4496         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
4497         negative N or less than NGIDS.
4498
4499         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
4500         type to string_t.  Set ERANGE as errno and return it if NAME is not big
4501         enough.  Use memcpy instead of strncpy.
4502
4503 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4504
4505         * elf/Makefile (check-data): Remove.
4506         (localplt.data): New vpath directive.
4507         ($(objpfx)check-localplt.out): Use localplt.data from vpath
4508         instead of $(check-data).
4509         * scripts/data/localplt-generic.data: Move to ...
4510         * sysdeps/generic/localplt.data: ... here.
4511         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
4512         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
4513         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
4514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
4515         ... here.
4516         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
4517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
4518         ... here.
4519         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
4520         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
4521         ... here.
4522         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
4523         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
4524         ... here.
4525         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
4526         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
4527         ... here.
4528         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
4529         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
4530         ... here.
4531
4532 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4533
4534         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
4535         PPC32 and PPC64 files.
4536         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
4537         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
4538
4539 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4540
4541         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
4542         __makecontext_ret to ...
4543         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
4544         ... here and call exit if uc_link is NULL.  New file.
4545         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
4546         __makecontext_ret.S.
4547         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
4548         __makecontext_ret to ...
4549         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
4550         ... here and call exit if uc_link is NULL.  New file.
4551         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
4552         __makecontext_ret.S.
4553
4554 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4555
4556         * elf/elf.h (R_390_IRELATIVE): New definition.
4557         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
4558         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
4559         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
4560         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4561         (elf_machine_lazy_rel): Likewise.
4562         * sysdeps/s390/dl-irel.h: New file.
4563         * sysdeps/s390/s390-64/memcpy.S: New asm code.
4564         * sysdeps/s390/s390-64/memset.S: New asm code.
4565         * sysdeps/s390/s390-64/memcmp.S: New asm code.
4566         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
4567         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
4568         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
4569         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
4570         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
4571         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
4572         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
4573         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
4574         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
4575         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
4576         * sysdeps/s390/s390-32/memcpy.S: New asm code.
4577         * sysdeps/s390/s390-32/memset.S: New asm code.
4578         * sysdeps/s390/s390-32/memcmp.S: New asm code.
4579
4580 2012-07-17  Marek Polacek  <polacek@redhat.com>
4581
4582         [BZ #14349]
4583         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
4584         * sysdeps/s390/s390-64/configure.in: Likewise.
4585         * sysdeps/sparc/configure.in: Likewise.
4586         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
4587         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
4588         * sysdeps/i386/configure.in: Likewise.
4589         * sysdeps/x86_64/configure.in: Likewise.
4590         * sysdeps/sh/configure.in: Likewise.
4591         * sysdeps/s390/s390-32/configure: Regenerated.
4592         * sysdeps/s390/s390-64/configure: Likewise.
4593         * sysdeps/x86_64/configure: Likewise.
4594         * sysdeps/sh/configure: Likewise.
4595         * sysdeps/powerpc/powerpc64/configure: Likewise.
4596         * sysdeps/powerpc/powerpc32/configure: Likewise.
4597         * sysdeps/sparc/configure: Likwise.
4598         * sysdeps/i386/configure: Likewise.
4599
4600         * elf/dl-open.c: Comment fixes.
4601
4602 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
4603
4604         * Makefile [CXX] (check-data): Remove.
4605         [CXX] (c++-types.data): New vpath directive.
4606         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
4607         vpath.  Do not allow for C++ type data being missing.
4608         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
4609         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
4610         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
4611         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
4612         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
4613         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
4614         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
4615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
4616         ... here.
4617         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
4618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
4619         ... here.
4620         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
4621         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
4622         ... here.
4623         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
4624         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
4625         ... here.
4626         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
4627         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
4628         ... here.
4629         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
4630         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
4631         ... here.
4632         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
4633         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
4634         ... here.
4635         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
4636         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
4637
4638         * elf/tls-macros.h (TLS_LE): Move architecture-specific
4639         definitions to architecture-specific files.
4640         (TLS_IE): Likewise.
4641         (TLS_LD): Likewise.
4642         (TLS_GD): Likewise.
4643         * sysdeps/i386/tls-macros.h: New file.
4644         * sysdeps/powerpc/tls-macros.h: Likewise.
4645         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
4646         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
4647         * sysdeps/sh/tls-macros.h: Likewise.
4648         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
4649         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
4650         * sysdeps/x86_64/tls-macros.h: Likewise.
4651
4652 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4653
4654         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
4655         zero value for regular exit case.
4656
4657         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4658         (__start_context): Preserve zero value for regular exit case.
4659
4660 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4661             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4662
4663         * manual/setjmp.texi (setcontext): Clarify normal process
4664         termination when uc_link is the null pointer.
4665         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
4666         exit call.
4667
4668 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
4669
4670         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
4671         preprocessor.  Test for each exception mask separately.
4672
4673 2012-07-16  Andreas Jaeger  <aj@suse.de>
4674
4675         * po/ru.po: Update from translation team.
4676
4677 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
4678
4679         * conform/data/string.h-data (NULL): Use macro-constant.  Require
4680         equal to 0.
4681         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4682         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4683         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
4684         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
4685         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4686
4687 2012-07-13  Andreas Jaeger  <aj@suse.de>
4688
4689         * po/fr.po: Update from translation team.
4690
4691 2012-07-12  Marek Polacek  <polacek@redhat.com>
4692
4693         [BZ #14173]
4694         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4695         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4696         loop condition.
4697
4698 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4699
4700         [BZ #13717]
4701         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4702         Change to 2.4.1 where previously 2.4.0.
4703         * sysdeps/unix/sysv/linux/configure: Regenerated.
4704         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4705         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4706         version.
4707         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4708         (__ASSUME_AT_CLKTCK): Remove.
4709         (__ASSUME_AT_PAGESIZE): Likewise.
4710         (__ASSUME_AT_XID): Likewise.
4711         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4712         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4713         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4714         unconditionally.
4715         (HAVE_AUX_PAGESIZE): Likewise.
4716         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4717         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4718         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4719
4720 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4721
4722         [BZ #14307]
4723         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4724         the temporary buffer used to invoke __gethostbyname2_r,
4725         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4726         host_data / struct gaih_addrtuple.
4727         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4728         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4729         header file nss/nsswitch.h.
4730         * nss/nsswitch.h (global scope): Add definition of implementation
4731         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4732         resolv/nss_dns/dns-host.c).
4733
4734 2012-07-11  Andreas Jaeger  <aj@suse.de>
4735
4736         * po/fr.po: Update from translation team.
4737
4738         * po/sv.po: Update from translation team
4739         * po/fr.po: Another update from translation team.
4740
4741 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4742
4743         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4744         for subnormals or multiply small sinh result by itself.
4745         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4746         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4747
4748 2012-07-11  David S. Miller  <davem@davemloft.net>
4749
4750         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4751
4752 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4753
4754         [BZ #14347]
4755         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4756         (INTERNAL_MARK): Shift it here.
4757
4758 2012-07-10  Marek Polacek  <polacek@redhat.com>
4759
4760         [BZ #14151]
4761         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4762         libc_cv_asm_global_directive with .globl.
4763         * configure: Regenerated.
4764         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4765         with .globl.
4766         * sysdeps/i386/configure: Regenerated.
4767         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4768         with .globl.
4769         * sysdeps/x86_64/configure: Regenerated.
4770         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4771         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4772         * elf/tst-unique2mod2.c: Likewise.
4773         * elf/tst-unique2mod1.c: Likewise.
4774         * elf/tst-unique1mod2.c: Likewise.
4775         * elf/tst-unique1mod1.c: Likewise.
4776         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4777         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4778         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4779         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4780         * sysdeps/mach/sysdep.h: Likewise.
4781         * sysdeps/i386/sysdep.h: Likewise.
4782         * sysdeps/i386/i386-mcount.S: Likewise.
4783         * sysdeps/x86_64/_mcount.S: Likewise.
4784         * sysdeps/x86_64/sysdep.h: Likewise.
4785         * sysdeps/sh/_mcount.S: Likewise.
4786         * sysdeps/sh/sysdep.h: Likewise.
4787         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4788         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4789         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4790         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4791         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4792         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4793         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4794         * locale/localeinfo.h: Likewise.
4795         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4796         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4797
4798 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4799
4800         [BZ #14336]
4801         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4802         system".
4803         * manual/message.texi (The Uniforum approach): Likewise.
4804         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4805         (glibc iconv Implementation): Likewise.
4806
4807 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4808
4809         [BZ #14337]
4810         * math/s_clog.c (__clog): Avoid scaling a value down where that
4811         could result in underflow.
4812         * math/s_clog10.c (__clog10): Likewise.
4813         * math/s_clog10f.c (__clog10f): Likewise.
4814         * math/s_clog10l.c (__clog10l): Likewise.
4815         * math/s_clogf.c (__clogf): Likewise.
4816         * math/s_clogl.c (__clogl): Likewise.
4817         * math/libm-test.inc (clog_test): Add more tests.
4818         (clog10_test): Likewise.
4819         * sysdeps/i386/fpu/libm-test-ulps: Update.
4820         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4821
4822 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4823
4824         [BZ #14283]
4825         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4826         by 7 not 8 to examine high bit of fractional part.
4827
4828         [BZ #14042]
4829         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4830         for call to __mcount_internal.
4831         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4832         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4833         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4834
4835 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4836
4837         [BZ #14154]
4838         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4839         approximation for values within 0x1p-13f of an odd multiple of
4840         pi/4.
4841         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4842         exception.  Add more tests.
4843         * sysdeps/i386/fpu/libm-test-ulps: Update.
4844
4845         [BZ #6778]
4846         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4847         inputs and return -1 for them.  Do not check for +Inf in case not
4848         reachable for +Inf.
4849         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4850         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4851         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4852         and return -1 for them.  Do not check for +Inf in case not
4853         reachable for +Inf.
4854         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4855         define.
4856         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4857         and return -1 for them.  Do not check for +Inf in case not
4858         reachable for +Inf.
4859         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4860         spurious underflow.
4861         * sysdeps/i386/fpu/libm-test-ulps: Update.
4862         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4863
4864 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4865
4866         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4867
4868 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4869
4870         [BZ #14157]
4871         [BZ #14331]
4872         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4873         could result in spurious underflow.  Scale down values above
4874         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4875         * math/s_csqrtf.c (__csqrtf): Likewise.
4876         * math/s_csqrtl.c (__csqrtl): Likewise.
4877         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4878         spurious underflow.
4879         * sysdeps/i386/fpu/libm-test-ulps: Update.
4880         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4881
4882 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4883
4884         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4885         xopen-msg.sed.
4886         * catgets/xopen-msg.awk: New file.
4887         * catgets/xopen-msg.sed: Removed.
4888
4889         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4890         po2text.sed.
4891         * intl/po2test.awk: New file.
4892         * intl/po2test.sed: Removed.
4893
4894 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4895
4896         [BZ #14328]
4897         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4898         or multiply small sinh result by itself.
4899         * math/s_ctanf.c (__ctanf): Likewise.
4900         * math/s_ctanh.c (__ctanh): Likewise.
4901         * math/s_ctanhf.c (__ctanhf): Likewise.
4902         * math/s_ctanhl.c (__ctanhl): Likewise.
4903         * math/s_ctanl.c (__ctanl): Likewise.
4904         * math/libm-test.inc (ctan_test_tonearest): New function.
4905         (ctan_test_towardzero): Likewise.
4906         (ctan_test_downward): Likewise.
4907         (ctan_test_upward): Likewise.
4908         (ctanh_test_tonearest): Likewise.
4909         (ctanh_test_towardzero): Likewise.
4910         (ctanh_test_downward): Likewise.
4911         (ctanh_test_upward): Likewise.
4912         (main): Call these new functions.
4913         * sysdeps/i386/fpu/libm-test-ulps: Update.
4914         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4915
4916 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4917
4918         * .gitignore: Delete /ports entry.
4919
4920 2012-07-03  Andreas Jaeger  <aj@suse.de>
4921
4922         * po/bg.po: Update from translation team.
4923         * po/cs.po: Likewise.
4924         * po/de.po: Likewise.
4925         * po/hr.po: Likewise.
4926         * po/nl.pl: Likewise.
4927         * po/pl.po: Likewise.
4928         * po/vi.po: Likewise.
4929
4930 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4931
4932         * Makeconfig [!+link] (+link-before-libc): New variable.
4933         [!+link] (+link-after-libc): Likewise.
4934         [!+link] (+link-tests): Likewise.
4935         [!+link] (+link): Define in terms of $(+link-before-libc) and
4936         $(+link-after-libc).
4937         [!+link-static] (+link-static-before-libc): New variable.
4938         [!+link-static] (+link-static-after-libc): Likewise.
4939         [!+link-static] (+link-static-tests): Likewise.
4940         [!+link-static] (+link-static): Define in terms of
4941         $(+link-static-before-libc) and $(+link-static-after-libc).
4942         [build-shared] (link-libc-before-gnulib): New variable.
4943         [build-shared] (link-libc-tests): Likewise.
4944         [build-shared] (link-libc): Define in terms of
4945         $(link-libc-before-gnulib).
4946         [!build-shared] (link-libc-tests): New variable.
4947         (link-libc-static-tests): New variable.
4948         [!gnulib] (gnulib-arch): New variable.
4949         [!gnulib] (gnulib-tests): Likewise.
4950         [!gnulib] (static-gnulib-arch): Likewise.
4951         [!gnulib] (static-gnulib-tests): Likewise.
4952         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4953         Define with "=" instead of ":=".
4954         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4955         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4956         * Rules (binaries-all-notests): New variable.
4957         (binaries-all-tests): Likewise.
4958         (binaries-static-notests): Likewise.
4959         (binaries-static-tests): Likewise.
4960         (binaries-all): Define using $(binaries-all-notests) and
4961         $(binaries-all-tests).
4962         (binaries-static): Define using $(binaries-static-notests) and
4963         $(binaries-static-tests).
4964         (binaries-shared-tests): New variable.
4965         (binaries-shared-notests): Likewise.
4966         (binaries-shared): Remove variable.
4967         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4968         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4969         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4970         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4971         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4972         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4973         * elf/Makefile (sln-modules): New variable.
4974         (extra-objs): Add $(sln-modules:=.o).
4975         (ldconfig-modules): Add static-stubs.
4976         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4977         * elf/static-stubs.c: New file.
4978
4979         [BZ #14283]
4980         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4981         by 7 not 8 to examine high bit of fractional part.  Use volatile
4982         variables when splitting into final array of floats if
4983         __FLT_EVAL_METHOD__ != 0.
4984         * math/libm-test.inc (cos_test): Add another test.
4985         (sin_test): Likewise.
4986         * sysdeps/i386/fpu/libm-test-ulps: Update.
4987
4988         [BZ #14273]
4989         * math/libm-test.inc (cosh_test): Add more tests.
4990
4991         * version.h (RELEASE): Set to "development".
4992         (VERSION): Set to "2.16.90".
4993
4994 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4995
4996         * NEWS: Update copyright. Remove last-updated date.
4997         Mention math library bug fixes and timezone data changes.
4998         * README: Mention GNU/Hurd, x32, and HPPA support status.
4999
5000 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5001
5002         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5003
5004 2012-06-27  Andreas Jaeger  <aj@suse.de>
5005
5006         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5007
5008 2012-06-25  Andreas Jaeger  <aj@suse.de>
5009
5010         * sysdeps/s390/fpu/libm-test-ulps: Update.
5011
5012 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5013             Thomas Schwinge  <thomas@codesourcery.com>
5014
5015         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5016         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5017         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5018         fanotify_mark.
5019
5020 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5021
5022         * sysdeps/mach/start.c: Remove file.
5023         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5024         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5025         * sysdeps/sh/init-first.c: Likewise.
5026
5027         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5028         registers for frame unwinding purposes, add CFI directives.
5029         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5030         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5031         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5032         Likewise.
5033
5034         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5035         __fortify_fail returning.
5036         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5037
5038         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5039         sysdeps/sh/____longjmp_chk.S.
5040         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5041         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5042         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5043         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5044
5045         * sysdeps/sh/abort-instr.h: New file.
5046         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5047         process in case exit returns.
5048
5049         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5050         initialize the GOT register before use.
5051
5052         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5053         calculation of ARGC > 4.
5054
5055         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5056         meaningful names to some local labels.
5057
5058 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5059             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5060
5061         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5062         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5063         (__arch_compare_and_exchange_val_16_acq): Likewise.
5064         (__arch_compare_and_exchange_val_32_acq): Likewise.
5065         (atomic_exchange_and_add): Fix gUSA sequence.
5066         (atomic_add): Likewise.
5067         (atomic_add_negative): Likewise.
5068         (atomic_add_zero): Likewise.
5069         (atomic_bit_test_set): Likewise.
5070
5071 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5072
5073         [BZ #13579]
5074         * include/link.h (struct link_map): Add l_free_initfini.
5075         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5076         l_initfini.
5077         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5078         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5079         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5080         set.
5081
5082 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5083
5084         * configure.in: Use AC_LANG_SOURCE.
5085         * configure: Regenerate.
5086
5087 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5088
5089         * configure.in (libc_cv_localstatedir): New substituted variable.
5090         * configure: Regenerated.
5091         * config.make.in (localstatedir): New variable, substituted from
5092         libc_cv_localstatedir.
5093         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5094         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5095         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5096         * sysdeps/gnu/configure: Regenerated.
5097
5098 2012-06-21  Jeff Law  <law@redhat.com>
5099
5100         [BZ #14277]
5101         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5102         free.  Simplify list management for _LIBC case.
5103
5104 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5105
5106         [BZ #14273]
5107         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5108         Clear sign bit of 64-bit integer value before comparing against
5109         overflow value.
5110
5111         * sysdeps/mach/configure: Regenerated.
5112
5113 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5114
5115         [BZ #14278]
5116         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5117
5118 2012-06-21  Jeff Law  <law@redhat.com>
5119
5120         [BZ #13882]
5121         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5122         uint16_t for elements in the "seen" array to avoid char overflows.
5123         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5124         * elf/dl-open.c (dl_open_worker): Likewise.
5125
5126 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5127
5128         * scripts/list-sources.sh: Scan PORTS for translations.
5129         * po/libc.pot: Regenerated.
5130
5131 2012-06-21  Andreas Jaeger  <aj@suse.de>
5132
5133         [BZ #12194]
5134         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5135         warning.
5136         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5137         * bits/byteswap-16.h (__bswap_16): Likewise.
5138         * bits/byteswap.h (__bswap_constant_16): Likewise.
5139
5140 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5141
5142         [BZ #14117]
5143         * sysdeps/i386/fpu_control.h: Removed.
5144         * sysdeps/x86_64/fpu_control.h: Moved to ...
5145         * sysdeps/x86/fpu_control.h: Here.
5146
5147         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5148         (_FPU_SETCW): Likewise.
5149
5150 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5151
5152         [BZ #14117]
5153         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5154         * sysdeps/x86/fpu/bits/mathinline.h: This.
5155         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5156
5157         [BZ #14050]
5158         [BZ #14117]
5159         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5160         functions if __x86_64__ is defined.
5161
5162 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5163
5164         * string/endian.h: Add !__ASSEMBLER__ condition for including
5165         conversion interfaces.
5166
5167 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5168
5169         [BZ #14241]
5170         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5171         of ABS(x) in calculating zero to negative powers other than odd
5172         integers.
5173         * math/libm-test.inc (pow_test): Add more tests.
5174
5175 2012-06-15  Andreas Jaeger  <aj@suse.de>
5176
5177         * manual/contrib.texi (Contributors): Update entry of Liubov
5178         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5179         Machado Filho.
5180
5181 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5182
5183         * string/string.h: Add __wur to GNU version of strerror_r.
5184
5185 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5186
5187         [BZ #14229]
5188         * string/Makefile (tests): Add tst-strtok_r.
5189         * string/tst-strtok_r.c: New file.
5190         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5191         RAX_LP/RDX_LP on SAVE_PTR.
5192
5193 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5194
5195         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5196
5197 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5198
5199         * libm_test.inc (csqrt_test): Allow more spurious underflow
5200         exceptions.
5201         (j0_test): Likewise.
5202         (j1_test): Likewise.
5203         (y0_test): Likewise.
5204         (y1_test): Likewise.
5205
5206 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5207
5208         * po/Makefile (libc.pot): Use UTF-8 charset.
5209
5210 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5211
5212         [BZ #14210]
5213         Suppress sign-conversion warning from FD_SET.
5214         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5215         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5216         not unsigned long int.
5217         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5218
5219 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5220
5221         [BZ #14050]
5222         [BZ #14117]
5223         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5224         __extern_always_inline instead of __extern_inline.
5225         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5226         (__signbit): Likewise.
5227         (__signbitl): Support C++ namespace.
5228         (lrintf): New inline function.
5229         (lrint): Likewise.
5230         (llrintf): Likewise.
5231         (llrint): Likewise.
5232         (fmaxf): Likewise.
5233         (fmax): Likewise.
5234         (fminf): Likewise.
5235         (fmin): Likewise.
5236         (rint): Likewise.
5237         (rintf): Likewise.
5238         (ceil): Likewise.
5239         (ceilf): Likewise.
5240         (floor): Likewise.
5241         (floorf): Likewise.
5242         (nearbyint): Likewise.
5243         (nearbyintf): Likewise.
5244
5245 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5246
5247         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5248         non-default versions.
5249
5250 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5251
5252         [BZ #14218]
5253         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5254
5255 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5256
5257         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5258         (FE_UPWARD, FE_DOWNWARD): Don't define.
5259         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5260         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5261
5262         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5263         reading it.
5264         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5265         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5266
5267 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5268
5269         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5270         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5271         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5272         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5273
5274 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5275
5276         [BZ #14117]
5277         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5278         * sysdeps/i386/fpu/Implies: New file.
5279         * sysdeps/x86_64/fpu/Implies: Likewise.
5280         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5281         * sysdeps/x86/fpu/bits/fenv.h: This.
5282
5283         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5284         __SSE_MATH__.
5285
5286 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5287
5288         [BZ #14134]
5289         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5290         character 0xffff that matches the last element of the
5291         conversion table.
5292
5293 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5294
5295         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5296         fmodl commit.
5297
5298 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5299
5300         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5301         values higher than 25.6283.
5302
5303 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5304
5305         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5306         subnormal exponent extraction and add some __builtin_expect.
5307         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
5308         Fix for subnormal mantissa calculation.
5309
5310 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
5311
5312         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
5313         cpu2 is -1 and errno is not ENOSYS.
5314
5315 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5316
5317         [BZ #14117]
5318         * sysdeps/i386/i486/bits/string.h: Renamed to ...
5319         * sysdeps/x86/bits/string.h: This.
5320         * sysdeps/x86_64/bits/string.h: Removed.
5321
5322         * sysdeps/i386/i486/bits/string.h: Define inline functions only
5323         if not compiling for x86-64, but compiling for >= i486.
5324
5325         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
5326         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
5327
5328         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
5329         New macro from Linux kernel 3.4.0.
5330         (FP_XSTATE_MAGIC2): Likewise.
5331         (FP_XSTATE_MAGIC2_SIZE): Likewise.
5332         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
5333         (struct _fpx_sw_bytes): New struct.
5334         (struct _xsave_hdr): Likewise.
5335         (struct _ymmh_state): Likewise.
5336         (struct _xstate): Likewise.
5337
5338         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
5339         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
5340         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
5341         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
5342         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
5343         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
5344
5345         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
5346         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
5347         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
5348         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
5349         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
5350         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
5351
5352 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5353
5354         [BZ #13743]
5355         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
5356         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
5357         (sysdep_headers): Include sys/platform/ppc.h.
5358         * sysdeps/powerpc/test-gettimebase.c: Test for
5359         __ppc_get_timebase() to catch future ISA opcode/insn changes.
5360         * manual/Makefile (appendices): Include platform.texi.
5361         * manual/contrib.texi (Contributors): Update @node pointers.
5362         * manual/maint.texi (Maintenance): Likewise.
5363         (Platform): New node.
5364         * manual/platform.texi: New file.  Document the new features.
5365
5366 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5367             Jakub Jelinek  <jakub@redhat.com>
5368
5369         [BZ #14188]
5370         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
5371         where __builtin_expect is unavailable.
5372
5373 2012-06-03  David S. Miller  <davem@davemloft.net>
5374
5375         * stdlib/longlong.h: Updated from GCC.
5376
5377 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
5378
5379         [BZ #14042]
5380         * sysdeps/powerpc/powerpc32/mcount.c: New file.
5381         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
5382         __mcount_internal.
5383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
5384         (GLIBC_2.16): Likewise.
5385
5386 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5387
5388         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
5389
5390 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5391
5392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
5393         (default-abi): New variable.
5394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
5395         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
5396         variable.
5397         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
5398         Likewise.
5399         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
5400         Likewise.
5401         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
5402         Likewise.
5403
5404         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
5405         definition.  Document in comment.
5406
5407 2012-06-01  David S. Miller  <davem@davemloft.net>
5408
5409         * stdlib/longlong.h: Updated from GCC.
5410
5411 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5412
5413         [BZ #14117]
5414         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
5415         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
5416         sys/debugreg.h sys/io.h here.
5417         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
5418         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
5419         sys/io.h.
5420         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
5421         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
5422         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
5423         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
5424         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
5425         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
5426
5427         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
5428         Define only if __x86_64__ is defined.
5429
5430 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5431
5432         [BZ #14048]
5433         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
5434         Use int64_t for variable i.
5435         * math/libm-test.inc (fmod_test): Add more tests.
5436
5437         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
5438         z computation is not scheduled after fetestexcept.
5439         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
5440         Use math_force_eval instead of asm to ensure calculation scheduled
5441         before exception test.
5442         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
5443         Ensure a1 + u.d computation is not scheduled after fetestexcept.
5444
5445 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
5446
5447         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
5448         computation is not scheduled after fetestexcept.
5449
5450 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5451
5452         [BZ #14117]
5453         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
5454         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
5455
5456 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5457
5458         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
5459         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5460
5461 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5462
5463         [BZ #14117]
5464         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
5465         <bits/wordsize.h>.
5466         (__WCHAR_MIN): Support __WORDSIZE == 64.
5467         (__WCHAR_MAX): Likewise.
5468
5469         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
5470         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
5471
5472         [BZ #14183]
5473         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
5474         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
5475
5476         [BZ #14117]
5477         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
5478         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
5479
5480         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
5481         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
5482
5483         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
5484         Defined to 1 if __x86_64__ isn't defined.
5485         (_STAT_VER_LINUX_OLD): New.
5486         (st_atime): Remove duplicate.
5487         (st_mtime): Likewise.
5488         (st_ctime): Likewise.
5489
5490 2012-05-31  David S. Miller  <davem@davemloft.net>
5491
5492         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
5493         entries.
5494
5495 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
5496
5497         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
5498         gen-libm-test.pl.
5499
5500         [BZ #14132]
5501         * elf/dl-reloc.c: Include <_itoa.h>.
5502         (_dl_reloc_bad_type): Remove use of INTUSE.
5503         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
5504         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
5505         * stdio-common/psiginfo.c (psiginfo): Likewise.
5506         * stdio-common/psignal.c (psignal): Likewise.
5507         * string/strsignal.c (strsignal): Likewise.
5508         * include/signal.h (_sys_siglist): Declare hidden proto.
5509         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
5510         INTVARDEF with libc_hidden_data_def.
5511         * stdio-common/itoa-udigits.c: Likewise.
5512         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
5513         (_itoa_lower_digits_internal): Remove declaration.
5514         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
5515         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
5516         (_sys_sigabbrev_internal): Remove aliases.
5517         (_sys_siglist): Define hidden alias.
5518
5519 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5520
5521         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5522         bits/sysctl.h.
5523
5524 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5525
5526         [BZ #14117]
5527         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
5528         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
5529
5530         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
5531         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
5532         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
5533         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
5534         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
5535         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
5536
5537         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
5538         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
5539         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
5540
5541         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
5542         with __addr.
5543         (insw): Likewise.
5544         (insl): Likewise.
5545         (outsb): Likewise.
5546         (outsw): Likewise.
5547         (outsl): Likewise.
5548
5549         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
5550         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
5551         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
5552
5553         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
5554         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
5555         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
5556         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
5557         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
5558         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
5559
5560         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
5561         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
5562
5563         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
5564         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
5565
5566         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
5567         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
5568         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
5569
5570         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
5571         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
5572         to ...
5573         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
5574
5575         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
5576         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
5577         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
5578
5579         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
5580         for x86-64.
5581         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
5582
5583 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
5584
5585         * math/math.h (M_El): Use two more decimal places.
5586         (M_LOG2El): Likewise.
5587         (M_LOG10El): Likewise.
5588         (M_LN2l): Likewise.
5589         (M_LN10l): Likewise.
5590         (M_PIl): Likewise.
5591         (M_PI_2l): Likewise.
5592         (M_PI_4l): Likewise.
5593         (M_1_PIl): Likewise.
5594         (M_2_PIl): Likewise.
5595         (M_2_SQRTPIl): Likewise.
5596         (M_SQRT2l): Likewise.
5597         (M_SQRT1_2l): Likewise.
5598
5599 2012-05-31  David S. Miller  <davem@davemloft.net>
5600
5601         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
5602         values between float registers.
5603         * sysdeps/sparc/sparc64/memset.S: Likewise.
5604         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5605
5606 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
5607
5608         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
5609         -D_FORTIFY_SOURCE=1.
5610         (CPPFLAGS-tst-longjmp_chk.c): Define.
5611         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
5612         (CPPFLAGS-tst-longjmp_chk2.c): Define.
5613         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
5614         CFLAGS-tst-wchar-h.c.
5615
5616 2012-05-31  Marek Polacek  <polacek@redhat.com>
5617
5618         [BZ #14132]
5619         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
5620         __endmntent_internal): Remove declaration.
5621         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
5622         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
5623         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
5624
5625 2012-05-30  David S. Miller  <davem@davemloft.net>
5626
5627         * sysdeps/sparc/sparc32/soft-fp/q_util.c
5628         (___Q_simulate_exceptions): Use real FP ops rather than writing
5629         into the %fsr.
5630         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
5631         Likewise.
5632
5633 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5634
5635         [BZ #14117]
5636         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
5637         * sysdeps/x86/bits/xtitypes.h: This.
5638
5639         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
5640         * sysdeps/x86/bits/wordsize.h: This.
5641
5642         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
5643         * sysdeps/x86/bits/huge_vall.h: This.
5644
5645         * sysdeps/i386/bits/select.h: Removed.
5646         * sysdeps/x86_64/bits/select.h: Renamed to ...
5647         * sysdeps/x86/bits/select.h: This.
5648
5649         * sysdeps/i386/bits/setjmp.h: Removed.
5650         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
5651         * sysdeps/x86/bits/setjmp.h: This.
5652
5653         * sysdeps/i386/bits/mathdef.h: Removed.
5654         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
5655         * sysdeps/x86/bits/mathdef.h: This.
5656
5657 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5658
5659         [BZ #14132]
5660         * include/sys/socket.h (__connect_internal)
5661         (__libc_sa_len_internal): Remove declaration.
5662         (__connect, __libc_sa_len): Declare hidden_proto.
5663         (SA_LEN): Remove use of INTUSE.
5664         * socket/connect.c: Add libc_hidden_def.
5665         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
5666         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
5667         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
5668         alias.
5669         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5670         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5671         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
5672         of adding _internal alias.
5673
5674 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5675
5676         [BZ #14117]
5677         * sysdeps/i386/bits/link.h: Removed.
5678         * sysdeps/i386/bits/linkmap.h: Likewise.
5679         * sysdeps/x86_64/bits/link.h: Renamed to ...
5680         * sysdeps/x86/bits/link.h: This.
5681         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
5682         * sysdeps/x86/bits/linkmap.h: This.
5683
5684         * sysdeps/i386/bits/endian.h: Removed.
5685         * sysdeps/x86_64/bits/endian.h: Renamed to ...
5686         * sysdeps/x86/bits/endian.h: This.
5687
5688         * sysdeps/i386/bits/byteswap.h: Removed.
5689         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5690         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
5691         * sysdeps/x86/bits/byteswap.h: This.
5692         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5693         * sysdeps/x86/bits/byteswap-16.h: This.
5694         * sysdeps/i386/Implies: Add x86.
5695         * sysdeps/x86_64/Implies: Likewise.
5696
5697 2012-05-30  David S. Miller  <davem@davemloft.net>
5698
5699         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5700         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5701         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5702         (FP_TRAPPING_EXCEPTIONS): Define.
5703         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5704         (FP_TRAPPING_EXCEPTIONS): Define.
5705         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5706         subnormals only when inexact has been signalled or underflow
5707         exceptions are enabled.
5708         (_FP_PACK_CANONICAL): Likewise.
5709
5710 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5711
5712         [BZ #14183]
5713         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5714         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5715
5716 2012-05-30  Richard Henderson  <rth@twiddle.net>
5717
5718         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5719         with #ifndef NOT_IN_libc.
5720
5721         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5722         marked to avoid plt entry.
5723
5724 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5725
5726         [BZ #14112]
5727         * Makeconfig (default-abi): New macro.
5728         (abi-includes): Likewise.
5729         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5730         $(abi-$(default-abi)-lib-soname) for soname if defined.
5731         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5732         abi-variants.
5733         * Makefile (installed-stubs): Likewise.
5734         * include/stubs-biarch.h: Removed.
5735         * scripts/lib-names.awk: Only handle one library at a time.
5736         * scripts/soversions.awk: Remove WORDSIZE support.
5737         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5738         entries.
5739         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5740         Removed.
5741         (syscall-list-default-condition): Likewise.
5742         (syscall-list-default-condition): Likewise.
5743         (syscall-list-includes): Likewise.
5744         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5745         syscall-list-* with abi-*.  Handle undefined abi-variants.
5746         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5747         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5748         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5749         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5750         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5751         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5752         Removed.
5753         (syscall-list-32-options): Likewise.
5754         (syscall-list-32-condition): Likewise.
5755         (syscall-list-64-options): Likewise.
5756         (syscall-list-64-condition): Likewise.
5757         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5758         macro.
5759         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5760         Renamed to ...
5761         (abi-*): This.
5762         (abi-64-ld-soname): New macro.
5763         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5764         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5765         Renamed to ...
5766         (abi-*): This.
5767         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5768         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5769
5770 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5771
5772         * sysdeps/unix/sysv/linux/kernel-features.h
5773         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5774         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5775         include <kernel-features.h>.
5776         [!__NR_ftruncate64]: Remove conditional code.
5777         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5778         [__NR_ftruncate64]: Make code unconditional.
5779         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5780         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5781         include <kernel-features.h>.
5782         [!__NR_ftruncate64]: Remove conditional code.
5783         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5784         [__NR_ftruncate64]: Make code unconditional.
5785         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5787         include <kernel-features.h>.
5788         [!__NR_ftruncate64]: Remove conditional code.
5789         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5790         [__NR_ftruncate64]: Make code unconditional.
5791         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5793         include <kernel-features.h>.
5794         [!__NR_ftruncate64]: Remove conditional code.
5795         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5796         [__NR_ftruncate64]: Make code unconditional.
5797         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5798
5799         * configure.in (libc_cv_fpie): Weaken to a compile test using
5800         LIBC_TRY_CC_OPTION.
5801         * configure: Regenerated.
5802
5803 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5804
5805         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5806         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5807         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5808         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5809         Refreshed.
5810         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5811         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5812         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5813         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5814         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5815         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5816         Refreshed.
5817
5818 2012-05-27  David S. Miller  <davem@davemloft.net>
5819
5820         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5821         (___Q_zero): New.
5822         (__Q_simulate_exceptions): Return void.  Change to simulate
5823         exceptions by writing into the %fsr.
5824         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5825         (__Qp_handle_exceptions): Likewise.
5826         (numbers): Delete.
5827         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5828         __Qp_handle_exceptions.
5829         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5830         __Qp_handle_exceptions.
5831         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5832         as unused and give dummy FP_RND_NEAREST initializer.
5833         (FP_INHIBIT_RESULTS): Define.
5834         (___Q_simulate_exceptions): Update declaration.
5835         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5836         formatting.
5837         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5838         as unused and give dummy FP_RND_NEAREST initializer.
5839         (__Qp_handle_exceptions): Update declaration.
5840         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5841         formatting.
5842
5843 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5844
5845         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5846         the temporary FPU control word.
5847         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5848         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5849         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5850         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5851         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5852         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5853         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5854         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5855         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5856         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5857         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5858
5859 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5860
5861         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5862         fields.
5863
5864 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5865
5866         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5867         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5868         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5869         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5870         Likewise.
5871         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5872         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5873         Likewise.
5874
5875 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5876
5877         * po/h.po: Update from translation team.
5878
5879 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5880
5881         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5882
5883         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5884         handling of denormals.
5885         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5886         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5887         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5888         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5889         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5890         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5891         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5892         Likewise.
5893
5894 2012-05-26  Marek Polacek  <polacek@redhat.com>
5895
5896         [BZ #14152]
5897         * math/libm-test.inc (fma_test): Don't always expect underflow
5898         exception.
5899
5900 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5901
5902         [BZ #12416]
5903         * elf/tst-execstack.c: Include stackinfo.h.
5904         (do_test): Adjust test case to ensure that pthread_getattr_np
5905         behaviour remains the same after marking stack executable.
5906
5907 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5908
5909         * sysdeps/unix/sysv/linux/kernel-features.h
5910         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5911         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5912         kernel-features.h.
5913         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5914         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5915         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5916         kernel-features.h.
5917         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5918         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5919
5920 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5921
5922         * configure.in: Define the default includes to being none.
5923         * configure: Regenerated.
5924
5925 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5926
5927         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5928         * sysdeps/x86_64/setjmp.S: Likewise.
5929         * sysdeps/i386/bsd-setjmp.S: Likewise.
5930         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5931         * sysdeps/i386/setjmp.S: Likewise.
5932         * sysdeps/i386/__longjmp.S: Likewise.
5933         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5934         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5935
5936         * include/stap-probe.h: New file.
5937         * configure.in: Handle --enable-systemtap.
5938         * configure: Regenerated.
5939         * config.h.in (USE_STAP_PROBE): New #undef.
5940         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5941         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5942         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5943
5944 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5945
5946         [BZ #13717]
5947         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5948         to 2.4.0 where earlier.
5949         * sysdeps/unix/sysv/linux/configure: Regenerated.
5950         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.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/fchownat.c (fchownat)
5959         [__ASSUME_32BITUIDS]: Make code unconditional.
5960         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5961         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5962         <kernel-features.h>.
5963         [__ASSUME_32BITUIDS]: Make code unconditional.
5964         [!__ASSUME_32BITUIDS]: Remove conditional code.
5965         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5966         <kernel-features.h>.
5967         [__ASSUME_32BITUIDS]: Make code unconditional.
5968         [!__ASSUME_32BITUIDS]: Remove conditional code.
5969         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5970         <kernel-features.h>.
5971         [__ASSUME_32BITUIDS]: Make code unconditional.
5972         [!__ASSUME_32BITUIDS]: Remove conditional code.
5973         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5974         <kernel-features.h>.
5975         [__ASSUME_32BITUIDS]: Make code unconditional.
5976         [!__ASSUME_32BITUIDS]: Remove conditional code.
5977         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5978         <kernel-features.h>.
5979         [__ASSUME_32BITUIDS]: Make code unconditional.
5980         [!__ASSUME_32BITUIDS]: Remove conditional code.
5981         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5982         <kernel-features.h>.
5983         [__ASSUME_32BITUIDS]: Make code unconditional.
5984         [!__ASSUME_32BITUIDS]: Remove conditional code.
5985         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5986         <kernel-features.h>.
5987         [__ASSUME_32BITUIDS]: Make code unconditional.
5988         [!__ASSUME_32BITUIDS]: Remove conditional code.
5989         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5990         <kernel-features.h>.
5991         [__ASSUME_32BITUIDS]: Make code unconditional.
5992         [!__ASSUME_32BITUIDS]: Remove conditional code.
5993         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5994         <kernel-features.h>.
5995         [__ASSUME_32BITUIDS]: Make code unconditional.
5996         [!__ASSUME_32BITUIDS]: Remove conditional code.
5997         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5998         <kernel-features.h>.
5999         [__ASSUME_32BITUIDS]: Make code unconditional.
6000         [!__ASSUME_32BITUIDS]: Remove conditional code.
6001         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
6002         <kernel-features.h>.
6003         [__NR_setresgid] (__setresgid): Do not declare.
6004         [__ASSUME_32BITUIDS]: Make code unconditional.
6005         [!__ASSUME_32BITUIDS]: Remove conditional code.
6006         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6007         <kernel-features.h>.
6008         [__NR_setresuid] (__setresuid): Do not declare.
6009         [__ASSUME_32BITUIDS]: Make code unconditional.
6010         [!__ASSUME_32BITUIDS]: Remove conditional code.
6011         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
6012         <kernel-features.h>.
6013         [__ASSUME_32BITUIDS]: Make code unconditional.
6014         [!__ASSUME_32BITUIDS]: Remove conditional code.
6015         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
6016         <kernel-features.h>.
6017         [__ASSUME_32BITUIDS]: Make code unconditional.
6018         [!__ASSUME_32BITUIDS]: Remove conditional code.
6019         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
6020         <kernel-features.h>.
6021         [__ASSUME_32BITUIDS]: Make code unconditional.
6022         [!__ASSUME_32BITUIDS]: Remove conditional code.
6023         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
6024         <kernel-features.h>.
6025         [__ASSUME_32BITUIDS]: Make code unconditional.
6026         [!__ASSUME_32BITUIDS]: Remove conditional code.
6027         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
6028         <kernel-features.h>.
6029         [__ASSUME_32BITUIDS]: Make code unconditional.
6030         [!__ASSUME_32BITUIDS]: Remove conditional code.
6031         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
6032         <kernel-features.h>.
6033         [__ASSUME_32BITUIDS]: Make code unconditional.
6034         [!__ASSUME_32BITUIDS]: Remove conditional code.
6035         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
6036         <kernel-features.h>.
6037         [__ASSUME_32BITUIDS]: Make code unconditional.
6038         [!__ASSUME_32BITUIDS]: Remove conditional code.
6039         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
6040         <kernel-features.h>.
6041         [__ASSUME_32BITUIDS]: Make code unconditional.
6042         [!__ASSUME_32BITUIDS]: Remove conditional code.
6043         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
6044         <kernel-features.h>.
6045         [__ASSUME_32BITUIDS]: Make code unconditional.
6046         [!__ASSUME_32BITUIDS]: Remove conditional code.
6047         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
6048         <kernel-features.h>.
6049         [__ASSUME_32BITUIDS]: Make code unconditional.
6050         [!__ASSUME_32BITUIDS]: Remove conditional code.
6051         * sysdeps/unix/sysv/linux/kernel-features.h
6052         (__ASSUME_SETRESUID_SYSCALL): Remove.
6053         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6054         (__ASSUME_32BITUIDS): Likewise.
6055         (__ASSUME_LDT_WORKS): Likewise.
6056         (__ASSUME_O_DIRECTORY): Likewise.
6057         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6058         architecture but not kernel version.
6059         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6060         (__ASSUME_MMAP2_SYSCALL): Likewise.
6061         (__ASSUME_STAT64_SYSCALL): Likewise.
6062         (__ASSUME_IPC64): Likewise.
6063         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6064         <kernel-features.h>.
6065         [__ASSUME_32BITUIDS]: Make code unconditional.
6066         [!__ASSUME_32BITUIDS]: Remove conditional code.
6067         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6068         <kernel-features.h>.
6069         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6070         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6071         132096]: Remove conditional code.
6072         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6073         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6074         <kernel-features.h>.
6075         [__ASSUME_32BITUIDS]: Make code unconditional.
6076         [!__ASSUME_32BITUIDS]: Remove conditional code.
6077         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6078         <kernel-features.h>.
6079         [__ASSUME_32BITUIDS]: Make code unconditional.
6080         [!__ASSUME_32BITUIDS]: Remove conditional code.
6081         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6082         <kernel-features.h>.
6083         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6084         unconditional.
6085         (__setresgid): Do not declare.
6086         [__ASSUME_32BITUIDS]: Make code unconditional.
6087         [!__ASSUME_32BITUIDS]: Remove conditional code.
6088         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6089         <kernel-features.h>.
6090         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6091         unconditional.
6092         (__setresuid): Do not declare.
6093         [__ASSUME_32BITUIDS]: Make code unconditional.
6094         [!__ASSUME_32BITUIDS]: Remove conditional code.
6095         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6096         <kernel-features.h>.
6097         [__ASSUME_32BITUIDS]: Make code unconditional.
6098         [!__ASSUME_32BITUIDS]: Remove conditional code.
6099         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6100         <kernel-features.h>.
6101         [__ASSUME_32BITUIDS]: Make code unconditional.
6102         [!__ASSUME_32BITUIDS]: Remove conditional code.
6103
6104 2012-05-25  Richard Henderson  <rth@twiddle.net>
6105
6106         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6107         dl_hwcap to ifunc resolver.
6108         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6109         elf_ifunc_invoke.
6110         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6111         dl_hwcap to ifunc resolver.
6112         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6113
6114 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6115
6116         [BZ #14153]
6117         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6118         for |x| <= 2**-26, not 2**-57.
6119         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6120         exception.
6121
6122 2012-05-24  Jeff Law  <law@redhat.com>
6123
6124         * stdio-common/Makefile (tests): Add bug25.
6125         * stdio-common/bug25.c: New test.
6126
6127 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6128
6129         [BZ #13576]
6130         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6131         multiple of MALLOC_ALIGNMENT in size.
6132         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6133
6134 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6135
6136         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6137         Require >= 256.
6138         (FILENAME_MAX): Use macro-int-constant.
6139         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6140         (_IOFBF): Use macro-int-constant.
6141         (_IOLBF): Likewise.
6142         (_IONBF): Likewise.
6143         (SEEK_CUR): Likewise.
6144         (SEEK_END): Likewise.
6145         (SEEK_SET): Likewise.
6146         (TMP_MAX): Likewise.
6147         (EOF): Use macro-int-constant.  Require < 0.
6148         (NULL): Use macro-constant.  Require == 0.
6149         (stdin): Require type to be FILE *.
6150         (stdout): Likewise.
6151         (stderr): Likewise.
6152         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6153         macro-int-constant.
6154         (EXIT_SUCCESS): Likewise.
6155         (NULL): Use macro-constant.  Require == 0.
6156         (RAND_MAX): Use macro-int-constant.
6157         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6158         [C99-based standards] (strtof): Require function.
6159         [C99-based standards] (strtold): Likewise.
6160         [C99-based standards] (strtoll): Likewise.
6161         [C99-based standards] (strtoull): Likewise.
6162         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6163         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6164         [ISO || ISO99 || ISO11] (math.h): Likewise.
6165         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6166         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6167         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6168
6169 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6170
6171         [BZ #14132]
6172         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6173         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6174         * intl/dgettext.c (DCGETTEXT): Likewise.
6175         * intl/gettext.c (DCGETTEXT): Likewise.
6176         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6177         * posix/regex_internal.h (gettext): Likewise.
6178         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6179         Remove declaration.
6180         * include/argz.h (__argz_count_internal)
6181         (__argz_stringify_internal): Remove declaration.
6182         (__argz_count, __argz_stringify): Declare hidden proto.
6183         * intl/dcgettext.c: Remove use of INTDEF.
6184         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6185         * string/argz-stringify.c: Likewise.
6186         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6187         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6188         Declare hidden proto.
6189         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6190         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6191         Declare hidden proto.
6192         * include/stdio.h (__asprintf_internal): Don't declare.
6193         (__asprintf): Don't define as macro.  Declare hidden proto.
6194         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6195         (__fsetlocking): Declare hidden proto.
6196         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6197         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6198         hidden proto.
6199         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6200         (_IO_setlinebuf): Remove use of INTUSE.
6201         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6202         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6203         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6204         Remove declaration.
6205         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6206         (_IO_do_flush): Remove use of INTUSE.
6207         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6208         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6209         (_IO_adjust_column, _IO_least_wmarker)
6210         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6211         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6212         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6213         (_IO_default_doallocate, _IO_wdefault_doallocate)
6214         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6215         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6216         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6217         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6218         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6219         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6220         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6221         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6222         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6223         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6224         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6225         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6226         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6227         proto.
6228         (_IO_flush_all_internal, _IO_adjust_column_internal)
6229         (_IO_default_uflow_internal, _IO_default_finish_internal)
6230         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6231         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6232         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6233         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6234         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6235         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6236         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6237         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6238         (_IO_file_close_internal, _IO_file_close_it_internal)
6239         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6240         (_IO_file_init_internal, _IO_file_attach_internal)
6241         (_IO_file_fopen_internal, _IO_file_read_internal)
6242         (_IO_file_sync_internal, _IO_file_seek_internal)
6243         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6244         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6245         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6246         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6247         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6248         (_IO_list_all_internal, _IO_link_in_internal)
6249         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6250         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6251         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6252         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6253         (_IO_do_write_internal, _IO_padn_internal)
6254         (_IO_getline_info_internal, _IO_getline_internal)
6255         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6256         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6257         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6258         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6259         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6260         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6261         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6262         with libc_hidden_ver, remove use of INTUSE.
6263         * libio/genops.c: Likewise.
6264         * libio/freopen.c: Likewise.
6265         * libio/freopen64.c: Likewise.
6266         * libio/iofclose.c: Likewise.
6267         * libio/iofdopen.c: Likewise.
6268         * libio/iofflush.c: Likewise.
6269         * libio/iofflush_u.c: Likewise.
6270         * libio/iofgets.c: Likewise.
6271         * libio/iofgets_u.c: Likewise.
6272         * libio/iofopen.c: Likewise.
6273         * libio/iofopncook.c: Likewise.
6274         * libio/iofread.c: Likewise.
6275         * libio/iofread_u.c: Likewise.
6276         * libio/ioftell.c: Likewise.
6277         * libio/iofwrite.c: Likewise.
6278         * libio/iogetline.c: Likewise.
6279         * libio/iogets.c: Likewise.
6280         * libio/iogetwline.c: Likewise.
6281         * libio/iopadn.c: Likewise.
6282         * libio/iopopen.c: Likewise.
6283         * libio/ioseekoff.c: Likewise.
6284         * libio/ioseekpos.c: Likewise.
6285         * libio/iosetbuffer.c: Likewise.
6286         * libio/iosetvbuf.c: Likewise.
6287         * libio/ioungetc.c: Likewise.
6288         * libio/ioungetwc.c: Likewise.
6289         * libio/iovdprintf.c: Likewise.
6290         * libio/iovsprintf.c: Likewise.
6291         * libio/iovsscanf.c: Likewise.
6292         * libio/memstream.c: Likewise.
6293         * libio/obprintf.c: Likewise.
6294         * libio/oldfileops.c: Likewise.
6295         * libio/oldiofclose.c: Likewise.
6296         * libio/oldiofdopen.c: Likewise.
6297         * libio/oldiofopen.c: Likewise.
6298         * libio/oldiopopen.c: Likewise.
6299         * libio/oldstdfiles.c: Likewise.
6300         * libio/putc.c: Likewise.
6301         * libio/setbuf.c: Likewise.
6302         * libio/setlinebuf.c: Likewise.
6303         * libio/stdfiles.c: Likewise.
6304         * libio/strops.c: Likewise.
6305         * libio/vasprintf.c: Likewise.
6306         * libio/vscanf.c: Likewise.
6307         * libio/vsnprintf.c: Likewise.
6308         * libio/vswprintf.c: Likewise.
6309         * libio/wfiledoalloc.c: Likewise.
6310         * libio/wfileops.c: Likewise.
6311         * libio/wgenops.c: Likewise.
6312         * libio/wmemstream.c: Likewise.
6313         * libio/wstrops.c: Likewise.
6314         * libio/__fpurge.c: Likewise.
6315         * libio/__fsetlocking.c: Likewise.
6316         * assert/assert.c: Likewise.
6317         * debug/fgets_chk.c: Likewise.
6318         * debug/fgets_u_chk.c: Likewise.
6319         * debug/fread_chk.c: Likewise.
6320         * debug/fread_u_chk.c: Likewise.
6321         * debug/gets_chk.c: Likewise.
6322         * debug/obprintf_chk.c: Likewise.
6323         * debug/vasprintf_chk.c: Likewise.
6324         * debug/vdprintf_chk.c: Likewise.
6325         * debug/vsnprintf_chk.c: Likewise.
6326         * debug/vsprintf_chk.c: Likewise.
6327         * malloc/mtrace.c: Likewise.
6328         * misc/error.c: Likewise.
6329         * misc/syslog.c: Likewise.
6330         * stdio-common/asprintf.c: Likewise.
6331         * stdio-common/fxprintf.c: Likewise.
6332         * stdio-common/getw.c: Likewise.
6333         * stdio-common/isoc99_fscanf.c: Likewise.
6334         * stdio-common/isoc99_scanf.c: Likewise.
6335         * stdio-common/isoc99_vfscanf.c: Likewise.
6336         * stdio-common/isoc99_vscanf.c: Likewise.
6337         * stdio-common/isoc99_vsscanf.c: Likewise.
6338         * stdio-common/printf-prs.c: Likewise.
6339         * stdio-common/printf_fp.c: Likewise.
6340         * stdio-common/printf_fphex.c: Likewise.
6341         * stdio-common/printf_size.c: Likewise.
6342         * stdio-common/putw.c: Likewise.
6343         * stdio-common/scanf.c: Likewise.
6344         * stdio-common/sprintf.c: Likewise.
6345         * stdio-common/tmpfile.c: Likewise.
6346         * stdio-common/vfprintf.c: Likewise.
6347         * stdio-common/vfscanf.c: Likewise.
6348         * stdlib/strfmon_l.c: Likewise.
6349         * sunrpc/openchild.c: Likewise.
6350         * sunrpc/xdr_stdio.c: Likewise.
6351         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
6352         * sysdeps/mach/hurd/tmpfile.c: Likewise.
6353
6354 2012-05-24  Roland McGrath  <roland@hack.frob.com>
6355
6356         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6357
6358         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
6359         in the third column, to generate for the shared library an IFUNC
6360         that uses _dl_vdso_vsym.
6361         * Makerules (COMPILE.c, compile-stdin.c): New variables.
6362         * Makeconfig (object-suffixes-noshared): New variable.
6363
6364         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
6365         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
6366         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
6367         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
6368
6369         [BZ #14132]
6370         * include/sys/time.h (__gettimeofday): Remove macro.
6371         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
6372         * time/gettimeofday.c (__gettimeofday): Remove #undef.
6373         Remove INTDEF.
6374         (__gettimeofday): Add libc_hidden_def.
6375         (gettimeofday): Add libc_hidden_weak.
6376         * sysdeps/mach/gettimeofday.c: Likewise.
6377         * sysdeps/posix/gettimeofday.c: Likewise.
6378         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
6379         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
6380         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
6381         (__gettimeofday_internal): Remove strong_alias.
6382         (__gettimeofday): Add libc_hidden_def.
6383         (gettimeofday): Add libc_hidden_weak.
6384         * sysdeps/unix/syscalls.list (gettimeofday):
6385         Remove __gettimeofday_internal alias.
6386
6387 2012-05-24  Daniel Jacobowitz  <drow@false.org>
6388             H.J. Lu  <hongjiu.lu@intel.com>
6389
6390         [BZ #12495]
6391         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
6392         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
6393         (largebin_index_32_big): New.
6394         (largebin_index): Use it for 16-byte alignment.
6395         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
6396         correction with front_misalign.
6397
6398 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6399
6400         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
6401         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
6402         Likewise.
6403         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
6404         Likewise.
6405         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
6406         Likewise.
6407         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
6408         Likewise.
6409         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
6410         Likewise.
6411         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
6412         Likewise.
6413         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
6414         Likewise.
6415         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6416         Likewise.
6417         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
6418         Likewise.
6419         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
6420         Likewise.
6421         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
6422         Likewise.
6423         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
6424         Likewise.
6425
6426         * scripts/data/c++-types-x32-linux-gnu.data: New file.
6427         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
6428
6429 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6430
6431         [BZ #10846]
6432         [BZ #14036]
6433         * math/libm-test.inc (exp_test): Add test from bug 14036.
6434         (pow_test): Add test from bug 10846.
6435
6436         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
6437         and other flags.
6438         (special_function): Do not include flags in test name.
6439         (parse_args): Likewise.
6440         * sysdeps/i386/fpu/libm-test-ulps: Update.
6441         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6442         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6443         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6444         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6445
6446         * math/gen-libm-test.pl (%beautify): Add entries for underflow
6447         exceptions.
6448         * math/libm-test.inc ("Philosophy"): Update comment about
6449         exception testing.
6450         (UNDERFLOW_EXCEPTION): New macro.
6451         (UNDERFLOW_EXCEPTION_OK): Likewise.
6452         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
6453         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
6454         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
6455         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
6456         (INVALID_EXCEPTION_OK): Update value.
6457         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6458         (OVERFLOW_EXCEPTION_OK): Likewise.
6459         (IGNORE_ZERO_INF_SIGN): Likewise.
6460         (test_exceptions): Handle underflow exceptions.
6461         (acos_test): Update for underflow exception expectations.
6462         (cexp_test): Likewise.
6463         (clog_test): Likewise.
6464         (clog10_test): Likewise.
6465         (csqrt_test): Likewise.
6466         (ctan_test): Likewise.
6467         (ctanh_test): Likewise.
6468         (exp_test): Likewise.
6469         (exp10_test): Likewise.
6470         (exp2_test): Likewise.
6471         (expm1_test): Likewise.
6472         (fma_test): Likewise.
6473         (j0_test): Likewise.
6474         (jn_test): Likewise.
6475         (nexttoward_test): Likewise.
6476         (pow_test): Likewise.
6477         (scalbn_test): Likewise.
6478         (scalbln_test): Likewise.
6479         (tan_test): Likewise.
6480         (y1_test): Likewise.
6481         * sysdeps/i386/fpu/libm-test-ulps: Update.
6482         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6483
6484 2012-05-23  David S. Miller  <davem@davemloft.net>
6485
6486         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6487         (__libc_sigaction): Remove unused local variables.
6488
6489 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6490
6491         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
6492
6493 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6494
6495         mktime: avoid signed integer overflow
6496         * time/mktime.c (__mktime_internal): Do not mishandle the case
6497         where diff == INT_MIN.
6498
6499         mktime: simplify computation of average
6500         * time/mktime.c (ranged_convert): Use new time_t_avg function
6501         instead of rolling our own (probably-slower) code.
6502
6503         mktime: do not assume signed right shift propagates sign bit
6504         * time/mktime.c (isdst_differ): New static function.
6505         (__mktime_internal): No need to normalize tm_isdst now.
6506         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
6507         tm_isdst values.
6508
6509         mktime: merge another wrapv change from gnulib
6510         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
6511         from some compilers.
6512
6513         mktime: remove incorrect attempt at unusual arithmetics
6514         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
6515         The code didn't really work on such machines anyway.
6516         (TYPE_MINIMUM): Assume two's complement.
6517         (twos_complement_arithmetic): Verify that long_int and time_t
6518         are two's complement (or unsigned, in the latter case).
6519
6520         mktime: check signed shifts on long_int and time_t, too
6521         * time/mktime.c (SHR): Check that shifts work as desired
6522         on the types long_int and time_t too, as SHR is used on
6523         such types.
6524
6525         mktime: do not assume 'long' is wide enough
6526         * time/mktime.c (verify): Move decl up.
6527         (long_int): New type.
6528         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
6529         to remove assumption in the code that 'long' is wide enough to
6530         store year values.  This assumption is not true on x32 and on
6531         some non-glibc platforms.
6532
6533         mktime: merge wrapv change from gnulib
6534         * time/mktime.c (WRAPV): New macro.
6535         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
6536         (guess_time_tm, __mktime_internal): Do not assume that signed
6537         integer overflow wraps around; modern compilers generate code
6538         where this assumption is no longer valid.
6539
6540 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6541
6542         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6543         Replace "jmp L(pseudo_end)" with "ret".
6544         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6545         Likewise.
6546
6547 2012-05-23  Andreas Jaeger  <aj@suse.de>
6548
6549         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
6550         * sysdeps/unix/sysv/linux/poll.c: Remove file.
6551
6552 2012-05-23  Andreas Jaeger  <aj@suse.de>
6553             Maximilian Attems  <max@stro.at>
6554
6555         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
6556         New macros.
6557
6558 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6559
6560         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
6561         code so that pseudo_end is just ret and the stack pointer is
6562         correct also for static library in error case.
6563
6564 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
6565
6566         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
6567         move to syscalls.list.
6568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
6569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
6570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
6571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
6572
6573         * manual/install.texi (Running make install): Do not mention Linux
6574         kernel version for which pt_chown is not needed.
6575         (Linux): Do not mention problems with nscd with 2.0 kernels.
6576         * INSTALL: Regenerated.
6577
6578 2012-05-23  Andreas Jaeger  <aj@suse.de>
6579
6580         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
6581         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
6582         macro.
6583         * sysdeps/unix/sysv/linux/s390/bits/mman.h
6584         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6585         * sysdeps/unix/sysv/linux/sh/bits/mman.h
6586         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6587         * sysdeps/unix/sysv/linux/i386/bits/mman.h
6588         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6589         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
6590         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6591         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
6592         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6593         * sysdeps/unix/sysv/linux/bits/in.h
6594         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
6595
6596 2012-05-22  Roland McGrath  <roland@hack.frob.com>
6597
6598         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
6599         (PREPARE_VERSION): Just use assert instead, it will be elided
6600         under [NDEBUG] anyway.
6601
6602 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6603
6604         * sysdeps/unix/sysv/linux/Makefile: Include
6605         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
6606         (sysdep_routines): Remove sysctl.
6607         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
6608         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
6609         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
6610         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
6611         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
6612
6613 2012-05-22  Andreas Jaeger  <aj@suse.de>
6614
6615         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
6616         that pseudo_end is just ret and the stack pointer is correct also
6617         for static library in error case.
6618
6619 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
6620
6621         [BZ #14122]
6622         * nss/nsswitch.c (defconfig_entries): New variable.
6623         (__nss_database_lookup): Don't leak defconfig entries.
6624         (nss_parse_service_list): Don't leak on error paths.
6625         (free_database_entries): New function.
6626         (free_defconfig): New function.
6627         (free_mem): Move common code to free_database_entries.
6628
6629 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6630
6631         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
6632         Add arch_prctl.
6633         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6634
6635         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6636         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
6637         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
6638         New macro.
6639         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6640         (INTERNAL_SYSCALL_TYPES): Likewise.
6641         (LOAD_ARGS_TYPES_[1-6]): Likewise.
6642         (LOAD_REGS_TYPES_[1-6]): Likewise.
6643         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
6644         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
6645
6646 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6647
6648         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
6649         copysignl for GLIBC_2_0.
6650         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
6651         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
6652         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
6653         logbl for GLIBC_2_0.
6654         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
6655         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
6656
6657 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6658
6659         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
6660         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6661
6662         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6663         Use "neg %eax".
6664
6665         * time/mktime.c: Update copyright years.
6666
6667 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6668
6669         mktime: merge comment-quoting-style change from gnulib
6670         * time/mktime.c: Quote 'like this' in comments.
6671         The GNU coding standards suggest that we no longer quote `like this',
6672         as "`" and "'" are typically rendered asymmetrically nowadays.
6673         The typical gnulib style is to quote 'like this' when quoting
6674         code, and "like this" when quoting English.
6675
6676         * time/mktime.c (compile-command): Add "-I.".
6677
6678         mktime: merge mktime-internal.h change from gnulib
6679         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
6680
6681         mktime: merge time_r change from gnulib
6682         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
6683
6684         mktime: merge DEBUG change from gnulib
6685         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
6686         case system <time.h> has a #define.
6687
6688         mktime: merge <sys/types.h> change from gnulib
6689         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
6690         since <time.t> is now guaranteed to define time_t.
6691
6692         mktime: merge HAVE_CONFIG_H change from gnulib
6693         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6694
6695 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6696
6697         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6698         Use "neg %eax".
6699
6700         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6701         __rlim_t cast.
6702         (struct rusage): Use anonymous union to pad each field to
6703         __syscall_slong_t.
6704
6705 2012-05-21  David S. Miller  <davem@davemloft.net>
6706
6707         * Makefules (o-iterator): Remove .s cases.
6708         (compile-command.s): Delete.
6709         (COMPILE.s): Delete.
6710         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6711
6712 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6713
6714         * configure.in (libc_cv_predef_stack_protector): Only consider
6715         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6716         * configure: Regenerated.
6717
6718 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6719
6720         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6721         New macro.  Use R*LP on int and pointer.
6722         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6723         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6724         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6725         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6726
6727         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6728         [__WORDSIZE_TIME64_COMPAT32] instead of
6729         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6730         (struct utmp): Likewise.
6731         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6732         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6733         Renamed to ...
6734         (__WORDSIZE_TIME64_COMPAT32): This.
6735         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6736         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6737         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6738         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6739         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6740         (__WORDSIZE_TIME64_COMPAT32): New macro.
6741
6742 2012-05-21  Andreas Jaeger  <aj@suse.de>
6743
6744         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6745         only if [SHARED]. Add prototype for __wcschr_ia32.
6746
6747 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6748
6749         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6750         of %rbp unmolested in the jmp_buf while mangling the low bits.
6751         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6752         unmolested high bits of %rbp while demangling the low bits.
6753         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6754
6755 2012-05-21  Andreas Jaeger  <aj@suse.de>
6756
6757         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6758         * sunrpc/svc_simple.c: Use it for registerrpc.
6759         * sunrpc/xcrypt.c: Use it for passwd2des.
6760
6761         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6762
6763 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6764
6765         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6766         Don't define if [__SYSCALL_WORDSIZE != 32].
6767         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6768         New macro.
6769
6770 2012-05-21  Bruno Haible  <bruno@clisp.org>
6771             Andreas Jaeger  <aj@suse.de>
6772
6773         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6774         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6775         inptr and inend for must_buffer_ch.
6776         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6777         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6778         * stdio-common/Makefile (tests): Remove bug15.
6779         (bug15-ENV): Remove macro.
6780         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6781         anymore.
6782
6783 2012-05-19  Andreas Jaeger  <aj@suse.de>
6784             Roland McGrath  <roland@hack.frob.com>
6785
6786         * manual/contrib.texi: Completely rewritten. It contains now an
6787         alphabetical list of contributors and their contributions.
6788
6789 2012-05-21  Richard Henderson  <rth@twiddle.net>
6790
6791         * misc/getauxval.c (__getauxval): Use unsigned long int.
6792         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6793         (getauxval): Use unsigned long int.
6794
6795 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6796
6797         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6798
6799 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6800
6801         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6802         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6803         __alignof__ (long double).
6804
6805 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6806
6807         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6808
6809 2012-05-20  Richard Henderson  <rth@twiddle.net>
6810
6811         * misc/getauxval.c: New file.
6812         * misc/sys/auxv.h: New file.
6813         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6814         (routines): Add getauxval.
6815         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6816         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6817         * elf/dl-sysdep.c (_dl_auxv): Remove.
6818         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6819         * elf/dl-support.c (_dl_auxv): New variable.
6820         (_dl_aux_init): Initialize it.
6821         * manual/startup.texi (Auxiliary Vector): New node.
6822         * sysdeps/generic/bits/hwcap.h: New file.
6823         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6824         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6825         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6826         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6827         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6828         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6830         Update.
6831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6832         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6833         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6834         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6835         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6836         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6837         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6838         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6839
6840 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6841
6842         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6843
6844 2012-05-19  David S. Miller  <davem@davemloft.net>
6845
6846         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6847
6848 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6849
6850         [BZ #14123]
6851         * math/s_ccosh.c: Include <float.h>
6852         (__ccosh): Avoid internal overflow calculating sinh and cosh
6853         values before multiplying by sin and cos values.
6854         * math/s_ccoshf.c: Likewise.
6855         * math/s_ccoshl.c: Likewise.
6856         * math/s_csin.c: Likewise.
6857         * math/s_csinf.c: Likewise.
6858         * math/s_csinl.c: Likewise.
6859         * math/s_csinh.c: Likewise.
6860         * math/s_csinhf.c: Likewise.
6861         * math/s_csinhl.c: Likewise.
6862         * math/libm-test.inc (ccos_test): Add more tests.
6863         (ccosh_test): Likewise.
6864         (csin_test): Likewise.
6865         (csinh_test): Likewise.
6866         * sysdeps/i386/fpu/libm-test-ulps: Update.
6867         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6868
6869 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6870
6871         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6872         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6873
6874         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6875
6876 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6877
6878         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6879         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6880         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6881         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6882         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6883         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6884         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6885         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6886         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6887         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6888         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6889         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6890         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6891         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6892         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6893         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6894         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6895         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6896         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6897         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6898         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6899         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6900         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6901         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6902         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6903         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6904         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6905         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6906         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6907         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6908         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6909
6910 2012-05-18  Andreas Jaeger  <aj@suse.de>
6911
6912         * csu/.gitignore: Delete.
6913
6914 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6915
6916         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6917         (timex): Use __syscall_slong_t.
6918
6919 2012-05-18  Andreas Jaeger  <aj@suse.de>
6920             Carlos O'Donell  <carlos_odonell@mentor.com>
6921
6922         * manual/install.texi (Configuring and compiling): Update
6923         description about files modified in the source directory.
6924         * INSTALL: Regenerated.
6925
6926 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6927
6928         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6929         value.  Use "or" to set return value to -1.
6930         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6931         negate return value.
6932
6933 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6934
6935         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6936         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6937         failure if the compiler has Graphite support disabled.
6938         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6939         Likewise.
6940         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6941         CFLAGS-memmove.c): Likewise.
6942         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6943         Likewise.
6944
6945 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6946
6947         * sysdeps/x86_64/x32/_itoa.h: New file.
6948
6949         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6950         getdents system call only if kernel and user dirents have the
6951         same d_ino and d_off.
6952
6953         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6954         LLONG_MAX != LONG_MAX.
6955         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6956         (_fitoa_word): Likewise.
6957
6958         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6959         years.
6960         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6961         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6962         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6963
6964         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6965         include <bits/wordsize.h>.  Check __x86_64__ instead of
6966         __WORDSIZE.
6967         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6968         if __x86_64__ is defined.  Use anonymous union on fpstate.
6969
6970         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6971         anonymous union.
6972
6973 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6974
6975         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6976         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6977         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6978         Refer to _rtld_local_ro instead of _rtld_global_ro.
6979         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6980         Likewise.
6981         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6982         Likewise.
6983         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6984         Likewise.
6985         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6986         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6987         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6988
6989         * sysdeps/powerpc/powerpc32/dl-machine.c
6990         (__elf_machine_runtime_setup) [PROF]: Don't reference
6991         _dl_prof_resolve.
6992
6993 2012-05-18  Andreas Jaeger  <aj@suse.de>
6994
6995         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6996         function only available for GCCs before 3.4 since GCC 3.4
6997         introduced a builtin.
6998         (lrint): Likewise.
6999         (llrintf): Likewise.
7000         (llrint): Likewise.
7001         (fmaxf): Likewise.
7002         (fmax): Likewise.
7003         (fminf): Likewise.
7004         (fmin): Likewise.
7005         (rint): Likewise.
7006         (rintf): Likewise.
7007         (nearbyint): Likewise.
7008         (nearbyintf): Likewise.
7009         (ceil): Likewise.
7010         (ceilf): Likewise.
7011         (floor): Likewise.
7012         (floorf): Likewise.
7013
7014 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7015
7016         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7017         on both fields and cast pointer to __syscall_ulong_t.
7018
7019         * bits/types.h (__fsword_t): New type.
7020         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7021         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7022         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7023         (__FSWORD_T_TYPE): Likewise.
7024         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7025         (__FSWORD_T_TYPE): Likewise.
7026         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7027         (__FSWORD_T_TYPE): Likewise.
7028         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7029         (__FSWORD_T_TYPE): Likewise.
7030         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7031         __SWORD_TYPE with __fsword_t.
7032         (statfs64): Likewise.
7033
7034 2012-05-17  David S. Miller  <davem@davemloft.net>
7035
7036         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7037
7038 2012-05-17  Andreas Jaeger  <aj@suse.de>
7039
7040         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7041         warning.
7042
7043 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7044
7045         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7046
7047 2012-05-17  Andreas Jaeger  <aj@suse.de>
7048
7049         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7050         when it is used.
7051
7052 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7053
7054         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7055
7056 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7057
7058         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7059         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7060
7061 2012-05-17  Andreas Jaeger  <aj@suse.de>
7062             Carlos O'Donell  <carlos_odonell@mentor.com>
7063
7064         [BZ #14059]
7065         * sysdeps/x86_64/multiarch/init-arch.h
7066         (bit_YMM_Usable): Rename to...
7067         (bit_AVX_Usable): ... this.
7068         (bit_FMA4_Usable): New macro.
7069         (bit_XMM_state): New macro.
7070         (bit_YMM_state): New macro.
7071         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7072         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7073         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7074         (CPUID_OSXSAVE): New macro.
7075         (CPUID_AVX): New macro.
7076         (CPUID_FMA4): New macro.
7077         (index_YMM_Usable): Rename to...
7078         (index_AVX_Usable): ... this.
7079         (HAS_AVX): Use HAS_ARCH_FEATURE.
7080         (HAS_FMA4): Likewise.
7081         (HAS_YMM_USABLE): Remove.
7082         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7083         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7084         are present.
7085         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7086         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7087         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7088         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7089         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7090
7091 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7092
7093         * math/libm-test.c: Support platforms without multiple rounding modes.
7094         * math/bug-nextafter.c: Support platforms without FP exceptions.
7095         * math/bug-nexttoward.c: Likewise.
7096         * math/test-fenv.c: Likewise.
7097         * math/test-misc.c: Likewise.
7098         * stdlib/bug-getcontext.c: Likewise.
7099
7100 2012-05-17  Andreas Jaeger  <aj@suse.de>
7101
7102         * manual/examples/search.c (critter_cmp): Change signature to
7103         avoid warnings.
7104         * manual/string.texi (Collation Functions): Likewise.
7105
7106 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7107
7108         * bits/types.h: Fold copyright years.
7109         * bits/typesizes.h: Likewise.
7110         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7111         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7112         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7113         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7114         * time/time.h: Likewise.
7115
7116 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7117
7118         [BZ #208]
7119         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7120         in instead of returning them.  Return void.
7121         (__libc_mallinfo): Accumulate over all arenas.
7122         (__malloc_stats): Adjust for change in int_mallinfo interface.
7123
7124 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7125
7126         [BZ #10375]
7127         * configure.in (NM): Add AC_CHECK_TOOL for it.
7128         (libc_extra_cflags): New substituted variable.
7129         Check for -fstack-protector being used implicitly.
7130         * configure: Regenerated.
7131         * config.make.in (config-extra-cflags): New variable,
7132         gets @libc_extra_cflags@.
7133         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7134
7135         [BZ #10375]
7136         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7137         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7138         * configure: Regenerated.
7139         * config.make.in (CPPUNDEFS): New substituted variable.
7140         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7141         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7142         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7143
7144 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7145
7146         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7147         (mq_attr): Use __syscall_slong_t.
7148
7149 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7150
7151         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7152         Check __x86_64__ instead of __WORDSIZE.
7153         (_STAT_VER_LINUX): Likewise.
7154         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7155         __syscall_ulong_t and __syscall_slong_t.
7156         (stat64): Likewise.
7157
7158 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7159
7160         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7161
7162 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7163
7164         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7165
7166 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7167
7168         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7169         __syscall_ulong_t.
7170
7171         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7172         include <bits/wordsize.h>.  Check __x86_64__ instead of
7173         __WORDSIZE.
7174         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7175         defined.
7176         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7177
7178         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7179         include <bits/wordsize.h>.  Check __x86_64__ instead of
7180         __WORDSIZE.
7181         (user_regs_struct): Use "__extension__ unsigned long long"
7182         instead of "unsigned long" if __x86_64__ is defined.
7183         (user): Likewise.  Pad after pointer field if __ILP32__ is
7184         defined.
7185
7186 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7187
7188         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7189         versions 5 to 9.
7190         * configure: Regenerated.
7191         * manual/install.texi (texinfo): Increase version requirement to
7192         4.5 or later.
7193         * INSTALL: Regenerated.
7194
7195         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7196
7197 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7198
7199         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7200
7201         * sysdeps/x86_64/x32/ffs.c: New file.
7202
7203         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7204         __syscall_ulong_t.
7205         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7206         defined.  Use __syscall_ulong_t.
7207         (shminfo): Use __syscall_ulong_t.
7208         (shm_info): Likewise.
7209
7210         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7211         __syscall_ulong_t.
7212
7213         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7214         <bits/wordsize.h>.
7215         (msgqnum_t): Use __syscall_ulong_t.
7216         (msglen_t): Likewise.
7217         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7218         __syscall_ulong_t.
7219
7220         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7221         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7222
7223         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7224
7225         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7226         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7227
7228         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7229         __syscall_slong_t.
7230
7231         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7232         include <bits/wordsize.h>.  Check __x86_64__ instead of
7233         __WORDSIZE.
7234
7235         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7236         "unsigned long long int" if __x86_64__ is defined.
7237         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7238
7239         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7240         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7241         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7242
7243         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7244         <stdint.h>.
7245         (GET_PC): Cast to uintptr_t first.
7246         (GET_FRAME): Likewise.
7247         (GET_STACK): Likewise.
7248
7249         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7250         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7251         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7252         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7253         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7254         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7255         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7256         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7257         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7258         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7259         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7260         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7261         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7262         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7263         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7264         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7265         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7266         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7267         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7268         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7269         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7270         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7271         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7272         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7273         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7274         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7275         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7276         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7277         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7278
7279 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7280
7281         * Makerules (+depfiles): Also collect depfiles from .oS in
7282         $(extra-objs).
7283         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7284         .oS, $(libnldbl-routines)).
7285
7286         * Makerules (native-compile-mkdep-flags): Define.
7287         * sunrpc/Makefile (extra-objs): Add $(addprefix
7288         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7289         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7290         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7291         calling $(make-target-directory).
7292
7293 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7294
7295         * bits/types.h (__snseconds_t): Removed.
7296         * time/time.h (struct timespec): Replace __snseconds_t with
7297         __syscall_slong_t.
7298         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7299         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7300         Likewise.
7301         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7302         (__SNSECONDS_T_TYPE): Likewise.
7303         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7304         (__SNSECONDS_T_TYPE): Likewise.
7305         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7306         (__SNSECONDS_T_TYPE): Likewise.
7307
7308 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7309
7310         * sysdeps/mach/hurd/bits/typesizes.h
7311         (__SYSCALL_SLONG_TYPE): New macro.
7312         (__SYSCALL_ULONG_TYPE): Likewise.
7313
7314 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7315
7316         * bits/types.h (__syscall_slong_t): New type.
7317         (__syscall_ulong_t): Likewise.
7318
7319         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
7320         (__SYSCALL_ULONG_TYPE): Likewise.
7321         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7322         (__SYSCALL_SLONG_TYPE): Likewise.
7323         (__SYSCALL_ULONG_TYPE): Likewise.
7324         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7325         (__SYSCALL_SLONG_TYPE): Likewise.
7326         (__SYSCALL_ULONG_TYPE): Likewise.
7327         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7328         (__SYSCALL_SLONG_TYPE): Likewise.
7329         (__SYSCALL_ULONG_TYPE): Likewise.
7330
7331 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7332
7333         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
7334         Add sigaltstack-offsets.sym.
7335         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
7336         <sigaltstack-offsets.h>.
7337         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
7338         longjmp_msg pointer.
7339         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
7340         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
7341         signal stack.
7342         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
7343
7344 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7345
7346         * elf/stackguard-macros.h: Remove file.
7347         * sysdeps/generic/stackguard-macros.h: New file.
7348         * sysdeps/i386/stackguard-macros.h: Likewise.
7349         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
7350         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
7351         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7352         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7353         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
7354         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
7355         * sysdeps/x86_64/stackguard-macros.h: Likewise.
7356         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
7357         <elf/stackguard-macros.h>.
7358
7359         [BZ #14109]
7360         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
7361         __aligned__ in attribute.
7362         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
7363         (gregset_t): Likewise.
7364
7365 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7366
7367         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
7368         * sysdeps/x86_64/64/Implies-after: Here.  New file.
7369         * sysdeps/x86_64/x32/Implies-after: New file.
7370
7371 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7372
7373         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
7374         and access return value for _dl_profile_fixup.  Use R10_LP to
7375         load frame size.
7376
7377 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7378
7379         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
7380
7381 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7382
7383         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
7384         * sysdeps/x86_64/x32/sysdep.h: New file.
7385
7386 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7387
7388         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
7389         * sysdeps/x86_64/setjmp.S: Likewise.
7390
7391 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7392
7393         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
7394         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
7395         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
7396         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
7397         remove unused global constant.
7398
7399 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
7400
7401         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
7402         include of <not-cancel.h>.
7403
7404 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7405
7406         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
7407
7408 2012-05-15  Jeff Law  <law@redhat.com>
7409             Andreas Jaeger  <aj@suse.de>
7410
7411         [BZ #13594]
7412         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
7413         out from...
7414         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
7415         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
7416         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
7417         code changing __hst_map_handle.map.
7418
7419 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7420
7421         * configure.in (sysnames): Look for Implies-before and Implies-after
7422         files.
7423         * configure: Regenerated.
7424
7425 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7426
7427         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
7428         8-byte data alignment with LP_SIZE alignment.
7429
7430 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7431
7432         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
7433         into R10_LP.
7434
7435 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7436
7437         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
7438
7439 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7440
7441         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
7442         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
7443         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
7444         Likewise.
7445         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
7446
7447 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7448
7449         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
7450         (stackinfo_sub_sp): Likewise.
7451
7452 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7453
7454         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
7455         RAX_LP.
7456
7457 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7458
7459         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
7460         into R*_LP.
7461
7462 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7463
7464         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
7465         sizes into R*_LP.
7466
7467 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7468
7469         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
7470
7471 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7472
7473         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
7474         into R11_LP and load __x86_64_shared_cache_size_half into
7475         R8_LP.
7476
7477 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7478
7479         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
7480         R8_LP.
7481
7482 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7483
7484         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
7485         logb for POWER7.
7486         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
7487         logbf for POWER7.
7488         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
7489         logbl for POWER7.
7490         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
7491         powerpc32/power7/fpu/s_logb.c via #include.
7492         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
7493         powerpc32/power7/fpu/s_logbf.c via #include.
7494         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
7495         powerpc32/power7/fpu/s_logbl.c via #include.
7496
7497 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7498
7499         * README.libm: Remove file.
7500
7501 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7502
7503         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
7504         count for x32.  Use R*_LP and omit operand-size suffix.
7505
7506 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7507
7508         * shlib-versions: Move x86_64-.*-linux.* entries to ...
7509         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
7510         * sysdeps/x86_64/x32/shlib-versions: New file.
7511
7512 2012-05-14  Roland McGrath  <roland@hack.frob.com>
7513
7514         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
7515         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
7516         Use _dl_fatal_printf instead.
7517
7518 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7519
7520         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
7521         set if not set by the user.  Do not allow for being unset.
7522         * sysdeps/unix/sysv/linux/configure: Regenerated.
7523
7524 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7525
7526         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
7527         the `q' suffix from lea and replace .quad with ASM_ADDR.
7528
7529 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7530
7531         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
7532         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
7533         instead of $17.
7534         (PTR_DEMANGLE): Likewise.
7535
7536 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7537
7538         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
7539         (LP_OP): Likewise.
7540         (ASM_ADDR): Likewise.
7541         (RAX_LP): Likewise.
7542         (RBP_LP): Likewise.
7543         (RBX_LP): Likewise.
7544         (RCX_LP): Likewise.
7545         (RDI_LP): Likewise.
7546         (RSI_LP): Likewise.
7547         (RSP_LP): Likewise.
7548         (R8_LP): Likewise.
7549         (R9_LP): Likewise.
7550         (R10_LP): Likewise.
7551         (R10_LP): Likewise.
7552         (R11_LP): Likewise.
7553         (R12_LP): Likewise.
7554         (R13_LP): Likewise.
7555         (R14_LP): Likewise.
7556         (R15_LP): Likewise.
7557
7558 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7559
7560         * sysdeps/x86_64/x32/dl-machine.h: New file.
7561
7562 2012-05-14  Andreas Jaeger  <aj@suse.de>
7563
7564         * manual/Makefile (subdir): Remove export of subdir.
7565         (all): Remove target.
7566         (.PHONY): Remove all from list.
7567         (mkinstalldirs): Remove.
7568         (.PHONY): Remove installdirs from list.
7569         ($(inst_infodir)/libc.info): Use make-target-directory.
7570         (installdirs): Remove.
7571         (subdir_%): Remove.
7572         (glibc-targets): Remove.
7573         (lib): Remove.
7574         (stubs): Remove.
7575         ($(objpfx)stubs ../po/manual.pot): Remove.
7576         ($(objpfx)stamp%): Remove.
7577         (make-target-directory): Remove.
7578         (subdir_install): Remove.
7579         (routines): Remove.
7580         (aux): Remove.
7581         (sources): Remove.
7582         (objects): Remove.
7583         (headers): Remove.
7584
7585         [BZ #13750]
7586         * manual/.gitignore: Remove, it's not needed anymore.
7587         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
7588         all files in it.
7589         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
7590         directory.
7591         (texis): Renamed to $(objpfx)texis.
7592         (texis-path): New, contains path to generated files.
7593         (chapters.%): Use texis-path for complete path, add extra argument
7594         libc-texinfo.sh.
7595         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
7596         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
7597         (summary,texi, stamp-summary): Use complete path of
7598         files. Generate files in build dir.
7599         (dir-add.texi): Build in build dir.
7600         (libm-err.texi,stamp-libm-err): Likewise.
7601         (version.texi, stamp-version): Likewise.
7602         (.%c.texi): Likewise.
7603         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
7604         (mostlyclean): Remove target.
7605         (realclean): Remove target.
7606         (generated): Add new variable with contents from mostlyclean and
7607         realclean, remove entries duplicated in common-mostlyclean, add
7608         stamp-libm-err and stamp-version.
7609         (generated-dirs): Add libc directory.
7610         ($(inst_infodir)/libc.info): Install files from build dir.
7611
7612         * manual/install.texi (Configuring and compiling): Adjust since
7613         the info files are not part of the tar ball anymore.
7614
7615 2012-05-14  Andreas Jaeger  <aj@suse.de>
7616
7617         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
7618         variable.
7619
7620 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7621
7622         [BZ #13717]
7623         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7624         to 2.2.0 where earlier.
7625         * sysdeps/unix/sysv/linux/configure: Regenerated.
7626         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
7627         Remove conditional code.
7628         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
7629         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
7630         Remove conditional code.
7631         [!__NR_lchown]: Likewise.
7632         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7633         [__NR_lchown]: Likewise.
7634         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
7635         comment referencing __ASSUME_LCHOWN_SYSCALL.
7636         * sysdeps/unix/sysv/linux/i386/sigaction.c
7637         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7638         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7639         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
7640         Remove conditional code.
7641         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
7642         (__protocol_available): Remove #if 0 code.
7643         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
7644         conditional code.
7645         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
7646         * sysdeps/unix/sysv/linux/kernel-features.h
7647         (__ASSUME_GETCWD_SYSCALL): Don't define.
7648         (__ASSUME_REALTIME_SIGNALS): Likewise.
7649         (__ASSUME_PREAD_SYSCALL): Likewise.
7650         (__ASSUME_PWRITE_SYSCALL): Likewise.
7651         (__ASSUME_POLL_SYSCALL): Likewise.
7652         (__ASSUME_LCHOWN_SYSCALL): Likewise.
7653         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
7654         non-SPARC.
7655         (__ASSUME_SIOCGIFNAME): Don't define.
7656         (__ASSUME_MSG_NOSIGNAL): Likewise.
7657         (__ASSUME_SENDFILE): Define unconditionally.
7658         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
7659         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
7660         conditional code.
7661         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
7662         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
7663         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7664         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7665         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
7666         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7667         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
7669         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7670         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
7672         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7673         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
7675         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7676         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
7678         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7679         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
7681         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7682         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
7684         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7685         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
7687         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7688         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
7690         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7691         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7692         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7693         Remove conditional code.
7694         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7695         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7696         Remove conditional code.
7697         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7698         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7699         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7700         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7701         Remove conditional code.
7702         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7703         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7704         Remove conditional code.
7705         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7706         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7707         Remove conditional code.
7708         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7709         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7710         Remove conditional code.
7711         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7712         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7713         Remove conditional code.
7714         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7715         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7716         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7717         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7718         * sysdeps/unix/sysv/linux/sigaction.c
7719         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7720         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7721         * sysdeps/unix/sysv/linux/sigpending.c
7722         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7723         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7724         * sysdeps/unix/sysv/linux/sigprocmask.c
7725         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7726         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7727         * sysdeps/unix/sysv/linux/sigsuspend.c
7728         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7729         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7730         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7731         (__libc_missing_rt_sigs): Remove.
7732         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7733         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7734         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7735         Remove conditional code.
7736         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7737         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7738         return 1.
7739         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7740         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7741         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7742         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7743
7744 2012-05-14  Andreas Jaeger  <aj@suse.de>
7745
7746         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7747         it's not used in glibc.
7748         (__coshm1): Likewise.
7749         (__acosh1p): Likewise.
7750         (__sgn): Likewise.
7751
7752         * manual/string.texi (Copying and Concatenation): Add missing
7753         variable in concat example.
7754         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7755
7756 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7757
7758         [BZ #14103]
7759         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7760         __builtin_clzl with __builtin_clzll.
7761
7762 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7763
7764         [BZ #14104]
7765         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7766         libc_freeres_ptr.
7767
7768 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7769
7770         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7771         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7772         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7773         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7774
7775 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7776
7777         * NEWS: Update ia64 info.
7778
7779 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7780
7781         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7782         used as bcopy.
7783
7784 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7785
7786         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7787         * sysdeps/unix/syscalls.list (dup3): Likewise.
7788         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7789         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7790
7791 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7792
7793         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7794         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7795
7796 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7797
7798         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7799         thread pointer.
7800         (TLS_IE): Use mov/add instead of movq/addq to load thread
7801         pointer.
7802         (TLS_GD_PREFIX): New.
7803         (TLS_GD): Use it.
7804
7805 2012-05-11  David S. Miller  <davem@davemloft.net>
7806
7807         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7808         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7809         (_FPU_SETCW): Likewise.
7810
7811 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7812
7813         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7814         is 32-byte aligned.
7815
7816 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7817
7818         [BZ #11837]
7819         * iconvdata/gb18030.c: Update tables.
7820         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7821         characters specially.
7822         (BODY for TO_LOOP): Add encoding of missing ranges.
7823
7824 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7825
7826         [BZ #13673]
7827         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7828         * sysdeps/mach/hurd/dup3.c: Likewise.
7829         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7830         * sysdeps/powerpc/memmove.c:: Likewise.
7831
7832 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7833
7834         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7835         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7836
7837 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7838
7839         * elf/elf.h (R_X86_64_RELATIVE64): New.
7840         (R_X86_64_NUM): Updated.
7841         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7842         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7843         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7844         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7845         tst-quad1pie tst-quad2pie
7846         (modules-names): Add tst-quadmod1 tst-quadmod2.
7847         ($(objpfx)tst-quad1): New dependency.
7848         ($(objpfx)tst-quad2): Likewise.
7849         ($(objpfx)tst-quad1pie): Likewise.
7850         ($(objpfx)tst-quad2pie): Likewise.
7851         * sysdeps/x86_64/tst-quad1.c: New file.
7852         * sysdeps/x86_64/tst-quad1pie.c: New file.
7853         * sysdeps/x86_64/tst-quad2.c: Likewise.
7854         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7855         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7856         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7857         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7858         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7859
7860 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7861
7862         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7863         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7864         * streams/stropts.h (t_scalar_t): Define type.
7865
7866         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7867         (_PATH_PRESERVE): Set to "/var/lib".
7868         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7869
7870         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7871         instead of int.
7872
7873         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7874         if __dir_mkfile succeeded.
7875
7876         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7877         checking for _hurd_dtablesize.  Unlock it right after having
7878         finished _hurd_dtable allocation.
7879
7880 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7881
7882         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7883         * sysdeps/mach/hurd/configure: Regenerated.
7884         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7885         special-casing to...
7886         * sysdeps/gnu/configure.in: ... this new file.
7887         * sysdeps/unix/sysv/linux/configure: Regenerated.
7888         * sysdeps/gnu/configure: New generated file.
7889
7890         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7891         for Linux: use nsec instead of usec, as well as:
7892         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7893         members of type struct timespec.
7894         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7895         New macros.
7896         (struct stat64): Likewise.
7897         (_STATBUF_ST_NSEC): New macro.
7898         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7899
7900         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7901         __strtoul_internal rather than strtoul.
7902
7903 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7904
7905         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7906         and reject them.
7907
7908 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7909
7910         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7911         which preserves existing values.
7912         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7913
7914 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7915
7916         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7917         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7918         greater than FD_SETSIZE.
7919
7920 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7921
7922         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7923         allocated, call __vm_protect to finish enabling the existing space, and
7924         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7925         allocate the remainder.
7926
7927 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7928
7929         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7930         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7931
7932 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7933
7934         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7935         sysdeps/mach/hurd/readlink.c.
7936
7937         * posix/tst-sysconf.c (posix_options): Only use
7938         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7939         _POSIX_SYNCHRONIZED_IO when they are defined
7940         * sysdeps/mach/hurd/bits/posix_opt.h:
7941         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7942         (_XOPEN_REALTIME): Undefine macro.
7943         (_XOPEN_REALTIME_THREADS): Undefine macro.
7944         (_XOPEN_SHM): Undefine macro.
7945         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7946         macro to -1.
7947         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7948         macro to -1.
7949         (_POSIX_ASYNC_IO): Undefine macro.
7950         (_POSIX_PRIORITIZED_IO): Undefine macro.
7951         (_POSIX_SPIN_LOCKS): Define macro to -1.
7952
7953         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7954         SA_NODEFER, SA_RESETHAND.
7955         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7956         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7957         F_DUPFD_CLOEXEC.
7958
7959 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7960
7961         * elf/Makefile (pldd-modules): Define unconditionally.
7962
7963 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7964
7965         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7966
7967 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7968
7969         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7970         Return ENOENT when name is empty.
7971         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7972
7973 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7974
7975         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7976
7977         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7978
7979 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7980
7981         Fix mlock in all cases except non-readable pages.
7982         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7983         instead of VM_PROT_ALL as parameter to __vm_wire function.
7984
7985         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7986         (__mkdir): When path is `/', just fail with EEXIST.
7987         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7988
7989 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7990
7991         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7992         <sys/uio.h> (for writev).
7993         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7994         and <sys/param.h> (for MIN).
7995
7996 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7997
7998         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7999         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8000         if interrupted.
8001
8002 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8003
8004         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8005         Depend on against $(link-rpcuserlibs).
8006
8007 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8008
8009         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8010         (__libc_stack_end): Do not use attribute_relro.
8011         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8012         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8013         to libthread-provided value.
8014         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8015         attribute_relro.
8016
8017 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8018
8019         [BZ #3748]
8020         * bits/libc-lock.h (__libc_once_get): New macro.
8021         * sysdeps/mach/bits/libc-lock.h: Likewise.
8022         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8023         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8024         instead of using implementation details.
8025
8026         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8027         * libio/freopen.c: Likewise.
8028         * libio/freopen64.c: Likewise.
8029         * misc/syslog.c: Likewise.
8030         * nscd/connections.c: Likewise.
8031         * nscd/netgroupcache.c: Likewise.
8032         * sysdeps/posix/getcwd.c: Likewise.
8033
8034 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8035
8036         * math/w_ilogbf.c: Add #include <limits.h>.
8037
8038 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8039
8040         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8041         path instead of returning without unlocking.
8042
8043         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8044         immediate-write ioctls.
8045         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8046
8047 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8048
8049         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8050         __builtin_frame_address instead of making assumptions about the
8051         location of the return address relative to DATA.  Force early load of
8052         the return address.
8053         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8054         __builtin_frame_address.
8055
8056         dup3 for GNU Hurd.
8057         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8058         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8059         implement dup3 and do some further code clean-ups.
8060         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8061         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8062
8063 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8064
8065         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8066
8067         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8068         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8069         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8070         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8071         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8072         d->port.lock.
8073
8074         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8075         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8076         when handler == SIG_ERR, not when handler != SIG_ERR.
8077
8078 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8079
8080         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8081         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8082         definitions.
8083
8084         accept4 for GNU Hurd.
8085         * include/sys/socket.h (__libc_accept4): New prototype.
8086         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8087         to implement __libc_accept4.
8088         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8089         __libc_accept4.
8090         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8091
8092         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8093         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8094         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8095         signal-defines.sym.
8096
8097 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8098
8099         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8100
8101 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8102
8103         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8104         assertion on O_CLOEXEC flag.
8105         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8106         * hurd/intern-fd.c: Likewise.
8107         * hurd/port2fd.c: Likewise.
8108
8109 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8110
8111         [BZ #3906]
8112         * bits/in.h (IPV6_PKTINFO): Define new macro.
8113         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8114
8115 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8116
8117         [BZ #13954]
8118         [BZ #13955]
8119         [BZ #13956]
8120         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8121         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8122         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8123         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8124         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8125         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8126         * math/libm-test.inc (logb_test) : Additional logb tests.
8127
8128 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8129             Andreas Jaeger  <aj@suse.de>
8130
8131         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8132         * configure: Regenerated.
8133         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8134         * config.make.in (link-obsolete-rpc): New substituted variable.
8135         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8136         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8137         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8138         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8139         so that libc.a contains the symbols.
8140         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8141         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8142         * sunrpc/auth_none.c: Likewise.
8143         * sunrpc/auth_unix.c: Likewise.
8144         * sunrpc/authdes_prot.c: Likewise.
8145         * sunrpc/authuxprot.c: Likewise.
8146         * sunrpc/clnt_gen.c: Likewise.
8147         * sunrpc/clnt_perr.c: Likewise.
8148         * sunrpc/clnt_raw.c: Likewise.
8149         * sunrpc/clnt_simp.c: Likewise.
8150         * sunrpc/clnt_tcp.c: Likewise.
8151         * sunrpc/clnt_udp.c: Likewise.
8152         * sunrpc/clnt_unix.c: Likewise.
8153         * sunrpc/des_crypt.c: Likewise.
8154         * sunrpc/des_soft.c: Likewise.
8155         * sunrpc/get_myaddr.c: Likewise.
8156         * sunrpc/key_call.c: Likewise.
8157         * sunrpc/key_prot.c: Likewise.
8158         * sunrpc/netname.c: Likewise.
8159         * sunrpc/pm_getmaps.c: Likewise.
8160         * sunrpc/pm_getport.c: Likewise.
8161         * sunrpc/pmap_clnt.c: Likewise.
8162         * sunrpc/pmap_prot.c: Likewise.
8163         * sunrpc/pmap_prot2.c: Likewise.
8164         * sunrpc/pmap_rmt.c: Likewise.
8165         * sunrpc/publickey.c: Likewise.
8166         * sunrpc/rpc_cmsg.c: Likewise.
8167         * sunrpc/rpc_common.c: Likewise.
8168         * sunrpc/rpc_dtable.c: Likewise.
8169         * sunrpc/rpc_prot.c: Likewise.
8170         * sunrpc/rpc_thread.c: Likewise.
8171         * sunrpc/rtime.c: Likewise.
8172         * sunrpc/svc.c: Likewise.
8173         * sunrpc/svc_auth.c: Likewise.
8174         * sunrpc/svc_raw.c: Likewise.
8175         * sunrpc/svc_run.c: Likewise.
8176         * sunrpc/svc_tcp.c: Likewise.
8177         * sunrpc/svc_udp.c: Likewise.
8178         * sunrpc/svc_unix.c: Likewise.
8179         * sunrpc/svcauth_des.c: Likewise.
8180         * sunrpc/xcrypt.c: Likewise.
8181         * sunrpc/xdr.c: Likewise.
8182         * sunrpc/xdr_array.c: Likewise.
8183         * sunrpc/xdr_float.c: Likewise.
8184         * sunrpc/xdr_intXX_t.c: Likewise.
8185         * sunrpc/xdr_mem.c: Likewise.
8186         * sunrpc/xdr_rec.c: Likewise.
8187         * sunrpc/xdr_ref.c: Likewise.
8188         * sunrpc/xdr_sizeof.c: Likewise.
8189         * sunrpc/xdr_stdio.c: Likewise.
8190
8191 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8192
8193         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8194         change.  Update copyright years.
8195
8196 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8197
8198         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8199
8200 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8201             Joseph Myers  <joseph@codesourcery.com>
8202             Paul Pluzhnikov  <ppluzhnikov@google.com>
8203
8204         [BZ #14012]
8205         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8206         requiring rpcgen.
8207         [cross-compiling] (extra-libs): Likewise.
8208         [cross-compiling] (extra-libs-others): Likewise.
8209         [cross-compiling] (librpcsvc-routines): Likewise.
8210         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8211         [cross-compiling] (omit-deps): Likewise.
8212         (sunrpc-CPPFLAGS): New variable.
8213         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8214         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8215         (cross-rpcgen-objs): New variable.
8216         (extra-objs): Append $(cross-rpcgen-objs).
8217         ($(cross-rpcgen-objs)): New rule.
8218         ($(objpfx)cross-rpcgen): Likewise.
8219         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8220         comment.
8221         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8222         ($(objpfx)x%.stmp): Likewise.
8223         * sunrpc/proto.h [IS_IN_build] (_): Define.
8224         [IS_IN_build] (_libc_intl_domainname): Likewise.
8225
8226 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8227
8228         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8229         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8230         and R_X86_64_TPOFF64.
8231
8232 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8233
8234         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8235         sysdeps/unix/sysv/syscalls.list.
8236         (stime): Likewise.
8237         (utime): Likewise.
8238         * sysdeps/unix/sysv/syscalls.list: Remove file.
8239
8240 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8241
8242         [BZ #3440]
8243         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8244         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8245         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8246         (__LC_IDENTIFICATION): Make these macros useful in #if
8247         expressions, as required by C99.
8248
8249 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8250
8251         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8252         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8253         after this.
8254
8255 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8256
8257         * stdlib/longlong.h: Updated from GCC.
8258
8259 2012-05-09  Andreas Jaeger  <aj@suse.de>
8260
8261         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8262         default is first entry.
8263         (run_mode): Set type.
8264         (main): Remove informal message about syslog.
8265         (options): Fix typo.
8266
8267         [BZ #14053]
8268         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8269         to asm.
8270         (lrint): Likewise.
8271         (llrintf): Likewise.
8272         (llrint): Likewise.
8273         (rint): Likewise.
8274         (rintf): Likewise.
8275         (nearbyint): Likewise.
8276         (nearbyintf): Likewise.
8277
8278 2012-05-09  Andreas Jaeger  <aj@suse.de>
8279             Pedro Alves  <palves@redhat.com>
8280
8281         * nscd/nscd.c (run_mode): Use enum.
8282         (main): Cleanup coding style issue.
8283
8284 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8285             Andreas Jaeger  <aj@suse.de>
8286
8287         * nscd/nscd.c (go_background): Replaced with...
8288         (run_mode): ... this.
8289         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8290         (options): Add -F --foreground.
8291         (main): Implement it.
8292         (parse_opt): Parse it.
8293
8294 2012-05-09  Andreas Jaeger  <aj@suse.de>
8295
8296         [BZ #14083]
8297         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8298         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8299         -Wconversion warning.
8300         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8301         Likewise.
8302
8303 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8304
8305         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8306         == 0.
8307         (LC_ALL): Use macro-int-constant.
8308         (LC_COLLATE): Likewise.
8309         (LC_CTYPE): Likewise.
8310         (LC_MESSAGES): Likewise.
8311         (LC_MONETARY): Likewise.
8312         (LC_NUMERIC): Likewise.
8313         (LC_TIME): Likewise.
8314         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
8315         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8316         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8317         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
8318         Specify type.
8319         [C99-based standards] (float_t): Expect type.
8320         [C99-based standards] (double_t): Expect type.
8321         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
8322         type.
8323         [C99-based standards] (HUGE_VALL): Likewise.
8324         [C99-based standards] (INFINITY): Likewise.
8325         [C99-based standards] (NAN): Likewise.
8326         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
8327         [C99-based standards] (FP_NAN): Likewise.
8328         [C99-based standards] (FP_NORMAL): Likewise.
8329         [C99-based standards] (FP_SUBNORMAL): Likewise.
8330         [C99-based standards] (FP_ZERO): Likewise.
8331         [C99-based standards] (FP_FAST_FMA): Use
8332         optional-macro-int-constant.  Specify type.  Require == 1.
8333         [C99-based standards] (FP_FAST_FMAF): Likewise.
8334         [C99-based standards] (FP_FAST_FMAL): Likewise.
8335         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
8336         [C99-based standards] (FP_ILOGBNAN): Likewise.
8337         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
8338         Specify type.
8339         [C99-based standards] (MATH_ERREXCEPT): Likewise.
8340         [C99-based standards] (math_errhandling): Specify type.
8341         [ISO99 || ISO11] (signgam): Do not allow.
8342         [non-C99-based standards] (copysignf): Do not allow.
8343         [non-C99-based standards] (exp2f): Likewise.
8344         [non-C99-based standards] (log2f): Likewise.
8345         [non-C99-based standards] (modff): Allow.
8346         [non-C99-based standards] (erff): Do not allow.
8347         [non-C99-based standards] (erfcf): Likewise.
8348         [non-C99-based standards] (gammaf): Likewise.
8349         [non-C99-based standards] (hypotf): Likewise.
8350         [non-C99-based standards] (j0f): Likewise.
8351         [non-C99-based standards] (j1f): Likewise.
8352         [non-C99-based standards] (jnf): Likewise.
8353         [non-C99-based standards] (lgammaf): Likewise.
8354         [non-C99-based standards] (tgammaf): Likewise.
8355         [non-C99-based standards] (y0f): Likewise.
8356         [non-C99-based standards] (y1f): Likewise.
8357         [non-C99-based standards] (ynf): Likewise.
8358         [non-C99-based standards] (isnanf): Likewise.
8359         [non-C99-based standards] (acoshf): Likewise.
8360         [non-C99-based standards] (asinhf): Likewise.
8361         [non-C99-based standards] (atanhf): Likewise.
8362         [non-C99-based standards] (cbrtf): Likewise.
8363         [non-C99-based standards] (expm1f): Likewise.
8364         [non-C99-based standards] (ilogbf): Likewise.
8365         [non-C99-based standards] (log1pf): Likewise.
8366         [non-C99-based standards] (logbf): Likewise.
8367         [non-C99-based standards] (nextafterf): Likewise.
8368         [non-C99-based standards] (remainderf): Likewise.
8369         [non-C99-based standards] (rintf): Likewise.
8370         [non-C99-based standards] (scalbf): Likewise.
8371         [non-C99-based standards] (copysignl): Likewise.
8372         [non-C99-based standards] (exp2l): Likewise.
8373         [non-C99-based standards] (log2l): Likewise.
8374         [non-C99-based standards] (modfl): Allow.
8375         [non-C99-based standards] (erfl): Do not allow.
8376         [non-C99-based standards] (erfcl): Likewise.
8377         [non-C99-based standards] (gammal): Likewise.
8378         [non-C99-based standards] (hypotl): Likewise.
8379         [non-C99-based standards] (j0l): Likewise.
8380         [non-C99-based standards] (j1l): Likewise.
8381         [non-C99-based standards] (jnl): Likewise.
8382         [non-C99-based standards] (lgammal): Likewise.
8383         [non-C99-based standards] (tgammal): Likewise.
8384         [non-C99-based standards] (y0l): Likewise.
8385         [non-C99-based standards] (y1l): Likewise.
8386         [non-C99-based standards] (ynl): Likewise.
8387         [non-C99-based standards] (isnanl): Likewise.
8388         [non-C99-based standards] (acoshl): Likewise.
8389         [non-C99-based standards] (asinhl): Likewise.
8390         [non-C99-based standards] (atanhl): Likewise.
8391         [non-C99-based standards] (cbrtl): Likewise.
8392         [non-C99-based standards] (expm1l): Likewise.
8393         [non-C99-based standards] (ilogbl): Likewise.
8394         [non-C99-based standards] (log1pl): Likewise.
8395         [non-C99-based standards] (logbl): Likewise.
8396         [non-C99-based standards] (nextafterl): Likewise.
8397         [non-C99-based standards] (remainderl): Likewise.
8398         [non-C99-based standards] (rintl): Likewise.
8399         [non-C99-based standards] (scalbl): Likewise.
8400         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8401         [non-C99-based standards] (FP_*): Do not allow.
8402         [C99-based standards] (FP_*): Change to
8403         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8404         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8405         allow.
8406         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
8407         (SIG_ERR): Likewise.
8408         [X/Open-based standards] (SIG_HOLD): Likewise.
8409         (SIG_IGN): Likewise.
8410         (SIGABRT): Use macro-int-constant.  Specify type.  Require
8411         positive value.
8412         (SIGFPE): Likewise.
8413         (SIGILL): Likewise.
8414         (SIGINT): Likewise.
8415         (SIGSEGV): Likewise.
8416         (SIGTER): Likewise.
8417         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
8418         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
8419         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
8420         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
8421         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
8422         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
8423         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
8424         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
8425         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
8426         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
8427         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
8428         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
8429         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
8430         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
8431         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
8432         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
8433         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
8434         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
8435         [X/Open-based standards] (SIGTRAP): Likewise.
8436         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
8437         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
8438         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
8439         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
8440         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8441         allow.
8442
8443 2012-05-08  Ian Wienand  <ianw@vmware.com>
8444
8445         [BZ #14080]
8446         * time/tzset.c (__tzset_parse_tz): Update default rules for
8447         daylight time changes in the Energy Policy Act of 2005.
8448
8449 2012-05-09  Andreas Jaeger  <aj@suse.de>
8450
8451         [BZ #13983]
8452         * elf/ldconfig.c (parse_conf): Change string to make clear that
8453         ldconfig only issued a warning if ld.so.conf does not exist.
8454
8455 2012-05-08  David S. Miller  <davem@davemloft.net>
8456
8457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
8458         movxtod instead of popping the value on the stack.
8459
8460         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8461
8462 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
8463
8464         * config.h.in: Add HAVE_ARM_PCS_VFP.
8465
8466 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
8467
8468         [BZ #13979]
8469         * include/features.h: Warn if user requests __FORTIFY_SOURCE
8470         checking but the checks are disabled for any reason.
8471
8472 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8473
8474         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
8475         and ELF64_R_TYPE with ELFW(R_TYPE).
8476
8477 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
8478
8479         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
8480         (ulimit): Likewise.
8481
8482         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
8483         (settimeofday): Likewise.
8484
8485 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
8486
8487         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
8488         a struct th_u2 inside the union, and move tu_block/tu_code into
8489         a new th_u3 union of tu_block/tu_code inside of that.  Move
8490         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
8491         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
8492         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
8493         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
8494         (th_stuff): Change to th_u1.tu_stuff.
8495         (th_data): Define.
8496         (th_msg): Change to th_u1.th_u2.tu_data.
8497
8498 2012-05-07  David S. Miller  <davem@davemloft.net>
8499
8500         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8501
8502         [BZ #14074]
8503         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
8504         (SETUP_PIC_REG): Use it.
8505         (SETUP_PIC_REG_LEAF): Use it.
8506
8507 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
8508
8509         [BZ #13885]
8510         [BZ #13923]
8511         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8512         USE_AS_EXPM1L.
8513         (EXPL_FINITE): Likewise.
8514         (FLDLOG): Likewise.
8515         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8516         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8517         e_expl.S.
8518         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8519         USE_AS_EXPM1L.
8520         (EXPL_FINITE): Likewise.
8521         (FLDLOG): Likewise.
8522         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8523         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8524         e_expl.S.
8525         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
8526         test of -max_value argument for long double.
8527         * sysdeps/i386/fpu/libm-test-ulps: Update.
8528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8529
8530 2012-05-06  David S. Miller  <davem@davemloft.net>
8531
8532         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
8533         quad soft-float symbols whose references which are compiler
8534         generated.
8535         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8536
8537 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
8538
8539         [BZ #13884]
8540         [BZ #13914]
8541         * sysdeps/i386/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         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
8551         e_expl.S.
8552         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
8553         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
8554         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
8555         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
8556         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8557         USE_AS_EXP10L.
8558         (EXPL_FINITE): Likewise.
8559         (FLDLOG): Likewise.
8560         (c0): Likewise.
8561         (c1): Likewise.
8562         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8563         Adjust comments for base varying.
8564         (__expl_finite): Change alias to EXPL_FINITE.
8565         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
8566         tests for bugs.
8567         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8568
8569         [BZ #14064]
8570         * math/libm-test.inc (check_float_internal): Correct ulp
8571         calculation for subnormal expected results.
8572
8573 2012-05-06  Andreas Jaeger  <aj@suse.de>
8574
8575         * Makeconfig (+math-flags): New, set to -frounding-math.
8576         (+cflags): Add +math-flags so that all of glibc gets compiled with
8577         it.
8578
8579         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
8580
8581 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
8582
8583         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
8584         Disable one test.
8585
8586         [BZ #13787]
8587         [BZ #13922]
8588         [BZ #14036]
8589         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
8590         (__ieee754_expl): Allow for and saturate large arguments.
8591         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
8592         (u_threshold): Likewise.
8593         (__exp): Call __ieee754_exp before checking for overflow and
8594         underflow.
8595         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
8596         (u_threshold): Likewise.
8597         (__expf): Call __ieee754_expf before checking for overflow and
8598         underflow.
8599         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
8600         (u_threshold): Likewise.
8601         (__expl): Call __ieee754_expl before checking for overflow and
8602         underflow.
8603         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
8604         (__ieee754_expl): Allow for and saturate large arguments.
8605         * math/libm-test.inc (exp_test): Add another test.  Do not allow
8606         missing overflow exception on overflow.
8607         (expm1_test): Do not allow missing overflow exception on overflow.
8608
8609         * sysdeps/i386/fpu/e_expl.c: Move to ...
8610         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
8611         rather than using inline asm.
8612         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
8613         * sysdeps/x86_64/fpu/e_expl.S: Copy from
8614         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
8615
8616         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
8617         (nice): Likewise.
8618         (poll): Likewise.
8619         (signal): Likewise.
8620         (time): Likewise.
8621         (times): Likewise.
8622
8623 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8624
8625         * sysdeps/unix/syscalls.list (adjtime): Add entry from
8626         sysdeps/unix/common/syscalls.list.
8627         (fchmod): Likewise.
8628         (fchown): Likewise.
8629         (ftruncate): Likewise.
8630         (getrusage): Likewise.
8631         (gettimeofday): Likewise.
8632         (setpgid): Likewise.
8633         (setregid): Likewise.
8634         (setreuid): Likewise.
8635         (sigaction): Likewise.
8636         (truncate): Likewise.
8637         (vhangup): Likewise.
8638         * sysdeps/unix/common/syscalls.list: Remove file.
8639         * sysdeps/unix/bsd/Implies: Don't include unix/common.
8640         * sysdeps/unix/sysv/linux/Implies: Likewise.
8641
8642 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8643
8644         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
8645         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
8646         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
8647         Moved to ...
8648         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
8649         Here.
8650         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
8651         to ...
8652         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
8653         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
8654         to ...
8655         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
8656         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
8657         to ...
8658         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
8659         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
8660         to ...
8661         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
8662         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
8663         to ...
8664         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
8665         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
8666         to ...
8667         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
8668         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
8669         to ...
8670         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
8671         Here.
8672         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
8673         to ...
8674         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
8675         Here.
8676         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
8677         to ...
8678         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
8679         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
8680         Moved to ...
8681         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
8682         Here.
8683         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
8684         to ...
8685         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
8686
8687 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8688
8689         * sysdeps/unix/common/bits/dirent.h: Remove file.
8690         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8691
8692         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8693         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8694         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8695         * sysdeps/unix/bsd/isatty.c: Likewise.
8696         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8697         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8698         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8699
8700 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8701
8702         [BZ #13563]
8703         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8704         long double comparison inaccuracies.
8705         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8706         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8707
8708 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8709
8710         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8711         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8712
8713 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8714
8715         [BZ #14049]
8716         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8717         nonzero digits before rounding a hex value.
8718         * stdlib/tst-strtod.c (tests): Add another test.
8719
8720 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8721
8722         * sysdeps/s390/fpu/libm-test-ulps: Update.
8723
8724 2012-05-03  Andreas Jaeger  <aj@suse.de>
8725
8726         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8727         does not get optimized out.
8728         (malloc_opt_barrier): New.
8729
8730 2012-05-03  Andreas Jaeger  <aj@suse.de>
8731             Roland McGrath  <roland@hack.frob.com>
8732
8733         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8734         intermediate file deletion.
8735         (generated): Add .symlist files.
8736
8737 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8738
8739         [BZ #13775]
8740         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8741         Redirect under this condition.
8742         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8743         [__USE_GNU] (__dprintf_chk): Not under this condition.
8744         [__USE_GNU] (__vdprintf_chk): Likewise.
8745         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8746         under this condition.
8747         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8748         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8749         [__USE_XOPEN2K8] (vdprintf): Likewise.
8750         [__USE_GNU] (__dprintf_chk): Not under this condition.
8751         [__USE_GNU] (__vdprintf_chk): Likewise.
8752         [__USE_GNU] (dprintf): Likewise.
8753         [__USE_GNU] (vdprintf): Likewise.
8754
8755 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8756
8757         * elf/Makefile (common-generated): Set this instead of generated for
8758         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8759         $(all-built-dso)-derived lists.
8760
8761 2012-05-03  Andreas Jaeger  <aj@suse.de>
8762
8763         * sysdeps/i386/fpu/libm-test-ulps: Update.
8764
8765         * FAQ: Removed.
8766         * FAQ.in: Likewise.
8767         * scripts/gen-FAQ.pl: Likewise.
8768         * manual/install.texi (Installation): Point to online location of
8769         FAQ.
8770         * Makefile (files-for-dist): Remove FAQ.
8771         (FAQ): Remove.
8772
8773 2012-05-02  Allan McRae  <allan@archlinux.org>
8774
8775         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8776         (LDFLAGS-reldepmod5.so): Likewise.
8777         (LDFLAGS-reldep6mod1.so): Likewise.
8778         (LDFLAGS-reldep6mod4.so): Likewise.
8779         (LDFLAGS-reldep8mod3.so): Likewise.
8780         (LDFLAGS-unload4mod1.so): Likewise.
8781         (LDFLAGS-unload4mod2.so): Likewise.
8782         (LDFLAGS-tst-initorder): Likewise.
8783         (LDFLAGS-tst-initordera2.so): Likewise.
8784         (LDFLAGS-tst-initordera3.so): Likewise.
8785         (LDFLAGS-tst-initordera4.so): Likewise.
8786         (LDFLAGS-tst-initorderb2.so): Likewise.
8787         (LDFLAGS-noload): Likewise.
8788         (LDFLAGS-next): Likewise.
8789         (LDFLAGS-order2mod1.so): Likewise.
8790         (LDFLAGS-order2mod2.so): Likewise.
8791         (LDFLAGS-tst-initorder2): Likewise.
8792         (LDFLAGS-tst-initorder2a.so): Likewise.
8793         (LDFLAGS-tst-initorder2b.so): Likewise.
8794         (LDFLAGS-tst-initorder2c.so): Likewise.
8795         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8796
8797 2012-05-02  David S. Miller  <davem@davemloft.net>
8798
8799         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8800
8801 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8802
8803         [BZ #14055]
8804         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8805
8806 2012-05-02  Andreas Jaeger  <aj@suse.de>
8807
8808         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8809         since we manipulate rounding mode.
8810         (CPPFLAGS-test-idouble.c): Likewise.
8811         (CPPFLAGS-test-ifloat.c): Likewise.
8812         (CFLAGS-test-ldouble.c): Likewise.
8813         (CFLAGS-test-double.c): Likewise.
8814         (CFLAGS-test-float.c): Likewise.
8815         (CFLAGS-test-misc.c): Likewise.
8816         (CFLAGS-test-test-fenv.c): Likewise.
8817
8818 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8819
8820         [BZ #2550]
8821         [BZ #2570]
8822         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8823         comparisons to determine direction to adjust input.
8824
8825 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8826
8827         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8828         output to the target.
8829
8830         * scripts/localplt.awk: New file.
8831         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8832         (check-localplt-CFLAGS): Variable removed.
8833         ($(all-built-dso:=.jmprel)): New static pattern rule.
8834         (generated): Add those targets.
8835         (localplt-built-dso): New variable.
8836         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8837
8838         * elf/check-localplt.c: File removed.
8839
8840         * scripts/check-execstack.awk: New file.
8841         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8842         (check-execstack-CFLAGS): Variable removed.
8843         ($(objpfx)check-execstack.h): Target removed.
8844         ($(objpfx)execstack-default): New target.
8845         (generated): Add that instead of check-execstack.h.
8846         ($(all-built-dso:=.phdr)): New static pattern rule.
8847         (generated): Add those targets.
8848         * elf/check-execstack.c: File removed.
8849
8850         * scripts/check-textrel.awk: New file.
8851         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8852         (check-textrel-CFLAGS): Variable removed.
8853         (all-built-dso): Use := to define.o
8854         ($(all-built-dso:=.dyn)): New static pattern rule.
8855         (generated): Add those targets.
8856         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8857         * config.make.in (READELF): New substituted variable.
8858         * elf/check-textrel.c: File removed.
8859
8860 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8861
8862         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8863         allow.
8864         * conform/data/ctype.h-data [C99-based standards] (isblank):
8865         Expect function.
8866         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8867         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8868         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8869         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8870         Specify type.  Require positive value.
8871         (EILSEQ): Likewise.
8872         (ERANGE): Likewise.
8873         [ISO || POSIX] (EILSEQ): Do not expect.
8874         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8875         Specify type.  Require positive value.
8876         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8877         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8878         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8879         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8880         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8881         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8882         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8883         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8884         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8885         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8886         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8887         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8888         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8889         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8890         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8891         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8892         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8893         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8894         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8895         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8896         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8897         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8898         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8899         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8900         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8901         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8902         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8903         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8904         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8905         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8906         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8907         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8908         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8909         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8910         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8911         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8912         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8913         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8914         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8915         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8916         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8917         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8918         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8919         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8920         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8921         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8922         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8923         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8924         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8925         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8926         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8927         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8928         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8929         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8930         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8931         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8932         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8933         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8934         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8935         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8936         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8937         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8938         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8939         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8940         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8941         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8942         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8943         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8944         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8945         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8946         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8947         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8948         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8949         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8950         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8951         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8952         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8953         Require >= 2.
8954         (FLT_ROUNDS): Expect as macro, not constant.
8955         (FLT_MANT_DIG): Use macro-int-constant.
8956         (DBL_MANT_DIG): Likewise.
8957         (LDBL_MANT_DIG): Likewise.
8958         (FLT_DIG): Likewise.
8959         (DBL_DIG): Likewise.
8960         (LDBL_DIG): Likewise.
8961         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8962         (DBL_MIN_EXP): Likewise.
8963         (LDBL_MIN_EXP): Likewise.
8964         (FLT_MAX_EXP): Use macro-int-constant.
8965         (DBL_MAX_EXP): Likewise.
8966         (LDBL_MAX_EXP): Likewise.
8967         (FLT_MAX_10_EXP): Likewise.
8968         (DBL_MAX_10_EXP): Likewise.
8969         (LDBL_MAX_10_EXP): Likewise.
8970         (FLT_MAX): Use macro-constant.
8971         (DBL_MAX): Likewise.
8972         (LDBL_MAX): Likewise.
8973         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8974         (DBL_EPSILON): Likewise.
8975         (LDBL_EPSILON): Likewise.
8976         (FLT_MIN): Likewise.
8977         (DBL_MIN): Likewise.
8978         (LDBL_MIN): Likewise.
8979         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8980         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8981         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8982         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8983         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8984         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8985         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8986         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8987         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8988         [ISO11] (FLT_TRUE_MIN): Likewise.
8989         [ISO11] (LDBL_TRUE_MIN): Likewise.
8990         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8991         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8992         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8993         (SCHAR_MAX): Likewise.
8994         (UCHAR_MAX): Likewise.
8995         (CHAR_MIN): Likewise.
8996         (CHAR_MAX): Likewise.
8997         (MB_LEN_MAX): Use macro-int-constant.
8998         (SHRT_MIN): Use macro-int-constant.  Specify type.
8999         (SHRT_MAX): Likewise.
9000         (USHRT_MAX): Likewise.
9001         (INT_MAX): Likewise.
9002         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9003         bound negative.
9004         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9005         bound with "U".
9006         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9007         bound with "L".
9008         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9009         bound negative.  Suffix upper bound with "L".
9010         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9011         bound with "UL".
9012         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9013         Specify type.
9014         [C99-based standards] (LLONG_MAX): Likewise.
9015         [C99-based standards] (ULLONG_MAX): Likewise.
9016         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9017         == 0.
9018         [ISO11] (max_align_t): Require type.
9019         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9020
9021         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9022         from $CFLAGS, without defining away __attribute__ calls.
9023         (checknamespace): Use $CFLAGS_namespace.
9024
9025         * conform/conformtest.pl (@keywords): Only include C99 keywords
9026         for standards based on C99 or C11.
9027
9028         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9029         Disable tests.
9030         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9031         UNIX98]: Likewise.
9032
9033         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9034         usability of symbols in #if.
9035
9036         * conform/conformtest.pl: If macro or constant types start
9037         "promoted:", expect the symbol to be of the following type
9038         promoted by the integer promotions.
9039
9040         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9041         in one place.  Also handle "macro-constant".
9042
9043         * conform/conformtest.pl: Only accept expected macro values with
9044         "==".  Parse all "macro" lines in one place.
9045         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9046
9047         * conform/conformtest.pl: Handle braced types on "constant" lines
9048         instead of handling "typed-constant".
9049         * conform/data/signal.h-data: Use "constant" instead of
9050         "typed-constant".
9051
9052         * conform/conformtest.pl: Handle "optional-" at start of lines in
9053         one place rather than duplicating several cases.  Handle each
9054         format of "macro" line with initial "optional-".
9055
9056         * conform/conformtest.pl: Only accept expected constant or
9057         optional-constant values with "==".  Parse all "constant" lines in
9058         one place.  Parse all "optional-constant" lines in one place.
9059         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9060         * conform/data/fmtmsg.h-data: Likewise.
9061         * conform/data/netinet/in.h-data: Likewise.
9062         * conform/data/tar.h-data: Likewise.
9063         * conform/data/limits.h-data: Use "==" form on "constant" and
9064         "optional-constant" lines.
9065
9066         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9067         Use -std=c99 for XOPEN2K.
9068         (@knownproblems): Remove.
9069         (newtoken): Don't check %isknown.
9070
9071         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9072         Do not expect macro.
9073         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9074         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9075         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9076         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9077         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9078         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9079         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9080         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9081         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9082         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9083         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9084         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9085         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9086         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9087         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9088         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9089         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9090         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9091         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9092         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9093         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9094         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9095         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9096         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9097         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9098         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9099         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9100         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9101         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9102         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9103         [XPG3] (acosh): Likewise.
9104         [XPG3] (asinh): Likewise.
9105         [XPG3] (atanh): Likewise.
9106         [XPG3] (cbrt): Likewise.
9107         [XPG3] (expm1): Likewise.
9108         [XPG3] (ilogb): Likewise.
9109         [XPG3] (log1p): Likewise.
9110         [XPG3] (logb): Likewise.
9111         [XPG3] (nextafter): Likewise.
9112         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9113         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9114         [XPG3] (remainder): Likewise.
9115         [XPG3] (rint): Likewise.
9116         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9117         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9118         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9119         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9120         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9121         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9122         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9123         [UNIX98 || XOPEN2K] (scalb): Expect.
9124         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9125         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9126         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9127         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9128         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9129         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9130         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9131         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9132         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9133         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9134         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9135         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9136         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9137         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9138         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9139         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9140         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9141         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9142         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9143         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9144         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9145         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9146         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9147         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9148         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9149         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9150         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9151         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9152         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9153         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9154         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9155         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9156         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9157         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9158         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9159         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9160         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9161         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9162         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9163         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9164         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9165         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9166         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9167         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9168         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9169         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9170         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9171         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9172         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9173         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9174         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9175         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9176         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9177         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9178         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9179         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9180         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9181         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9182         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9183         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9184         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9185         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9186         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9187         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9188         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9189         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9190         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9191         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9192         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9193         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9194         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9195         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9196         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9197         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9198         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9199         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9200         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9201         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9202         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9203         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9204         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9205         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9206         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9207         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9208         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9209         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9210         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9211         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9212         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9213         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9214         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9215         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9216         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9217         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9218         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9219         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9220         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9221         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9222         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9223         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9224         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9225         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9226         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9227         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9228         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9229         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9230         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9231         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9232         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9233         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9234         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9235         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9236         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9237         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9238         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9239         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9240         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9241         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9242         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9243         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9244         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9245         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9246         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9247         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9248         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9249         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9250         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9251         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9252         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9253         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9254         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9255         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9256         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9257         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9258         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9259         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9260         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9261
9262         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9263         _XOPEN_SOURCE_EXTENDED for XPG4.
9264
9265         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9266
9267         * Makeconfig (localtime): Remove variable.
9268         (inst_localtime-file): Likewise.
9269
9270 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9271
9272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9273         Update.
9274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9275         Update.
9276         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9277         Update.
9278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9279         Update.
9280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9281         Update.
9282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9283         Update.
9284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9285         Update.
9286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9287         Update.
9288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9289         Update.
9290
9291 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9292
9293         [BZ #2550]
9294         [BZ #2570]
9295         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9296         comparisons to determine direction to adjust input.
9297         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9298         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9299         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9300         Likewise.
9301         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9302         Likewise.
9303         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9304         Likewise.
9305         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9306         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9307         Likewise.
9308         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9309         Likewise.
9310         * math/libm-test.inc (nexttoward_test): Add more tests.
9311
9312 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9313
9314         [BZ #14040]
9315         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
9316         in version GLIBC_2.1, not GLIBC_2.0.
9317         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
9318         Likewise.
9319
9320 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
9321
9322         [BZ #13942]
9323         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
9324         (1 - x) * (1 + x).
9325         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9326         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
9327         * math/libm-test.inc (acos_test): Add more tests.
9328         (asin_test): Likewise.
9329         * sysdeps/i386/fpu/libm-test-ulps: Update.
9330         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9331
9332         [BZ #14034]
9333         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
9334         of square root.
9335         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
9336         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9337         * math/libm-test.inc (acos_test_tonearest): New function.
9338         (acos_test_towardzero): Likewise.
9339         (acos_test_downward): Likewise.
9340         (acos_test_upward): Likewise.
9341         (asin_test_tonearest): Likewise.
9342         (asin_test_towardzero): Likewise.
9343         (asin_test_downward): Likewise.
9344         (asin_test_upward): Likewise.
9345         (main): Call the new functions.
9346         * sysdeps/i386/fpu/libm-test-ulps: Update.
9347         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9348
9349         [BZ #13884]
9350         [BZ #13924]
9351         * math/e_exp10.c: Include <float.h>.
9352         (__ieee754_exp10): Handle underflow here rather than multiplying
9353         large negative argument by M_LN10.
9354         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
9355         of __ieee754_expf.
9356         * math/e_exp10l.c: Include <float.h>.
9357         (__ieee754_exp10l): Handle underflow here rather than multiplying
9358         large negative argument by M_LN10l.
9359         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
9360         spurious overflow exception on underflow.
9361
9362 2012-04-29  Marek Polacek  <polacek@redhat.com>
9363
9364         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
9365         (__fortify_function): New macro.
9366         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
9367         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
9368         __extern_always_inline.
9369         * libio/bits/stdio2.h: Likewise.
9370         * libio/bits/stdio.h: Likewise.
9371         * string/string.h: Likewise.
9372         * string/bits/string3.h: Likewise.
9373         * include/stdio.h: Likewise.
9374         * stdlib/bits/stdlib.h: Likewise.
9375         * stdlib/stdlib.h: Likewise.
9376         * rt/bits/mqueue2.h: Likewise.
9377         * rt/mqueue.h: Likewise.
9378         * posix/bits/unistd.h: Likewise.
9379         * posix/unistd.h: Likewise.
9380         * io/bits/poll2.h: Likewise.
9381         * io/bits/fcntl2.h: Likewise.
9382         * io/fcntl.h: Likewise.
9383         * io/sys/poll.h: Likewise.
9384         * misc/bits/syslog.h: Likewise.
9385         * misc/bits/syslog-ldbl.h: Likewise.
9386         * misc/sys/syslog.h: Likewise.
9387         * socket/bits/socket2.h: Likewise.
9388         * socket/sys/socket.h: Likewise.
9389         * debug/tst-chk1.c: Likewise.
9390         * wcsmbs/bits/wchar2.h: Likewise.
9391         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9392         * wcsmbs/wchar.h: Likewise.
9393
9394 2012-04-29  Andreas Jaeger  <aj@suse.de>
9395
9396         * Makerules (tests): Remove enable-check-abi protection.
9397         (check-abi-warn): Remove.
9398         (check-abi-%): Remove check-abi-warn usage.
9399
9400         * configure.in: Remove check-abi configure option.
9401         * configure: Regenerated.
9402         * config.make.in (enable-check-abi): Remove.
9403
9404 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
9405
9406         [BZ #14033]
9407         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
9408         double functions to double *_finite functions.
9409
9410         [BZ #13941]
9411         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
9412         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
9413         LDBL_MIN_EXP.
9414         * stdio-common/Makefile (tests): Add tst-sprintf3.
9415         * stdio-common/tst-sprintf3.c: New file.
9416
9417         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
9418         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
9419
9420 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9421
9422         * conform/conformtest.pl: Remove duplicate typed-constant
9423         handling.
9424
9425 2012-04-28  David S. Miller  <davem@davemloft.net>
9426
9427         * Makerules (%.abilist): Add vpath on sysdep_dirs.
9428         (check-abi-%): Remove AWK script prerequisite and explicit
9429         abilist directory.
9430         (check-abi): Rewrite to just diff the symlist with the abilist.
9431         (config-tls, config-abi-config): Delete, no longer used.
9432         (update-abi-%): Remove AWK script and explicit abilist directory.
9433         (update-abi): Rewrite to simply compare and conditionally copy the
9434         symlist and the sysdep abilist file.  Remove update-abi-config
9435         checks.
9436         * abilist/ld.abilist: Remove.
9437         * abilist/libBrokenLocale.abilist: Remove.
9438         * abilist/libanl.abilist: Remove.
9439         * abilist/libcrypt.abilist: Remove.
9440         * abilist/libdl.abilist: Remove.
9441         * abilist/librt.abilist: Remove.
9442         * abilist/libthread_db.abilist: Remove.
9443         * abilist/libutil.abilist: Remove.
9444         * scripts/extract-abilist.awk: Remove.
9445         * scripts/merge-abilist.awk: Remove.
9446         * sysdeps/generic/libcidn.abilist: New file.
9447         * sysdeps/generic/libnss_compat.abilist: New file.
9448         * sysdeps/generic/libnss_db.abilist: New file.
9449         * sysdeps/generic/libnss_dns.abilist: New file.
9450         * sysdeps/generic/libnss_files.abilist: New file.
9451         * sysdeps/generic/libnss_hesiod.abilist: New file.
9452         * sysdeps/generic/libnss_nis.abilist: New file.
9453         * sysdeps/generic/libnss_nisplus.abilist: New file.
9454         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
9455         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
9456         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
9457         file.
9458         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
9459         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
9460         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
9461         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
9462         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
9463         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
9464         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
9465         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
9466         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
9467         file.
9468         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
9469         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
9470         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
9471         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
9472         file.
9473         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
9474         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
9475         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
9476         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
9477         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
9478         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
9479         file.
9480         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
9481         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
9482         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
9483         file.
9484         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
9485         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
9486         New file.
9487         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
9488         New file.
9489         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
9490         New file.
9491         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
9492         New file.
9493         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
9494         New file.
9495         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
9496         New file.
9497         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
9498         New file.
9499         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
9500         New file.
9501         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
9502         New file.
9503         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
9504         New file.
9505         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
9506         New file.
9507         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
9508         New file.
9509         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
9510         New file.
9511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
9512         file.
9513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
9514         New file.
9515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
9516         New file.
9517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
9518         file.
9519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
9520         New file.
9521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
9522         New file.
9523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
9524         file.
9525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
9526         New file.
9527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9528         New file.
9529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
9530         New file.
9531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
9532         New file.
9533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
9534         New file.
9535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
9536         New file.
9537         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
9538         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
9539         file.
9540         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
9541         New file.
9542         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
9543         file.
9544         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
9545         file.
9546         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
9547         file.
9548         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
9549         file.
9550         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
9551         file.
9552         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9553         New file.
9554         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
9555         file.
9556         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
9557         file.
9558         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
9559         New file.
9560         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
9561         file.
9562         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
9563         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
9564         file.
9565         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
9566         New file.
9567         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
9568         file.
9569         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
9570         file.
9571         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
9572         file.
9573         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
9574         file.
9575         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
9576         file.
9577         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9578         New file.
9579         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
9580         file.
9581         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
9582         file.
9583         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
9584         New file.
9585         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
9586         file.
9587         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
9588         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
9589         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
9590         file.
9591         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
9592         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
9593         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
9594         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
9595         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
9596         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
9597         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
9598         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
9599         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
9600         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
9601         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
9602         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
9603         file.
9604         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
9605         New file.
9606         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
9607         file.
9608         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
9609         file.
9610         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
9611         file.
9612         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
9613         file.
9614         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
9615         file.
9616         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
9617         New file.
9618         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
9619         New file.
9620         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
9621         file.
9622         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
9623         New file.
9624         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
9625         file.
9626         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
9627         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
9628         file.
9629         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
9630         New file.
9631         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
9632         file.
9633         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
9634         file.
9635         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
9636         file.
9637         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
9638         file.
9639         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
9640         file.
9641         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
9642         New file.
9643         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
9644         New file.
9645         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
9646         file.
9647         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
9648         New file.
9649         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
9650         file.
9651
9652 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9653
9654         * conform/conformtest.pl: Fix typo in handling typed-constant from
9655         allow-header.
9656
9657 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9658
9659         * README: Cut down references to pre-2.6 Linux kernels and
9660         Linuxthreads.  Update lists of configurations in libc and ports
9661         and sort alphabetically.  Say "or newer" with Linux kernel version
9662         requirements.
9663
9664         * config.h.in [IS_IN_build]: Allow compiling without optimization.
9665
9666 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9667
9668         [BZ #887]
9669         * math/libm-test.inc (logb_test_downward): New test to expose
9670         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
9671         rounding mode.
9672
9673 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9674
9675         [BZ #14027]
9676         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
9677         to be done.
9678         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
9679         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
9680
9681 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
9682
9683         * sysdeps/unix/i386/brk.S: Remove file.
9684         * sysdeps/unix/i386/dl-brk.S: Likewise.
9685         * sysdeps/unix/i386/pipe.S: Likewise.
9686         * sysdeps/unix/i386/sigreturn.S: Likewise.
9687         * sysdeps/unix/i386/syscall.S: Likewise.
9688         * sysdeps/unix/i386/vfork.S: Likewise.
9689         * sysdeps/unix/i386/wait.S: Likewise.
9690
9691         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9692         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9693
9694         * configure.in (arm*-none*): Do not allow without
9695         --enable-hacker-mode.
9696         (netbsd*): Remove case setting base_os.
9697         (386bsd*): Likewise.
9698         (freebsd*): Likewise.
9699         (bsdi*): Likewise.
9700         (osf*): Likewise.
9701         (sunos*): Likewise.
9702         (ultrix*): Likewise.
9703         (newsos*): Likewise.
9704         (dynix*): Likewise.
9705         (*bsd*): Likewise.
9706         (sysv*): Likewise.
9707         (isc*): Likewise.
9708         (esix*): Likewise.
9709         (sco*): Likewise.
9710         (minix*): Likewise.
9711         (irix4*): Likewise.
9712         (irix6*): Likewise.
9713         (solaris[2-9]*): Likewise.
9714         (none): Likewise.
9715         * configure: Regenerated.
9716
9717 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9718
9719         [BZ #11521]
9720         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9721         overflow or cancellation in calculating denominator.
9722         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9723         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9724         down expression to avoid unexpected rounding in newer GCCs.
9725         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9726
9727 2012-04-26  David S. Miller  <davem@davemloft.net>
9728
9729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9730         long-double compat symbols.
9731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9736         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9737         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9738         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9739         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9740         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9741         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9742         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9743         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9744
9745 2012-04-25  David S. Miller  <davem@davemloft.net>
9746
9747         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9748         HWCAP_* values only after the memory barriers have been defined.
9749         (atomic_full_barrier): Define.
9750         (atomic_read_barrier): Define.
9751         (atomic_write_barrier): Define.
9752
9753 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9754
9755         * shlib-versions: Add libgcc_s version information.
9756         * sysdeps/generic/libgcc_s.h: Remove.
9757         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9758         libgcc_s.h.
9759         * sysdeps/gnu/unwind-resume.c: Likewise.
9760         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9761
9762 2012-04-25  David S. Miller  <davem@davemloft.net>
9763
9764         * sysdeps/unix/sparc/brk.S: Delete.
9765         * sysdeps/unix/sparc/dl-brk.S: Delete.
9766         * sysdeps/unix/sparc/pipe.S: Delete.
9767         * sysdeps/unix/sparc/sysdep.S: Delete.
9768         * sysdeps/unix/sparc/sysdep.h: Delete.
9769         * sysdeps/unix/sparc/vfork.S: Delete.
9770         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9771         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9772         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9773         ret_ERRVAL, r0, r1, MOVE): Define.
9774         (JUMPTARGET): Remove.
9775         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9776         sysdeps/unix/sparc/sysdep.h
9777         (ENTRY, END): Remove.
9778         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9779
9780 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9781
9782         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9783         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9784         -DIS_IN_build.
9785
9786         * timezone/README: Update upstream location and email address for
9787         tzcode and tzdata.
9788         * timezone/zdump.c: Update from tzcode 2012b.
9789         * timezone/zic.c: Likewise.
9790
9791         * configure.in (libc_cv_as_needed): Remove test.
9792         * configure: Regenerated.
9793         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9794         conditional definition.
9795         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9796         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9797         * config.make.in (have-as-needed): Remove variable.
9798
9799 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9800             Paul Pluzhnikov  <ppluzhnikov@google.com>
9801
9802         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9803         strings correctly.
9804
9805 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9806
9807         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9808         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9809         * sysdeps/sh/strlen.S: Likewise.
9810
9811 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9812
9813         * sysdeps/unix/fork.S: Remove file.
9814         * sysdeps/unix/i386/fork.S: Likewise.
9815         * sysdeps/unix/sparc/fork.S: Likewise.
9816
9817         * sysdeps/unix/system.c: Remove file.
9818         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9819
9820         * sysdeps/unix/getegid.S: Remove file.
9821         * sysdeps/unix/geteuid.S: Likewise.
9822
9823 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9824
9825         * scripts/check-localplt.awk: New file.
9826         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9827         of diff.
9828         * scripts/data/localplt-generic.data: Add a comment.
9829
9830         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9831         NODE when __dir_mkfile failed.
9832         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9833         Reported by Ludovic Courtès <ludo@gnu.org>.
9834
9835 2012-04-24  Andreas Jaeger  <aj@suse.de>
9836
9837         * Makerules (common-clean): Also remove gen-as-const-headers
9838         files.
9839
9840 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9841
9842         * Makerules (native-compile): Do not change working directory for
9843         build.  Use $(OUTPUT_OPTION) in command.
9844         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9845
9846 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9847
9848         [BZ #13886]
9849         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9850         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9851         * math/libm-test.inc (floor_test): Add more tests.
9852         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9853
9854 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9855
9856         * sysdeps/unix/getdents.c: Remove file.
9857         * sysdeps/unix/sysv/getdents.c: Likewise.
9858         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9859
9860         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9861         sysdeps/unix/mman/syscalls.list.
9862         (mmap): Likewise.
9863         (mprotect): Likewise.
9864         (msync): Likewise.
9865         (munmap): Likewise.
9866         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9867         * sysdeps/unix/mman/syscalls.list: Remove.
9868         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9869
9870         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9871         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9872         * configure: Regenerated.
9873         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9874         $(libgcc_s_suffix).
9875         * config.make.in (libgcc_s_suffix): Remove variable.
9876
9877 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9878
9879         * sysdeps/unix/sysv/gethostname.c: Move to ...
9880         * sysdeps/posix/gethostname.c: ... here.
9881
9882         * sysdeps/unix/execve.S: Remove file.
9883
9884         * sysdeps/unix/_exit.S: Remove file.
9885
9886 2012-04-23  Andreas Jaeger  <aj@suse.de>
9887
9888         [BZ #13739]
9889         * manual/Makefile: Remove make dist support, there's no
9890         need for a stand-alone documentation tar ball.
9891         (TEXI2DVI): Define always, it's not in Makeconfig.
9892         (dist): Removed.
9893         (tar-it): Removed.
9894         (edition): Removed.
9895         (glibc-doc-$(edition).tar): Removed
9896         (%.Z): Removed.
9897         (%.gz): Removed.
9898         (%.uu): Removed.
9899         (ETAGS): Remove, it's in Makeconfig.
9900         (move-if-change): Remove, it's in Makeconfig.
9901
9902 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9903
9904         [BZ #13970]
9905         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9906         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9907         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9908         (strtod_l, strtof_l, strtold_l): Remove __wur.
9909         It is not necessarily an error to ignore strtol's return value.
9910         One can reliably look at the stored endptr to decide whether
9911         the number had valid syntax.
9912
9913 2012-04-21  Andreas Jaeger  <aj@suse.de>
9914
9915         [BZ #13739]
9916         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9917
9918 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9919
9920         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9921         * sysdeps/unix/sysv/Versions: Remove file.
9922
9923 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9924
9925         [BZ #13927]
9926         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9927
9928 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9929
9930         [BZ #7064]
9931         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9932         version from __vm86.
9933
9934 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9935
9936         * sysdeps/unix/common/lxstat.c: Remove file.
9937         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9938
9939         * sysdeps/unix/sysv/Makefile: Remove file.
9940
9941         * sysdeps/unix/sysv/direct.h: Remove file.
9942
9943         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9944         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9945         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9946         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9947         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9948         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9949         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9950
9951         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9952
9953         * sysdeps/unix/xmknod.c: Remove file.
9954         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9955
9956         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9957
9958         * sysdeps/unix/sysv/i386/time.S: Remove file.
9959
9960         * sysdeps/unix/fxstat.c: Remove file.
9961         * sysdeps/unix/xstat.c: Likewise.
9962         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9963
9964         * sysdeps/unix/sysv/sigaction.c: Remove file.
9965
9966         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9967         (sysdep_headers): Remove variable.
9968         [termio.h not in sysdep_headers] (generated): Likewise.
9969         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9970         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9971         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9972         * sysdeps/unix/sysv/tcflow.c: Likewise.
9973         * sysdeps/unix/sysv/tcflush.c: Likewise.
9974         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9975         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9976         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9977         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9978         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9979
9980         * sysdeps/unix/siglist.c: Remove file.
9981
9982         * sysdeps/unix/getppid.S: Remove file.
9983
9984         * sysdeps/unix/mkdir.c: Remove file.
9985         * sysdeps/unix/rmdir.c: Likewise.
9986
9987 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9988
9989         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9990         ERR_MAX value.
9991         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9992         errlist-compat value.
9993
9994 2012-04-18  David S. Miller  <davem@davemloft.net>
9995
9996         * sysdeps/generic/memcopy.h (reg_char): Delete.
9997         * debug/strcat_chk.c: Use char, not reg_char.
9998         * debug/strcpy_chk.c: Likewise.
9999         * debug/strncat_chk.c: Likewise.
10000         * debug/strncpy_chk.c: Likewise.
10001         * string/memchr.c: Likewise.
10002         * string/memrchr.c: Likewise.
10003         * string/rawmemchr.c: Likewise.
10004         * string/strcat.c: Likewise.
10005         * string/strchr.c: Likewise.
10006         * string/strchrnul.c: Likewise.
10007         * string/strcmp.c: Likewise.
10008         * string/strcpy.c: Likewise.
10009         * string/strncat.c: Likewise.
10010         * string/strncmp.c: Likewise.
10011         * string/strncpy.c: Likewise.
10012
10013 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10014
10015         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10016         __builtin_memcopy is called when src and dest ranges are known to not
10017         overlap.
10018
10019 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10020
10021         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10022         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10023         fwd_align_merge macro call.
10024         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10025         bwd_align_merge macro call.
10026         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10027
10028 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10029
10030         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10031         bwd_align_merge macros.
10032         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10033         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10034         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10035
10036 2012-04-18  David S. Miller  <davem@davemloft.net>
10037
10038         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10039
10040 2012-04-18  Andreas Jaeger  <aj@suse.de>
10041
10042         [BZ# 6794]
10043         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10044         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10045         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10046
10047         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10048         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10049         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10050
10051         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10052         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10053         Adjust for changed ldbl-128 files.
10054
10055         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10056         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10057         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10058
10059 2012-04-17  David S. Miller  <davem@davemloft.net>
10060
10061         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10062
10063 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10064
10065         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10066         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10067         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10068         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10069         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10070         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10071
10072 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10073
10074         [BZ #6794]
10075         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10076         * math/libm-test.inc: Add ilogb errno and exception tests.
10077         * math/w_ilogb.c: New file: ilogb wrapper.
10078         * math/w_ilogbf.c: New file: ilogbf wrapper.
10079         * math/w_ilogbl.c: New file: ilogbl wrapper.
10080         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10081         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10082         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10083         exception being thrown with 0.0 as argument.
10084         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10085         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10086         exception being thrown with 0.0 as argument.
10087         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10088         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10089         exception being thrown with 0.0 as argument.
10090         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10091         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10092         exception being thrown with 0.0 as argument.
10093         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10094         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10095         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10096         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10097         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10098         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10099         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10100         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10101         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10102
10103 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10104
10105         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10106         with altivec.
10107
10108 2012-04-16  Marek Polacek  <polacek@redhat.com>
10109
10110         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10111
10112 2012-04-16  Marek Polacek  <polacek@redhat.com>
10113
10114         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10115         operands of fdivp instruction.
10116
10117 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10118
10119         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10120         * elf/tst-auditmod3b.c: Likewise.
10121         * elf/tst-auditmod4b.c: Likewise.
10122         * elf/tst-auditmod5b.c: Likewise.
10123         * elf/tst-auditmod6b.c: Likewise.
10124         * elf/tst-auditmod6c.c: Likewise.
10125         * elf/tst-auditmod7b.c: Likewise.
10126         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10127         * sysdeps/x86_64/preconfigure.in: Likewise.
10128         * sysdeps/x86_64/preconfigure: Regenerated.
10129
10130 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10131
10132         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10133         __ILP32__.
10134
10135 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10136
10137         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10138         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10139
10140 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10141
10142         [BZ #13973]
10143         * locale/iso-639.def: Fix gl language name. Spotted by
10144         Yaron Shahrabani.
10145
10146 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10147
10148         [BZ #2074]
10149         * libio/libio.h (__io_write_fn): Update comment.
10150
10151 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10152
10153         [BZ #2074]
10154         * stdio.texi (Hook Functions): The user provided writer function
10155         is not allowed to return -1.
10156
10157 2012-04-11  David S. Miller  <davem@davemloft.net>
10158
10159         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10160
10161 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10162
10163         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10164         Add a leading slash to rtkaio.
10165
10166 2012-04-11  Jim Meyering  <meyering@redhat.com>
10167
10168         [BZ #11959]
10169         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10170         It is not necessarily an error to ignore fwrite's return
10171         value.  One can reliably use ferror to test for errors after
10172         the fact.
10173
10174 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10175
10176         * bits/types.h (__snseconds_t): New type.
10177         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10178
10179         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10180         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10181         (__SNSECONDS_T_TYPE): Likewise.
10182         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10183         (__SNSECONDS_T_TYPE): Likewise.
10184         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10185         (__SNSECONDS_T_TYPE): Likewise.
10186
10187 2012-04-10  Andreas Jaeger  <aj@suse.de>
10188
10189         [BZ #2636]
10190         * manual/time.texi (Processor Time): Return type of times is
10191         elapsed real time since an arbitrary point in the past.
10192         (CPU Time): Move CLK_TCK from here...
10193         (Processor Time): ...to here.  Correct description.
10194         * manual/conf.texi (Constants for Sysconf): Correct description of
10195         _SC_CLK_TCK.
10196
10197 2012-04-10  David S. Miller  <davem@davemloft.net>
10198
10199         [BZ #13967]
10200         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10201         where the is a gap between DT_REL(A) and DT_JMPREL.
10202
10203 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10204
10205         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10206         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10207         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10208
10209 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10210
10211         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10212         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10213         (dl_main): Handle --inhibit-cache.
10214         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10215         _dl_inhibit_cache.
10216         * elf/dl-load.c (_dl_map_object): Use it.
10217         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10218
10219 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10220
10221         [BZ #13872]
10222         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10223         (__ieee754_powl): Saturate large exponents rather than testing for
10224         overflow of y*log2(x).
10225         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10226         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10227         exceptions.
10228
10229         [BZ #11521]
10230         * math/s_ctan.c: Include <float.h>.
10231         (__ctan): Avoid internal overflow or cancellation in calculating
10232         denominator.
10233         * math/s_ctanf.c: Likewise.
10234         * math/s_ctanl.c: Likewise.
10235         * math/s_ctanh.c: Likewise.
10236         * math/s_ctanhf.c: Likewise.
10237         * math/s_ctanhl.c: Likewise.
10238         * math/libm-test.inc (ctan_test): Add more tests.
10239         (ctanh_test): Likewise.
10240         * sysdeps/i386/fpu/libm-test-ulps: Update.
10241         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10242
10243 2012-04-09  Andreas Jaeger  <aj@suse.de>
10244
10245         [BZ #6894]
10246         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10247         is an optional BSD extension.
10248
10249         [BZ #10254]
10250         * manual/stdio.texi (Opening Streams): Document additional fopen
10251         parameters.
10252
10253 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10254
10255         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10256         %eax without telling the compiler.
10257
10258 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10259
10260         [BZ # 13963]
10261         * manual/install.texi: Use sourceware.org.
10262
10263 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10264
10265         [BZ #13873]
10266         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10267         (__ieee754_pow): Generate overflow and underflow using huge*huge
10268         and tiny*tiny rather than just returning constant infinity or zero
10269         for large exponents.
10270         * math/libm-test.inc (pow_test): Require overflow exceptions for
10271         applicable cases of large exponents.
10272
10273         [BZ #706]
10274         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10275         (__ieee754_pow): Use iterative multiplication algorithm only for
10276         integer exponents with absolute value below 1024.  Check for odd
10277         integer exponents when using algorithm for real exponents.
10278         * math/libm-test.inc (pow_test): Add more tests.
10279         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10280
10281 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10282
10283         [BZ #13705]
10284         * math/libm-test.inc (exp_test): Do not allow overflow exception
10285         on underflow test.
10286
10287 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10288
10289         [BZ #13705]
10290         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10291         instead of __kernel_standard_f.
10292
10293 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10294
10295         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10296         * sysdeps/x86_64/memset_chk.S: Likewise.
10297
10298 2012-04-08  Andreas Jaeger  <aj@suse.de>
10299
10300         [BZ #10153]
10301         * manual/startup.texi (Environment Access): Describe return value
10302         for putenv and setenv.
10303
10304         [BZ #6895]
10305         * manual/filesys.texi (Directory Entries): Add description for
10306         DT_LNK.
10307
10308         [BZ #6890]
10309         * manual/filesys.texi (Directory Entries): Clarify that it's file
10310         system not operating system in the description of DT_UNKNOWN.
10311
10312         [BZ #6578]
10313         * manual/syslog.texi (closelog): Fix reference, it's openlog.
10314
10315 2012-04-08  Stephen Compall  <s11@member.fsf.org>
10316
10317         [BZ #6649]
10318         * manual/llio.texi (Opening and Closing Files): Add cross
10319         reference to explain mode argument.
10320
10321 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
10322
10323         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
10324         * sysdeps/x86_64/memset_chk.S: Likewise.
10325
10326 2012-04-07  David S. Miller  <davem@davemloft.net>
10327
10328         * elf/elf.h (R_SPARC_WDISP10): Define.
10329         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
10330         R_SPARC_SIZE32.
10331         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
10332         R_SPARC_SIZE64 and R_SPARC_H34.
10333
10334 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
10335
10336         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
10337         conditions and remove no longer applicable assertion.
10338
10339 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10340
10341         * bits/byteswap.h: Include <features.h>.
10342         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10343         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10344
10345 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10346
10347         * bits/byteswap.h (__bswap_16): Removed.
10348         Include <bits/byteswap-16.h> to get __bswap_16.
10349         * sysdeps/i386/bits/byteswap.h: Likewise.
10350         * sysdeps/s390/bits/byteswap.h: Likewise.
10351         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10352         * bits/byteswap-16.h: New file.
10353         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10354         * sysdeps/s390/bits/byteswap-16.h: Likewise.
10355         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
10356         * string/Makefile (headers): Add bits/byteswap-16.h.
10357
10358 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10359
10360         [BZ #13895]
10361         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
10362         extra indirection.
10363         * nss/Makefile (tests-static, tests): Add tst-nss-static.
10364         * nss/tst-nss-static.c: New.
10365
10366 2012-04-06  Robert Millan  <rmh@gnu.org>
10367
10368         [BZ #6486]
10369         * manual/llio.texi (File Position Primitive): lseek
10370         refers to WHENCE when it really means OFFSET.
10371
10372 2012-04-06  Andreas Jaeger  <aj@suse.de>
10373
10374         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
10375         strncmp declarations.
10376
10377         * abilist/libc.abilist: Add __poll and __ppoll.
10378
10379 2012-04-05  David S. Miller  <davem@davemloft.net>
10380
10381         * scripts/check-local-headers.sh: Accept a host triplet in the
10382         path matched by the exclude regexp.
10383
10384         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
10385         definition.
10386         * sysdeps/powerpc/powerpc32/dl-machine.h
10387         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
10388         * sysdeps/s390/s390-32/dl-machine.h
10389         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10390         * sysdeps/sparc/sparc32/dl-machine.h
10391         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10392         * sysdeps/sparc/sparc64/dl-machine.h
10393         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10394
10395         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
10396         lazy binding.
10397         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
10398         undefined symbol errors.
10399
10400         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
10401         DT_NEEDED entries.
10402
10403 2012-04-05  Michael Matz  <matz@suse.de>
10404
10405         [BZ #13592]
10406         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
10407
10408 2012-04-05  Andreas Jaeger  <aj@suse.de>
10409
10410         [BZ #13908]
10411         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
10412         comment.
10413
10414 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10415
10416         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
10417         which ROUND is no valid rounding mode.
10418
10419 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10420
10421         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
10422         read again.
10423         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
10424
10425 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10426
10427         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
10428         an exception using FPU order intentionally.
10429
10430 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10431
10432         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
10433         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
10434         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
10435         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
10436
10437 2012-04-05  Simon Josefsson  <simon@josefsson.org>
10438
10439         [BZ #12340]
10440         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
10441         EINVAL when BUFLEN is too smal.
10442
10443 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10444
10445         [BZ #13553]
10446         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
10447         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10448
10449 2012-04-03  Andreas Jaeger  <aj@suse.de>
10450
10451         [BZ #13938]
10452         * manual/setjmp.texi (System V contexts): Fix sentence.
10453
10454         [BZ #13926]
10455         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
10456         New macro for this case.
10457         [!__GNUC__] (__bswap_64): New inline function for this case.
10458         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10459         * bits/byteswap.h: Likewise.
10460         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
10461         ull, guard with __GLIBC_HAVE_LONG_LONG.
10462
10463         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
10464         __GLIBC_HAVE_LONG_LONG.
10465
10466         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
10467         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
10468
10469 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10470
10471         [BZ #13691]
10472         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
10473         inptr and inend, rather than using last_ch.
10474
10475 2012-04-02  David S. Miller  <davem@davemloft.net>
10476
10477         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
10478         * stdio-common/printf-parse.h (read_int): Change return type to
10479         'int', return -1 on INT_MAX overflow.
10480         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
10481         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
10482         overflows INT_MAX.  Check for overflow of in-format-string precision
10483         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
10484         SIZE_MAX not INT_MAX for integer overflow test.
10485         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
10486         skip the construct in the format string but do not record anything.
10487         * stdio-common/bug22.c: Adjust to test both width/prevision
10488         INT_MAX overflow as well as total length INT_MAX overflow.  Check
10489         explicitly for proper errno values.
10490
10491 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10492
10493         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
10494         CHAR_MAX.
10495         * string/test-strcmp.c [! WIDE]: Likewise.
10496         * time/tst-mktime2.c: Likewise for INT_MAX.
10497         * string/test-string.h: #include <sys/param.h> for MIN.
10498
10499         * csu/init-first.c (__libc_init_first): Call __ctype_init.
10500         * sysdeps/i386/init-first.c (init): Likewise.
10501         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
10502         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
10503         * sysdeps/sh/init-first.c (init): Likewise.
10504
10505 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
10506
10507         * po/ru.po: Update from translation team.
10508         * po/vi.po: Likewise.
10509
10510 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10511
10512         * resolv/nss_dns/dns-host.c: Merge copyright years.
10513
10514 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10515
10516         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10517         Optimize memcpy with prefetch if
10518         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
10519         src, dst pointers have unequal 16 byte alignments.
10520
10521 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10522
10523         [BZ #13928]
10524         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
10525         from a CNAME entry and return the minimum ttl for the query.
10526         (gaih_getanswer_slice): Likewise.
10527
10528 2012-03-30  Jeff Law  <law@redhat.com>
10529
10530         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
10531         due to long keys.
10532         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
10533         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
10534
10535         * resolv/nss_dns/dns-host.c: Update copyright year.
10536
10537 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
10538
10539         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
10540         requests to save a system call.  Fix check that all bytes are sent.
10541
10542         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
10543         comments for sendmmsg.
10544
10545 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10546
10547         [BZ #13691]
10548         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
10549         with only 1 character between 0x0041 and 0x01b0.
10550         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
10551         * wcsmbs/tst-mbsnrtowcs.c: New file.
10552
10553 2012-03-29  David S. Miller  <davem@davemloft.net>
10554
10555         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
10556         small copies by hand.
10557
10558 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10559
10560         [BZ #13761]
10561         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
10562         _nss_compat_initgroups_dyn): Fall back to malloc/free
10563         for large group memberships.
10564
10565 2012-03-28  David S. Miller  <davem@davemloft.net>
10566
10567         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
10568         that branches into memcpy.
10569         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
10570         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
10571         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
10572         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
10573         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
10574         bits.
10575         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
10576         implementation too.
10577         * sysdeps/sparc/mempcpy.S: New file.
10578
10579         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
10580         the IFUNC routine in the libc case.
10581         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10582
10583         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
10584         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
10585         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
10586         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
10587         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
10588         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
10589         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
10590         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
10591
10592         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
10593         loop to 256 bytes instead of 64 bytes and fix test signedness.
10594
10595         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
10596         * sysdeps/sparc/sparc32/Makefile: rather than here...
10597         * sysdeps/sparc/sparc64/Makefile: and here.
10598
10599 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
10600
10601         * malloc/mallocbug.c: Avoid warnings about unused variables.
10602
10603 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10604
10605         [BZ #13760]
10606         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
10607         in the right place. Discard and retry query if response is
10608         larger than input buffer size.
10609
10610 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
10611
10612         [BZ #369]
10613         [BZ #2678]
10614         [BZ #3866]
10615         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
10616         x for large integer exponent.
10617         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
10618         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
10619         sign of result as needed afterwards.
10620         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10621         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
10622         result for underflowing pow the same as for overflow.
10623         (__kernel_standard_l): Handle powl overflow and underflow here
10624         rather than calling __kernel_standard.
10625         * math/libm-test.inc (pow_test): Add more tests.
10626
10627         [BZ #3868]
10628         [BZ #13879]
10629         [BZ #13910]
10630         [BZ #13911]
10631         [BZ #13912]
10632         [BZ #13913]
10633         [BZ #13915]
10634         [BZ #13916]
10635         [BZ #13917]
10636         [BZ #13918]
10637         [BZ #13919]
10638         [BZ #13920]
10639         [BZ #13921]
10640         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
10641         * sysdeps/ieee754/k_standard.c: Include <float.h>.
10642         (__kernel_standard_l): New function.
10643         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
10644         __kernel_standard.
10645         * math/w_acosl.c (__acosl): Likewise.
10646         * math/w_asinl.c (__asinl): Likewise.
10647         * math/w_atan2l.c (__atan2l): Likewise.
10648         * math/w_atanhl.c (__atanhl): Likewise.
10649         * math/w_coshl.c (__coshl): Likewise.
10650         * math/w_exp10l.c (__exp10l): Likewise.
10651         * math/w_exp2l.c (__exp2l): Likewise.
10652         * math/w_fmodl.c (__fmodl): Likewise.
10653         * math/w_hypotl.c (__hypotl): Likewise.
10654         * math/w_j0l.c (__j0l, __y0l): Likewise.
10655         * math/w_j1l.c (__j1l, __y1l): Likewise.
10656         * math/w_jnl.c (__jnl, __ynl): Likewise.
10657         * math/w_lgammal.c (__lgammal): Likewise.
10658         * math/w_log10l.c (__log10l): Likewise.
10659         * math/w_log2l.c (__log2l): Likewise.
10660         * math/w_logl.c (__logl): Likewise.
10661         * math/w_powl.c (__powl): Likewise.
10662         * math/w_remainderl.c (__remainderl): Likewise.
10663         * math/w_scalbl.c (sysv_scalbl): Likewise.
10664         * math/w_sinhl.c (__sinhl): Likewise.
10665         * math/w_sqrtl.c (__sqrtl): Likewise.
10666         * math/w_tgammal.c (__tgammal): Likewise.
10667         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
10668         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
10669         * math/libm-test.inc (acos_test): Add more tests.
10670         (acosh_test): Likewise.
10671         (asin_test): Likewise.
10672         (atanh_test): Likewise.
10673         (exp_test): Likewise.
10674         (exp10_test): Likewise.
10675         (exp2_test): Likewise.
10676         (expm1_test): Likewise.
10677         (lgamma_test): Likewise.
10678         (log_test): Likewise.
10679         (log10_test): Likewise.
10680         (log1p_test): Likewise.
10681         (log2_test): Likewise.
10682         (pow_test): Do not allow some spurious overflow exceptions.
10683         (sqrt_test): Add more tests.
10684         (tgamma_test): Likewise.
10685         (y0_test): Likewise.
10686         (y1_test): Likewise.
10687         (yn_test): Likewise.
10688
10689 2012-03-27  Anton Blanchard  <anton@samba.org>
10690
10691         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10692         MAP_HUGETLB.
10693         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10694         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10695         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10696
10697 2012-03-27  David S. Miller  <davem@davemloft.net>
10698
10699         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10700
10701         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10702         have-as-vis3 check.
10703
10704 2012-03-27  Andreas Jaeger  <aj@suse.de>
10705
10706         * sysdeps/x86_64/elf/configure.in: Moved to ...
10707         * sysdeps/x86_64/configure.in: ... here.
10708         * sysdeps/x86_64/elf/start.S: Moved to ...
10709         * sysdeps/x86_64/start.S: ... here.
10710         * sysdeps/x86_64/elf/configure: Delete.
10711
10712         * sysdeps/x86_64/configure.in: Merge contents from
10713         sysdeps/i386/configure.in (without i686 check).
10714
10715         * sysdeps/i386/elf/Versions: Merge into ...
10716         * sysdeps/i386/Versions: ... this.
10717         * sysdeps/i386/elf/Versions: Delete file.
10718         * sysdeps/i386/elf/start.S: Moved to ...
10719         * sysdeps/i386/start.S: ...here.
10720         * sysdeps/i386/elf/configure.in: Merge into...
10721         * sysdeps/i386/configure.in: ...here.
10722         * sysdeps/i386/elf/configure.in: Delete file.
10723         * sysdeps/i386/elf/configure: Delete file.
10724
10725         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10726         * debug/backtracesyms.c: ... here.
10727         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10728         * debug/backtracesymsfd.c: ... here.
10729         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10730         * sysdeps/generic/ifunc-sel.h: ... here.
10731
10732         * sysdeps/unix/i386/start.c: Delete file.
10733         * sysdeps/unix/sparc/start.c: Delete file.
10734         * sysdeps/unix/start.c: Delete file.
10735
10736         * sysdeps/sh/elf/configure.in: Moved to ...
10737         * sysdeps/sh/configure.in: ... here.
10738         * sysdeps/sh/elf/start.S: Moved to ...
10739         * sysdeps/sh/start.S: ... here.
10740         * sysdeps/sh/elf/configure: Delete file.
10741
10742         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10743         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10744         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10745         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10746         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10747         * sysdeps/powerpc/powerpc64/start.S: here.
10748         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10749         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10750         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10751         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10752         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10753
10754         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10755         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10756         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10757         * sysdeps/powerpc/powerpc32/start.S: ... here.
10758         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10759         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10760         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10761
10762         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10763         * sysdeps/powerpc/ifunc-sel.h: ... here.
10764         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10765         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10766
10767         * sysdeps/sparc/elf/configure.in: Moved to ...
10768         * sysdeps/sparc/configure.in: ... here.
10769         * sysdeps/sparc/elf/configure: Delete file.
10770         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10771         * sysdeps/sparc/sparc32/start.S: ... here.
10772         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10773         * sysdeps/sparc/sparc64/start.S: ... here.
10774         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10775         * sysdeps/sparc/sparc32/Makefile: ... this.
10776         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10777         * sysdeps/sparc/sparc64/Makefile: ... this.
10778
10779         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10780         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10781         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10782         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10783         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10784         * sysdeps/s390/s390-32/setjmp.S: ... here.
10785         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10786         * sysdeps/s390/s390-32/configure.in: ... here.
10787         * sysdeps/s390/s390-32/elf/configure: Delete file.
10788         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10789         * sysdeps/s390/s390-32/start.S: ... here.
10790
10791         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10792         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10793         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10794         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10795         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10796         * sysdeps/s390/s390-64/setjmp.S: ... here.
10797         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10798         * sysdeps/s390/s390-64/configure.in: ... here
10799         * sysdeps/s390/s390-64/elf/configure: Delete file.
10800         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10801         * sysdeps/s390/s390-64/start.S: ... here.
10802         * sysdeps/s390/s390-64/elf/configure: Delete.
10803
10804         * configure.in: Remove support for elf directories in sysdeps.
10805
10806         * configure: Regenerated.
10807         * sysdeps/i386/configure: Regenerated.
10808         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10809         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10810         * sysdeps/s390/s390-32/configure: Regenerated.
10811         * sysdeps/s390/s390-64/configure: Regenerated.
10812         * sysdeps/sh/configure: Regenerated.
10813         * sysdeps/sparc/configure: Regenerated.
10814         * sysdeps/x86_64/configure: Regenerated.
10815
10816 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10817
10818         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10819
10820         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10821         denormal result into account.
10822
10823 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10824
10825         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10826         Reported by Allan McRae <allan@archlinux.org>.
10827
10828 2012-03-23  Jeff Law  <law@redhat.com>
10829
10830         * nss/getnssent.c (__nss_getent): Fix typo.
10831
10832 2012-03-23  David S. Miller  <davem@davemloft.net>
10833
10834         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10835
10836 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10837
10838         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10839         to pad to uint64_t for each field.
10840         (dl_tls_index): Replace unsigned long with uint64_t.
10841
10842 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10843         Paul Pluzhnikov  <ppluzhnikov@google.com>
10844
10845         [BZ #6528]
10846         * grp/Makefile (otherlibs): Don't set it.
10847         * inet/Makefile (otherlibs): Likewise.
10848         * login/Makefile (otherlibs): Likewise.
10849         * nscd/Makefile (otherlibs): Likewise.
10850         * posix/Makefile (otherlibs): Likewise.
10851         * pwd/Makefile (otherlibs): Likewise.
10852         * rt/Makefile (otherlibs): Likewise.
10853         * sunrpc/Makefile (otherlibs): Likewise.
10854         * nss/Makefile (otherlibs): Likewise.
10855         Add libnss_files to routines and static-only-routines.
10856         ($(objpfx)getent): Remove rule.
10857         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10858         static-only-routines.
10859
10860 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10861
10862         [BZ #13892]
10863         * math/s_cexp.c: Include <float.h>.
10864         (__cexp): Handle exp result overflowing not necessarily
10865         overflowing both real and imaginary parts of result.
10866         * math/s_cexpf.c: Likewise.
10867         * math/s_cexpl.c: Likewise.
10868         * math/libm-test.inc (cexp_test): Add more tests.
10869         * sysdeps/i386/fpu/libm-test-ulps: Update.
10870         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10871
10872 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10873
10874         * include/link.h (ELFW): New macro.
10875         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10876         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10877
10878 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10879
10880         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10881         with uint64_t.
10882
10883 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10884
10885         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10886         declaration.
10887         (struct La_x32_retval): Likewise.
10888
10889 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10890
10891         * sysdeps/x86_64/preconfigure.in: New file.
10892         * sysdeps/x86_64/preconfigure: New generated file.
10893
10894 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10895
10896         [BZ #13824]
10897         * math/e_exp2l.c: Include <float.h>.
10898         (__ieee754_exp2l): Handle overflow and underflow cases
10899         separately.  Only pass fractional part of argument to
10900         __ieee754_expl.
10901         * math/libm-test.inc (exp2_test): Add more tests.
10902
10903         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10904         negating x to take absolute value.
10905         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10906         Likewise.
10907         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10908         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10909         Likewise.
10910         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10911         computing low part if x was negated.
10912         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10913
10914 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10915
10916         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10917         la_x32_gnu_pltexit.
10918         (pltexit): Cast int_retval to ptrdiff_t.
10919         * elf/tst-auditmod3b.c: Likewise.
10920         * elf/tst-auditmod4b.c: Likewise.
10921         * elf/tst-auditmod5b.c: Likewise.
10922         * elf/tst-auditmod6b.c: Likewise.
10923         * elf/tst-auditmod6c.c: Likewise.
10924         * elf/tst-auditmod7b.c: Likewise.
10925
10926         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10927         and x32_gnu_pltexit.
10928
10929         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10930         __ELF_NATIVE_CLASS.
10931         (La_x32_regs): New macro.
10932         (La_x32_retval): Likewise.
10933         (la_x32_gnu_pltenter): New function prototype.
10934         (la_x32_gnu_pltexit): Likewise.
10935
10936 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10937
10938         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10939         exponent.
10940
10941         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10942
10943         * configure.in (libc_cv_cc_nofma): Check for option to disable
10944         generation of FMA instructions.
10945         * configure: Regenerate.
10946         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10947         * sysdeps/ieee754/dbl-64/Makefile: New file.
10948         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10949         Remove brandred-fma4.
10950         (CFLAGS-brandred-fma4.c): Remove.
10951         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10952         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10953         define.
10954         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10955         define.
10956
10957 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10958
10959         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10960         LLONG_MAX != LONG_MAX.
10961         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10962         (_fitoa_word): Likewise.
10963         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10964         LLONG_MAX != LONG_MAX.
10965         * stdio-common/_itowa.h: Include <_itoa.h>.
10966         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10967         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10968         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10969         only if not defined.
10970         (_ITOA_WORD_TYPE): Likewise.
10971         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10972         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10973
10974 2012-03-21  David S. Miller  <davem@davemloft.net>
10975
10976         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10977
10978 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10979
10980         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10981         of x86_64 when setting libc_cv_slibdir, libdir and
10982         libc_cv_localedir.
10983         * sysdeps/unix/sysv/linux/configure: Regenerated.
10984
10985 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10986
10987         * manual/lang.texi (Old Varargs): Remove section.
10988         (How Variadic): Update menu.
10989         (va_start): Do not mention varargs.h.
10990
10991 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10992             Joseph Myers  <joseph@codesourcery.com>
10993
10994         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10995         link test.
10996         * configure: Regenerated.
10997
10998 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10999
11000         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11001         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11002         conformtest.pl
11003
11004 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11005
11006         * NOTES: Remove.
11007         * Makefile (files-for-dist): Remove NOTES.
11008         (NOTES): Remove rule.
11009         * README: Don't refer to NOTES.
11010         * manual/creature.texi: Don't include macros.texi.
11011         * manual/intro.texi (creature.texi): Remove comment referring to
11012         NOTES.
11013
11014         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11015         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11016         * configure: Regenerated.
11017         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11018         LIBC_TRY_CC_OPTION.
11019         (libc_cv_as_i686): Likewise.
11020         (libc_cv_cc_avx): Likewise.
11021         (libc_cv_cc_sse2avx): Likewise.
11022         (libc_cv_cc_fma4): Likewise.
11023         (libc_cv_cc_novzeroupper): Likewise.
11024         * sysdeps/i386/configure: Regenerated.
11025
11026         [BZ #13883]
11027         * sysdeps/i386/fpu/s_cexp.S: Remove.
11028         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11029         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11030         * math/libm-test.inc (cexp_test): Add more tests.
11031         * sysdeps/i386/fpu/libm-test-ulps: Update.
11032         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11033
11034 2012-03-21  Allan McRae  <allan@archlinux.org>
11035
11036         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11037
11038 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11039
11040         [BZ #13871]
11041         * math/w_exp2.c: Do not include <float.h>.
11042         (o_threshold, u_threshold): Remove.
11043         (__exp2): Calculate result before checking finiteness and calling
11044         __kernel_standard.
11045         * math/w_exp2f.c: Likewise.
11046         * math/w_exp2l.c: Likewise.
11047         * math/libm-test.inc (exp2_test): Require overflow exception for
11048         1e6 input.
11049
11050         [BZ #3866]
11051         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11052         range of signed 64-bit integers before using fistpll.  Remove
11053         checks for whether integers fit in mantissa bits.
11054         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11055         the range of signed 32-bit integers before using fistpl.  Remove
11056         checks for whether integers fit in mantissa bits.
11057         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11058         (__ieee754_powl): Test for y outside the range of signed 64-bit
11059         integers before using fistpll.  Reduce 64-bit values to 63-bit
11060         ones as needed.
11061         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11062         divide-by-zero is raised for zero to large negative powers.
11063         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11064         (__ieee754_powl): Test for y outside the range of signed 64-bit
11065         integers before using fistpll.  Reduce 64-bit values to 63-bit
11066         ones as needed.
11067         * math/libm-test.inc (pow_test): Add more tests.
11068
11069 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11070
11071         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11072         <stdio-common/_itoa.h>.
11073         * debug/segfault.c: Likewise.
11074         * elf/dl-cache.c: Likewise.
11075         * elf/dl-minimal.c: Likewise.
11076         * elf/dl-misc.c: Likewise.
11077         * elf/dl-sysdep.c: Likewise.
11078         * elf/dl-version.c: Likewise.
11079         * elf/rtld.c: Likewise.
11080         * hurd/hurdsock.c: Likewise.
11081         * hurd/lookup-retry.c: Likewise.
11082         * malloc/malloc.c: Likewise.
11083         * malloc/mtrace.c: Likewise.
11084         * nscd/nscd_getgr_r.c: Likewise.
11085         * nscd/nscd_getpw_r.c: Likewise.
11086         * nscd/nscd_getserv_r.c: Likewise.
11087         * posix/getopt_init.c: Likewise.
11088         * posix/wordexp.c: Likewise.
11089         * stdio-common/_itoa.c: Likewise.
11090         * stdio-common/printf_fphex.c: Likewise.
11091         * stdio-common/vfprintf.c: Likewise.
11092         * string/_strerror.c: Likewise.
11093         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11094         * sysdeps/i386/i686/hp-timing.h: Likewise.
11095         * sysdeps/mach/_strerror.c: Likewise.
11096         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11097         * sysdeps/mach/hurd/sethostid.c: Likewise.
11098         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11099         * sysdeps/mach/xpg-strerror.c: Likewise.
11100         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11101         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11102         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11103         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11104         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11105         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11106         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11107         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11108         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11109         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11110         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11111         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11112         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11113         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11114         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11115         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11116         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11117         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11118         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11119         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11120         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11121
11122         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11123
11124         * stdio-common/_itoa.h: Moved to ...
11125         * sysdeps/generic/_itoa.h: Here.
11126
11127         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11128
11129         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11130         instead of "_itoa.h" and "_itowa.h".
11131         * stdio-common/vfprintf.: Likewise.
11132
11133 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11134
11135         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11136         <bits/wordsize.h>.
11137         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11138         (__signbit): Likwise.
11139         (llrintf): Likwise.
11140         (llrint): Likwise.
11141
11142 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11143
11144         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11145         __WORDSIZE != 64.
11146
11147 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11148
11149         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11150         OVERFLOW_EXCEPTION_OK.
11151         * math/libm-test.inc ("Philosophy"): Update comment about
11152         exception testing.
11153         (OVERFLOW_EXCEPTION): Define.
11154         (OVERFLOW_EXCEPTION_OK): Likewise.
11155         (INVALID_EXCEPTION_OK): Renumber.
11156         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11157         (IGNORE_ZERO_INF_SIGN): Likewise.
11158         (test_exceptions): Handle FE_OVERFLOW.
11159         (exp10_test): Expect overflow exceptions.
11160         (exp2_test): Likewise.
11161         (expm1_test): Likewise.
11162         (nextafter_test): Likewise.
11163         (pow_test): Likewise.
11164         (scalbn_test): Likewise.
11165         (scalbln_test): Likewise.
11166
11167 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11168
11169         * sysdeps/x86_64/bits/atomic.h
11170         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11171         64bit integer.
11172         (atomic_exchange_acq): Likewise.
11173         (__arch_exchange_and_add_body): Likewise.
11174         (__arch_add_body): Likewise.
11175         (atomic_add_negative): Likewise.
11176         (atomic_add_zero): Likewise.
11177
11178 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11179
11180         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11181         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11182
11183 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11184
11185         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11186         Check __x86_64__ instead of __WORDSIZE.
11187
11188 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11189
11190         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11191
11192 2012-03-19  David S. Miller  <davem@davemloft.net>
11193
11194         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11195
11196         * sysdeps/sparc/fpu/fenv_private.h: New file.
11197         * sysdeps/sparc/fpu/math_private.h: Use it.
11198         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11199         Remove.
11200         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11201         (libc_feholdexcept_setroundl): Remove.
11202         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11203         Remove.
11204         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11205         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11206
11207 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11208
11209         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11210         int64_t instead of long int.
11211         (INSERT_WORDS64): Likwise.
11212
11213 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11214
11215         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11216         _Unwind_GetCFA return to _Unwind_Ptr first.
11217
11218 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11219
11220         [BZ #13629]
11221         * math/s_clog.c: Include <float.h>.
11222         (__clog): Scale large or subnormal inputs.
11223         * math/s_clogf.c: Likewise.
11224         * math/s_clogl.c: Likewise.
11225         * math/s_clog10.c: Include <float.h>.
11226         (M_LOG10_2): Define.
11227         (__clog10): Scale large or subnormal inputs.
11228         * math/s_clog10f.c: Likewise.
11229         * math/s_clog10l.c: Likewise.
11230         * math/libm-test.inc (clog_test): Add more tests.
11231         (clog10_test): Likewise.
11232         * sysdeps/i386/fpu/libm-test-ulps: Update.
11233         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11234
11235         [BZ #11451]
11236         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11237         x and y.
11238         * math/libm-test.inc (atan2_test): Add another test.
11239
11240         * Makerules (common-objdir-compile): Remove.
11241         * sysdeps/unix/Makefile (config-generated): Do not add
11242         $(unix-generated) to variable.
11243         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11244         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11245         Remove rule.
11246         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11247         Likewise.
11248         [generic bits/local_lim.h] (before-compile): Do not append to
11249         variable.
11250         [generic bits/local_lim.h] (common-generated): Likewise.
11251         [generic sys/param.h] (before-compile): Do not append to variable.
11252         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11253         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11254         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11255         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11256         include.
11257         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11258         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11259         [generic sys/param.h] ($(addprefix
11260         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11261         [generic sys/param.h] (common-generated): Do not append to
11262         variable.
11263         [generic sys/param.h] (sysdep_headers): Likewise.
11264         [generic bits/errno.h] (before-compile): Do not append to
11265         variable.
11266         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11267         rule.
11268         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11269         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11270         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11271         [generic bits/errno.h] (common-generated): Do not append to
11272         variable.
11273         [generic bits/ioctls.h] (before-compile): Do not append to
11274         variable.
11275         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11276         rule.
11277         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11278         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11279         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11280         rule.
11281         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11282         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11283         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11284         [generic bits/ioctls.h] (common-generated): Do not append to
11285         variable.
11286         [generic sys/syscall.h] (syscall.h): Remove variable.
11287         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11288         rule.
11289         [generic sys/syscall.h] (before-compile): Do not append to
11290         variable.
11291         [generic sys/syscall.h] (common-generated): Likewise.
11292         * sysdeps/unix/errnos-tmpl.c: Remove file.
11293         * sysdeps/unix/errnos.awk: Likewise.
11294         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11295         * sysdeps/unix/ioctls.awk: Likewise.
11296         * sysdeps/unix/mk-local_lim.c: Likewise.
11297         * sysdeps/unix/snarf-ioctls: Likewise.
11298
11299 2012-03-19  Richard Henderson  <rth@twiddle.net>
11300
11301         * sysdeps/i386/fpu/fenv_private.h: New file.
11302         * sysdeps/i386/fpu/math_private.h: Use it.
11303         (math_opt_barrier, math_force_eval): Remove.
11304         (libc_feholdexcept_setround_53bit): Remove.
11305         (libc_feupdateenv_53bit): Remove.
11306         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11307         (math_opt_barrier, math_force_eval): Remove.
11308         (libc_feholdexcept): Remove.
11309         (libc_feholdexcept_setround): Remove.
11310         (libc_fetestexcept, libc_fesetenv): Remove.
11311         (libc_feupdateenv_test): Remove.
11312         (libc_feupdateenv, libc_feholdsetround): Remove.
11313         (libc_feresetround): Remove.
11314
11315         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
11316         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
11317
11318         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
11319         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
11320         (libc_feupdateenv_testl): New.
11321         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
11322         (libc_feupdateenv_testf): New.
11323         (libc_feupdateenv): Use libc_feupdateenv_test.
11324         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
11325         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
11326
11327         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
11328         (libc_feholdsetroundf, libc_feholdsetroundl): New.
11329         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
11330         (libc_feresetround_noex): New.
11331         (libc_feresetround_noexf): New.
11332         (libc_feresetround_noexl): New.
11333         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
11334         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
11335         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
11336         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
11337         SET_RESTORE_ROUND.
11338         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11339         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
11340         (__cos): Likewise.
11341         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
11342         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11343         SET_RESTORE_ROUND_NOEX.
11344         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
11345         SET_RESTORE_ROUND_NOEXF.
11346         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
11347         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
11348         (libc_feholdsetroundf): New.
11349         (libc_feresetround, libc_feresetroundf): New.
11350
11351         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
11352         (libc_feholdexcept_setround_53bit): Convert from macro to function.
11353         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
11354
11355         * sysdeps/generic/math_private.h: Include <fenv.h>.
11356         (default_libc_feholdexcept): New.
11357         (default_libc_feholdexcept_setround): New.
11358         (default_libc_fesetenv, default_libc_feupdateenv): New.
11359         (libc_feholdexcept): Only define if undefined.
11360         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
11361         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
11362         (libc_feholdexcept_setroundl): Likewise.
11363         (libc_feholdexcept_setround_53bit): Likewise.
11364         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
11365         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
11366         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
11367         (libc_feupdateenv_53bit): Likewise.
11368         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
11369         (libc_feholdexcept): Convert from macro to inline function.
11370         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
11371         (libc_fesetenv, libc_feupdateenv): Likewise.
11372
11373         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
11374         not previously defined.
11375         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
11376         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
11377         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
11378         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
11379         * sysdeps/ieee754/flt-32/math_private.h: New file.
11380         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
11381         math_private.h below SET_FLOAT_WORD.
11382         (__isnan, __isinf_ns, __finite): Remove.
11383         (__isnanf, __isinf_nsf, __finitef): Remove.
11384
11385 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
11386
11387         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11388
11389 2012-03-17  David S. Miller  <davem@davemloft.net>
11390
11391         [BZ #6471]
11392         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
11393         for 2.16.
11394
11395 2012-03-16  David S. Miller  <davem@davemloft.net>
11396
11397         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
11398         warnings.
11399
11400         [BZ #6471]
11401         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
11402         properly.
11403         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
11404         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
11405         sysdep_routines when subdir is sysvipc.
11406         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
11407         __getshmlba helper.
11408
11409         * sysdeps/sparc/fpu/libm-test/ulps: Update.
11410
11411 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11412
11413         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
11414         [__LP64__].
11415
11416 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11417
11418         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
11419         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
11420         (__lround): Renamed to ...
11421         (__llround): This.  Replace long int with long long int.
11422         Define lround functions as aliases of llround functions.
11423         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
11424
11425 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11426
11427         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
11428         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
11429         adresses to uintptr_t.  Replace "long int" and "unsigned long
11430         int" with "greg_t" on va_arg.
11431
11432 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11433
11434         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
11435         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
11436
11437         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
11438         Move e_machine check before EI_CLASS check.  Handle x32
11439         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
11440         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
11441         SKIP_EM_IA_64 and include
11442         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
11443
11444         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
11445         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
11446         (add_system_dir): New macro.
11447
11448         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
11449         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
11450
11451 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11452
11453         [BZ #2551]
11454         [BZ #2552]
11455         [BZ #2553]
11456         [BZ #2554]
11457         [BZ #2562]
11458         [BZ #2563]
11459         [BZ #2565]
11460         [BZ #2566]
11461         [BZ #2576]
11462         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
11463         (y0): Likewise.
11464         * math/w_j0f.c (j0f): Likewise.
11465         (y0f): Likewise.
11466         * math/w_j0l.c (__j0l): Likewise.
11467         (__y0l): Likewise.
11468         * math/w_j1.c (j1): Likewise.
11469         (y1): Likewise.
11470         * math/w_j1f.c (j1f): Likewise.
11471         (y1f): Likewise.
11472         * math/w_j1l.c (__j1l): Likewise.
11473         (__y1l): Likewise.
11474         * math/w_jn.c (jn): Likewise.
11475         (yn): Likewise.
11476         * math/w_jnf.c (jnf): Likewise.
11477         (ynf): Likewise.
11478         * math/w_jnl.c (__jnl): Likewise.
11479         (__ynl): Likewise.
11480         * math/libm-test.inc (j0_test): Add more tests.
11481         (j1_test): Likewise.
11482         (jn_test): Likewise.  Add trailing semicolon to existing test.
11483         (y0_test): Likewise.
11484         (y1_test): Likewise.
11485         * sysdeps/i386/fpu/libm-test-ulps: Update.
11486         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11487
11488         [BZ #13851]
11489         [BZ #13854]
11490         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11491         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
11492         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
11493         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
11494         (__tanl): Set errno for infinite argument.
11495         * sysdeps/i386/fpu/mptan.c: Remove.
11496         * sysdeps/i386/fpu/s_tan.S: Likewise.
11497         * sysdeps/i386/fpu/s_tanl.S: Likewise.
11498         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
11499         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
11500         * math/libm-test.inc (tan_test): Add more tests and enable more
11501         tests for double and long double.
11502         * sysdeps/i386/fpu/libm-test-ulps: Update.
11503         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11504
11505 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11506
11507         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
11508         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
11509
11510 2012-03-16  Roland McGrath  <roland@hack.frob.com>
11511
11512         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
11513         * configure.in: Use it for both main tree and add-ons.
11514         * configure: Regenerated.
11515
11516 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11517
11518         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
11519
11520 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11521
11522         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
11523         in comment.
11524
11525         [BZ #13851]
11526         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
11527         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
11528         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11529         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
11530         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
11531         infinite argument.
11532         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
11533         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
11534         != 0 for prec == 2.
11535         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
11536         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
11537         * sysdeps/i386/fpu/s_cosl.S: Likewise.
11538         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
11539         * sysdeps/i386/fpu/s_sinl.S: Likewise.
11540         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
11541         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
11542         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
11543         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
11544         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
11545         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
11546         * math/libm-test.inc (cos_test): Add more tests and enable more
11547         tests for long double.
11548         (sin_test): Likewise.
11549         (sincos_test): Likewise.
11550         * sysdeps/i386/fpu/libm-test-ulps: Update.
11551         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11552
11553 2012-03-16  David S. Miller  <davem@davemloft.net>
11554
11555         * sysdeps/sparc/fpu/math_private.h: New file.
11556
11557 2012-03-15  David S. Miller  <davem@davemloft.net>
11558
11559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
11560         file.
11561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
11562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
11563         file.
11564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
11565         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
11566         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
11567         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
11568         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
11569         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
11570         sysdep routines.
11571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11572
11573         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
11574         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
11575
11576         * sysdeps/sparc/sparc-ifunc.h: New file.
11577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
11578         sparc-ifunc.h
11579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
11580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
11581         Likewise.
11582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
11583         Likewise.
11584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
11585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
11586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
11587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
11588         Likewise.
11589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
11590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
11591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
11592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
11593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
11594         Likewise.
11595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
11596         Likewise.
11597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
11598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
11599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
11600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
11601         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
11602         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
11603         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
11604         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
11605         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
11606         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
11607         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
11608         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
11609         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
11610         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
11611         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
11612         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
11613         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
11614         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
11615         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
11616         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
11617         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
11618         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
11619         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
11620         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
11621
11622 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11623
11624         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
11625         scaling.
11626         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11627
11628 2012-03-15  Andreas Jaeger  <aj@suse.de>
11629
11630         [BZ #13852]
11631         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
11632         ieee754/flt-32 implementation for sin, cos and sincos.
11633         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
11634         * sysdeps/i386/fpu/s_cosf.S: Likewise.
11635         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
11636         * sysdeps/i386/fpu/s_sinf.S: Likewise.
11637         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
11638         ieee754/flt-32 implementation for tan.
11639
11640         * math/libm-test.inc (cos_test): Enable some large input tests for
11641         float as well
11642         (sin_test): Likewise.
11643         (sincos_test): Likewise.
11644         (tan_test): Add tests for large input.
11645
11646         * sysdeps/i386/fpu/libm-test-ulps: Update.
11647
11648 2012-03-15  Andreas Jaeger  <aj@suse.de>
11649
11650         [BZ #13658]
11651         * math/libm-test.inc (cos_test): Add more test cases.
11652         (sin_test): Likewise.
11653         (sincos_test): Likewise.
11654
11655 2012-03-15  Andreas Jaeger  <aj@suse.de>
11656
11657         [BZ #13837]
11658         * math/libm-test.inc (cos_test): Add a test case for large input
11659         value.
11660         (sin_test): Likewise.
11661         (sincos_test): Likewise.
11662
11663 2012-03-15  Andreas Jaeger  <aj@suse.de>,
11664         Joseph Myers  <joseph@codesourcery.com>
11665
11666         [BZ #13658]
11667         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
11668         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
11669         * sysdeps/i386/fpu/branred.c: Likewise.
11670         * sysdeps/i386/fpu/dosincos.c: Likewise.
11671         * sysdeps/i386/fpu/mpa.c: Likewise.
11672         * sysdeps/i386/fpu/s_cos.S: Likewise.
11673         * sysdeps/i386/fpu/s_sin.S: Likewise.
11674         * sysdeps/i386/fpu/s_sincos.S: Likewise.
11675         * sysdeps/i386/fpu/sincos32.c: Likewise.
11676
11677         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
11678         Define.
11679         (libc_feupdateenv_53bit): Define.
11680         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
11681         Define.
11682         (libc_feupdateenv_53bit): Define.
11683
11684         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
11685         53 bit (without extend i386 double precision).
11686
11687         * math/libm-test.inc (sincos_test): Add tests for large input.
11688         (sin): Likewise.
11689         (cos): Likewise.
11690
11691         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11692
11693 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11694
11695         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11696
11697 2012-03-15  David S. Miller  <davem@davemloft.net>
11698
11699         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11700         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11701         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11702         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11703         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11704         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11705         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11706         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11707         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11708         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11709         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11710         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11711         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11712         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11713         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11715         file.
11716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11718         file.
11719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11721         file.
11722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11724         file.
11725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11726         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11727         fmin/fmax sysdep routines.
11728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11729
11730 2012-03-14  David S. Miller  <davem@davemloft.net>
11731
11732         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11733         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11734         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11735         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11736         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11737         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11738         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11739         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11740         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11741         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11742         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11743         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11744         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11745         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11746         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11747         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11748         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11749         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11750         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11751         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11752         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11753         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11754         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11755         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11756         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11757         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11758         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11759         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11760         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11761         routines.
11762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11763         file.
11764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11766         file.
11767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11769         file.
11770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11772         file.
11773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11775         file.
11776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11778         file.
11779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11780         file.
11781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11782         file.
11783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11784         file.
11785         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11786         New file.
11787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11788         file.
11789         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11790         file.
11791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11793         file.
11794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11796         file.
11797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11798         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11799         file.
11800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11802         VIS3 routines.
11803
11804         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11805         New file.
11806
11807         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11808
11809         * sysdeps/sparc/configure.in: New file.
11810         * sysdeps/sparc/configure: Generate.
11811         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11812         * configure: Regenerate.
11813         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11814         * config.make.in (have-as-vis3): New.
11815         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11816         available use -Av9d instead of -Av9a.
11817         * sysdeps/sparc/sparc64/Makefile: Likewise.
11818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11820         New file.
11821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11822         file.
11823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11824         New file.
11825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11826         file.
11827         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11828         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11829         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11830         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11831         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11832
11833         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11834         fzeros/fnegs to load 0x80000000 into a float register instead of
11835         using the stack.
11836         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11837
11838 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11839
11840         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11841         bits/syscall.h.
11842         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11843         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11844         ($(inst_includedir)/bits/syscall.h): Remove rule.
11845         ($(objpfx)bits/syscall.d): Include instead of
11846         $(objpfx)syscall-list.d.
11847         (generated): Change syscall-list.h and syscall-list.d to
11848         bits/syscall.h and bits/syscall.d.
11849
11850 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11851
11852         [BZ #13846]
11853         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11854
11855 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11856
11857         [BZ #13841]
11858         * math/s_csqrt.c: Include <float.h>.
11859         (__csqrt): Scale large or subnormal inputs.
11860         * math/s_csqrtf.c: Likewise.
11861         * math/s_csqrtl.c: Likewise.
11862         * math/libm-test.inc (csqrt_test): Add more tests.
11863         * sysdeps/i386/fpu/libm-test-ulps: Update.
11864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11865
11866         [BZ #13840]
11867         * math/libm-test.inc (hypot_test): Add more tests.
11868
11869 2012-03-13  David S. Miller  <davem@davemloft.net>
11870
11871         [BZ #13840]
11872         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11873         double-precision for the calculation instead of scaling.
11874
11875 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11876
11877         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11878         manipulate bits before adding and subtracting TWO52[sx].
11879         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11880         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11881         Likewise.
11882         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11883
11884 2012-03-13  David S. Miller  <davem@davemloft.net>
11885
11886         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11887         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11888         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11889         rtld-global-offsets.h
11890         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11891
11892         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11893         large parameters.
11894
11895         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11896
11897         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11898         'err' in the ifdef scope in which it is actually used.
11899
11900         * nss/nss_db/db-init.c: Include string.h
11901
11902 2012-03-12  David S. Miller  <davem@davemloft.net>
11903
11904         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11905         masking out of the most significant byte of random value used.
11906         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11907         Fix coding style in previous change.
11908
11909         * sysdeps/unix/sysv/linux/kernel-features.h
11910         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11911         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11912         expression.
11913         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11914         later.
11915
11916 2012-03-11  David S. Miller  <davem@davemloft.net>
11917
11918         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11919         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11920         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11921         for 'resultvar' otherwise things get truncated on 64-bit.
11922
11923         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11924         Fix masking out of the most significant byte of random value used.
11925
11926         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11927
11928 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11929
11930         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11931
11932 2012-03-09  David S. Miller  <davem@davemloft.net>
11933
11934         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11935         variables with appropriate CPP guards.
11936         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11937         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11938         on resulting framesize and the management of the outregs buffer for pltexit.
11939         Preserve floating point return values across _dl_call_pltexit call.
11940         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11941         framesize and the management of the outregs buffer for pltexit.
11942         Preserve floating point return values across _dl_call_pltexit
11943         call.
11944         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11945         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11946         (print_exit): Fix format string for return register value.
11947
11948 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11949
11950         * sunrpc/Makefile (others): Add rpcgen.
11951         ($(objpfx)rpcgen): Remove special build rule and dependency on
11952         libc.
11953         * sunrpc/rpcgen.c: New file.
11954
11955 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11956
11957         [BZ #13673]
11958         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11959         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11960         * sysdeps/i386/crti.S: Likewise.
11961         * sysdeps/i386/crtn.S: Likewise.
11962         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11963         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11964         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11965         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11966         * sysdeps/sh/crti.S: Likewise.
11967         * sysdeps/sh/crtn.S: Likewise.
11968         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11969
11970         [BZ #13673]
11971         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11972         with URL.
11973         * locale/programs/locfile-kw.gperf: Likewise.
11974         * locale/programs/charmap-kw.h: Regenerated.
11975         * locale/programs/locfile-kw.h: Likewise.
11976
11977         [BZ #13673]
11978         * intl/plural.y: Replace FSF snail mail address with URL.
11979         * intl/plural.c: Regenerated.
11980
11981 2012-03-09  Richard Henderson  <rth@twiddle.net>
11982
11983         * include/math_private.h: Remove file.
11984         * math/math_private.h: Move file ...
11985         * sysdeps/generic/math_private.h: ... here.
11986
11987         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11988         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11989         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11990
11991         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11992         and <math_private.h>.
11993         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11994         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11995         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11996         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11997         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11998         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11999         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12000         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12001         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12002         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12003         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12004         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12005         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12006         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12007         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12008         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12009         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12010         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12011         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12012         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12013         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12014         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12015         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12016         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12017         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12018         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12019         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12020         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12021         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12022         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12023         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12024         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12025         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12026         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12027         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12028         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12029         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12030         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12031         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12032         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12033         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12034         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12035         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12036         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12037         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12038         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12039         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12040         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12041         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12042         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12043         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12044         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12045         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12046         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12047         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12048         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12049         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12050         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12051         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12052         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12053         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12054         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12055         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12056         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12057         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12058         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12059         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12060         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12061         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12062         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12063         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12064         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12065         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12066         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12067         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12068         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12069         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12070         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12071         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12072         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12073         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12074         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12075         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12076         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12077         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12078         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12079         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12080         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12081         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12082         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12083         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12084         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12085         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12086         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12087         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12088         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12089         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12090         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12091         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12092         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12093         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12094         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12095         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12096         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12097         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12098         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12099         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12100         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12101         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12102         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12103         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12104         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12105         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12106         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12107         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12108         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12109         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12110         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12111         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12112         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12113         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12114         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12115         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12116         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12117         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12118         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12119         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12120         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12121         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12122         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12123         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12124         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12125         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12126         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12127         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12128         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12129         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12130         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12131         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12132         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12133         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12134         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12135         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12136         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12137         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12138         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12139         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12140         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12141         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12142         * sysdeps/ieee754/k_standard.c: Likewise.
12143         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12144         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12145         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12146         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12147         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12148         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12149         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12150         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12151         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12152         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12153         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12154         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12155         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12156         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12157         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12158         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12159         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12160         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12161         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12162         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12163         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12164         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12165         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12166         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12167         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12168         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12169         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12170         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12171         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12172         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12173         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12174         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12175         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12176         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12177         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12178         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12179         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12180         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12181         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12182         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12183         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12184         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12185         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12186         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12187         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12188         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12189         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12190         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12191         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12192         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12193         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12194         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12195         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12196         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12197         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12198         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12199         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12200         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12201         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12202         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12203         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12204         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12205         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12206         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12207         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12208         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12209         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12210         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12211         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12212         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12213         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12214         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12215         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12216         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12217         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12218         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12219         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12220         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12221         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12222         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12223         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12224         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12225         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12226         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12227         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12228         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12229         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12230         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12231         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12232         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12233         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12234         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12235         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12236         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12237         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12238         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12239         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12240         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12241         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12242         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12243         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12244         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12245         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12246         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12247         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12248         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12249         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12250         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12251         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12252         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12253         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12254         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12255         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12256         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12257         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12258         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12259         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12260         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12261         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12262         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12263         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12264         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12265         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12266         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12267         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12268         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12269         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12270         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12271         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12272         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12273         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12274         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12275         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12276         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12277         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12278         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12279         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12280         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12281         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12282         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12283         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12284         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12285         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12286         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12287         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12288         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12289         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12290         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12291         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12292         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12293         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12294         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12295         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12296         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12297         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12298         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12299         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12300         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12301         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12302         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12303         * sysdeps/ieee754/s_lib_version.c: Likewise.
12304         * sysdeps/ieee754/s_matherr.c: Likewise.
12305         * sysdeps/ieee754/s_signgam.c: Likewise.
12306         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12307         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12308         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12309         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12310         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12311         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12312         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
12313         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
12314         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
12315         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12316         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12317         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12318         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12319         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12320         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
12321         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
12322         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
12323         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
12324         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
12325         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12326         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12327
12328 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12329
12330         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
12331         * sunrpc/rpc_main.c: Likewise.
12332         * sunrpc/rpc_svcout.c: Likewise.
12333
12334 2012-03-09  David S. Miller  <davem@davemloft.net>
12335
12336         * include/math_private.h: New file.
12337
12338 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12339
12340         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
12341         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
12342         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
12343         from <bits/socket_type.h>.
12344         (enum __socket_type): Don't define here.
12345         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
12346         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12347         bits/socket_type.h.
12348
12349         [BZ #13566]
12350         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
12351         checking __USE_GNU.
12352
12353         * Makerules ($(inst_includedir)/%.h): New rule.
12354         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
12355         (install-others): Remove variable setting.
12356         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
12357
12358 2012-03-08  Richard Henderson  <rth@twiddle.net>
12359
12360         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
12361         from macro to inline function; merge with the
12362         !__LIBC_INTERNAL_MATH_INLINES version.
12363         (__ieee754_sqrtf): Likewise.
12364
12365         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
12366         to inline function.
12367         (__rintf, __floor, __floorf): Likewise.
12368
12369         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
12370         macro to inline function.
12371         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
12372
12373         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
12374         not <math/math_private.h>.
12375
12376 2012-03-08  David S. Miller  <davem@davemloft.net>
12377
12378         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
12379         copyright year.
12380         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12381
12382 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
12383
12384         * resolv/gai_misc.c (handle_requests): Fix struct timespec
12385         normalization.
12386         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
12387         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
12388
12389 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
12390
12391         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
12392         be defined individually, they must be defined as a block.  Define
12393         S for printing a string instead of hidint the different by using a
12394         macro for adding the 'l'.
12395         * stdio-common/tst-fphex-wide.c: Adjust.
12396
12397 2012-03-07  Marek Polacek  <polacek@redhat.com>
12398
12399         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
12400
12401 2012-03-08  Marek Polacek  <polacek@redhat.com>
12402
12403         [BZ #13806]
12404         * stdio-common/Makefile (tests): Add tst-fphex-wide.
12405         * stdio-common/tst-fphex.c: Define a few macros to make the
12406         test reusable.  Use them.
12407         * stdio-common/tst-fphex-wide.c: New file.
12408
12409 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
12410
12411         [BZ #6911]
12412         * manual/macros.texi (gnusystems): New macro.
12413         (nongnusystems): Likewise.
12414         (gnulinuxhurdsystems): Likewise.
12415         (gnuhurdsystems): Likewise..
12416         (gnulinuxsystems): Likewise.
12417         * manual/charset.texi: Use new macros or @theglibc{} to refer to
12418         variants of the GNU system, not "GNU system".
12419         * manual/conf.texi: Likewise.
12420         * manual/errno.texi: Likewise.  Update example of errno macro
12421         expansion.
12422         * manual/filesys.texi: Likewise.
12423         (getumask): Document as specific to GNU/Hurd.
12424         * manual/install.texi: Likewise.  Reword some references to
12425         GNU/Linux.
12426         * manual/intro.texi: Likewise.
12427         * manual/io.texi: Likewise.
12428         (File Name Portability): Detail which constraints are inapplicable
12429         to all GNU systems and which are only inapplicable to GNU/Hurd.
12430         * manual/job.texi: Likewise.
12431         * manual/llio.texi: Likewise.
12432         (O_NOCTTY): Document as present on GNU/Linux.
12433         * manual/maint.texi: Likewise.
12434         * manual/memory.texi: Likewise.
12435         * manual/pattern.texi: Likewise.
12436         * manual/pipe.texi: Likewise.
12437         * manual/process.texi: Likewise.
12438         * manual/resource.texi: Likewise.
12439         (RUSAGE_CHILDREN): Remove statement about specifying a particular
12440         child on GNU/Hurd.
12441         * manual/setjmp.texi: Likewise.
12442         * manual/signal.texi: Likewise.
12443         * manual/startup.texi: Likewise.
12444         * manual/stdio.texi: Likewise.
12445         * manual/terminal.texi: Likewise.
12446         (ONLCR): Document as POSIX.
12447         (OXTABS): Document availability on GNU/Linux as XTABS.
12448         (ONOEOT): Document availability separately from other bits.
12449         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
12450         * manual/time.texi: Likewise.
12451         * manual/users.texi: Likewise.
12452         * INSTALL: Regenerated.
12453         * sysdeps/gnu/errlist.c: Regenerated.
12454
12455         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
12456         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
12457         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
12458         puts.
12459         * configure: Regenerated.
12460
12461 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
12462
12463         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
12464         default includes instead of AC_HEADER_CHECK.
12465         * sysdeps/i386/configure: Regenerated.
12466
12467         [BZ #10716]
12468         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
12469         * math/s_cacoshf.c (__cacoshf): Likewise.
12470         * math/s_cacoshl.c (__cacoshl): Likewise.
12471         * math/s_casinh.c (__casinh): Set signs of result from argument.
12472         * math/s_casinhf.c (__casinhf): Likewise.
12473         * math/s_casinhl.c (__casinhl): Likewise.
12474         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
12475         (casinh_test): Add more tests.
12476         * sysdeps/i386/fpu/libm-test-ulps: Update.
12477         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12478
12479 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
12480
12481         * po/zh_TW.po: Update from translation team.
12482
12483         * login/Makefile (distribute): Remove variable.
12484         * catgets/Makefile: Likewise.
12485         * mach/Makefile: Likewise.
12486         * malloc/Makefile: Likewise.
12487         * misc/Makefile: Likewise.
12488         * iconv/Makefile: Likewise.
12489         * nscd/Makefile: Likewise.
12490         * hurd/Makefile: Likewise.
12491         * manual/Makefile: Likewise.
12492         * locale/Makefile: Likewise.
12493         * intl/Makefile: Likewise.
12494         * conform/Makefile: Likewise.
12495         * nss/Makefile: Likewise.
12496         * time/Makefile: Likewise.
12497         * soft-fp/Makefile: Likewise.
12498         * dirent/Makefile: Likewise.
12499         * gmon/Makefile: Likewise.
12500         * po/Makefile: Likewise.
12501         * rt/Makefile: Likewise.
12502         * socket/Makefile: Likewise.
12503         * math/Makefile: Likewise.
12504         * signal/Makefile: Likewise.
12505         * debug/Makefile: Likewise.
12506         * elf/Makefile: Likewise.
12507         * timezone/Makefile: Likewise.
12508         * stdlib/Makefile: Likewise.
12509         * iconvdata/Makefile: Likewise.
12510         * sunrpc/Makefile: Likewise.
12511         * io/Makefile: Likewise.
12512         * argp/Makefile: Likewise.
12513         * inet/Makefile: Likewise.
12514         * hesiod/Makefile: Likewise.
12515         * grp/Makefile: Likewise.
12516         * csu/Makefile: Likewise.
12517         * wctype/Makefile: Likewise.
12518         * crypt/Makefile: Likewise.
12519         * libio/Makefile: Likewise.
12520         * string/Makefile: Likewise.
12521         * nis/Makefile: Likewise.
12522         * resolv/Makefile: Likewise.
12523         * stdio-common/Makefile: Likewise.
12524         * wcsmbs/Makefile: Likewise.
12525         * dlfcn/Makefile: Likewise.
12526         * posix/Makefile: Likewise.
12527
12528         [BZ #6959]
12529         * timezone/Makefile: Don't install timezone files, just the programs
12530         and scripts.
12531
12532 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
12533
12534         * nss/databases.def: Add missing gshadow entry.
12535
12536         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
12537
12538 2012-03-06  Marek Polacek  <polacek@redhat.com>
12539
12540         [BZ #13726]
12541         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
12542         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
12543         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
12544         * stdio-common/tst-long-dbl-fphex.c: New file.
12545
12546 2012-03-06  David S. Miller  <davem@davemloft.net>
12547
12548         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12549         (set_obp_int): New function.
12550         (get_obp_int): New function.
12551         (__get_clockfreq_via_dev_openprom): Likewise.
12552         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
12553         Avoid unused variable warnings on 'val' and use builtin_expect.
12554         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
12555         __builtin_expect.
12556         (INLINE_CLONE_SYSCALL): Likewise.
12557
12558 2012-03-05  David S. Miller  <davem@davemloft.net>
12559
12560         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12561
12562 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
12563
12564         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12565
12566         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
12567         only for |x| >= 40.
12568         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12569
12570 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12571
12572         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
12573         Replace gettimeofday with __vdso_gettimeofday.
12574
12575         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12576         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
12577         __vdso_clock_gettime and __vdso_getcpu.
12578
12579         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
12580         time with __vdso_time.
12581
12582 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12583
12584         * manual/lang.texi (size_t): Note types to which size_t may be
12585         equivalent with the GNU C Library, but do not describe when
12586         differences between them are significant.
12587
12588 2012-03-05  Andreas Jaeger  <aj@suse.de>
12589
12590         * sysdeps/i386/fpu/libm-test-ulps: Update.
12591
12592 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12593
12594         [BZ #3976]
12595         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
12596         (__ieee754_pow): Save and restore rounding mode and use
12597         round-to-nearest for main computations.
12598         * math/libm-test.inc (pow_test_tonearest): New function.
12599         (pow_test_towardzero): Likewise.
12600         (pow_test_downward): Likewise.
12601         (pow_test_upward): Likewise.
12602         (main): Call the new functions.
12603         * sysdeps/i386/fpu/libm-test-ulps: Update.
12604         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12605
12606         [BZ #3976]
12607         * math/libm-test.inc (cosh_test_tonearest): New function.
12608         (cosh_test_towardzero): Likewise.
12609         (cosh_test_downward): Likewise.
12610         (cosh_test_upward): Likewise.
12611         (sinh_test_tonearest): Likewise.
12612         (sinh_test_towardzero): Likewise.
12613         (sinh_test_downward): Likewise.
12614         (sinh_test_upward): Likewise.
12615         (main): Call the new functions.
12616         * sysdeps/i386/fpu/libm-test-ulps: Update.
12617         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12618
12619 2012-03-05  Tom de Vries  <tom@codesourcery.com>
12620
12621         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
12622         default stack guard is set in last bytes.
12623         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
12624
12625 2012-03-05  Kees Cook  <keescook@chromium.org>
12626
12627         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
12628
12629         [BZ #13656]
12630         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
12631         possibly allocate from heap instead of stack.
12632         * stdio-common/bug-vfprintf-nargs.c: New file.
12633         * stdio-common/Makefile (tests): Add nargs overflow test.
12634
12635 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
12636
12637         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12638
12639 2012-03-03  Marek Polacek  <polacek@redhat.com>
12640
12641         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
12642         * math/math_private.h: Likewise.
12643         * stdlib/tst-strtod.c: Likewise.
12644         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12645         * sysdeps/x86_64/bits/atomic.h: Likewise.
12646
12647 2012-03-02  David S. Miller  <davem@davemloft.net>
12648
12649         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
12650         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
12651         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
12652         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
12653         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
12654         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
12655         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
12656         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
12657
12658 2012-03-02  Roland McGrath  <roland@hack.frob.com>
12659
12660         [BZ #13792]
12661         * manual/examples/README: New file, says the example source files
12662         can be used under GPL>=2.
12663         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
12664         line containing just "*/".
12665         * manual/examples/add.c: Add copyright header (GPL>=2).
12666         * manual/examples/argp-ex1.c: Likewise.
12667         * manual/examples/argp-ex2.c: Likewise.
12668         * manual/examples/argp-ex3.c: Likewise.
12669         * manual/examples/argp-ex4.c: Likewise.
12670         * manual/examples/atexit.c: Likewise.
12671         * manual/examples/db.c: Likewise.
12672         * manual/examples/dir.c: Likewise.
12673         * manual/examples/dir2.c: Likewise.
12674         * manual/examples/execinfo.c: Likewise.
12675         * manual/examples/filecli.c: Likewise.
12676         * manual/examples/filesrv.c: Likewise.
12677         * manual/examples/fmtmsgexpl.c: Likewise.
12678         * manual/examples/genpass.c: Likewise.
12679         * manual/examples/inetcli.c: Likewise.
12680         * manual/examples/inetsrv.c: Likewise.
12681         * manual/examples/isockad.c: Likewise.
12682         * manual/examples/longopt.c: Likewise.
12683         * manual/examples/memopen.c: Likewise.
12684         * manual/examples/memstrm.c: Likewise.
12685         * manual/examples/mkfsock.c: Likewise.
12686         * manual/examples/mkisock.c: Likewise.
12687         * manual/examples/mygetpass.c: Likewise.
12688         * manual/examples/pipe.c: Likewise.
12689         * manual/examples/popen.c: Likewise.
12690         * manual/examples/rprintf.c: Likewise.
12691         * manual/examples/search.c: Likewise.
12692         * manual/examples/select.c: Likewise.
12693         * manual/examples/setjmp.c: Likewise.
12694         * manual/examples/sigh1.c: Likewise.
12695         * manual/examples/sigusr.c: Likewise.
12696         * manual/examples/stpcpy.c: Likewise.
12697         * manual/examples/strdupa.c: Likewise.
12698         * manual/examples/strftim.c: Likewise.
12699         * manual/examples/strncat.c: Likewise.
12700         * manual/examples/subopt.c: Likewise.
12701         * manual/examples/swapcontext.c: Likewise.
12702         * manual/examples/termios.c: Likewise.
12703         * manual/examples/testopt.c: Likewise.
12704         * manual/examples/testpass.c: Likewise.
12705         * manual/examples/timeval_subtract.c: Likewise.
12706
12707         [BZ #13792]
12708         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12709         function to ...
12710         * manual/timeval_subtract.c.texi: ... here, new file.
12711
12712 2012-03-02  David S. Miller  <davem@davemloft.net>
12713
12714         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12715
12716 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12717
12718         [BZ #3976]
12719         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12720         (__sin): Save and restore rounding mode and use round-to-nearest
12721         for all computations.
12722         (__cos): Save and restore rounding mode and use round-to-nearest
12723         for all computations.
12724         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12725         <fenv.h>.
12726         (tan): Save and restore rounding mode and use round-to-nearest for
12727         all computations.
12728         * math/libm-test.inc (cos_test_tonearest): New function.
12729         (cos_test_towardzero): Likewise.
12730         (cos_test_downward): Likewise.
12731         (cos_test_upward): Likewise.
12732         (sin_test_tonearest): Likewise.
12733         (sin_test_towardzero): Likewise.
12734         (sin_test_downward): Likewise.
12735         (sin_test_upward): Likewise.
12736         (tan_test_tonearest): Likewise.
12737         (tan_test_towardzero): Likewise.
12738         (tan_test_downward): Likewise.
12739         (tan_test_upward): Likewise.
12740         (main): Call the new functions.
12741         * sysdeps/i386/fpu/libm-test-ulps: Update.
12742         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12743
12744         [BZ #10135]
12745         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12746         small n, then large n, before computing and testing k+n.
12747         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12748         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12749         Likewise.
12750         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12751         Likewise.
12752         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12753         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12754         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12755         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12756         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12757         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12758         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12759         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12760         * math/libm-test.inc (scalbn_test): Add more tests.
12761         (scalbln_test): Likewise.
12762
12763         * manual/filesys.texi (mode_t): Describe constraints on size and
12764         signedness, not exact equivalence to a particular type.
12765         (ino_t): Likewise.
12766         (ino64_t): Likewise.
12767         (dev_t): Likewise.
12768         (nlink_t): Likewise.
12769         (blkcnt_t): Likewise.
12770         (blkcnt64_t): Likewise.
12771         * manual/llio.texi (off_t): Likewise.
12772
12773         [BZ #3976]
12774         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12775         (__ieee754_exp): Save and restore rounding mode and use
12776         round-to-nearest for all computations.
12777         * math/libm-test.inc (exp_test_tonearest): New function.
12778         (exp_test_towardzero): Likewise.
12779         (exp_test_downward): Likewise.
12780         (exp_test_upward): Likewise.
12781         (main): Call the new functions.
12782         * sysdeps/i386/fpu/libm-test-ulps: Update.
12783         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12784
12785 2012-03-01  Chris Demetriou  <cgd@google.com>
12786
12787         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12788         have predictable order.
12789
12790 2012-03-01  David S. Miller  <davem@davemloft.net>
12791
12792         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12793
12794         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12795         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12796         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12797         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12798
12799         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12800         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12801         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12802         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12803         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12804         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12805         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12806         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12807         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12808
12809         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12810
12811         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12812         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12813         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12814
12815         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12816         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12817         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12818         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12819         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12820         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12821         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12822         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12823         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12824         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12825         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12826         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12827         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12828         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12829         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12830         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12831         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12832         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12833         * sysdeps/sparc/elf/configure: Regenerated.
12834
12835 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12836
12837         * configure.in (AS, LD): Require binutils 2.20 or later.
12838         * configure: Regenerated.
12839         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12840         as required minimum version.
12841         * INSTALL: Regenerated.
12842
12843         [BZ #2541]
12844         [BZ #4108]
12845         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12846         before squaring exponent.
12847         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12848         bottom long double and 27 bits of top long double before squaring
12849         exponent.
12850         * math/libm-test.inc (erfc_test): Add more tests.
12851         * sysdeps/i386/fpu/libm-test-ulps: Update.
12852         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12853         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12854
12855 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12856
12857         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12858         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12859         containing bit-fields.
12860         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12861         * soft-fp/single.h (_FP_UNION_S): Likewise.
12862         * soft-fp/double.h (_FP_UNION_D): Likewise.
12863
12864 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12865
12866         [BZ #13786]
12867         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12868         not include ../strcmp.S.
12869         [USE_AS_STRNCASECMP_L]: Likewise.
12870         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12871         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12872         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12873         (__strncasecmp_l_ia32): Define as alias to
12874         __strncasecmp_l_nonascii.
12875
12876         [BZ #5794]
12877         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12878         * sysdeps/i386/fpu/libm-test-ulps: Update.
12879         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12880
12881         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12882         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12883
12884 2012-02-29  Jeff Law  <law@redhat.com>
12885
12886         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12887         out of bounds read.
12888
12889 2012-02-29  Marek Polacek  <polacek@redhat.com>
12890
12891         [BZ #13706]
12892         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12893         * elf/Makefile: Add rules to run tst-unused-dep.out.
12894
12895 2012-02-28  David S. Miller  <davem@davemloft.net>
12896
12897         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12898         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12899         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12900         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12901         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12902         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12903
12904 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12905
12906         * math/libm-test.inc (llround_test): Move one test from
12907         lround_test.  Use TEST_f_L in moved test.
12908         (lround_test): Move misplaced test to llround_test.  Add testcase
12909         from bug 2561.
12910
12911 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12912
12913         * sysdeps/x86_64/fpu/e_expf.S: New file.
12914         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12915
12916 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12917
12918         [BZ #13637]
12919         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12920         of remain_len that may cause incomplete multi-byte character and
12921         false match.
12922         * posix/bug-regex33.c: New file.
12923         * posix/Makefile (tests): Add bug-regex33.
12924
12925 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12926
12927         * manual/macros.texi: New file.
12928         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12929         * manual/libc.texinfo: Include macros.texi.
12930         * manual/creatute.texi: Likewise.
12931         * manual/install.texi: Likewise.
12932         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12933         @glibcadj{} in references to the GNU C Library.
12934         * manual/charset.texi: Likewise.
12935         * manual/conf.texi: Likewise.
12936         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12937         when not using those macros.
12938         * manual/creature.texi: Likewise.
12939         * manual/crypt.texi: Likewise.
12940         * manual/errno.texi: Likewise.
12941         * manual/filesys.texi: Likewise.
12942         * manual/header.texi: Likewise.
12943         * manual/install.texi: Likewise.
12944         * manual/intro.texi: Likewise.
12945         * manual/io.texi: Likewise.
12946         * manual/job.texi: Likewise.
12947         * manual/lang.texi: Likewise.
12948         * manual/libc.texiinfo: Likewise.
12949         * manual/llio.texi: Likewise.
12950         * manual/locale.texi: Likewise.
12951         * manual/maint.texi: Likewise.
12952         * manual/math.texi: Likewise.
12953         * manual/memory.texi: Likewise.
12954         * manual/message.texi: Likewise.
12955         * manual/nss.texi: Likewise.
12956         * manual/pattern.texi: Likewise.
12957         * manual/process.texi: Likewise.
12958         * manual/resource.texi: Likewise.
12959         * manual/search.texi: Likewise.
12960         * manual/setjmp.texi: Likewise.
12961         * manual/signal.texi: Likewise.
12962         * manual/socket.texi: Likewise.
12963         * manual/startup.texi: Likewise.
12964         * manual/stdio.texi: Likewise.
12965         * manual/string.texi: Likewise.
12966         * manual/sysinfo.texi: Likewise.
12967         * manual/syslog.texi: Likewise.
12968         * manual/terminal.texi: Likewise.
12969         * manual/time.texi: Likewise.
12970         * manual/users.texi: Likewise.
12971         * INSTALL: Regenerated.
12972         * NOTES: Regenerated.
12973         * sysdeps/gnu/errlist.c: Regenerated.
12974
12975 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12976
12977         * include/dirent.h: Include <dirstream.h> before
12978         <dirent/dirent.h>.
12979
12980 2012-02-28  David S. Miller  <davem@davemloft.net>
12981
12982         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12983         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12984         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12985         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12986
12987 2012-02-27  David S. Miller  <davem@davemloft.net>
12988
12989         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12990         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12991         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12992         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12993
12994         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12995         frame pointer instead of stack pointer relative arg slot.
12996         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12997         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12998         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12999
13000 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13001
13002         [BZ #3992]
13003         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13004
13005 2012-02-27  David S. Miller  <davem@davemloft.net>
13006
13007         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13008         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13009         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13010         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13011         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13012         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13013         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13014         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13015
13016 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13017
13018         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13019         later.  Allow versions 5-9.
13020         * configure: Regenerated.
13021         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13022         required minimum version and 4.6 as recommended version.  Do not
13023         mention bugs in GCC 2.7 and 2.8.
13024         * INSTALL: Regenerated.
13025
13026 2012-02-27  David S. Miller  <davem@davemloft.net>
13027
13028         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13029         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13030         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13031         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13032         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13033         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13034         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13035         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13036
13037         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13038         manipulate bits before adding and subtracting TWO112[sx].
13039         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13040
13041 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13042
13043         [BZ #13775]
13044         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13045         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13046         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13047         being in POSIX, because they are in 1003.1-2008.
13048
13049         * rt/tst-aio.c: Include <fcntl.h>.
13050         * rt/tst-aio7.c: Likewise.
13051         * rt/tst-aio64.c: Likewise.
13052
13053         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13054
13055 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13056
13057         * manual/install.texi (--with-headers): Describe headers as
13058         interface headers, not private headers.
13059         (Specific advice for GNU/Linux systems): Describe use of headers
13060         from "make headers_install", not private headers from older
13061         kernels.
13062         * INSTALL: Regenerated.
13063         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13064         Change to 2.6.19.
13065         * sysdeps/unix/sysv/linux/configure: Regenerated.
13066
13067         * manual/llio.texi (fclean): Remove documentation.
13068
13069         * manual/Makefile (libc-texi-generated): New variable.  Include
13070         version.texi.
13071         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13072         $(libc-texi-generated), not duplicated list of files.
13073         (version.texi, stamp-version): New rules.
13074         (realclean): Remove $(libc-texi-generated), not individual files
13075         from that list.  Do not remove dir-add.texinfo.
13076         * manual/libc.texinfo: Comment out uses of edition numbers and
13077         references to printed manual.  Remove last-updated dates.
13078         (EDITION): Comment out.
13079         (ISBN): Likewise.
13080         (VERSION, UPDATED): Remove.
13081         (version.texi): Include.
13082
13083 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13084
13085         * sysdeps/posix/spawni.c: Include <signal.h>.
13086         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13087         * sysdeps/pthread/aio_fsync.c: Likewise.
13088
13089 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13090
13091         * conform/Makefile (tests): Run only when not cross-compiling and
13092         when fast-check is not defined.
13093
13094         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13095         * conform/data/limits.h-data: Fixes for POSIX2008.
13096         * conform/run-conformtest.sh: Run all tests.
13097         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13098         headers.
13099         * include/bits/dlfcn.h: Likewise.
13100         * include/langinfo.h: Likewise.
13101         * include/monetary.h: Likewise.
13102         * include/sys/poll.h: Likewise.
13103
13104         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13105         for __USE_GNU.
13106         * posix/spawn.h: Define __need_sigset_t.
13107         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13108         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13109         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13110         to get sigevent_t only.
13111         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13112         only for __USE_GNU.
13113         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13114         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13115         process_vm_writev only for __USE_GNU.
13116         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13117
13118         * conform/Makefile: For now ignore errors from run-conformtest.
13119         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13120         POSIX to avoid namespace pollution.  Don't prepend headers.
13121         * conform/data/aio.h-data: Fixes for POSIX testing.
13122         * conform/data/fcntl.h-data: Likewise.
13123         * conform/data/glob.h-data: Likewise.
13124         * conform/data/grp.h-data: Likewise.
13125         * conform/data/pthread.h-data: Likewise.
13126         * conform/data/pwd.h-data: Likewise.
13127         * conform/data/signal.h-data: Likewise.
13128         * conform/data/spawn.h-data: Likewise.
13129         * conform/data/stdio.h-data: Likewise.
13130         * conform/data/stdlib.h-data: Likewise.
13131         * conform/data/stropts.h-data: Likewise.
13132         * conform/data/sys/mman.h-data: Likewise.
13133         * conform/data/sys/stat.h-data: Likewise.
13134         * conform/data/sys/types.h-data: Likewise.
13135         * conform/data/sys/wait.h-data: Likewise.
13136         * conform/data/time.h-data: Likewise.
13137         * conform/data/unistd.h-data: Likewise.
13138         * conform/data/utime.h-data: Likewise.
13139
13140         * io/sys/stat.h: fchmod was always in POSIX.
13141         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13142         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13143         * rt/aio.h: Define __need_timespec before including <time.h>.
13144         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13145         struct.  Add forward declaration of pthread_attr_t and use it in
13146         sigevent.
13147         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13148         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13149         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13150         always remove CLK_TCK definition.
13151
13152 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13153
13154         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13155
13156 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13157
13158         * conform/run-conformtest.sh: New file.
13159         * conform/Makefile: Run run-conformtest for tests.
13160         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13161         support.
13162
13163         * conform/data/uchar.h-data: New file.
13164         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13165         * conform/data/arpa/inet.h-data: Likewise.
13166         * conform/data/assert.h-data: Likewise.
13167         * conform/data/complex.h-data: Likewise.
13168         * conform/data/cpio.h-data: Likewise.
13169         * conform/data/ctype.h-data: Likewise.
13170         * conform/data/dirent.h-data: Likewise.
13171         * conform/data/dlfcn.h-data: Likewise.
13172         * conform/data/errno.h-data: Likewise.
13173         * conform/data/fcntl.h-data: Likewise.
13174         * conform/data/float.h-data: Likewise.
13175         * conform/data/fmtmsg.h-data: Likewise.
13176         * conform/data/fnmatch.h-data: Likewise.
13177         * conform/data/ftw.h-data: Likewise.
13178         * conform/data/glob.h-data: Likewise.
13179         * conform/data/grp.h-data: Likewise.
13180         * conform/data/iconv.h-data: Likewise.
13181         * conform/data/inttypes.h-data: Likewise.
13182         * conform/data/langinfo.h-data: Likewise.
13183         * conform/data/libgen.h-data: Likewise.
13184         * conform/data/limits.h-data: Likewise.
13185         * conform/data/locale.h-data: Likewise.
13186         * conform/data/math.h-data: Likewise.
13187         * conform/data/monetary.h-data: Likewise.
13188         * conform/data/mqueue.h-data: Likewise.
13189         * conform/data/ndbm.h-data: Likewise.
13190         * conform/data/net/if.h-data: Likewise.
13191         * conform/data/netdb.h-data: Likewise.
13192         * conform/data/netinet/in.h-data: Likewise.
13193         * conform/data/nl_types.h-data: Likewise.
13194         * conform/data/poll.h-data: Likewise.
13195         * conform/data/pthread.h-data: Likewise.
13196         * conform/data/pwd.h-data: Likewise.
13197         * conform/data/regex.h-data: Likewise.
13198         * conform/data/sched.h-data: Likewise.
13199         * conform/data/search.h-data: Likewise.
13200         * conform/data/semaphore.h-data: Likewise.
13201         * conform/data/setjmp.h-data: Likewise.
13202         * conform/data/signal.h-data: Likewise.
13203         * conform/data/spawn.h-data: Likewise.
13204         * conform/data/stdarg.h-data: Likewise.
13205         * conform/data/stdio.h-data: Likewise.
13206         * conform/data/stdlib.h-data: Likewise.
13207         * conform/data/string.h-data: Likewise.
13208         * conform/data/strings.h-data: Likewise.
13209         * conform/data/stropts.h-data: Likewise.
13210         * conform/data/sys/ipc.h-data: Likewise.
13211         * conform/data/sys/mman.h-data: Likewise.
13212         * conform/data/sys/msg.h-data: Likewise.
13213         * conform/data/sys/resource.h-data: Likewise.
13214         * conform/data/sys/select.h-data: Likewise.
13215         * conform/data/sys/sem.h-data: Likewise.
13216         * conform/data/sys/shm.h-data: Likewise.
13217         * conform/data/sys/socket.h-data: Likewise.
13218         * conform/data/sys/stat.h-data: Likewise.
13219         * conform/data/sys/statvfs.h-data: Likewise.
13220         * conform/data/sys/time.h-data: Likewise.
13221         * conform/data/sys/timeb.h-data: Likewise.
13222         * conform/data/sys/times.h-data: Likewise.
13223         * conform/data/sys/types.h-data: Likewise.
13224         * conform/data/sys/uio.h-data: Likewise.
13225         * conform/data/sys/un.h-data: Likewise.
13226         * conform/data/sys/utsname.h-data: Likewise.
13227         * conform/data/sys/wait.h-data: Likewise.
13228         * conform/data/syslog.h-data: Likewise.
13229         * conform/data/tar.h-data: Likewise.
13230         * conform/data/termios.h-data: Likewise.
13231         * conform/data/utime.h-data: Likewise.
13232         * conform/data/utmpx.h-data: Likewise.
13233         * conform/data/varargs.h-data: Likewise.
13234         * conform/data/wchar.h-data: Likewise.
13235         * conform/data/wctype.h-data: Likewise.
13236         * conform/data/wordexp.h-data: Likewise.
13237
13238         * include/stropts.h: New file.
13239         * include/uchar.h: New file.
13240         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13241         * include/assert.h: Likewise.
13242         * include/ctype.h: Likewise.
13243         * include/dirent.h: Likewise.
13244         * include/dlfcn.h: Likewise.
13245         * include/fcntl.h: Likewise.
13246         * include/fnmatch.h: Likewise.
13247         * include/glob.h: Likewise.
13248         * include/grp.h: Likewise.
13249         * include/libio.h: Likewise.
13250         * include/locale.h: Likewise.
13251         * include/math.h: Likewise.
13252         * include/net/if.h: Likewise.
13253         * include/netdb.h: Likewise.
13254         * include/netinet/in.h: Likewise.
13255         * include/pthread.h: Likewise.
13256         * include/pwd.h: Likewise.
13257         * include/regex.h: Likewise.
13258         * include/sched.h: Likewise.
13259         * include/search.h: Likewise.
13260         * include/setjmp.h: Likewise.
13261         * include/signal.h: Likewise.
13262         * include/stdio.h: Likewise.
13263         * include/stdlib.h: Likewise.
13264         * include/string.h: Likewise.
13265         * include/sys/cdefs.h: Likewise.
13266         * include/sys/mman.h: Likewise.
13267         * include/sys/msg.h: Likewise.
13268         * include/sys/resource.h: Likewise.
13269         * include/sys/select.h: Likewise.
13270         * include/sys/socket.h: Likewise.
13271         * include/sys/stat.h: Likewise.
13272         * include/sys/statvfs.h: Likewise.
13273         * include/sys/time.h: Likewise.
13274         * include/sys/times.h: Likewise.
13275         * include/sys/uio.h: Likewise.
13276         * include/sys/utsname.h: Likewise.
13277         * include/sys/wait.h: Likewise.
13278         * include/termios.h: Likewise.
13279         * include/time.h: Likewise.
13280         * include/ulimit.h: Likewise.
13281         * include/unistd.h: Likewise.
13282         * include/utime.h: Likewise.
13283         * include/wchar.h: Likewise.
13284         * include/wctype.h: Likewise.
13285         * include/wordexp.h: Likewise.
13286
13287         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13288
13289         * time/time.h: TIME_UTC must be a macro.
13290         Make timespec_get available for ISO C11 only as well.
13291
13292 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13293
13294         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13295         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13296
13297 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13298
13299         * configure.in: Use -o not -a in test for unsupported multi-arch.
13300
13301 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13302
13303         * manual/texinfo.tex: Update to version 2012-01-19.16.
13304
13305 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13306
13307         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
13308
13309 2012-02-24  Roland McGrath  <roland@hack.frob.com>
13310
13311         [BZ #13738]
13312         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
13313         * manual/fdl-1.3.texi: New file.
13314         * manual/fdl-1.1.texi: File removed.
13315
13316         [BZ #13738]
13317         * manual/libc.texinfo (FDL_VERSION): New @set.
13318         Use it for mention of FDL in cover text.
13319         (Documentation License): Use it in @include file name.
13320
13321 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13322             Roland McGrath  <roland@hack.frob.com>
13323
13324         [BZ #5461]
13325         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
13326         not LONG_LONG_MAX and LONG_LONG_MIN.
13327         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
13328         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
13329         name.
13330         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
13331
13332 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13333
13334         [BZ #2547]
13335         [BZ #11365]
13336         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
13337         manipulate bits before adding and subtracting TWO23[sx].
13338         * math/libm-test.inc (nearbyint_test): Add more tests.
13339
13340 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13341
13342         [BZ #2548]
13343         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
13344         bits before adding and subtracting TWO23[sx].
13345         * math/libm-test.inc (rint_test): Add more tests.
13346         (rint_test_tonearest): Likewise.
13347         (rint_test_towardzero): Likewise.
13348         (rint_test_downward): Likewise.
13349         (rint_test_upward: Likewise.
13350
13351 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13352
13353         [BZ #10110]
13354         * include/stdc-predef.h: New file.  Extracted from features.h.
13355         * include/features.h: Include stdc-predef.h.
13356         * Makefile (headers): Add stdc-predef.h.
13357         * CONFORMANCE (Compiler limitations): Update.
13358
13359 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13360
13361         * manual/libc.texinfo (VERSION, UPDATED): Revert.
13362
13363 2012-02-21  David S. Miller  <davem@davemloft.net>
13364
13365         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
13366         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13367
13368 2012-02-20  David S. Miller  <davem@davemloft.net>
13369
13370         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
13371         using a normal save/restore sequence, rather than allocating a
13372         dummy stack frame just to store a frame pointer and restore.
13373         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13374
13375 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13376
13377         * manual/install.texi: Fix stray word in line-wrapped comment.
13378
13379 2012-02-20  David S. Miller  <davem@davemloft.net>
13380
13381         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
13382         both binutils and gcc support GOTDATA.
13383
13384         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
13385         "rd %pc" in the PIC register setup sequences.
13386
13387         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
13388         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
13389         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13390         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
13391         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13392         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13393         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13394         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13395         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
13396         (SYSCALL_ERROR_HANDLER): Likewise.
13397         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13398         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13399         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
13400         (SYSCALL_ERROR_HANDLER): Likewise.
13401
13402         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
13403         (HAVE_GCC_GOTDATA): New.
13404         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
13405         relocation support in both binutils and gcc.
13406         * sysdeps/sparc/elf/configure: Regenerate.
13407
13408         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
13409         * sysdeps/sparc/sparc32/elf/configure: Delete.
13410         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
13411         * sysdeps/sparc/sparc64/elf/configure: Delete.
13412         * sysdeps/sparc/elf/configure.in: New file.
13413         * sysdeps/sparc/elf/configure: Generate.
13414
13415         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
13416         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
13417         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13418         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
13419         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
13420
13421 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13422
13423         * manual/install.texi: Do not mention specific glibc version
13424         numbers.
13425         * manual/libc.texinfo (VERSION, UPDATED): Update.
13426         (@copying): Use @copyright{} and range of years.
13427
13428 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13429
13430         [BZ #13695]
13431         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
13432         [crti.S not in sysdirs] (generated): Do not append.
13433         [crti.S not in sysdirs] (omit-deps): Likewise.
13434         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
13435         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
13436         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
13437         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
13438         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
13439         Likewise.
13440         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
13441         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
13442         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
13443         * csu/defs.awk: Remove file.
13444         * sysdeps/generic/initfini.c: Likewise.
13445         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
13446         variable.
13447         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
13448         Likewise.
13449
13450 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13451
13452         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
13453         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
13454         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
13455         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
13456         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13457         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
13458         <bits/epoll.h>.
13459         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
13460         (__EPOLL_PACKED): Define to empty if not defined by
13461         <bits/epoll.h>.
13462         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
13463         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13464         bits/epoll.h.
13465
13466 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13467
13468         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
13469         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
13470         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
13471         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
13472         <bits/timerfd.h>.
13473         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
13474         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13475         bits/timerfd.h.
13476
13477 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13478
13479         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
13480         in C locale.
13481         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13482         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
13483         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
13484         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13485
13486 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
13487
13488         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13489         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13490
13491 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
13492
13493         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
13494         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
13495         defined.
13496         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
13497         Likewise.
13498         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
13499         entry for 2.16.
13500
13501 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
13502
13503         * math/w_acos.c: Use non-signaling floating-point comparisons.
13504         * math/w_acosf.c: Likewise.
13505         * math/w_acosh.c: Likewise.
13506         * math/w_acoshf.c: Likewise.
13507         * math/w_acoshl.c: Likewise.
13508         * math/w_acosl.c: Likewise.
13509         * math/w_asin.c: Likewise.
13510         * math/w_asinf.c: Likewise.
13511         * math/w_asinl.c: Likewise.
13512         * math/w_atanh.c: Likewise.
13513         * math/w_atanhf.c: Likewise.
13514         * math/w_atanhl.c: Likewise.
13515         * math/w_exp2.c: Likewise.
13516         * math/w_exp2f.c: Likewise.
13517         * math/w_exp2l.c: Likewise.
13518         * math/w_j0.c: Likewise.
13519         * math/w_j0f.c: Likewise.
13520         * math/w_j0l.c: Likewise.
13521         * math/w_j1.c: Likewise.
13522         * math/w_j1f.c: Likewise.
13523         * math/w_j1l.c: Likewise.
13524         * math/w_jn.c: Likewise.
13525         * math/w_jnf.c: Likewise.
13526         * math/w_log.c: Likewise.
13527         * math/w_log10.c: Likewise.
13528         * math/w_log10f.c: Likewise.
13529         * math/w_log10l.c: Likewise.
13530         * math/w_log2.c: Likewise.
13531         * math/w_log2f.c: Likewise.
13532         * math/w_log2l.c: Likewise.
13533         * math/w_logf.c: Likewise.
13534         * math/w_logl.c: Likewise.
13535         * math/w_sqrt.c: Likewise.
13536         * math/w_sqrtf.c: Likewise.
13537         * math/w_sqrtl.c: Likewise.
13538         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13539         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
13540         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13541         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13542         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13543
13544 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13545
13546         [BZ #9739]
13547         * manual/string.texi (strnlen): Use correct parameter name in
13548         equivalent expression.
13549
13550 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13551
13552         [BZ #11174]
13553         * manual/users.texi (seteuid): Consistently use neweuid for
13554         argument name.
13555
13556 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13557
13558         [BZ #13704]
13559         * manual/nss.texi (Services in the NSS configuration): Correct
13560         list of services in example configuration file.
13561
13562 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
13563
13564         [BZ #11322]
13565         * manual/arith.texi: Remove statements about negative zero
13566         behaving identically to zero.
13567
13568 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13569
13570         [BZ #5993]
13571         * manual/install.texi: Do not document upgrading from libc5.
13572
13573 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13574
13575         [BZ #4596]
13576         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
13577
13578 2012-02-18  David S. Miller  <davem@davemloft.net>
13579
13580         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
13581         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
13582         %o7 across the call.
13583         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
13584         instead.
13585         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
13586         SETUP_PIC_REG_LEAF.
13587         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13588         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
13589         * sysdeps/sparc/crtn.S: Likewise.
13590
13591 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
13592
13593         * aout/Makefile: Remove.
13594
13595 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
13596
13597         [BZ #13058]
13598         * manual/examples/argp-ex1.c (main): Format definition in GNU
13599         style.
13600         * manual/examples/argp-ex2.c (main): Likewise.
13601         * manual/examples/argp-ex3.c (main): Likewise.
13602         * manual/examples/argp-ex4.c (main): Likewise.
13603         * manual/examples/longopt.c (main): Use new-style prototype
13604         definition.
13605         * manual/examples/strncat.c (main): Specify return type and use
13606         (void) for arguments.
13607         * manual/examples/subopt.c (main): Use char **argv argument.
13608
13609 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13610
13611         [BZ #5077]
13612         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
13613         rounding modes.
13614
13615 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
13616
13617         [BZ #6907]
13618         * manual/string.texi (strchr): Change when strchrnul is
13619         recommended.
13620
13621 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
13622
13623         [BZ #174]
13624         * manual/locale.texi (setlocale): Document LOCPATH.
13625
13626 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13627
13628         [BZ #10210]
13629         * manual/process.texi (execle): Move @dots{} before last argument.
13630
13631 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
13632
13633         [BZ #12047]
13634         * manual/charset.texi (Generic Charset Conversion): Fix typo
13635         (LC_TYPE -> LC_CTYPE).
13636
13637 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
13638
13639         [BZ #5805]
13640         * manual/arith.texi (scalbn): Use @var{} on parameter names.
13641         (scalbnf): Likewise.
13642         (scalbnl): Likewise.
13643         (scalbln): Likewise.
13644         (scalblnf): Likewise.
13645         (scalblnl): Likewise.
13646         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
13647         (vwarnx): Likewise.
13648         (verr): Likewise.
13649         (verrx): Likewise.
13650         * manual/filesys.texi (telldir): Use braces around return type.
13651         * manual/llio.texi (mmap): Add space after comma.
13652         (mmap64): Likewise.
13653         * manual/math.texi (jn): Use @var{} on parameter names.
13654         (jnf): Likewise.
13655         (jnl): Likewise.
13656         (yn): Likewise.
13657         (ynf): Likewise.
13658         (ynl): Likewise.
13659         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
13660         line.
13661         * manual/resource.texi (ulimit): Use @dots{} instead of literal
13662         "...".
13663         (sched_get_priority_min): Remove semicolon on @deftypefun line.
13664         (sched_get_priority_max): Likewise.
13665         * manual/signal.texi (sigvec): Add space after comma.
13666         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
13667         names.
13668         (if_indextoname): Likewise.
13669         (if_freenameindex): Likewise.
13670         (sendto): Use ',' instead of '.' in prototype.
13671         * manual/startup.texi (syscall): Use @dots{} instead of literal
13672         "...".
13673         * manual/stdio.texi (__fpending): Separate initial words of
13674         paragraph from @deftypefun line.
13675         * manual/syslog.texi (syslog): Use @dots{} instead of literal
13676         "...".
13677         (vsyslog): Use @var{} on parameter names.
13678         * manual/terminal.texi (stty): Use @var{} on parameter names.
13679         * manual/users.texi (getutmp): Use @var{} on parameter names.
13680         (getutmpx): Likewise.
13681
13682 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13683
13684         [BZ #6884]
13685         * manual/stdio.texi (fopen): Fix typos in description of
13686         ",ccs=STRING".
13687
13688 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
13689
13690         [BZ #4026]
13691         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13692         get clock_id definition.
13693
13694 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13695
13696         [BZ #4822]
13697         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13698         (madvise): Cast every argument to void on its own.
13699
13700 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13701
13702         [BZ #9902]
13703         * manual/startup.texi (Exit Status): Fix typo.
13704
13705 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13706
13707         [BZ #10140]
13708         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13709         * manual/examples/argp-ex2.c: Likewise.
13710         * manual/examples/argp-ex3.c: Likewise.
13711
13712 2012-02-16  Richard Henderson  <rth@redhat.com>
13713
13714         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13715         * sysdeps/s390/s390-32/initfini.c: Remove.
13716         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13717         * sysdeps/s390/s390-64/initfini.c: Remove.
13718
13719 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13720
13721         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13722         compiler output for sysdeps/generic/initfini.c.
13723         * sysdeps/sh/elf/initfini.c: Remove file.
13724
13725 2012-02-16  David S. Miller  <davem@davemloft.net>
13726
13727         [BZ #11494]
13728         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13729
13730         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13731         * sysdeps/sparc/crti.S: New file.
13732         * sysdeps/sparc/crtn.S: New file.
13733         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13734         * sysdeps/sparc/sparc64/Makefile: Likewise.
13735
13736 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13737
13738         [BZ #3335]
13739         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13740
13741 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13742
13743         [BZ #4822]
13744         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13745
13746         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13747         (write, read, close): Likewise.
13748         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13749
13750 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13751
13752         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13753         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13754         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13755         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13756         <bits/signalfd.h>.
13757         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13758         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13759         bits/signalfd.h.
13760
13761 2012-02-14  Marek Polacek  <polacek@redhat.com>
13762
13763         * sysdeps/x86_64/crti.S: New file.
13764         * sysdeps/x86_64/crtn.S: New file.
13765         * sysdeps/x86_64/elf/initfini.c: Remove file.
13766
13767 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13768
13769         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13770         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13771         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13772         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13773         <bits/inotify.h>.
13774         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13775         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13776         bits/inotify.h.
13777
13778 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13779
13780         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13781         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13782         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13783         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13784         <bits/eventfd.h>.
13785         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13786         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13787         bits/eventfd.h.
13788
13789 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13790
13791         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13792         __feraiseexcept instead of feraiseexcept.
13793
13794         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13795         nanosleep invocations.
13796         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13797         strings, and add error checking for a nanosleep invocations.
13798
13799 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13800
13801         Replace FSF snail mail address with URLs, as per GNU coding standards.
13802         Most of the snail mail addresses were wrong anyway, and omitting
13803         them makes the source code easier to maintain.  Almost all of the
13804         changes are to license notices and to locale LC_IDENTIFICATION
13805         addresses, except for this one:
13806         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13807         not its snail mail address.
13808
13809 2012-02-09  Richard Henderson  <rth@twiddle.net>
13810
13811         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13812         of kernel-features.h.
13813
13814         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13815
13816 2012-02-08  Marek Polacek  <polacek@redhat.com>
13817
13818         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13819         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13820         * sysdeps/gnu/_G_config.h: Likewise.
13821         * sysdeps/generic/_G_config.h: Likewise.
13822
13823 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13824
13825         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13826         tests.
13827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13828
13829         * sysdeps/powerpc/powerpc32/crti.S: New file.
13830         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13831         * sysdeps/powerpc/powerpc64/crti.S: New file.
13832         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13833
13834         * Makeconfig (have-initfini): Don't set.
13835         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13836         * configure.in (nopic_initfini): Don't substitute.
13837         * config.h.in (HAVE_INITFINI): Don't #undef.
13838         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13839         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13840
13841 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13842
13843         Support crti.S and crtn.S provided directly by architectures.
13844         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13845         [crti.S in sysdirs] (omit-deps): Likewise.
13846         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13847         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13848         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13849         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13850         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13851         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13852         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13853         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13854         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13855         compiler output for sysdeps/generic/initfini.c.
13856         * sysdeps/i386/elf/Makefile: Remove file.
13857         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13858
13859 2012-02-07  Marek Polacek  <polacek@redhat.com>
13860
13861         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13862         * sysdeps/gnu/_G_config.h: Likewise.
13863         * sysdeps/mach/hurd/_G_config.h: Likewise.
13864
13865 2012-02-07  Marek Polacek  <polacek@redhat.com>
13866
13867         * math/Makefile (tests): Add tst-CMPLX2.
13868         * math/tst-CMPLX2.c: New file.
13869
13870 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13871
13872         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13873
13874         * math/libm-test.inc (jn_test): Add missing L suffix.
13875
13876 2012-02-06  Marek Polacek  <polacek@redhat.com>
13877
13878         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13879         * sysdeps/i386/fpu/e_powf.S: Likewise.
13880         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13881         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13882         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13883         * sysdeps/i386/fpu/e_pow.S: Likewise.
13884         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13885         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13886         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13887         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13888         * sysdeps/i386/fpu/e_log2.S: Likewise.
13889         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13890         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13891         * sysdeps/i386/fpu/e_powl.S: Likewise.
13892         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13893         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13894         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13895         * sysdeps/i386/fpu/e_logl.S: Likewise.
13896         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13897         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13898         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13899         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13900         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13901         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13902         * sysdeps/i386/fpu/e_log.S: Likewise.
13903         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13904         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13905         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13906         * sysdeps/i386/fpu/e_logf.S: Likewise.
13907         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13908         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13909         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13910         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13911         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13912         * sysdeps/i386/fpu/e_log10.S: Likewise.
13913         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13914         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13915         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13916         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13917         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13918         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13919         * sysdeps/i386/asm-syntax.h: Likewise.
13920         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13921         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13922         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13923         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13924         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13925         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13926         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13927         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13928         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13929         * sysdeps/powerpc/sysdep.h: Likewise.
13930         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13931         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13932
13933 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13934
13935         [BZ #411]
13936         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13937
13938 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13939
13940         * sysdeps/i386/sysdep.h: Include <features.h>.
13941         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13942         version.
13943
13944 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13945
13946         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13947         Define.
13948         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13949         LOAD_PIC_REG_STR.
13950
13951 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13952
13953         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13954         (SETUP_PIC_REG): Use GET_PC_THUNK.
13955         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13956         macro.
13957
13958 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13959
13960         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13961         for non-PIC compilation.
13962         (SETUP_PIC_REG): Add .p2align directive.
13963         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13964         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13965         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13966         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13967         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13968         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13969         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13970         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13971         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13972         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13973         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13974         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13975         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13976         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13977         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13978         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13979         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13980         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13981         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13982         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13983         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13984         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13985         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13986         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13987         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13988         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13989         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13990         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13991         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13992         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13993         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13994         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13995         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13996         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13997         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13998         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13999         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14000         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14001         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14002         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14003         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14004
14005 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14006
14007         * math/tst-CMPLX.c: Include <stdio.h>.
14008
14009 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14010
14011         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14012         float.
14013         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14014         * sysdeps/sparc/bits/mathdef.h: Likewise.
14015
14016 2012-01-31  Marek Polacek  <polacek@redhat.com>
14017
14018         * libio/libio.h: Don't define _PARAMS.
14019         * locale/programs/config.h: Don't define PARAMS.
14020         * stdlib/strtol_l.c: Likewise.
14021         (__strtol_l): Remove PARAMS from the prototype.
14022
14023 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14024
14025         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14026         names.  Just use the correct names.  Remove unnecessary wrapper
14027         functions.
14028         * malloc/arena.c: Likewise.
14029         * malloc/hooks.c: Likewise.
14030
14031         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14032         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14033         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14034
14035 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14036
14037         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14038         into tail calls.
14039         (update_get_addr): New function.
14040         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14041         GET_ADDR_MODULE parameter.
14042
14043 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14044
14045         * crypt/cert.c: Remove __STDC__ conditionals.
14046         * crypt/crypt-entry.c: Likewise.
14047         * crypt/crypt_util.c: Likewise.
14048         * libio/filedoalloc.c: Likewise.
14049         * libio/fileops.c: Likewise.
14050         * libio/genops.c: Likewise.
14051         * libio/iofclose.c: Likewise.
14052         * libio/iofdopen.c: Likewise.
14053         * libio/iofopen.c: Likewise.
14054         * libio/iofopen64.c: Likewise.
14055         * libio/iogetdelim.c: Likewise.
14056         * libio/iopopen.c: Likewise.
14057         * libio/obprintf.c: Likewise.
14058         * libio/oldfileops.c: Likewise.
14059         * libio/oldiofclose.c: Likewise.
14060         * libio/oldiofdopen.c: Likewise.
14061         * libio/oldiofopen.c: Likewise.
14062         * libio/oldiopopen.c: Likewise.
14063         * libio/wfiledoalloc.c: Likewise.
14064         * libio/wgenops.c: Likewise.
14065         * locale/programs/xmalloc.c: Likewise.
14066         * misc/syslog.c: Likewise.
14067         * stdio-common/xbug.c: Likewise.
14068         * string/memchr.c: Likewise.
14069         * string/memcmp.c: Likewise.
14070         * string/memrchr.c: Likewise.
14071         * string/rawmemchr.c: Likewise.
14072         * sysdeps/posix/getcwd.c: Likewise.
14073         * time/strftime_l.c: Likewise.
14074
14075 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14076
14077         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14078         * config.make.in (config-cflags-sse2avx): Define.
14079         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14080         Fix typo.
14081
14082 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14083
14084         * scripts/config.guess: Update from upstream config git repository.
14085         * scripts/config.sub: Likewise.
14086
14087 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14088
14089         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14090         (EM_NUM): Update.
14091         (R_TILEPRO_*, R_TILEGX_*): New macros.
14092
14093         * scripts/firstversions.awk: Fix bug in version range handling.
14094
14095         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14096
14097         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14098
14099         * include/sys/epoll.h: New file.
14100         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14101         libc_hidden_def.
14102
14103 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14104
14105         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14106         Avoid unnecessary __WORDSIZE == 64 test.
14107         (fmaxf): Use VEX format if possible.
14108         (fmax): Likewise.
14109         (fminf): Likewise.
14110         (fmin): Likewise.
14111
14112         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14113         * math/math_private.h: Remove libc_fegetround* and
14114         libc_fesetround*.
14115         * sysdeps/i386/configure.in: Check for -msse2avx.
14116         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14117         also if SSE2AVX is defined.
14118         Remove libc_fegetround* and libc_fesetround*.
14119         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14120         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14121         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14122         of HAS_YMM_USABLE.
14123         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14124         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14125         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14126         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14127         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14128
14129         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14130
14131 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14132
14133         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14134         size is not set.
14135         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14136
14137 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14138
14139         [BZ #13618]
14140         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14141         relocation.
14142         * Makeconfig (libm): Define.
14143         * elf/Makefile: Add rules to build and run tst-relsort1.
14144         * elf/tst-relsort1.c: New file.
14145         * elf/tst-relsort1mod1.c: New file.
14146         * elf/tst-relsort1mod2.c: New file.
14147
14148 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14149
14150         * math/s_ldexp.c: Remove __STDC__ conditionals.
14151         * math/s_ldexpf.c: Likewise.
14152         * math/s_ldexpl.c: Likewise.
14153         * math/s_nextafter.c: Likewise.
14154         * math/s_nexttowardf.c: Likewise.
14155         * math/s_significand.c: Likewise.
14156         * math/s_significandf.c: Likewise.
14157         * math/s_significandl.c: Likewise.
14158         * math/w_jnl.c: Likewise.
14159         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14160         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14161         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14162         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14163         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14164         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14165         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14166         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14167         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14168         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14169         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14170         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14171         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14172         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14173         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14174         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14175         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14176         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14177         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14178         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14179         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14180         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14181         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14182         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14183         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14184         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14185         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14186         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14187         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14188         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14189         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14190         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14191         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14192         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14193         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14194         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14195         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14196         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14197         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14198         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14199         * sysdeps/ieee754/k_standard.c: Likewise.
14200         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14201         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14202         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14203         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14204         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14205         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14206         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14207         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14208         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14209         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14210         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14211         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14212         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14213         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14214         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14215         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14216         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14217         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14218         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14219         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14220         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14221         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14222         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14223         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14224         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14225         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14226         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14227         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14228         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14229         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14230         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14231         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14232         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14233         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14234         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14235         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14236         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14237         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14238         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14239         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14240         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14241         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14242         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14243         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14244         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14245         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14246         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14247         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14248         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14249         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14250         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14251         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14252         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14253         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14254         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14255         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14256         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14257         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14258         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14259         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14260         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14261         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14262         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14263         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14264         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14265         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14266         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14267         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14268         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14269         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14270         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14271         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14272         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14273         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14274         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14275         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14276         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14277         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14278         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14279         * sysdeps/ieee754/s_matherr.c: Likewise.
14280         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14281         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14282         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14283         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14284
14285 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14286
14287         * crypt/md5.h: Remove __STDC__ conditionals.
14288         * libio/libioP.h: Likewise.
14289         * locale/programs/config.h: Likewise.
14290         * sysdeps/generic/sysdep.h: Likewise.
14291         * sysdeps/i386/asm-syntax.h: Likewise.
14292         * sysdeps/s390/asm-syntax.h: Likewise.
14293         * sysdeps/unix/sysdep.h: Likewise.
14294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14296
14297 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14298
14299         * libio/libio.h: Remove __STDC__ conditionals.
14300         * malloc/obstack.h: Likewise.
14301         * math/complex.h: Likewise.
14302         * math/math.h: Likewise.
14303         * sysdeps/generic/_G_config.h: Likewise.
14304         * sysdeps/gnu/_G_config.h: Likewise.
14305         * sysdeps/mach/hurd/_G_config.h: Likewise.
14306         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14307         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14308         * sysdeps/sparc/bits/mathdef.h: Likewise.
14309
14310 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
14311
14312         [BZ #13583]
14313         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
14314         Clean up HAS_* macros.
14315         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
14316         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
14317         possible.
14318         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
14319         HAS_AVX.
14320         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14321         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14322         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14323         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14324         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14325
14326 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
14327
14328         * elf/tst-unique3.cc (gets): Remove declaration.
14329         * elf/tst-unique3lib.cc (gets): Likewise.
14330         * elf/tst-unique3lib2.cc (gets): Likewise.
14331         * elf/tst-unique4.cc (gets): Likewise.
14332
14333 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
14334
14335         * include/stdio.h: Add C++ protection.  Add gets declarations and
14336         definitions.
14337         * debug/tst-chk1.c: Don't declare gets here.
14338         * stdio-common/tst-gets.c: Likewise.
14339
14340 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14341
14342         * posix/glob: Remove directory.
14343
14344 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14345
14346         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
14347
14348 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
14349
14350         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
14351         of the non-standard EPFNOSUPPORT.
14352
14353 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14354
14355         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
14356         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
14357         ANYWHERE set to 1 only on KERN_NO_SPACE error.
14358
14359 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
14360
14361         * wcsmbs/uchar.h: Test __STDC_VERSION__.
14362
14363 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
14364
14365         * nscd/aicache.c (addhstaiX): Do not cache negative results of
14366         transient errors.
14367         * nscd/grpcache.c (cache_addgr): Likewise.
14368         * nscd/hstcache.c (cache_addhst): Likewise.
14369         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14370         * nscd/pwdcache.c (cache_addpw): Likewise.
14371         * nscd/servicescache.c (cache_addserv): Likewise.
14372
14373 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
14374
14375         * malloc/malloc.c: Various cleanups.
14376         * malloc/hooks.c: Likewise.
14377
14378         * stdlib/Makefile (tests): Add bug-fmtmsg1.
14379         * stdlib/bug-fmtmsg1.c: New file.
14380
14381         * stdlib/fmtmsg.c (init): Add missing unlock.
14382         Patch by Peng Haitao <penght@cn.fujitsu.com>.
14383
14384 2012-01-12  Marek Polacek  <polacek@redhat.com>
14385
14386         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
14387         and _GNU_SOURCE.
14388
14389 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14390
14391         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
14392         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
14393         macro to ensure uniqueness of label name.
14394         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14395         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14396
14397 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
14398
14399         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
14400
14401         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
14402         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
14403         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
14404         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
14405
14406 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
14407
14408         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
14409
14410         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
14411         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
14412         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
14413
14414         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
14415
14416         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
14417         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
14418         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
14419         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
14420
14421         * math/bits/math-finite.h: Add ldexp support.
14422
14423 2012-01-10  Marek Polacek  <polacek@redhat.com>
14424
14425         * locale/programs/localedef.h (show_archive_content): Add noreturn
14426         attribute.
14427
14428 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
14429
14430         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
14431
14432 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14433
14434         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
14435
14436         * io/Makefile (headers): Add bits/poll2.h.
14437
14438 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
14439
14440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
14441         typo #include statement.
14442
14443 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14444
14445         * include/sys/cdefs.h: Define __attribute_alloc_size.
14446         * catgets/gencat.c: Add alloc_size attribute and apply consistently
14447         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
14448         * elf/pldd.c: Likewise.
14449         * iconv/iconv_charmap.c: Likewise.
14450         * iconv/iconvconfig.c: Likewise.
14451         * iconv/strtab.c: Likewise.
14452         * locale/programs/locale.c: Likewise.
14453         * locale/programs/localedef.h: Likewise.
14454         * locale/programs/simple-hash.c: Likewise.
14455         * nscd/nscd.h: Likewise.
14456         * nss/makedb.c: Likewise.
14457         * sysdeps/generic/ldconfig.h: Likewise.
14458         * locale/programs/localedef.c: Remove xmalloc prototype.
14459         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
14460
14461 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14462
14463         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
14464         appropriate.
14465
14466 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14467
14468         * math/Makefile (tests): Add tst-CMPLX.
14469         * math/tst-CMPLX.c: New file.
14470
14471         * math/complex.h (CMPLXL): Fix typo.
14472
14473         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
14474         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
14475         GLIBC_2.16.
14476         * debug/tst-chk1.c: Add poll and ppoll tests.
14477         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
14478         * include/sys/poll.h: Add hidden proto for ppoll.
14479         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
14480         * sysdeps/mach/hurd/ppoll.c: Likewise.
14481         * io/ppoll.c: Likewise.
14482         * debug/poll_chk.c: New file.
14483         * debug/ppoll_chk.c: New file.
14484         * include/bits/poll2.h: New file.
14485         * io/bits/poll2.h: New file.
14486
14487         [BZ #1350]
14488         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
14489
14490         * configure.in: static is always set to yes.  Remove.
14491         * config.make.in: Don't set build-static.
14492         * Makeconfig: Remove use of build-static.
14493         * dlfcn/Makefile: Likewise.
14494         * elf/Makefile: Likewise.
14495         * math/Makefile: Likewise.
14496         * misc/Makefile: Likewise.
14497         * nptl/Makefile: Likewise.
14498         * sysdeps/mach/hurd/Makefile: Likewise.
14499
14500         * configure.in: PWD_P is not used anymore.
14501         * config.make.in: Remove PWD_P entry.
14502
14503         * configure.in: Remove last remnants of RANLIB.
14504         No need to check for signed size_t anymore.
14505         Don't set libc_commonpagesize and libc_relro_required here for Alpha
14506         and IA-64.
14507         Remove __builtin_expect test because we require at least gcc 3.4.
14508         * aclocal.m4: Likewise.
14509
14510         * wcsmbs/mbrtoc16.c: Implement using towc function.
14511         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
14512         * wcsmbs/wcsmbsload.c: Likewise.
14513         * iconv/gconv_simple.c: Likewise.
14514         * iconv/gconv_int.h: Likewise.
14515         * iconv/gconv_builtin.h: Likewise.
14516         * iconv/iconv_prog.c: Remove CHAR16 handling.
14517
14518         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
14519
14520         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
14521
14522         * configure.in: Remove --with-elf and --enable-bounded options.
14523         Dont set base_machine for ia64.  More non-ELF conditions removed.
14524         Remove testing and setting of leading underscore information.
14525         * config.make.in (build-bounded): Set to no.
14526         * config.h.in: Remove NO_UNDERSCORES entry.
14527         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
14528         them.
14529         * csu/start.c: Remove !NO_UNDERSCORE code.
14530         * locale/localeinfo.h: Likewise.
14531         * sysdeps/generic/machine-gmon.h: Likewise.
14532         * sysdeps/generic/sysdep.h: Likewise.
14533         * sysdeps/i386/sysdep.h: Likewise.
14534         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14535         * sysdeps/mach/sysdep.h: Likewise.
14536         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14537         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14538         * sysdeps/sh/sysdep.h: Likewise.
14539         * sysdeps/sparc/sparc32/alloca.S: Likewise.
14540         * sysdeps/unix/i386/sysdep.S: Likewise.
14541         * sysdeps/unix/sparc/start.c: Likewise.
14542         * sysdeps/unix/sparc/sysdep.S: Likewise.
14543         * sysdeps/unix/sparc/sysdep.h: Likewise.
14544         * sysdeps/unix/start.c: Likewise.
14545         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14546         * sysdeps/x86_64/sysdep.h: Likewise.
14547
14548 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
14549
14550         [BZ #13553]
14551         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
14552         for non-gcc.
14553         * argp/argp-fmtstream.h: Use const instead __const.
14554         * argp/argp.h: Likewise.
14555         * assert/assert.h: Likewise.
14556         * bits/fenv.h: Likewise.
14557         * bits/sched.h: Likewise.
14558         * bits/sigset.h: Likewise.
14559         * bits/sigthread.h: Likewise.
14560         * catgets/nl_types.h: Likewise.
14561         * conform/data/pthread.h-data: Likewise.
14562         * crypt/crypt-private.h: Likewise.
14563         * crypt/crypt.h: Likewise.
14564         * crypt/crypt_util.c: Likewise.
14565         * ctype/ctype.h: Likewise.
14566         * debug/execinfo.h: Likewise.
14567         * debug/mbsnrtowcs_chk.c: Likewise.
14568         * debug/mbsrtowcs_chk.c: Likewise.
14569         * debug/wcsnrtombs_chk.c: Likewise.
14570         * debug/wcsrtombs_chk.c: Likewise.
14571         * debug/wcstombs_chk.c: Likewise.
14572         * dirent/dirent.h: Likewise.
14573         * dlfcn/dlfcn.h: Likewise.
14574         * elf/neededtest4.c: Likewise.
14575         * grp/grp.h: Likewise.
14576         * gshadow/gshadow.h: Likewise.
14577         * iconv/gconv.h: Likewise.
14578         * iconv/gconv_int.h: Likewise.
14579         * iconv/gconv_simple.c: Likewise.
14580         * iconv/iconv.h: Likewise.
14581         * iconv/loop.c: Likewise.
14582         * iconv/skeleton.c: Likewise.
14583         * include/aio.h: Likewise.
14584         * include/aliases.h: Likewise.
14585         * include/argz.h: Likewise.
14586         * include/arpa/inet.h: Likewise.
14587         * include/assert.h: Likewise.
14588         * include/dirent.h: Likewise.
14589         * include/dlfcn.h: Likewise.
14590         * include/execinfo.h: Likewise.
14591         * include/fcntl.h: Likewise.
14592         * include/fenv.h: Likewise.
14593         * include/glob.h: Likewise.
14594         * include/grp.h: Likewise.
14595         * include/libintl.h: Likewise.
14596         * include/mntent.h: Likewise.
14597         * include/netdb.h: Likewise.
14598         * include/pwd.h: Likewise.
14599         * include/rpc/netdb.h: Likewise.
14600         * include/sched.h: Likewise.
14601         * include/search.h: Likewise.
14602         * include/shadow.h: Likewise.
14603         * include/signal.h: Likewise.
14604         * include/stdio.h: Likewise.
14605         * include/stdlib.h: Likewise.
14606         * include/string.h: Likewise.
14607         * include/sys/socket.h: Likewise.
14608         * include/sys/stat.h: Likewise.
14609         * include/sys/statfs.h: Likewise.
14610         * include/sys/statvfs.h: Likewise.
14611         * include/sys/syslog.h: Likewise.
14612         * include/sys/time.h: Likewise.
14613         * include/sys/uio.h: Likewise.
14614         * include/time.h: Likewise.
14615         * include/unistd.h: Likewise.
14616         * include/utmp.h: Likewise.
14617         * include/wchar.h: Likewise.
14618         * include/wctype.h: Likewise.
14619         * inet/aliases.h: Likewise.
14620         * inet/arpa/inet.h: Likewise.
14621         * inet/netinet/ether.h: Likewise.
14622         * inet/netinet/in.h: Likewise.
14623         * intl/libintl.h: Likewise.
14624         * io/bits/fcntl2.h: Likewise.
14625         * io/fcntl.h: Likewise.
14626         * io/ftw.h: Likewise.
14627         * io/sys/poll.h: Likewise.
14628         * io/sys/stat.h: Likewise.
14629         * io/sys/statfs.h: Likewise.
14630         * io/sys/statvfs.h: Likewise.
14631         * io/utime.h: Likewise.
14632         * libio/bits/stdio.h: Likewise.
14633         * libio/bits/stdio2.h: Likewise.
14634         * libio/libio.h: Likewise.
14635         * libio/libioP.h: Likewise.
14636         * libio/stdio.h: Likewise.
14637         * locale/lc-ctype.c: Likewise.
14638         * locale/locale.h: Likewise.
14639         * login/utmp.h: Likewise.
14640         * malloc/arena.c: Likewise.
14641         * malloc/malloc.c: Likewise.
14642         * malloc/malloc.h: Likewise.
14643         * malloc/mcheck.c: Likewise.
14644         * malloc/mtrace.c: Likewise.
14645         * math/bits/mathcalls.h: Likewise.
14646         * math/fenv.h: Likewise.
14647         * math/math_private.h: Likewise.
14648         * misc/bits/error.h: Likewise.
14649         * misc/bits/syslog.h: Likewise.
14650         * misc/err.h: Likewise.
14651         * misc/error.h: Likewise.
14652         * misc/fstab.h: Likewise.
14653         * misc/mntent.h: Likewise.
14654         * misc/regexp.h: Likewise.
14655         * misc/search.h: Likewise.
14656         * misc/sgtty.h: Likewise.
14657         * misc/sys/mman.h: Likewise.
14658         * misc/sys/syslog.h: Likewise.
14659         * misc/sys/uio.h: Likewise.
14660         * misc/sys/xattr.h: Likewise.
14661         * misc/ttyent.h: Likewise.
14662         * nis/rpcsvc/ypclnt.h: Likewise.
14663         * nss/nss.h: Likewise.
14664         * posix/bits/unistd.h: Likewise.
14665         * posix/fnmatch.h: Likewise.
14666         * posix/glob.h: Likewise.
14667         * posix/sched.h: Likewise.
14668         * posix/spawn.h: Likewise.
14669         * posix/sys/wait.h: Likewise.
14670         * posix/unistd.h: Likewise.
14671         * posix/wordexp.h: Likewise.
14672         * pwd/pwd.h: Likewise.
14673         * resolv/netdb.h: Likewise.
14674         * resource/sys/resource.h: Likewise.
14675         * rt/aio.h: Likewise.
14676         * rt/bits/mqueue2.h: Likewise.
14677         * rt/mqueue.h: Likewise.
14678         * shadow/shadow.h: Likewise.
14679         * signal/signal.h: Likewise.
14680         * socket/send.c: Likewise.
14681         * socket/sendto.c: Likewise.
14682         * socket/sys/socket.h: Likewise.
14683         * stdio-common/printf.h: Likewise.
14684         * stdlib/bits/stdlib.h: Likewise.
14685         * stdlib/fmtmsg.h: Likewise.
14686         * stdlib/monetary.h: Likewise.
14687         * stdlib/stdlib.h: Likewise.
14688         * stdlib/ucontext.h: Likewise.
14689         * streams/stropts.h: Likewise.
14690         * string/argz.h: Likewise.
14691         * string/bits/string2.h: Likewise.
14692         * string/string.h: Likewise.
14693         * string/strings.h: Likewise.
14694         * sunrpc/rpc/auth.h: Likewise.
14695         * sunrpc/rpc/auth_des.h: Likewise.
14696         * sunrpc/rpc/clnt.h: Likewise.
14697         * sunrpc/rpc/netdb.h: Likewise.
14698         * sunrpc/rpc/pmap_clnt.h: Likewise.
14699         * sunrpc/rpc/xdr.h: Likewise.
14700         * sysdeps/generic/inttypes.h: Likewise.
14701         * sysdeps/generic/net/if.h: Likewise.
14702         * sysdeps/generic/sys/swap.h: Likewise.
14703         * sysdeps/gnu/net/if.h: Likewise.
14704         * sysdeps/gnu/utmpx.h: Likewise.
14705         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14706         * sysdeps/i386/i486/bits/string.h: Likewise.
14707         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14708         * sysdeps/s390/bits/string.h: Likewise.
14709         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14710         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14711         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14712         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14713         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14714         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14715         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14716         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14717         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14718         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14719         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14720         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14721         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14722         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14723         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14724         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14725         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14726         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14727         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14728         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14729         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14730         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14731         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14732         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14733         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14734         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14735         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14736         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14737         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14738         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14739         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14740         * sysvipc/sys/ipc.h: Likewise.
14741         * sysvipc/sys/msg.h: Likewise.
14742         * sysvipc/sys/sem.h: Likewise.
14743         * sysvipc/sys/shm.h: Likewise.
14744         * termios/termios.h: Likewise.
14745         * time/sys/time.h: Likewise.
14746         * time/time.h: Likewise.
14747         * wcsmbs/bits/wchar2.h: Likewise.
14748         * wcsmbs/uchar.h: Likewise.
14749         * wcsmbs/wchar.h: Likewise.
14750         * wctype/wctype.h: Likewise.
14751
14752         [BZ #13551]
14753         * Makeconfig: Remove all but ELF support including AIX support.
14754         * Makerules: Likewise.
14755         * config.h.in: Likewise.
14756         * config.make.in: Likewise.
14757         * configure: Likewise.
14758         * configure.in: Likewise.
14759         * csu/Makefile: Likewise.
14760         * csu/version.c: Likewise.
14761         * debug/Makefile: Likewise.
14762         * dlfcn/Makefile: Likewise.
14763         * elf/Makefile: Likewise.
14764         * extra-lib.mk: Likewise.
14765         * iconv/Makefile: Likewise.
14766         * include/libc-symbols.h: Likewise.
14767         * include/shlib-compat.h: Likewise.
14768         * resolv/Makefile: Likewise.
14769         * resolv/res_libc.c: Likewise.
14770         * rt/Makefile: Likewise.
14771         * sysdeps/i386/asm-syntax.h: Likewise.
14772         * sysdeps/i386/sysdep.h: Likewise.
14773         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14774         * sysdeps/mach/sysdep.h: Likewise.
14775         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14776         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14777         * sysdeps/s390/asm-syntax.h: Likewise.
14778         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14779         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14780         * sysdeps/sh/sysdep.h: Likewise.
14781         * sysdeps/unix/sparc/sysdep.h: Likewise.
14782         * sysdeps/wordsize-32/divdi3.c: Likewise.
14783         * sysdeps/x86_64/sysdep.h: Likewise.
14784
14785         * argp/Versions: Remove _argp_unlock_xxx.
14786
14787         [BZ #13559]
14788         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14789         * abilist/libBrokenLocale.abilist: Likewise.
14790         * abilist/libanl.abilist: Likewise.
14791         * abilist/libc.abilist: Likewise.
14792         * abilist/libcrypt.abilist: Likewise.
14793         * abilist/libdl.abilist: Likewise.
14794         * abilist/libm.abilist: Likewise.
14795         * abilist/libnsl.abilist: Likewise.
14796         * abilist/libpthread.abilist: Likewise.
14797         * abilist/libresolv.abilist: Likewise.
14798         * abilist/librt.abilist: Likewise.
14799         * abilist/libthread_db.abilist: Likewise.
14800         * abilist/libutil.abilist: Likewise.
14801         * abilist/libnss_db.abilist: New file.
14802
14803         * scripts/abilist.awk: Add support for indirect functions.
14804
14805         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14806
14807         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14808
14809         * shlib-versions: Remove entries for ports architectures.
14810
14811         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14812         files in ports.
14813         * elf/stackguard-macros.h: Remove support for IA-64.
14814         * elf/tst-auditmod1.c: Likewise.
14815         * sysdeps/generic/ldsodefs.h: Likewise.
14816
14817         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14818         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14819         configure files.
14820
14821         [BZ #13552]
14822         * configure.in: Remove --enable-omitfp support.
14823         * FAQ.in: Adjust.
14824         * config.make.in: Likewise.
14825         * Makeconfig: Likewise.
14826         * manual/install.texi: Likewise.
14827
14828         In case anyone cares, the IA-64 architecture could move to ports.
14829         * sysdeps/ia64/*: Removed.
14830         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14831         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14832
14833         [BZ #13555]
14834         * configure.in: Remove entries for unsupported architectures.
14835
14836         [BZ #13533]
14837         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14838         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14839         routines.
14840         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14841         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14842         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14843         fall back to using wcrtomb.
14844         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14845         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14846         renaming.
14847         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14848         * wcsmbs/tst-c16c32-1.c: New file.
14849
14850         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14851         local variable.
14852
14853         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14854
14855         * elf/tst-unique3.cc: Add explicit declaration of gets.
14856         * elf/tst-unique3lib.cc: Likewise.
14857         * elf/tst-unique3lib2.cc: Likewise.
14858         * elf/tst-unique4.cc: Likewise.
14859
14860         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14861
14862 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14863
14864         [BZ #13566]
14865         * assert/assert.h (static_assert): Don't define for C++.
14866         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14867         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14868
14869 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14870
14871         * iconv/loop.c (single loop): Fix assertion in storing of
14872         remaining bytes.
14873
14874         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14875
14876 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14877
14878         * posix/getconf.c: Update copyright year.
14879         * nss/getent.c: Likewise.
14880         * nss/makedb.c: Likewise.
14881         * iconv/iconvconfig.c: Likewise.
14882         * iconv/iconv_prog.c: Likewise.
14883         * elf/ldconfig.c: Likewise.
14884         * elf/pldd.c: Likewise.
14885         * elf/sotruss.ksh: Likewise.
14886         * catgets/gencat.c: Likewise.
14887         * csu/version.c: Likewise.
14888         * elf/ldd.bash.in: Likewise.
14889         * elf/sprof.c (print_version): Likewise.
14890         * locale/programs/locale.c: Likewise.
14891         * locale/programs/localedef.c: Likewise.
14892         * login/programs/pt_chown.c: Likewise.
14893         * nscd/nscd.c (print_version): Likewise.
14894         * debug/xtrace.sh: Likewise.
14895         * malloc/memusage.sh: Likewise.
14896         * malloc/mtrace.pl: Likewise.
14897         * debug/catchsegv.sh: Likewise.
14898
14899 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14900
14901         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14902         pure attribute.
14903
14904 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14905
14906         [BZ #13533]
14907         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14908         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14909         transformations.
14910         * iconv/gconv_int.h: Likewise.
14911         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14912         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14913         from libc for GLIBC_2.16.
14914         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14915         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14916         * wcsmbs/uchar.h: Really define mbstate_t.
14917         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14918         * wcsmbs/c16rtomb.c: New file.
14919         * wcsmbs/mbrtoc16.c: New file.
14920         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14921         for C/POSIX locale.
14922         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14923         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14924
14925         * wcsmbs/wchar.h: Add missing __restrict.
14926
14927 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14928
14929         [BZ #13532]
14930         * time/Makefile (routines): Add timespec_get.
14931         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14932         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14933         timespec for ISO C11.
14934         * time/timespec_get.c: New file.
14935         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14936         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14937
14938         [BZ #13531]
14939         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14940         * stdlib/stdlib.h: Declare aligned_alloc.
14941         * Versions.def: Add GLIBC_2.16 for libc.
14942         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14943
14944         [BZ 13527]
14945         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14946         ISO C11.
14947
14948         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14949         code.
14950
14951         [BZ #13528]
14952         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14953
14954         [BZ #13529]
14955         * assert/assert.h (static_assert): Define.
14956
14957         * version.h: Update for 2.16 development version.
14958
14959         [BZ #13526]
14960         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14961         _ISOC11_SOURCE.
14962
14963         * version.h (RELEASE): Bump for 2.15 release.
14964         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14965
14966         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14967         Patch by Marek Polacek <mpolacek@redhat.com>.
14968
14969         * bits/byteswap.h: Protect long long constants with __extension__.
14970         * sysdeps/i386/bits/byteswap.h: Likewise.
14971         * sysdeps/ia64/bits/byteswap.h: Likewise.
14972         * sysdeps/s390/bits/byteswap.h: Likewise.
14973         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14974
14975 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14976
14977         [BZ #13540]
14978         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14979         destination buffer.
14980         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14981
14982 2011-12-23  Marek Polacek  <polacek@redhat.com>
14983
14984         * elf/dl-addr.c (determine_info): Add inline keyword.
14985         * elf/tst-auditmod4b.c (check_avx): Likewise.
14986         * elf/tst-auditmod6b.c (check_avx): Likewise.
14987         * elf/tst-auditmod6c.c (check_avx): Likewise.
14988         * elf/tst-auditmod7b.c (check_avx): Likewise.
14989
14990 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14991
14992         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14993         !__SSE_MATH__.
14994
14995 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14996
14997         [BZ #13540]
14998         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14999         processing for last bytes.
15000
15001 2011-08-06  Bruno Haible  <bruno@clisp.org>
15002
15003         [BZ #13061]
15004         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15005         U+0385, not to U+1FEE.
15006
15007         [BZ #13062]
15008         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15009         entry for U+00A5 U+0301.
15010
15011 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15012
15013         [BZ #13166]
15014         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15015         buffer for the output is too small.
15016
15017         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15018         optimization.
15019
15020         [BZ #13185]
15021         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15022         SSE flags if possible.
15023
15024 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15025
15026         [BZ #13540]
15027         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15028         processing for last bytes.
15029
15030 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15031
15032         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15033         (syscall-list-default-options, syscall-list-default-condition)
15034         (syscall-list-includes): Define.
15035         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15036         list of ABIs and options and #if conditions for each ABI.  Do not
15037         handle common syscalls between ABIs specially.
15038         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15039         Remove.
15040         (syscall-list-variants, syscall-list-32bit-options)
15041         (syscall-list-32bit-condition, syscall-list-64bit-options)
15042         (syscall-list-64bit-condition): Define.
15043         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15044         (syscall-list-variants, syscall-list-32bit-options)
15045         (syscall-list-32bit-condition, syscall-list-64bit-options)
15046         (syscall-list-64bit-condition): Define.
15047         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15048         Remove.
15049         (syscall-list-variants, syscall-list-32bit-options)
15050         (syscall-list-32bit-condition, syscall-list-64bit-options)
15051         (syscall-list-64bit-condition): Define.
15052         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15053         Remove.
15054         (syscall-list-variants, syscall-list-32bit-options)
15055         (syscall-list-32bit-condition, syscall-list-64bit-options)
15056         (syscall-list-64bit-condition): Define.
15057
15058 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15059
15060         * locale/iso-639.def: Add brx entry.
15061
15062         [BZ #13328]
15063         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15064         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15065
15066         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15067         __feraiseexcept_renamed.
15068
15069 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15070
15071         [BZ #13538]
15072         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15073         EPOLLET with unsigned values.
15074         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15075         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15076
15077         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15078         to large cancellation.
15079         * math/s_cacoshf.c: Likewise.
15080         * math/s_cacoshl.c: Likewise.
15081
15082 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15083
15084         [BZ #13305]
15085         [BZ #12786]
15086         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15087         * math/s_cacoshf.c: Likewise.
15088         * math/s_cacoshl.c: Likewise.
15089
15090 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15091
15092         [BZ #13439]
15093         * iconv/gconv.h: Define __GCONV_SWAP.
15094         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15095         * iconvdata/utf-16.c: Likewise.
15096         * iconvdata/utf-32.c: Likewise.
15097
15098 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15099
15100         [BZ #13524]
15101         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15102         numerator after shifting it by one limb.
15103
15104 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15105
15106         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15107         under [__USE_EXTERN_INLINES].
15108
15109 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15110
15111         [BZ #13446]
15112         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15113
15114 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15115
15116         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15117         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15118         optimized code.
15119         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15120         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15121         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15122         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15123         for strncasecmp/strncasecmp_l compilation.
15124         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15125         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15126
15127 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15128
15129         [BZ #13484]
15130         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15131         of __asm__.
15132
15133 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15134
15135         [BZ #13506]
15136         * time/tzfile.c (__tzfile_read): Check values from file header.
15137
15138 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15139
15140         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15141         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15142         * powerpc/powerpc32/dl-start.S: Likewise.
15143         * powerpc/powerpc32/elf/start.S: Likewise.
15144         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15145         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15146         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15147         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15148         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15149         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15150         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15151         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15152         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15153         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15154         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15155         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15156         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15157         * powerpc/powerpc32/memset.S: Likewise.
15158         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15159         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15160         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15161         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15162         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15163         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15164         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15165         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15166         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15167         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15168         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15169         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15170         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15171
15172 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15173
15174         * math/libm-test.inc: Added more nearbyint tests.
15175         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15176         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15177         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15178         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15179
15180 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15181
15182         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15183         FD_CLOEXEC.
15184
15185 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15186
15187         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15188         Add wcscpy-ssse3 wcscpy-c.
15189         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15190         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15191         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15192         * sysdeps/x86_64/wcschr.S: New file.
15193         * sysdeps/x86_64/wcsrchr.S: New file.
15194         * string/test-strcmp.c: Remove checking of wcscmp function for
15195         wrong alignments.
15196         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15197         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15198         wcsrchr-sse2 wcsrchr-c.
15199         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15200         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15201         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15202         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15203         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15204         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15205         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15206         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15207         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15208         * wcsmbc/wcschr.c (WCSCHR): New macro.
15209
15210 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15211
15212         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15213         * wcsmbs/test-wcsrchr.c: New file.
15214         * string/test-strrchr.c: Add wcsrchr support.
15215         (WIDE): New macro.
15216         * wcsmbs/test-wcscpy.c: New file.
15217         * string/test-strcpy.c: Add wcscpy support.
15218         (WIDE): New macro.
15219
15220 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15221
15222         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15223         the inner loop.
15224
15225 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15226
15227         [BZ #13472]
15228         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15229
15230 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15231
15232         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15233         Minor optimizations.
15234
15235         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15236         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15237         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15238
15239 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15240
15241         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15242         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15243         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15244         for gcc to avoid warnings.
15245         * inet/Makefile (tests): Add tst-checks.
15246         * inet/tst-checks.c: New file.
15247
15248         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15249         warning.
15250
15251         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15252         __wmemcmp_sse2.
15253
15254         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15255         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15256
15257         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15258
15259 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15260
15261         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15262         problem.
15263
15264         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15265
15266 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15267
15268         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15269         conditional on GCC version.
15270         (__arch_compare_and_exchange_val_8_acq)
15271         (__arch_compare_and_exchange_val_16_acq)
15272         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15273         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15274         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15275
15276 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15277
15278         * sysdeps/sh/backtrace.c: New file.
15279
15280 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15281
15282         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15283         parenthesis.
15284
15285 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15286
15287         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15288         falling back to utime.
15289
15290 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15291
15292         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15293         expectations for float.
15294
15295 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15296
15297         * locale/weight.h (findidx): Add parameter len.
15298         * locale/weightwc.h (findidx): Likewise.
15299         * posix/fnmatch_loop.c (FCT): Adjust caller.
15300         * posix/regcomp.c (build_equiv_class): Likewise.
15301         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15302         * posix/regexec.c (check_node_accept_bytes): Likewise.
15303         * string/strcoll_l.c (STRCOLL): Likewise.
15304         * string/strxfrm_l.c (STRXFRM): Likewise.
15305
15306 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
15307
15308         * Makefile.in: Remove CVSOPT handling.
15309         * configure.in: Remove use of AC_REVISION.
15310         * iconvdata/Makefile (distribute): No need to filter out CVS.
15311         * scripts/list-sources.sh: Remove CVS, subversion and monotone
15312         handling.
15313
15314 2011-11-16  Andreas Schwab  <schwab@redhat.com>
15315
15316         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
15317         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
15318         [USE_AS_STRNCASECMP_L]: Likewise.
15319         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
15320         NO_TLS_DIRECT_SEG_REFS.
15321         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
15322         Fix argument offsets for non-PIC.
15323         [USE_AS_STRNCASECMP_L]: Likewise.
15324         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
15325         NO_TLS_DIRECT_SEG_REFS.
15326
15327 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15328
15329         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
15330         O_CLOEXEC.
15331         * locale/loadlocale.c (_nl_load_locale): Likewise.
15332
15333 2011-11-15  Andreas Schwab  <schwab@redhat.com>
15334
15335         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
15336         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
15337         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
15338         (SYSCALL_GETTIME): Set errno on error.
15339
15340         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
15341         count references to noai6ai_cached.
15342
15343 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15344
15345         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
15346
15347         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
15348         FD_CLOEXEC for /proc/self/maps.
15349
15350         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
15351         FD_CLOEXEC for /proc/meminfo.
15352
15353         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
15354         gai.conf.
15355
15356         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
15357         FD_CLOEXEC for given file.
15358
15359         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
15360
15361         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
15362         FD_CLOEXEC for /etc/hosts.
15363         (_gethtent): Likewise.
15364
15365         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
15366
15367         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
15368         cancellation and set FD_CLOEXEC for /etc/netgroup.
15369
15370         * nss/nss_files/files-key.c (search): Don't allow cancellation when
15371         reading /etc/publickey.
15372
15373         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
15374         allow cancellation when reading /etc/group.
15375
15376         * nss/nss_files/files-alias.c (internal_setent): Don't allow
15377         cancellation.
15378         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
15379
15380         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
15381         when using data file.
15382
15383         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
15384
15385         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
15386         (write_nis_obj): Use "c" and "e" in fopen.
15387
15388         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
15389
15390         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
15391
15392         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
15393
15394         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
15395
15396         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
15397         locale.alias.
15398
15399         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
15400
15401         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
15402
15403         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
15404
15405         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
15406         file parsing and set FD_CLOEXEC.
15407
15408 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15409
15410         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
15411
15412 2011-11-14  Andreas Schwab  <schwab@redhat.com>
15413
15414         * malloc/arena.c (arena_get2): Don't call reused_arena when
15415         _int_new_arena failed.
15416
15417 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15418
15419         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
15420         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
15421         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
15422         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15423         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15424         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
15425         to compile strcasecmp and strncasecmp.
15426         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
15427         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
15428
15429         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
15430
15431 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
15432
15433         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
15434         locale-defines.sym to gen-as-const-headers.
15435         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
15436         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
15437         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
15438         to compile strcasecmp and strncasecmp.
15439         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
15440         strcasecmp_l and strncasecmp_l.
15441         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
15442         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
15443         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
15444         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
15445         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
15446         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
15447         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
15448         * sysdeps/i386/i686/multiarch/strncase.S: New file.
15449         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
15450         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
15451         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
15452
15453 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
15454
15455         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
15456         result of SYSDEP_GETTIME_CPU to retval.
15457         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
15458         parameter list to macro.  Remove trailing semicolon.  Adjust users.
15459
15460         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
15461         variable.
15462
15463         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
15464         mantissa words.
15465         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15466
15467         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
15468         from unused variable.
15469
15470         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
15471         DWARF definitions.
15472         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
15473         for assembling.
15474
15475         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
15476         over namespaces.
15477
15478         * sunrpc/rpc_prot.c (rejected): Fix case value.
15479
15480         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
15481         unsigned long long int to avoid warnings in shift.
15482
15483         * posix/regex_internal.c (re_string_reconstruct): Actually use result
15484         of use of trans.
15485         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
15486         variable tmp.
15487
15488         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
15489         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
15490         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
15491
15492         * nis/nis_table.c (nis_list): Use variable of correct type for
15493         result of __follow_path call.
15494
15495 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15496
15497         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
15498         of math functions ceil, trunc, floor, round, and sqrt, when
15499         avaliable on the platform.
15500         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
15501         name clash.
15502         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15503         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15504         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15505
15506 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
15507
15508         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
15509         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
15510
15511 2011-11-11  Roland McGrath  <roland@hack.frob.com>
15512
15513         * include/unistd.h: Fix __readlink return type.
15514         Reported by Chris Metcalf <cmetcalf@tilera.com>.
15515
15516 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
15517
15518         * stdlib/ucontext.h: Undo last change for makecontext.
15519
15520 2011-11-11  Andreas Schwab  <schwab@redhat.com>
15521
15522         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
15523
15524         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
15525         * setjmp/setjmp.h: Mark functions as non-leaf.
15526         * setjmp/bits/setjmp2.h: Likewise.
15527         * stdlib/ucontext.h: Likewise.
15528
15529 2011-11-10  Andreas Schwab  <schwab@redhat.com>
15530
15531         * malloc/arena.c (_int_new_arena): Don't increment narenas.
15532         (reused_arena): Don't check arena limit.
15533         (arena_get2): Atomically check arena limit.
15534
15535 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
15536
15537         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
15538         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
15539
15540         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
15541         instructions.
15542
15543 2011-11-07  Andreas Schwab  <schwab@redhat.com>
15544
15545         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
15546         handler when locking.
15547
15548         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15549         Fix size of allocated buffer.
15550
15551 2011-11-04  Andreas Schwab  <schwab@redhat.com>
15552
15553         [BZ #10103]
15554         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
15555         declarations for long double functions.
15556         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
15557
15558         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
15559
15560 2011-11-03  Andreas Schwab  <schwab@redhat.com>
15561
15562         * nscd/nscd.c (main): Don't start AVC thread until credentials are
15563         installed.
15564
15565         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
15566         is disabled.
15567
15568 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15569
15570         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
15571
15572 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
15573
15574         * include/alloca.h (stackinfo_alloca_round): Define.
15575         (extend_alloca): Use it.
15576         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
15577         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
15578         here.
15579
15580         * scripts/check-local-headers.sh: Ignore libaudit.h.
15581
15582         * nscd/Makefile (extra-objs): Make recursively expanded.
15583
15584 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
15585
15586         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
15587         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
15588
15589         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
15590         * posix/tst-rfc3484-2.c: Likewise.
15591         * posix/tst-rfc3484-3.c: Likewise.
15592
15593         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
15594         process_vm_writev.
15595         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
15596         process_vm_writev.
15597         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
15598         process_vm_writev from libc using GLIBC_2.15 version.
15599
15600         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
15601
15602 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
15603
15604         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
15605         stack usage.
15606
15607 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
15608
15609         [BZ #13367]
15610         * nss/getent.c (initgroups_keys): Show error message in case no group
15611         names are given.
15612
15613         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
15614         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
15615         __bump_nl_timestamp.
15616         * nscd/connections (nscd_init): When host database is served open
15617         netlink socket and request notification about configuration changes.
15618         (main_loop_poll): Track netlink file descriptor and bump timestamp
15619         in case data becomes available.
15620         (main_loop_epoll): Likewise.
15621         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
15622         (database_pers_head): Add extra_data fileds.
15623         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
15624         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
15625         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
15626         Adjust caller.
15627         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
15628         in6ai data, call __free_in6ai.
15629         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
15630         Add -DHAVE_NETLINK.
15631         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
15632         interface information.  Reuse previous data if netlink timestamp
15633         is not changed.
15634         (__bump_nl_timestamp): New function.
15635         (__free_in6ai): New function.
15636
15637 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
15638
15639         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
15640         close_not_cancel_no_status here.
15641         (__check_pf): Reorganize code a bit to not call close twice if OOM.
15642
15643 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15644
15645         [BZ #13276]
15646         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
15647         return value.
15648
15649         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
15650         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
15651         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
15652
15653 2011-07-03  Andreas Jaeger  <aj@suse.de>
15654
15655         [BZ #10709]
15656         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
15657         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
15658         * math/libm-test.inc (sin_test): Add test case.
15659
15660 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15661
15662         [BZ #13337]
15663         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
15664         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15665
15666         * elf/chroot_canon.c (chroot_canon): Cleanups.
15667
15668         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
15669
15670         [BZ #13335]
15671         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
15672         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15673
15674         * string/test-strchr.c: Make usable for strchrnul testing.
15675         * string/test-strchrnul.c: New file.
15676         * string/Makefile (strop-tests): Add strchrnul.
15677
15678         * po/it.po: Update from translation team.
15679         * po/es.po: Likewise.
15680
15681 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
15682
15683         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
15684         the three constants needed as parameters.  Drop the others.
15685         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
15686         __m128i_strloadu_tolower.
15687         Create and initialize variable zero and use it in all the places
15688         where _mm_setzero_si128 was used.
15689
15690         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
15691         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15692         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15693         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15694         anymore.
15695         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15696         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15697         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15698         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15699         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15700         __mpranred, __mptan.
15701         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15702         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15703         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15704         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15705         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15706         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15707         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15708         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15709         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15710
15711 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15712
15713         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15714         redefine if SHARED.
15715         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15716
15717         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15718         wide char related routines to wcsmbs subdir.
15719
15720 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15721
15722         [BZ #13344]
15723         * misc/sys/cdefs.h (__THROWNL): Define.
15724         * posix/unistd.h: Use __THREADNL instead of __THREAD
15725         for memory synchronization functions.
15726
15727 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15728
15729         [BZ #13349]
15730         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15731         doesn't exist.
15732         * manual/stdio.texi (Obstack Streams): Node removed.
15733
15734 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15735
15736         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15737         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15738         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15739
15740         * math/math_private.h (math_force_eval): Allow non-addressable
15741         arguments.
15742         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15743
15744 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15745
15746         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15747         file is not needed.
15748
15749         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15750         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15751         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15752         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15753         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15754         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15755         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15756         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15757         Add AVX variants.
15758         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15759         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15760         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15761         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15762         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15763         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15764         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15765         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15766         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15767         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15768         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15769         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15770         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15771         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15772         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15773         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15774         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15775         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15776         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15777
15778         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15779         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15780
15781         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15782         place.  Use VEX encoding when compiling for AVX.
15783
15784 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15785
15786         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15787         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15788
15789         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15790
15791 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15792
15793         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15794         useless if() expression.
15795         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15796         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15797         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15798         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15799         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15800         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15801         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15802         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15803         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15804         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15805         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15806         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15807         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15808         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15809         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15810         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15811         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15812         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15813         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15814
15815         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15816
15817 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15818
15819         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15820         condition.
15821         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15822
15823 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15824
15825         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15826         .text section.  Avoid duplicate constants.
15827         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15828         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15829         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15830         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15831         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15832         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15833         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15834         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15835         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15836         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15837         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15838         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15839         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15840         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15841         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15842         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15843         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15844         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15845         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15846         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15847         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15848         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15849         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15850         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15851         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15852         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15853         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15854         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15855         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15856         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15857         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15858         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15859         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15860         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15861         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15862         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15863         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15864         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15865         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15866         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15867         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15868         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15869         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15870         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15871         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15872
15873 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15874
15875         * sysdeps/x86_64/dla.h: Move to ...
15876         * sysdeps/x86_64/fpu/dla.h: ...here.
15877         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15878         situations.  Use __builtin_fma only for gcc 4.6 and up.
15879
15880         * config.make.in: Add have-mfma4 entry.
15881         * configure.in: Substitute libc_cv_cc_fma4.
15882         * math/Makefile (dbl-only-routines): Add sincostab.
15883         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15884         Use __sincostab not sincos.
15885         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15886         name is a macro.
15887         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15888         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15889         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15890         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15891         using __copysign.
15892         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15893         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15894         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15895         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15896         and __inv.
15897         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15898         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15899         __copysign.
15900         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15901         define aliases when function name is a macro.
15902         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15903         sysdeps/ieee754/dbl-64/sincos.tbl.
15904         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15905         fma4-enabled routines.
15906         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15907         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15908         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15909         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15910         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15911         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15912         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15913         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15914         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15915         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15916         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15917         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15918         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15919         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15920         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15921         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15922         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15923         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15924         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15925         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15926         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15927         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15928         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15929         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15930         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15931         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15932         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15933         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15934         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15935         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15936
15937         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15938         rename.
15939         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15940         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15941         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15942         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15943         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15944         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15945         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15946         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15947
15948 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15949
15950         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15951
15952 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15953
15954         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15955
15956         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15957         prediction.
15958         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15959
15960         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15961         Remove unused variable magic_bits.
15962         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15963
15964         * string/strnlen.c: Define and use STRNLEN macro.
15965         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15966         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15967         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15968         * wcsmbs/wcslen.c: Define and use WCSLEN.
15969         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15970         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15971         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15972         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15973         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15974         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15975         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15976
15977 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15978
15979         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15980         strnlen-sse2-no-bsf.
15981         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15982         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15983         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15984         Add strnlen support.
15985         (USE_AS_STRNLEN): New macro.
15986         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15987         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15988         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15989         * sysdeps/x86_64/wcslen.S: New file.
15990
15991 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15992
15993         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15994         XMM-moves are used for copying on small sizes.
15995
15996 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15997
15998         * wcsmbs/Makefile (strop-tests): Add wcschr.
15999         * wcsmbs/test-wcschr.c: New file.
16000         * string/test-strchr.c: Update.
16001         Add wcschr support.
16002         (WIDE): New macro.
16003
16004 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16005
16006         * wcsmbs/Makefile (strop-tests): Add wcslen.
16007         * wcsmbs/test-wcslen.c: New file.
16008         * string/test-strlen.c: Update.
16009         Add wcslen support.
16010         (WIDE): New macro.
16011
16012 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16013
16014         * po/it.po: Update from translation team.
16015
16016 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16017
16018         * sysdeps/x86_64/wcscmp.S: Update.
16019         Fix wrong comparison semantics.
16020         wcscmp shall use signed comparison not unsigned.
16021         Don't use substraction to avoid overflow bug.
16022         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16023         * wcsmbc/wcscmp.c: Likewise.
16024         * string/test-strcmp.c: Likewise.
16025         Add new tests to check cases with negative values.
16026
16027 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16028
16029         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16030         * sysdeps/x86_64/dla.h: ...here.  New file.
16031         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16032         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16033         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16034         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16035         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16036         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16037         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16038         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16039         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16040
16041 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16042
16043         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16044         __ynl_finite aliases.
16045
16046 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16047
16048         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16049
16050         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16051         define DLA_FMA.
16052         [DLA_FMA] (EMULV): Use DLA_FMA.
16053         [DLA_FMA] (MUL12): Use EMULV.
16054         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16055         that are not needed.
16056         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16057         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16058         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16059         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16060         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16061         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16062         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16063
16064 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16065
16066         * math/s_nan.c: Undef __nan.
16067         * math/s_nanf.c: Undef __nanf.
16068         * math/s_nanl.c: Undef __nanl.
16069         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16070         "math_private.h".
16071
16072 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16073
16074         * math/s_catan.c: Add branch predictions.
16075         * math/s_catanf.c: Likewise.
16076         * math/s_catanh.c: Likewise.
16077         * math/s_catanhf.c: Likewise.
16078         * math/s_catanhl.c: Likewise.
16079         * math/s_catanl.c: Likewise.
16080         * math/s_cexp.c: Likewise.
16081         * math/s_cexpf.c: Likewise.
16082         * math/s_cexpl.c: Likewise.
16083         * math/s_clog.c: Likewise.
16084         * math/s_clog10.c: Likewise.
16085         * math/s_clog10f.c: Likewise.
16086         * math/s_clog10l.c: Likewise.
16087         * math/s_clogf.c: Likewise.
16088         * math/s_clogl.c: Likewise.
16089         * math/s_csqrt.c: Likewise.
16090         * math/s_csqrtf.c: Likewise.
16091         * math/s_csqrtl.c: Likewise.
16092         * math/s_ctanf.c: Likewise.
16093         * math/s_ctanh.c: Likewise.
16094         * math/s_ctanhf.c: Likewise.
16095         * math/s_ctanhl.c: Likewise.
16096         * math/s_ctanl.c: Likewise.
16097
16098         * math/math_private.h: Define __nan, __nanf, __nanl.
16099         * math/s_cacosh.c: Include <math_private.h>.
16100         * math/s_cacoshl.c: Likewise.
16101         * math/s_casinh.c: Likewise.
16102         * math/s_casinhf.c: Likewise.
16103         * math/s_casinhl.c: Likewise.
16104         * math/s_ccos.c: Rely entire on ccosh.
16105         * math/s_ccosf.c: Rely entire on ccoshf.
16106         * math/s_ccosl.c: Rely entirely on ccoshl.
16107         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16108         Remove tests for FE_INVALID.
16109         * math/s_ccoshf.c: Likewise.
16110         * math/s_ccoshl.c: Likewise.
16111         * math/s_csin.c: Likewise.
16112         * math/s_csinf.c: Likewise.
16113         * math/s_csinh.c Likewise.
16114         * math/s_csinhf.c: Likewise.
16115         * math/s_csinhl.c: Likewise.
16116         * math/s_csinl.c: Likewise.
16117         * math/s_ctan.c: Likewise.
16118         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16119         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16120         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16121
16122 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16123
16124         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16125         compilation problems.
16126
16127         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16128         __builtin_expect.
16129
16130 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16131
16132         * sysdeps/i386/configure.in: Test for -mfma4 option.
16133         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16134         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16135         COMMON_CPUID_INDEX_80000001.
16136         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16137         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16138         use it if FMA3 is not supported.
16139         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16140
16141         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16142         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16143
16144 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16145
16146         [BZ #12892]
16147         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16148         it would create a cycle with a link time dependency.
16149
16150 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16151
16152         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16153         instruction.
16154         * string/Makefile (strop-tests): Add rawmemchr.
16155         * string/test-rawmemchr.c: New file.
16156
16157         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16158         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16159         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16160         when compiling str{,n}casecmp and when AVX is available.  Hook up
16161         new optimized code in initializers.
16162
16163 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16164
16165         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16166         __feraiseexcept instead of feraiseexcept.
16167
16168 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16169
16170         * math/math_private.h: Define defaults for libc_fetestexcept and
16171         libc_feupdateenv.
16172         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16173         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16174         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16175         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16176         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16177         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16178         libc_fetestexcept and libc_feupdateenv.
16179
16180         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16181         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16182         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16183         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16184         libc_feholdexcept_setround.
16185
16186         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16187         Add s_nearbyint-c and s_nearbyintf-c.
16188         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16189         nearbyintf inlines.
16190         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16191         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16192         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16193         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16194
16195         * math/math_private.h: Define defaults for libc_fegetround,
16196         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16197         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16198         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16199         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16200         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16201         standard functions.
16202         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16203         Remove comments and hacks for old compiler versions.
16204         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16205         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16206         libc_feholdexceptl.
16207
16208 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16209
16210         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16211         (__feraiseexcept_renamed): Add __NTH.
16212         (feraiseexcept): Add __NTH.  Rename local variables to fix
16213         namespace violations.
16214
16215 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16216
16217         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16218
16219         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16220
16221         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16222         recently added interfaces.
16223         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16224
16225         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16226         about macro parameter expansion.
16227
16228         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16229         __NO_MATH_INLINES is defined.  Cleanups.
16230
16231         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16232         and __floorf is target has SSE4.1.
16233         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16234         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16235         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16236         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16237
16238         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16239         name.
16240         (floorf): Likewise.
16241
16242         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16243
16244 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16245
16246         * misc/sys/cdefs.h: Fix last change.
16247
16248         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16249         database lookup.
16250
16251 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16252
16253         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16254
16255         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16256         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16257         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16258         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16259         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16260         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16261         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16262         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16263         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16264         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16265         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16266         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16267         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16268         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16269         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16270         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16271         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16272         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16273         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16274         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16275         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16276         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16277
16278         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16279         ceil, ceilf, floor, floorf.
16280
16281         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16282         Perform IRELATIVE relocations last.
16283
16284         * elf/do-rel.h: Add another parameter nrelative, replacing the
16285         local variable with the same name.  Change name of the function
16286         to end in Rel or Rela (uppercase).
16287         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16288         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16289         elf_dynamic_do_##reloc function.
16290
16291 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16292
16293         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16294         is sufficient, at least on modern CPUs.
16295
16296         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16297
16298         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16299         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16300
16301         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16302         __expl_finite.
16303         * math/bits/math-finite.h: Add entries for exp.
16304         * math/e_expl.c: Add __*_finite alias.
16305         * sysdeps/i386/fpu/e_exp.S: Likewise.
16306         * sysdeps/i386/fpu/e_expf.S: Likewise.
16307         * sysdeps/i386/fpu/e_expl.c: Likewise.
16308         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16309         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16310         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16311         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16312         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
16313         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16314         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16315
16316         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
16317         is sufficient, at least on modern CPUs.
16318
16319         * ctype/ctype-info.c (__ctype_init): Define.
16320         * include/ctype.h (__ctype_init): Declare.
16321         (__ctype_b_loc): The variable is always initialized.
16322         (__ctype_toupper_loc): Likewise.
16323         (__ctype_tolower_loc): Likewise.
16324         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
16325         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
16326
16327 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
16328
16329         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
16330
16331         * configure.in: Also look in $cxxmachine/include for C++ system
16332         headers.
16333
16334 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16335
16336         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
16337         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
16338         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
16339         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
16340         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
16341         (USE_AS_WMEMCMP): New macro.
16342         Fixing indents.
16343         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
16344         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
16345         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
16346         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
16347         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16348         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
16349         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
16350         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
16351         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
16352         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
16353         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
16354         (USE_AS_WMEMCMP): New macro.
16355         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
16356         * sysdeps/string/test-memcmp.c: Update.
16357         Fix simple_wmemcmp.
16358         Add new tests.
16359         * wcsmbs/wmemcmp.c: Update.
16360         (WMEMCMP): New macro.
16361         Fix overflow bug.
16362
16363 2011-10-12  Andreas Jaeger  <aj@suse.de>
16364
16365         [BZ #13268]
16366         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
16367
16368 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16369
16370         * libio/iofwide.c (do_length): Avoid warning.
16371
16372         * ctype/ctype.h (__isctype_f): Add missing __THROW.
16373
16374 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
16375
16376         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
16377
16378         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
16379         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
16380         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
16381         * sysdeps/i386/i686/fpu/e_log.S: New file.
16382         * sysdeps/i386/i686/fpu/e_logf.S: New file.
16383         * sysdeps/i386/i686/fpu/e_logl.S: New file.
16384
16385         * ctype/ctype.h: Add support for inlined isXXX functions when
16386         compiling C++ code.
16387
16388 2011-10-14  Andreas Schwab  <schwab@redhat.com>
16389
16390         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16391
16392         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
16393
16394 2011-10-13  Roland McGrath  <roland@hack.frob.com>
16395
16396         [BZ #13291]
16397         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
16398
16399 2011-10-13  Andreas Schwab  <schwab@redhat.com>
16400
16401         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
16402         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
16403         feraiseexcept.
16404
16405         * sysdeps/x86_64/memrchr.S: Check for zero size.
16406
16407         * string/stratcliff.c: Add memrchr tests.
16408
16409 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16410
16411         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16412         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
16413         rawmemchr-sse2 rawmemchr-sse2-bsf.
16414         * sysdeps/i386/i686/multiarch/memchr.S: New file.
16415         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
16416         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
16417         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
16418         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
16419         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
16420         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
16421         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
16422         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
16423         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
16424         * string/memrchr.c (MEMRCHR): New macro.
16425
16426 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
16427
16428         Add integration with gcc's -ffinite-math-only and optimize wrapper
16429         functions in libm.
16430         * Versions.def: Define GLIBC_2.15 version for libm.
16431         * math/Makefile (headers): Add bits/math-finite.h.
16432         * math/bits/math-finite.h: New file.
16433         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
16434         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
16435         * math/e_acoshl.c: Add __*_finite alias.
16436         * math/e_acosl.c: Likewise.
16437         * math/e_asinl.c: Likewise.
16438         * math/e_atan2l.c: Likewise.
16439         * math/e_atanhl.c: Likewise.
16440         * math/e_coshl.c: Likewise.
16441         * math/e_exp10.c: Likewise.
16442         * math/e_exp10f.c: Likewise.
16443         * math/e_exp10l.c: Likewise.
16444         * math/e_exp2l.c: Likewise.
16445         * math/e_fmodl.c: Likewise.
16446         * math/e_gammal_r.c: Likewise.
16447         * math/e_hypotl.c: Likewise.
16448         * math/e_j0l.c: Likewise.
16449         * math/e_j1l.c: Likewise.
16450         * math/e_jnl.c: Likewise.
16451         * math/e_lgammal_r.c: Likewise.
16452         * math/e_log10l.c: Likewise.
16453         * math/e_log2l.c: Likewise.
16454         * math/e_logl.c: Likewise.
16455         * math/e_powl.c: Likewise.
16456         * math/e_sinhl.c: Likewise.
16457         * math/e_sqrtl.c: Likewise.
16458         * math/e_scalb.c: Completely rewritten and optimized.
16459         * math/e_scalbf.c: Likewise.
16460         * math/e_scalbl.c: Likewise.
16461         * math/w_acos.c: Likewise.
16462         * math/w_acosf.c: Likewise.
16463         * math/w_acosl.c: Likewise.
16464         * math/w_acosh.c: Likewise.
16465         * math/w_acoshf.c: Likewise.
16466         * math/w_acoshl.c: Likewise.
16467         * math/w_asin.c: Likewise.
16468         * math/w_asinf.c: Likewise.
16469         * math/w_asinl.c: Likewise.
16470         * math/w_atan2.c: Likewise.
16471         * math/w_atan2f.c: Likewise.
16472         * math/w_atan2l.c: Likewise.
16473         * math/w_atanh.c: Likewise.
16474         * math/w_atanhf.c: Likewise.
16475         * math/w_atanhl.c: Likewise.
16476         * math/w_exp10.c: Likewise.
16477         * math/w_exp10f.c: Likewise.
16478         * math/w_exp10l.c: Likewise.
16479         * math/w_fmod.c: Likewise.
16480         * math/w_fmodf.c: Likewise.
16481         * math/w_fmodl.c: Likewise.
16482         * math/w_j0.c: Likewise.
16483         * math/w_j0f.c: Likewise.
16484         * math/w_j0l.c: Likewise.
16485         * math/w_j1.c: Likewise.
16486         * math/w_j1f.c: Likewise.
16487         * math/w_j1l.c: Likewise.
16488         * math/w_jn.c: Likewise.
16489         * math/w_jnf.c: Likewise.
16490         * math/w_log.c: Likewise.
16491         * math/w_logf.c: Likewise.
16492         * math/w_logl.c: Likewise.
16493         * math/w_log10.c: Likewise.
16494         * math/w_log10f.c: Likewise.
16495         * math/w_log10l.c: Likewise.
16496         * math/w_log2.c: Likewise.
16497         * math/w_log2f.c: Likewise.
16498         * math/w_log2l.c: Likewise.
16499         * math/w_pow.c: Likewise.
16500         * math/w_powf.c: Likewise.
16501         * math/w_powl.c: Likewise.
16502         * math/w_remainder.c: Likewise.
16503         * math/w_remainderf.c: Likewise.
16504         * math/w_remainderl.c: Likewise.
16505         * math/w_scalb.c: Likewise.
16506         * math/w_scalbf.c: Likewise.
16507         * math/w_scalbl.c: Likewise.
16508         * math/w_sqrt.c: Likewise.
16509         * math/w_sqrtf.c: Likewise.
16510         * math/w_sqrtl.c: Likewise.
16511         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
16512         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
16513         used.
16514         * math/math_private.h: Declare __kernel_standard_f.
16515         * math/w_cosh.c: Remove cruft and optimize a bit.
16516         * math/w_coshf.c: Likewise.
16517         * math/w_coshl.c: Likewise.
16518         * math/w_exp2.c: Likewise.
16519         * math/w_exp2f.c: Likewise.
16520         * math/w_exp2l.c: Likewise.
16521         * math/w_hypot.c: Likewise.
16522         * math/w_hypotf.c: Likewise.
16523         * math/w_hypotl.c: Likewise.
16524         * math/w_lgamma.c: Likewise.
16525         * math/w_lgamma_r.c: Likewise.
16526         * math/w_lgammaf.c: Likewise.
16527         * math/w_lgammaf_r.c: Likewise.
16528         * math/w_lgammal.c: Likewise.
16529         * math/w_lgammal_r.c: Likewise.
16530         * math/w_sinh.c: Likewise.
16531         * math/w_sinhf.c: Likewise.
16532         * math/w_sinhl.c: Likewise.
16533         * math/w_tgamma.c: Likewise.
16534         * math/w_tgammaf.c: Likewise.
16535         * math/w_tgammal.c: Likewise.
16536         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16537         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16538         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
16539         Minor optimizations.  Pretty printing.  Remove cruft.
16540         * sysdeps/i386/fpu/e_acosf.S: Likewise.
16541         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16542         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16543         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16544         * sysdeps/i386/fpu/e_acosl.c: Likewise.
16545         * sysdeps/i386/fpu/e_asin.S: Likewise.
16546         * sysdeps/i386/fpu/e_asinf.S: Likewise.
16547         * sysdeps/i386/fpu/e_atan2.S: Likewise.
16548         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
16549         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
16550         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16551         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16552         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16553         * sysdeps/i386/fpu/e_exp10.S: Likewise.
16554         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
16555         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
16556         * sysdeps/i386/fpu/e_exp2.S: Likewise.
16557         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
16558         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
16559         * sysdeps/i386/fpu/e_fmod.S: Likewise.
16560         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
16561         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
16562         * sysdeps/i386/fpu/e_hypot.S: Likewise.
16563         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
16564         * sysdeps/i386/fpu/e_log.S: Likewise.
16565         * sysdeps/i386/fpu/e_log10.S: Likewise.
16566         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16567         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16568         * sysdeps/i386/fpu/e_log2.S: Likewise.
16569         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16570         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16571         * sysdeps/i386/fpu/e_logf.S: Likewise.
16572         * sysdeps/i386/fpu/e_logl.S: Likewise.
16573         * sysdeps/i386/fpu/e_pow.S: Likewise.
16574         * sysdeps/i386/fpu/e_powf.S: Likewise.
16575         * sysdeps/i386/fpu/e_powl.S: Likewise.
16576         * sysdeps/i386/fpu/e_remainder.S: Likewise.
16577         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
16578         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
16579         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16580         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16581         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16582         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
16583         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
16584         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
16585         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
16586         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16587         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16588         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16589         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16590         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
16591         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16592         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16593         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16594         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16595         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16596         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16597         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16598         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
16599         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
16600         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16601         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16602         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16603         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16604         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16605         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16606         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16607         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16608         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16609         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16610         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16611         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16612         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16613         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16614         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16615         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16616         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16617         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16618         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16619         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16620         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16621         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16622         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16623         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16624         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16625         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16626         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16627         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16628         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16629         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16630         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16631         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16632         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16633         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16634         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16635         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16636         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16637         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16638         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16639         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16640         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16641         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16642         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16643         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16644         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16645         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16646         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16647         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16648         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16649         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16650         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16651         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16652         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16653         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
16654         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16655         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16656         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16657         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16658         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16659         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16660         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16661         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
16662         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16663         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16664         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16665         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16666         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16667         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
16668         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16669         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16670         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16671         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16672         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16673         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16674         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16675         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16676         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16677         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16678         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
16679         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16680         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16681         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16682         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
16683         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
16684         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
16685         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
16686         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
16687         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
16688         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
16689         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16690         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16691         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16692         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16693         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16694         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16695         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16696         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16697         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16698         (__isnanf): Likewise.
16699         (__isinf_ns): Likewise.
16700         (__isinf_nsf): Likewise.
16701         (__finite): Likewise.
16702         (__finitef): Likewise.
16703         (__ieee754_sqrt): Define as macro.
16704         (__ieee754_sqrtf): Define as macro.
16705         (__ieee754_sqrtl): Define as macro.
16706         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16707         inlined copy.
16708         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16709         __FINITE_MATH_ONLY__ consistent.
16710         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16711
16712 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16713
16714         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16715         of rawmemchr.
16716
16717         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16718
16719 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16720
16721         * po/ja.po: Update from translation team.
16722
16723 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16724
16725         * locale/programs/locarchive.c (prepare_address_space): New function.
16726         (create_archive, enlarge_archive, open_archive): Use it.
16727
16728         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16729         inside [SHARED], where it is used.
16730
16731         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16732
16733         * nss/getent.c (netgroup_keys): Remove unused variable.
16734         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16735
16736 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16737
16738         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16739         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16740         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16741         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16742         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16743         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16744         * math/Makefile (libm-calls): Add s_isinf_ns.
16745         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16746         * math/multc3.c: Likewise.
16747         * math/s_casin.c: Likewise.
16748         * math/s_casinf.c: Likewise.
16749         * math/s_casinl.c: Likewise.
16750         * math/s_ccos.c: Likewise.
16751         * math/s_ccosf.c: Likewise.
16752         * math/s_ccosl.c: Likewise.
16753         * math/s_ctan.c: Likewise.
16754         * math/s_ctanf.c: Likewise.
16755         * math/s_ctanh.c: Likewise.
16756         * math/s_ctanhf.c: Likewise.
16757         * math/s_ctanhl.c: Likewise.
16758         * math/s_ctanl.c: Likewise.
16759         * math/w_fmod.c: Likewise.
16760         * math/w_fmodf.c: Likewise.
16761         * math/w_fmodl.c: Likewise.
16762         * math/w_remainder.c: Likewise.
16763         * math/w_remainderf.c: Likewise.
16764         * math/w_remainderl.c: Likewise.
16765         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16766         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16767         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16768         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16769         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16770         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16771         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16772         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16773
16774         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16775         of the number.
16776         * stdio-common/printf_fphex.c: Likewise.
16777         * stdio-common/printf_size.c: Likewise.
16778
16779         * math/e_exp10.c: Include math_private.h using <...> not "...".
16780         * math/e_exp10f.c: Likewise.
16781         * math/e_exp10l.c: Likewise.
16782         * math/e_exp2l.c: Likewise.
16783         * math/e_j0l.c: Likewise.
16784         * math/e_j1l.c: Likewise.
16785         * math/e_jnl.c: Likewise.
16786         * math/e_lgammal_r.c: Likewise.
16787         * math/e_rem_pio2l.c: Likewise.
16788         * math/e_scalb.c: Likewise.
16789         * math/e_scalbf.c: Likewise.
16790         * math/e_scalbl.c: Likewise.
16791         * math/k_cosl.c: Likewise.
16792         * math/k_sinl.c: Likewise.
16793         * math/k_tanl.c: Likewise.
16794         * math/s_cacoshf.c: Likewise.
16795         * math/s_catan.c: Likewise.
16796         * math/s_catanf.c: Likewise.
16797         * math/s_catanh.c: Likewise.
16798         * math/s_catanhf.c: Likewise.
16799         * math/s_catanhl.c: Likewise.
16800         * math/s_catanl.c: Likewise.
16801         * math/s_ccosh.c: Likewise.
16802         * math/s_ccoshf.c: Likewise.
16803         * math/s_ccoshl.c: Likewise.
16804         * math/s_cexp.c: Likewise.
16805         * math/s_cexpf.c: Likewise.
16806         * math/s_cexpl.c: Likewise.
16807         * math/s_clog.c: Likewise.
16808         * math/s_clog10.c: Likewise.
16809         * math/s_clog10f.c: Likewise.
16810         * math/s_clog10l.c: Likewise.
16811         * math/s_clogf.c: Likewise.
16812         * math/s_clogl.c: Likewise.
16813         * math/s_csin.c: Likewise.
16814         * math/s_csinf.c: Likewise.
16815         * math/s_csinh.c: Likewise.
16816         * math/s_csinhf.c: Likewise.
16817         * math/s_csinhl.c: Likewise.
16818         * math/s_csinl.c: Likewise.
16819         * math/s_csqrt.c: Likewise.
16820         * math/s_csqrtf.c: Likewise.
16821         * math/s_csqrtl.c: Likewise.
16822         * math/s_ctan.c: Likewise.
16823         * math/s_ctanf.c: Likewise.
16824         * math/s_ctanh.c: Likewise.
16825         * math/s_ctanhf.c: Likewise.
16826         * math/s_ctanhl.c: Likewise.
16827         * math/s_ctanl.c: Likewise.
16828         * math/s_ldexp.c: Likewise.
16829         * math/s_ldexpf.c: Likewise.
16830         * math/s_ldexpl.c: Likewise.
16831         * math/s_significand.c: Likewise.
16832         * math/s_significandf.c: Likewise.
16833         * math/s_significandl.c: Likewise.
16834         * math/w_acos.c: Likewise.
16835         * math/w_acosf.c: Likewise.
16836         * math/w_acosh.c: Likewise.
16837         * math/w_acoshf.c: Likewise.
16838         * math/w_acoshl.c: Likewise.
16839         * math/w_acosl.c: Likewise.
16840         * math/w_asin.c: Likewise.
16841         * math/w_asinf.c: Likewise.
16842         * math/w_asinl.c: Likewise.
16843         * math/w_atan2.c: Likewise.
16844         * math/w_atan2f.c: Likewise.
16845         * math/w_atan2l.c: Likewise.
16846         * math/w_atanh.c: Likewise.
16847         * math/w_atanhf.c: Likewise.
16848         * math/w_atanhl.c: Likewise.
16849         * math/w_cosh.c: Likewise.
16850         * math/w_coshf.c: Likewise.
16851         * math/w_coshl.c: Likewise.
16852         * math/w_dremf.c: Likewise.
16853         * math/w_exp10.c: Likewise.
16854         * math/w_exp10f.c: Likewise.
16855         * math/w_exp10l.c: Likewise.
16856         * math/w_exp2.c: Likewise.
16857         * math/w_exp2f.c: Likewise.
16858         * math/w_fmod.c: Likewise.
16859         * math/w_fmodf.c: Likewise.
16860         * math/w_fmodl.c: Likewise.
16861         * math/w_hypot.c: Likewise.
16862         * math/w_hypotf.c: Likewise.
16863         * math/w_hypotl.c: Likewise.
16864         * math/w_j0.c: Likewise.
16865         * math/w_j0f.c: Likewise.
16866         * math/w_j0l.c: Likewise.
16867         * math/w_j1.c: Likewise.
16868         * math/w_j1f.c: Likewise.
16869         * math/w_j1l.c: Likewise.
16870         * math/w_jn.c: Likewise.
16871         * math/w_jnf.c: Likewise.
16872         * math/w_jnl.c: Likewise.
16873         * math/w_lgamma.c: Likewise.
16874         * math/w_lgamma_r.c: Likewise.
16875         * math/w_lgammaf.c: Likewise.
16876         * math/w_lgammaf_r.c: Likewise.
16877         * math/w_lgammal.c: Likewise.
16878         * math/w_lgammal_r.c: Likewise.
16879         * math/w_log.c: Likewise.
16880         * math/w_log10.c: Likewise.
16881         * math/w_log10f.c: Likewise.
16882         * math/w_log10l.c: Likewise.
16883         * math/w_log2.c: Likewise.
16884         * math/w_log2f.c: Likewise.
16885         * math/w_log2l.c: Likewise.
16886         * math/w_logf.c: Likewise.
16887         * math/w_logl.c: Likewise.
16888         * math/w_pow.c: Likewise.
16889         * math/w_powf.c: Likewise.
16890         * math/w_powl.c: Likewise.
16891         * math/w_remainder.c: Likewise.
16892         * math/w_remainderf.c: Likewise.
16893         * math/w_remainderl.c: Likewise.
16894         * math/w_scalb.c: Likewise.
16895         * math/w_scalbf.c: Likewise.
16896         * math/w_scalbl.c: Likewise.
16897         * math/w_sinh.c: Likewise.
16898         * math/w_sinhf.c: Likewise.
16899         * math/w_sinhl.c: Likewise.
16900         * math/w_sqrt.c: Likewise.
16901         * math/w_sqrtf.c: Likewise.
16902         * math/w_sqrtl.c: Likewise.
16903         * math/w_tgamma.c: Likewise.
16904         * math/w_tgammaf.c: Likewise.
16905         * math/w_tgammal.c: Likewise.
16906
16907         * po/ja.po: Update from translation team.
16908
16909 2011-09-29  Andreas Jaeger  <aj@suse.de>
16910
16911         [BZ #13179]
16912         * sunrpc/netname.c (netname2host): Fix logic.
16913
16914         [BZ #6779]
16915         [BZ #6783]
16916         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16917         correctly.
16918         * math/w_remainder.c (__remainder): Likewise.
16919         * math/w_remainderf.c (__remainderf): Likewise.
16920         * math/libm-test.inc (remainder_test): Add test cases.
16921
16922 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16923
16924         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16925         sdiv_qrnnd.
16926
16927 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16928
16929         * string/test-memcmp.c: Avoid unncessary #defines.
16930         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16931
16932 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16933
16934         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16935         Use new sse2 version for core i3 - i7 as it's faster
16936         than sse42 version.
16937         (bit_Prefer_PMINUB_for_stringop): New.
16938         * sysdeps/x86_64/rawmemchr.S: Update.
16939         Replace with faster SSE2 version.
16940         * sysdeps/x86_64/memrchr.S: New file.
16941         * sysdeps/x86_64/memchr.S: Update.
16942         Replace with faster SSE2 version.
16943
16944 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16945
16946         * elf/dl-load.c (lose): Add cast to avoid warning.
16947
16948 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16949
16950         * po/ca.po: Update from translation team.
16951
16952         * inet/getnetgrent_r.c: Hook up nscd.
16953         * nscd/Makefile (routines): Add nscd_netgroup.
16954         (nscd-modules): Add netgroupcache.
16955         (CFLAGS-netgroupcache.c): Define.
16956         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16957         (cache_search): Add const to second parameter.
16958         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16959         INNETGR.
16960         (dbs): Add netgrdb entry.
16961         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16962         (verify_persistent_db): Handle netgrdb.
16963         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16964         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16965         GETFDNETGR.
16966         (netgroup_response_header): Define.
16967         (innetgroup_response_header): Define.
16968         (datahead): Add netgroup_response_header and innetgroup_response_header
16969         elements.
16970         * nscd/nscd.conf: Add entries for netgroup cache.
16971         * nscd/nscd.h (dbtype): Add netgrdb.
16972         (_PATH_NSCD_NETGROUP_DB): Define.
16973         (netgroup_iov_disabled): Declare.
16974         (xmalloc, xcalloc, xrealloc): Move declarations here.
16975         (cache_search): Adjust prototype.
16976         Add netgroup-related prototypes.
16977         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16978         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16979         (__nscd_innetgr): Declare.
16980         * nscd/selinux.c (perms): Use access_vector_t as element type and
16981         add netgroup-related initializers.
16982         * nscd/netgroupcache.c: New file.
16983         * nscd/nscd_netgroup.c: New file.
16984         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16985         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16986         For four parameters use innetgr.
16987         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16988         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16989         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16990         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16991
16992         * nscd/connections.c (register_traced_file): Don't register file
16993         for disabled databases.
16994
16995 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16996
16997         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16998
16999         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17000         from tree and freeing node.
17001
17002 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17003
17004         * nss/nsswitch.c (__nss_database_lookup): Handle
17005         nss_parse_service_list out of memory case.
17006
17007 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17008
17009         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17010         out of memory case.
17011
17012 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17013
17014         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17015         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17016         pass it down.
17017         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17018         elf_machine_rela, elf_machine_lazy_rel.
17019         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17020         (ELF_DYNAMIC_DO_REL): Likewise.
17021         (ELF_DYNAMIC_DO_RELA): Likewise.
17022         (ELF_DYNAMIC_RELOCATE): Likewise.
17023         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17024         to ELF_DYNAMIC_DO_REL.
17025         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17026         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17027         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17028         elf_machine_rela.
17029         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17030         skip_ifunc, don't call ifunc function if non-zero.
17031         (elf_machine_rela): Likewise.
17032         (elf_machine_lazy_rel): Likewise.
17033         (elf_machine_lazy_rela): Likewise.
17034         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17035         (elf_machine_lazy_rel): Likewise.
17036         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17037         Likewise.
17038         (elf_machine_lazy_rel): Likewise.
17039         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17040         Likewise.
17041         (elf_machine_lazy_rel): Likewise.
17042         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17043         (elf_machine_lazy_rel): Likewise.
17044         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17045         (elf_machine_lazy_rel): Likewise.
17046         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17047         (elf_machine_lazy_rel): Likewise.
17048         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17049         (elf_machine_lazy_rel): Likewise.
17050         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17051         (elf_machine_lazy_rel): Likewise.
17052         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17053         (elf_machine_lazy_rel): Likewise.
17054
17055 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17056
17057         * nss/nss_files/files-init.c (_nss_files_init): Use static
17058         initialization for all the *_traced_file variables.
17059
17060 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17061
17062         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17063
17064 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17065
17066         [BZ #13226]
17067         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17068
17069 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17070
17071         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17072         Reread the line before reparsing it.
17073
17074 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17075
17076         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17077
17078 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17079             Maxim Kuvyrkov  <maxim@codesourcery.com>
17080             Joseph Myers  <joseph@codesourcery.com>
17081
17082         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17083         if needed for __stack_chk_guard.
17084
17085 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17086
17087         * sysdeps/posix/spawni.c (script_execute): Always define it.
17088         It will be optimized away if unused.
17089         (maybe_script_execute): New function.
17090         (__spawni): Call it.
17091
17092         * Makerules: Don't include tls.make.
17093         (config-tls): Always set to thread.
17094         * tls.make.c: File removed.
17095
17096 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17097
17098         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17099         * config.make.in (CPPFLAGS-config): New substituted variable.
17100
17101 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17102
17103         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17104
17105         [BZ #13192]
17106         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17107         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17108
17109 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17110
17111         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17112         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17113         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17114         (CALL_FAIL): Likewise.
17115         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17116         (CALL_FAIL): Macro removed.
17117         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17118
17119 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17120
17121         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17122         for __FINITE_MATH_ONLY__ == 1.
17123
17124 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17125
17126         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17127         __ieee754_sqrt instead of sqrt.
17128         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17129         __ieee754_sqrtf instead of sqrtf.
17130         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17131         __floorf instead of floorf.
17132         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17133         __floorf, __truncf instead of floorf, truncf.
17134
17135 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17136
17137         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17138
17139         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17140         __extern_always_inline.
17141         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17142         32-bit.
17143
17144 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17145
17146         * elf/rtld.c (dl_main): Also relocate in dependency order when
17147         doing symbol dependency testing.
17148
17149 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17150
17151         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17152         Always define `refsym'.
17153
17154 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17155
17156         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17157         (__FD_ELT): Renamed from __FDELT.
17158         * misc/bits/select2.h (__FD_ELT): Likewise.
17159         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17160         __FD_MASK instead of __FDELT, __FDMASK.
17161         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17162         Likewise.
17163         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17164         Likewise.
17165
17166         * elf/Makefile (gen-ldd): Fix pattern.
17167
17168         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17169         (init_tls): Likewise.
17170
17171 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17172
17173         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17174
17175 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17176
17177         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17178         `struct cmsghdr *' instead of `void *'.
17179         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17180         Likewise.
17181
17182 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17183
17184         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17185         if non-absolute.
17186         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17187         ldd_rewrite_script.
17188
17189 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17190
17191         * configure.in: Remove --with-tls option.
17192         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17193         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17194         out in case it is missing.
17195         * sysdeps/ia64/elf/configure.in: Likewise.
17196         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17197         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17198         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17199         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17200         * sysdeps/sh/elf/configure.in: Likewise.
17201         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17202         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17203         * sysdeps/x86_64/elf/configure.in: Likewise.
17204         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17205         * sysdeps/mach/hurd/tls.h: Likewise.
17206
17207         [BZ #13067]
17208         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17209
17210         [BZ #13090]
17211         * configure.in: Fix use of AC_INIT.
17212
17213         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17214
17215 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17216
17217         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17218         __set_errno.
17219         * malloc/hooks.c: Likewise.
17220
17221         [BZ #11929]
17222         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17223         variables statically.
17224         (narenas): Initialize.
17225         (list_lock): Initialize.
17226         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17227         initializtion of main_arena and list_lock.  Small cleanups.
17228         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17229         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17230         Add initializers to main_arena and mp_.
17231         (malloc_state): Remove pagesize member.  Change all users to use
17232         GLRO(dl_pagesize).
17233
17234         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17235         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17236         is always initialized.
17237
17238         * malloc/malloc.c: Removed unused configurations and dead code.
17239         * malloc/arena.c: Likewise.
17240         * malloc/hooks.c: Likewise.
17241         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17242
17243         * include/tls.h: Removed.  USE___THREAD must always be defined.
17244         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17245         * elf/dl-libc.c: Likewise.
17246         * elf/dl-tsd.c: Likewise.
17247         * include/errno.h: Likewise.
17248         * include/netdb.h: Likewise.
17249         * include/resolv.h: Likewise.
17250         * inet/herrno-loc.c: Likewise.
17251         * inet/herrno.c: Likewise.
17252         * malloc/arena.c: Likewise.
17253         * malloc/hooks.c: Likewise.
17254         * malloc/malloc.c: Likewise.
17255         * resolv/res-state.c: Likewise.
17256         * resolv/res_libc.c: Likewise.
17257         * sysdeps/i386/dl-machine.h: Likewise.
17258         * sysdeps/ia64/dl-machine.h: Likewise.
17259         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17260         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17261         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17262         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17263         * sysdeps/sh/dl-machine.h: Likewise.
17264         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17265         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17266         * sysdeps/unix/i386/sysdep.S: Likewise.
17267         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17268         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17269         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17270         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17271         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17272         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17273         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17274         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17275         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17276         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17277         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17278         * sysdeps/x86_64/dl-machine.h: Likewise.
17279         * tls.make.c: Likewise.
17280
17281         * configure.in: Remove --with-__thread option.  Make tests for
17282         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17283         tls_model attribute fail if no support is available.  Remove
17284         USE_IN_LIBIO.
17285         * Makeconfig: Adjust for dropped configure option.  All features are
17286         now mandatory.
17287         * Makerules: Likewise.
17288         * Versions.def: Likewise.
17289         * argp/argp-fmtstream.c: Likewise.
17290         * argp/argp-fmtstream.h: Likewise.
17291         * argp/argp-help.c: Likewise.
17292         * assert/assert.c: Likewise.
17293         * config.h.in: Likewise.
17294         * config.make.in: Likewise.
17295         * configure: Likewise.
17296         * configure.in: Likewise.
17297         * csu/Versions: Likewise.
17298         * csu/init.c: Likewise.
17299         * elf/tst-audit2.c: Likewise.
17300         * elf/tst-tls10.c: Likewise.
17301         * elf/tst-tls10.h: Likewise.
17302         * elf/tst-tls11.c: Likewise.
17303         * elf/tst-tls12.c: Likewise.
17304         * elf/tst-tls14.c: Likewise.
17305         * elf/tst-tlsmod11.c: Likewise.
17306         * elf/tst-tlsmod12.c: Likewise.
17307         * elf/tst-tlsmod13.c: Likewise.
17308         * elf/tst-tlsmod13a.c: Likewise.
17309         * elf/tst-tlsmod14a.c: Likewise.
17310         * elf/tst-tlsmod15b.c: Likewise.
17311         * elf/tst-tlsmod16a.c: Likewise.
17312         * elf/tst-tlsmod16b.c: Likewise.
17313         * elf/tst-tlsmod7.c: Likewise.
17314         * elf/tst-tlsmod8.c: Likewise.
17315         * elf/tst-tlsmod9.c: Likewise.
17316         * gmon/gmon.c: Likewise.
17317         * grp/fgetgrent_r.c: Likewise.
17318         * grp/putgrent.c: Likewise.
17319         * hurd/fopenport.c: Likewise.
17320         * include/libc-symbols.h: Likewise.
17321         * include/tls.h: Likewise.
17322         * intl/gettextP.h: Likewise.
17323         * intl/loadinfo.h: Likewise.
17324         * locale/global-locale.c: Likewise.
17325         * locale/localeinfo.h: Likewise.
17326         * mach/devstream.c: Likewise.
17327         * malloc/arena.c: Likewise.
17328         * malloc/set-freeres.c: Likewise.
17329         * misc/err.c: Likewise.
17330         * misc/getttyent.c: Likewise.
17331         * misc/mntent_r.c: Likewise.
17332         * posix/getopt.c: Likewise.
17333         * posix/wordexp.c: Likewise.
17334         * pwd/fgetpwent_r.c: Likewise.
17335         * resolv/Versions: Likewise.
17336         * resolv/res_hconf.c: Likewise.
17337         * shadow/fgetspent_r.c: Likewise.
17338         * shadow/putspent.c: Likewise.
17339         * stdio-common/printf_fphex.c: Likewise.
17340         * stdio-common/tmpfile.c: Likewise.
17341         * stdlib/abort.c: Likewise.
17342         * stdlib/fmtmsg.c: Likewise.
17343         * sunrpc/auth_unix.c: Likewise.
17344         * sunrpc/clnt_perr.c: Likewise.
17345         * sunrpc/clnt_tcp.c: Likewise.
17346         * sunrpc/clnt_udp.c: Likewise.
17347         * sunrpc/clnt_unix.c: Likewise.
17348         * sunrpc/openchild.c: Likewise.
17349         * sunrpc/svc_simple.c: Likewise.
17350         * sunrpc/svc_tcp.c: Likewise.
17351         * sunrpc/svc_udp.c: Likewise.
17352         * sunrpc/svc_unix.c: Likewise.
17353         * sunrpc/xdr.c: Likewise.
17354         * sunrpc/xdr_array.c: Likewise.
17355         * sunrpc/xdr_rec.c: Likewise.
17356         * sunrpc/xdr_ref.c: Likewise.
17357         * sunrpc/xdr_stdio.c: Likewise.
17358
17359 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17360
17361         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17362
17363 2011-07-03  Andreas Jaeger  <aj@suse.de>
17364
17365         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
17366         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
17367         regenerate with gen-libm-tests.pl.
17368
17369 2010-05-12  Petr Baudis  <pasky@suse.cz>
17370
17371         [BZ #11589]
17372         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
17373         around j0() zero points by switching to j1().
17374         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17375         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17376         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17377         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17378
17379 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17380
17381         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
17382         instead of 0.
17383         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
17384         instead of 0.                              .
17385         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17386         Patch in part by Pavel Roskin <proski@gnu.org>.
17387
17388         [BZ #13138]
17389         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
17390         realloc.
17391         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
17392         Free memory block if necessary.
17393
17394         [BZ #12847]
17395         * libio/genops.c (INTDEF): For string streams the _lock pointer can
17396         be NULL.  Don't lock in this case.
17397
17398 2011-09-09  Roland McGrath  <roland@hack.frob.com>
17399
17400         * elf/elf.h (ELFOSABI_GNU): New macro.
17401         (ELFOSABI_LINUX): Define to that.
17402
17403 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
17404
17405         * string/strncat.c (strncat): Undef the symbol in case it has been
17406         defined in bits/string.h.
17407
17408 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17409
17410         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
17411
17412         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
17413         link map.
17414
17415 2011-08-17  Andreas Jaeger  <aj@suse.de>
17416
17417         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
17418
17419 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
17420             Ian Lance Taylor  <iant@google.com>
17421
17422         * math/libm-test.inc (lround_test): New testcase.
17423         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
17424
17425 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
17426
17427         * Makefile: Remove support for automatic cvs check-ins.
17428         * Makerules: Likewise.
17429         * config.make.in: Likewise.
17430         * configure.in: Likewise.
17431         * intl/Makefile: Likewise.
17432         * locale/Makefile: Likewise.
17433         * po/Makefile: Likewise.
17434         * posix/Makefile: Likewise.
17435         * sysdeps/gnu/Makefile: Likewise.
17436         * sysdeps/mach/hurd/Makefile: Likewise.
17437         * sysdeps/sparc/sparc32/Makefile: Likewise.
17438
17439         [BZ #13118]
17440         * posix/Makefile (bug-regex32-ENV): Define.
17441         Patch by John Stanley <jpsinthemix@verizon.net>.
17442
17443         * misc/Makefile (headers): Add bits/select2.h.
17444         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
17445         * misc/bits/select2.h: New file.
17446         * include/bits/select2.h: New file.
17447         * debug/Makefile (routines): Add fdelt_chk.
17448         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
17449         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
17450         FD_ISSET.
17451         * debug/fdelt_chk.c: New file.
17452
17453         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
17454         * wcsmbs/test-wmemcmp.c: Likewise.
17455         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
17456         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
17457
17458 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17459
17460         * string/Makefile (strop-tests): Add memcmp.
17461         * string/test-wmemcmp.c: New file.
17462         * string/test-memcmp.c: Add wmemcmp support.
17463
17464 2011-09-08  Roland McGrath  <roland@hack.frob.com>
17465
17466         [BZ #13153]
17467         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
17468         2011-07-19 change.
17469
17470         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
17471         garbage value in a __mach_port_mod_refs call in the cases of the
17472         task-self and thread-self ports.
17473
17474 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17475
17476         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
17477
17478 2011-09-08  Andreas Schwab  <schwab@redhat.com>
17479
17480         * elf/dl-load.c (lose): Check for non-null L.
17481
17482 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17483
17484         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
17485
17486         * elf/dl-libc.c (dlerror_run): Pass back error code from
17487         dl_catch_error.
17488
17489         [BZ #13123]
17490         * elf/dl-load.c (lose): Free l_origin if it is valid.
17491
17492         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
17493         names.
17494         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
17495         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17496         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17497         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17498         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
17499         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
17500
17501 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17502
17503         * sysdeps/powerpc/fpu/e_hypot.c: New file.
17504         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
17505         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
17506         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
17507         * sysdeps/powerpc/fpu/k_cosf.c: New file.
17508         * sysdeps/powerpc/fpu/k_sinf.c: New file.
17509         * sysdeps/powerpc/fpu/s_cosf.c: New file.
17510         * sysdeps/powerpc/fpu/s_sinf.c: New file.
17511         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
17512         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
17513
17514 2011-08-15  Alan Modra  <amodra@gmail.com>
17515
17516         [BZ #13092]
17517         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
17518         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
17519         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
17520         ppc_mcount to static-only-routines.
17521         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
17522         __mcount_internal.
17523         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
17524         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
17525
17526 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
17527
17528         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
17529         for finite and infinity parameters.
17530
17531 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
17532
17533         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
17534         and add nop instructions for throughput optimization.
17535         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17536
17537 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
17538
17539         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
17540         aligned copy for power7 with vector-scalar instructions.
17541         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
17542
17543 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
17544
17545         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
17546         AVX check.
17547
17548 2011-09-07  Andreas Schwab  <schwab@redhat.com>
17549
17550         [BZ #13144]
17551         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
17552         last change.
17553
17554 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17555
17556         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17557         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
17558         syscall wrapper around clock_gettime in __vdso_clock_gettime.
17559         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
17560         clock_gettime.
17561
17562 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17563
17564         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
17565         Forgot to demangle the pointer.
17566
17567         * sysdeps/i386/sysdep.h: Define atom_text_section.
17568         * sysdeps/x86_64/sysdep.h: Likewise.
17569         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
17570         section with atom_text_section.
17571         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17572         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17573         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
17574         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17575         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
17576
17577         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
17578         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
17579         already be defined.  Change to take two parameters and don't assign
17580         result to variable.  Adjust all users.
17581         Define INTERNAL_GETTIME if not already defined.
17582         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
17583         call.
17584         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
17585         HAVE_CLOCK_GETTIME_VSYSCALL.
17586         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
17587
17588         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
17589         gettimeofday vsyscall, just use time.
17590
17591 2011-09-06  Andreas Schwab  <schwab@redhat.com>
17592
17593         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
17594         <errno.h>.
17595
17596 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17597
17598         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
17599         syscall on x86-64.
17600         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
17601         syscall.
17602         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17603         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
17604         syscall if possible.
17605
17606 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17607
17608         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
17609         e_ident.  Don't pass to find_mapsXX.
17610         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
17611
17612 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17613
17614         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17615         strchr-sse2-no-bsf strrchr-sse2-no-bsf
17616         * sysdeps/x86_64/multiarch/strchr.S: Update.
17617         Check bit_slow_BSF bit.
17618         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17619         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
17620         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
17621
17622 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17623
17624         [BZ #13134]
17625         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
17626         before glibc 2.15.
17627         (tryshell): Define.
17628         (__spawni): Change last parameter to be flag.  Test
17629         SPAWN_XFLAGS_USE_PATH flag to use path or not.
17630         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
17631         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
17632         * posix/spawni.c: Likewise.
17633         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
17634         * posix/spawnp.c: Likewise.  Change normal version to use
17635         SPAWN_XFLAGS_USE_PATH.
17636         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
17637         SPAWN_XFLAGS_TRY_SHELL.
17638
17639         [BZ #13150]
17640         * posix/glob.h: Remove gcc 1.x support.
17641
17642         [BZ #13068]
17643         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
17644
17645 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17646
17647         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17648         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
17649         strrchr-sse2-bsf
17650         * sysdeps/i386/i686/multiarch/strchr.S: New file.
17651         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
17652         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
17653         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
17654         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
17655         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
17656
17657 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17658
17659         * sysdeps/x86_64/wcscmp.S: New file.
17660
17661         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
17662         wcscmp-c wcscmp-sse2
17663         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
17664         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
17665         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
17666         * wcsmbs/wcscmp.c: Allow renaming.
17667
17668 2011-09-05  David S. Miller  <davem@davemloft.net>
17669
17670         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
17671         stack slot, rather than the struct return pointer slot.
17672         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
17673         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
17674         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
17675         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
17676
17677 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17678
17679         * po/ja.po: Update from translation team.
17680
17681         [BZ #13144]
17682         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
17683         kernel in 64-bit binaries.
17684
17685 2011-09-01  David S. Miller  <davem@davemloft.net>
17686
17687         * elf/elf.h (HWCAP_SPARC_*): Move to..
17688         * sysdeps/sparc/sysdep.h: this new file and add new values.
17689         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
17690         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
17691         _DL_HWCAP_COUNT to 24.
17692         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17693         entries.
17694         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17695         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17696         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17697         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17698         instead of magic constants.
17699         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17700
17701 2011-08-31  David S. Miller  <davem@davemloft.net>
17702
17703         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17704         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17705         Reimplement to do errno handling inline.
17706         (SYSCALL_ERROR_HANDLER): New macro.
17707         (__SYSCALL_STRING): Do not do errno handling in asm.
17708         (__CLONE_SYSCALL_STRING): Delete.
17709         (__INTERNAL_SYSCALL_STRING): Delete.
17710         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17711         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17712         (PSEUDO): Reimplement to do errno handling inline.
17713         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17714         (SYSCALL_ERROR_HANDLER): New macro.
17715         (__SYSCALL_STRING): Do not do errno handling in asm.
17716         (__CLONE_SYSCALL_STRING): Delete.
17717         (__INTERNAL_SYSCALL_STRING): Delete.
17718         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17719         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17720         i386.
17721         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17722         (inline_syscall*): Add 'err' argument.
17723         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17724         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17725         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17726         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17727
17728         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17729         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17730
17731 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17732
17733         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17734
17735 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17736
17737         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17738         directive.
17739
17740 2011-08-24  David S. Miller  <davem@davemloft.net>
17741
17742         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17743
17744 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17745
17746         * elf/Makefile: Add rules to build and run unload8 test.
17747         * elf/unload8.c: New file.
17748         * elf/unload8mod1.c: New file.
17749         * elf/unload8mod1x.c: New file.
17750         * elf/unload8mod2.c: New file.
17751         * elf/unload8mod3.c: New file.
17752
17753         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17754         it wasn't used.
17755
17756 2011-08-23  David S. Miller  <davem@davemloft.net>
17757
17758         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17759         subtract stack bias.
17760         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17761         %sp not %fp in calculations.
17762         (_JMPBUF_UNWINDS_ADJ): Likewise.
17763
17764         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17765         (aio_suspend): Call it to force an exception region around the
17766         AIO_MISC_WAIT() invocation.
17767
17768 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17769
17770         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17771         backslash.
17772
17773 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17774
17775         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17776         protection macro.
17777         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17778         and <dl-machine.h>.
17779         (Elf64_FuncDesc): Remove.
17780
17781 2011-08-22  David S. Miller  <davem@davemloft.net>
17782
17783         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17784         sigaltstack check, add missing cfi directives.
17785         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17786         missing cfi directives, and sigaltstack handling.
17787
17788 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17789
17790         [BZ #11724]
17791         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17792         object is seen twice.
17793         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17794
17795         * elf/Makefile (distribute): Add tst-initorder2.c.
17796         (tests): Add tst-initorder2.
17797         (modules-names): Add tst-initorder2a tst-initorder2b
17798         tst-initorder2c tst-initorder2d.  Add rules to build them.
17799         ($(objpfx)tst-initorder2.out): New rule.
17800         * elf/tst-initorder2.c: New file.
17801         * elf/tst-initorder2.exp: New file.
17802
17803 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17804
17805         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17806
17807         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17808         dependencies back to end of function.
17809
17810         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17811         $(elfobjdir)/ld.so.
17812
17813 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17814
17815         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17816         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17817         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17818         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17819         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17820         of __vdso_gettimeofday.
17821         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17822         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17823         attribute_hidden.
17824         (_libc_vdso_platform_setup): Remove initialization of
17825         __vdso_gettimeofday and __vdso_time.
17826
17827 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17828
17829         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17830         and fgetc_unlocked.
17831         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17832         getc_unlocked.
17833
17834         * elf/dl-open.c (add_to_global): Report additions to the global scope
17835         for LD_DEBUG=scopes.
17836         (dl_open_worker): Also print scope of newly loaded dependencies.
17837         (_dl_show_scope): Indicate if there is no scope.
17838
17839         [BZ #13114]
17840         * stdio-common/Makefile (tests): Add bug24.
17841         * stdio-common/bug24.c: New file.
17842
17843 2011-08-19  Andreas Jaeger  <aj@suse.de>
17844
17845         [BZ #13114]
17846         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17847         non-existant file when using close-on-exec mode.
17848
17849 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17850
17851         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17852         the very first instruction.
17853
17854         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17855         the CFI state in the end.
17856         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17857         inclusion of dl-trampoline.h.
17858         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17859
17860 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17861
17862         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17863         expectations for long double.
17864
17865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17866         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17867
17868 2011-08-14  David S. Miller  <davem@davemloft.net>
17869
17870         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17871         artificual limit depends upon the system page size.
17872
17873 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17874
17875         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17876         * resolv/Makefile: Define CFLAGS-libresolv.
17877
17878 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17879
17880         * nss/makedb.c (compute_tables): Make variables used in nested
17881         function static.
17882
17883 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17884
17885         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17886         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17887         if buffer was too small.
17888
17889         * elf/pldd.c (main): Attach to all threads in the process.
17890         Rewrite /proc handling to use *at functions.
17891
17892 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17893
17894         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17895         specifies first scope to show.
17896         (dl_open_worker): Update callers.  Move printing scope of new
17897         object to before the relocation.
17898         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17899         * sysdeps/generic/ldsodefs.h: Update declaration.
17900
17901         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17902         string for the scope number.
17903
17904 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17905
17906         * nscd/servicescache.c (cache_addserv): Make sure written is always
17907         initialized.
17908
17909 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17910
17911         * sysdeps/i386/i486/bits/atomic.h
17912         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17913         statement expression, so as to suppress "set but not used" warning.
17914         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17915
17916         * string/strncat.c (STRNCAT): Use prototype definition.
17917
17918         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17919         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17920         -Iprograms here.
17921         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17922         (localedef-modules): Add localedef.
17923         (locale-modules): Add locale.
17924
17925         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17926         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17927         to avoid a warning.
17928
17929 2011-08-14  David S. Miller  <davem@davemloft.net>
17930
17931         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17932         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17933
17934 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17935
17936         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17937         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17938         * elf/rtld.c (dl_main): Set l_name of vDSO.
17939         Call _dl_show_scope when DL_DEBUG_SCOPES.
17940         (process_dl_debug): Recognize scopes flag and also set it for all.
17941         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17942         Declare _dl_show_scope.
17943
17944         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17945         (do_dlopen): Pass caller_dlopen to dl_open.
17946         (__libc_dlopen_mode): Initialize caller_dlopen.
17947
17948         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17949         of libc.  Make tolower call locale-independent.  Optimize a bit by
17950         using isdigit instead of isalnum.
17951         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17952
17953 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17954
17955         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17956         was a dependency or dynamically loaded.
17957
17958 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17959
17960         * intl/l10nflist.c: Allow architecture-specific pop function.
17961         * sysdeps/x86_64/l10nflist.c: New file.
17962
17963         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17964         classification.
17965
17966 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17967
17968         * include/dirent.h: Add libc_hidden_proto for scandirat and
17969         scandirat64.  Don't declare __scandirat64.
17970         * dirent/scandirat.c: Add libc_hidden_def.
17971         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17972         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17973
17974 2011-08-10  David S. Miller  <davem@davemloft.net>
17975
17976         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17977         enum.
17978         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17979         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17980         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17981
17982 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17983
17984         * Versions.def [libc]: Add GLIBC_2.15.
17985         * dirent/Makefile (routines): Add scandirat and scandirat64.
17986         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17987         GLIBC_2.15.
17988         * dirent/dirent.h: Declare scandirat and scandirat64.
17989         * dirent/scandirat.c: New file.
17990         * dirent/scandirat64.c: New file.
17991         * sysdeps/wordsize-64/scandirat.c: New file.
17992         * sysdeps/wordsize-64/scandirat64.c: New file.
17993         * dirent/opendir.c: Define opendirat.
17994         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17995         using scandirat.
17996         * dirent/scandir64.c: Adjust for scandir.c change.
17997         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17998         __scandirat64, and __scandir_cancel_handler.
17999         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18000         additional parameter and use openat instead of open (outside of ld.so).
18001         Add new __opendir as wrapper around __opendirat.
18002         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18003         here without requiring old scandirat implementation.
18004
18005 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18006
18007         * dirent/scandir.c (cancel_handler): Renamed to
18008         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18009         defined.  Adjust users.
18010         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18011         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18012
18013 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18014
18015         * string/test-string.h (IMPL): Use __STRING to expand name and then
18016         stringify it.
18017
18018         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18019         of cleanups.
18020
18021 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18022
18023         * string/Makefile: Update.
18024         (strop-tests): Append strncat.
18025         * string/test-wcscmp.c: New file.
18026         New comprehensive test for wcscmp.
18027         * string/test-strcmp.c: Update.
18028         (WIDE): New define.
18029
18030 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18031
18032         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18033         line.
18034
18035 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18036
18037         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18038         encoding to ACE if AI_IDN.
18039
18040 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18041
18042         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18043         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18044
18045 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18046
18047         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18048         Fix overflow bug in strncat.
18049         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18050
18051         * string/test-strncat.c: Update.
18052         Add new tests for checking overflow bugs.
18053
18054 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18055
18056         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18057         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18058         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18059         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18060         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18061         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18062         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18063         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18064         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18065
18066         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18067         (USE_AS_STRCAT): Define.
18068         Add strcat and strncat support.
18069         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18070
18071 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18072
18073         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18074         __n bigger than INT_MAX+1.
18075         (__strncmp_g): Likewise.
18076
18077 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18078
18079         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18080         * libio/stido.h: Likewise.
18081
18082         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18083         (AF_NFC): Define.
18084         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18085         (AF_NFC): Define.
18086
18087         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18088         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18089         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18090         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18091         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18092
18093         [BZ #13021]
18094         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18095         installed.
18096
18097         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18098         typo.
18099         (_dl_x86_64_save_sse): Likewise.
18100
18101 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18102
18103         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18104         OSXSAVE.
18105         (_dl_x86_64_save_sse): Likewise.
18106
18107         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18108
18109         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18110
18111 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18112
18113         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18114         change.
18115         (_dl_x86_64_save_sse): Use correct AVX check.
18116
18117 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18118
18119         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18120         bug in strncpy/strncat.
18121         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18122
18123 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18124
18125         * string/tester.c (test_strcat): Add tests for different alignments
18126         of source and destination.
18127         (test_strncat): Likewise.
18128
18129 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18130
18131         [BZ #12852]
18132         * posix/glob.c (glob): Check passed in values before using them in
18133         expressions to avoid some overflows.
18134         (glob_in_dir): Likewise.
18135
18136         [BZ #13007]
18137         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18138         check for AVX enablement so that we don't crash with old kernels and
18139         new hardware.
18140         * elf/tst-audit4.c: Add same checks here.
18141         * elf/tst-audit6.c: Likewise.
18142
18143         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18144
18145 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18146
18147         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18148
18149 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18150
18151         * po/cs.po: Update from translation team.
18152         * po/bg.po: Likewise.
18153
18154 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18155
18156         * misc/sys/cdefs.h: Add support for const attribute.
18157         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18158         to gnu_dev_{major,minor,makedev} functions.
18159
18160 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18161
18162         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18163
18164 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18165
18166         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18167         strlen results.
18168
18169 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18170
18171         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18172         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18173         register in order to avoid conflicts with the soft frame pointer
18174         being held in r11 when necessary.
18175         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18176         (INTERNAL_VSYSCALL_NCS): Likewise.
18177
18178 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18179
18180         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18181         * elf/dl-fini.c (_dl_fini): Adjust caller.
18182         * elf/dl-close.c (_dl_close_worker): Likewise.
18183         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18184
18185 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18186
18187         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18188         "aux_cache->nlibs < 0".
18189
18190         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18191         in the reload-count case.
18192
18193 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18194
18195         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18196         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18197         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18198         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18199         * sysdeps/x86_64/multiarch/strcat.S: New file.
18200         * sysdeps/x86_64/multiarch/strncat.S: New file.
18201         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18202         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18203         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18204         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18205         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18206         (USE_AS_STRCAT): Define.
18207         Add strcat and strncat support.
18208         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18209         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18210         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18211         * string/strncat.c: Update.
18212         (USE_AS_STRNCAT): Define.
18213         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18214         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18215         and i7.
18216         * sysdeps/x86_64/multiarch/init-arch.h
18217         (bit_Prefer_PMINUB_for_stringop): New.
18218         (index_Prefer_PMINUB_for_stringop): Likewise.
18219         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18220         bit_Prefer_PMINUB_for_stringop.
18221
18222 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18223
18224         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18225         buffer64.
18226         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18227         of casting of buffer.
18228         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18229         buffer32 and buffer64.
18230         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18231         writes instead of casting of buffer.
18232         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18233         buffer32.
18234         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18235         casting of buffer.
18236
18237 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18238
18239         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18240
18241 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18242
18243         * nscd/nscd.c (termination_handler): Don't do anything for a database
18244         if it has not yet been initialized.
18245
18246 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18247
18248         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18249
18250 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18251
18252         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18253
18254 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18255
18256         * po/nl.po: Update from translation team.
18257         * po/sv.po: Likewise.
18258
18259 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18260
18261         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18262         now disallowed by GCC.
18263
18264         * configure.in (use-default-link): Default to yes if a test -shared
18265         link meets our qualifications.
18266         * configure: Regenerated.
18267
18268         * config.make.in (output-format): New variable.
18269         * configure.in: Check for ld --print-output-format support.
18270         * configure: Regenerated.
18271         * Makerules ($(common-objpfx)format.lds)
18272         [$(output-format) != unknown]: Just use $(output-format),
18273         instead of the linker-script munging.
18274
18275 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18276
18277         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18278         of $(common-objpfx)shlib.lds.
18279         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18280
18281         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18282         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18283
18284         * configure.in (-z relro check): Adjust test code to add a large
18285         writable data section after it.
18286         * configure: Regenerated.
18287
18288 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18289
18290         * configure.in (-z relro check): Fix test code to make the variable
18291         truly const.
18292         * configure: Regenerated.
18293
18294 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18295
18296         * nscd/nscd.h (struct traced_file): Define.
18297         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18298         elements.  Add traced_files.
18299         (inotify_fd): Declare.
18300         (register_traced_file): Declare.
18301         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18302         (inotify_fd): Export.
18303         (resolv_conf_descr): Remove.
18304         (nscd_init): Move inotify descriptor creation to main.
18305         Don't register files for notification here.
18306         (register_traced_file): New function.
18307         (invalidate_cache): Don't use reset_res to determine whether to call
18308         res_init, go through the list of registered files.
18309         (main_loop_poll): The inotify descriptors are now stored in the
18310         structures for the traced files.
18311         (main_loop_epoll): Likewise
18312         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
18313         to __nss_disable_nscd.
18314         * nscd/cache.c (prune_cache): There is no single inotify descriptor
18315         for a database anymore.  Check the records for all the registered
18316         files instead.
18317         * nss/Makefile (libnss_files-routines): Add files-init.
18318         (libnss_db-routines): Add db-init.
18319         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
18320         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
18321         * nss/nss_db/db-init.c: New file.
18322         * nss/nss_files/files-init.c: New file.
18323         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
18324         __nss_lookup_function.
18325         (__nss_lookup_function): Call nss_load_library.
18326         (nss_load_all_libraries): New function.
18327         (__nss_disable_nscd): Take parameter with callback function for files
18328         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
18329         used for the cached services.
18330         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
18331         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
18332         options for features to all the files in nscd.
18333
18334         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
18335
18336 2011-07-10  Roland McGrath  <roland@hack.frob.com>
18337
18338         * csu/elf-init.c (__libc_csu_init): Comment typo.
18339
18340 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
18341
18342         * po/pl.po: Update from translation team.
18343         * po/ja.po: Likewise.
18344         * po/ru.po: Likewise.
18345         * po/ko.po: Likewise.
18346         * po/fr.po: Likewise.
18347
18348 2011-07-09  Roland McGrath  <roland@hack.frob.com>
18349
18350         * configure.in (.ctors/.dtors header and trailer check):
18351         Use an empirical test on a built program.
18352         * configure: Regenerated.
18353
18354         * configure.in (-z relro check): Use an empirical test on a built DSO.
18355         Detect, but do not require, on ia64.
18356         * configure: Regenerated.
18357
18358         * configure.in (READELF): Find it with AC_CHECK_TOOL.
18359         Update tests that use readelf to use $READELF instead.
18360         * configure: Regenerated.
18361
18362 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
18363
18364         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
18365         if the result is not used.
18366
18367 2011-07-05  Andreas Jaeger  <aj@suse.de>
18368
18369         [BZ#9696]
18370         * stdlib/tst-strtod.c: Add testcase.
18371
18372 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
18373
18374         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
18375         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
18376         The latter has a higher limit.  Take additional parameter to pass to
18377         the new function.
18378         (__pathconf): Pass file to __statfs_link_max.
18379         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
18380         __statfs_link_max.
18381         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
18382         __statfs_link_max.
18383
18384         [BZ #12868]
18385         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
18386         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18387         Handle Lustre.
18388         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
18389         (__statfs_filesize_max): Likewise.
18390         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
18391
18392 2011-07-05  Andreas Jaeger  <aj@suse.de>
18393
18394         * resolv/res_comp.c (dn_skipname): Remove unused variable.
18395
18396 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
18397
18398         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
18399         `status' variable.
18400         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
18401         Likewise.
18402
18403 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
18404
18405         * Makefile (strop-tests): Add strncat.
18406         * string/test-strncat.c: New file.
18407
18408 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
18409
18410         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
18411
18412 2011-06-21  Andreas Jaeger  <aj@suse.de>
18413
18414         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
18415         Copy rule from iconvdata/Makefile.
18416
18417 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18418
18419         [BZ #12922]
18420         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
18421         but no long options are defined, just return 'W'.
18422
18423 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
18424
18425         [BZ #9696]
18426         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
18427
18428 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18429
18430         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
18431         netgroups to read.
18432         (innetgr): Likewise.
18433
18434 2011-07-05  Roland McGrath  <roland@hack.frob.com>
18435
18436         * config.make.in (install_root): Default to $(DESTDIR).
18437
18438 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
18439
18440         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
18441
18442 2011-07-02  Roland McGrath  <roland@hack.frob.com>
18443
18444         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
18445
18446         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
18447         containing directory rather than embedding absolute directory names.
18448
18449         * scripts/check-local-headers.sh: Rewritten using awk.
18450         Match by word, not by line.  Print error messages for matches.
18451         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
18452
18453         * Makerules [shlib-lds-flags empty]:
18454         ($(common-objpfx)libc_pic.opts): New target.
18455         ($(common-objpfx)libc_pic.os.clean): New target.
18456         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
18457
18458         * config.make.in (OBJCOPY): New variable.
18459         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
18460         * configure: Regenerated.
18461
18462         * config.make.in (use-default-link): New variable.
18463         * configure.in (use_default_link): Grok --with-default-link to set it.
18464         * configure: Regenerated.
18465         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
18466         (shlib-lds, shlib-lds-flags): Define to empty.
18467
18468         * Makerules (shlib-lds): New variable.
18469         (shlib-lds-flags): New variable.
18470         (build-shlib, build-moduile, build-module-asneeded): Use it.
18471         ($(common-objpfx)libc.so): Use $(shlib-lds).
18472         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
18473         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
18474
18475         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
18476         DT_FLAGS/DT_FLAGS_1 with zero flags.
18477
18478         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
18479         linker script munging.
18480
18481 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
18482
18483         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
18484         as 128-bit value.
18485         * crypt/sha512.c (sha512_process_block): Perform total addition using
18486         128-bit if possible.
18487         (__sha512_finish_ctx): Likewise.
18488         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
18489         as 64-bit value.
18490         * crypt/sha256.c (SWAP64): Define.
18491         (sha256_process_block): Perform total addition using 64-bit if
18492         possible.
18493         (__sha256_finish_ctx): Likewise.
18494
18495 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
18496
18497         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
18498         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18499         * nscd/hstcache.c (cache_addhst): Likewise.
18500         * nscd/grpcache.c (cache_addgr): Likewise.
18501         * nscd/aicache.c (addhstaiX): Likewise
18502         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
18503
18504 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
18505
18506         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
18507         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18508         * nscd/hstcache.c (cache_addhst): Likewise.
18509         * nscd/grpcache.c (cache_addgr): Likewise.
18510         * nscd/aicache.c (addhstaiX): Likewise
18511
18512 2011-07-01  Andreas Schwab  <schwab@redhat.com>
18513
18514         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
18515         domain only when needed.
18516
18517 2011-06-30  Andreas Schwab  <schwab@redhat.com>
18518
18519         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
18520         is always restored.
18521
18522 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
18523
18524         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
18525         are re-adding the entry.
18526         * nscd/servicescache.c (cache_addserv): Likewise.
18527
18528 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
18529
18530         * sysdeps/generic/dl-irel.h: fix protection against multiple
18531         inclusions.
18532         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
18533
18534 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
18535
18536         [BZ #12935]
18537         * malloc/memusage.sh: Fix quoting in message.
18538         * debug/xtrace.sh: Likewise.
18539
18540         * configure.in: Remove support for --experimental-malloc option, make
18541         it the default.
18542         * config.make.in: Likewise.
18543         * malloc/Makefile: Likewise.
18544
18545 2011-06-27  Andreas Schwab  <schwab@redhat.com>
18546
18547         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
18548         two-byte characters.
18549
18550 2011-06-27  Roland McGrath  <roland@hack.frob.com>
18551
18552         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
18553         AC_CACHE_CHECK invocation.
18554         * configure: Regenerated.
18555
18556         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
18557
18558 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
18559
18560         [BZ #12350]
18561         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
18562         bit from old_res_options.
18563
18564         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
18565
18566         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
18567         value type for setfct.
18568
18569 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18570
18571         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18572         __gettimeofday instead of gettimeofday.
18573
18574 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
18575
18576         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
18577
18578 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18579
18580         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
18581
18582         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
18583         info.
18584
18585 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18586
18587         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18588         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18589         strcpy-sse2-unaligned strncpy-sse2-unaligned
18590         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
18591         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
18592         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
18593         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
18594         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
18595         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
18596         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
18597         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
18598         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
18599         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
18600         (STRCPY): Support SSE2 and SSSE3 versions.
18601
18602 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
18603
18604         [BZ #12874]
18605         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
18606         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
18607         kernels which artificially limit size of requests.
18608
18609 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18610
18611         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18612         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18613         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
18614         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
18615         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
18616         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
18617         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
18618         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
18619         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
18620         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
18621         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
18622         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
18623         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
18624         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
18625         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
18626         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18627         Enable unaligned load optimization for Intel Core i3, i5 and i7
18628         processors.
18629         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
18630         Define.
18631         (index_Fast_Unaligned_Load): Define.
18632         (HAS_FAST_UNALIGNED_LOAD): Define.
18633
18634 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
18635
18636         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
18637
18638 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18639
18640         [BZ #12907]
18641         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
18642         until it is clear that the information is realy needed.
18643         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
18644
18645 2011-06-22  Andreas Schwab  <schwab@redhat.com>
18646
18647         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
18648
18649 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18650
18651         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18652         /sys/devices/system/cpu/online if it is usable.
18653
18654         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
18655         reading the information from the /proc filesystem to once a second.
18656
18657 2011-06-21  Andreas Jaeger  <aj@suse.de>
18658
18659         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
18660         NULL after inclusion of kernel headers.
18661
18662 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
18663
18664         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
18665         calls to internal_setent.
18666
18667         [BZ #12885]
18668         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
18669         addresses using gethostbyname4_r ignore IPv4 addresses.
18670
18671         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
18672         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
18673
18674         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
18675
18676 2011-06-20  David S. Miller  <davem@davemloft.net>
18677
18678         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
18679         inclusions.
18680         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
18681
18682         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
18683         (elf_irel): Use it.
18684         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
18685         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
18686         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
18687         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
18688         * sysdeps/x86_64/dl-irel.h: Likewise.
18689
18690         * elf/dl-runtime.c: Use elf_ifunc_invoke.
18691         * elf/dl-sym.c: Likewise.
18692
18693 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18694
18695         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18696         need to dereference resplen2.
18697
18698 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18699
18700         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18701
18702 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18703
18704         * Makeconfig: Define vardbdir and inst_vardbdir.
18705         * nss/Makefile: Add rules to install db-Makefile.
18706
18707         * nss/nss_db/db-XXX.c: Cleanup.
18708
18709         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18710         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18711         GLIBC_PRIVATE.
18712         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18713         * nss/makedb.c: Implement -g option to specify that value strings
18714         are generated and should not be added to table iterated over for
18715         get*ent calls.
18716         * nss/nss_db/db-initgroups.c: New file.
18717
18718         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18719         interface.
18720
18721         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18722         (internal_getgrouplist): Adjust to name change.
18723         Update use_initgroups_entry if this is not the first call.
18724         * nss/databases.def: Add initgroups entry.
18725
18726         * nss/makedb.c (compute_tables): Check result of multiple hash table
18727         sizes to minimize maximum chain length.
18728
18729 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18730
18731         * Versions.def: Add entry for libnss_db.
18732         * shlib-versions: Likewise.
18733         * nss/Makefile: Add rules to build libnss_db.
18734         * nss/Versions: Add libnss_db information.  Organize libnss_files
18735         entries better.
18736         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18737         makedb progra.  Some minor improvements to generate smaller files.
18738         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18739         here from...
18740         * nss/makedb.c: ...here.
18741         Improve database format to be smaller and require less memory at
18742         runtime.
18743         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18744         db anymore.
18745         * nss/nss_db/db-netgrp.c: Likewise.
18746         * nss/nss_db/db-open.c: Likewise.
18747         * nss/nss_files/flies-XXX.x: Adjust comments.
18748         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18749         * nss/nss_files/files-grp.c: Likewise.
18750         * nss/nss_files/files-hosts.c: Likewise.
18751         * nss/nss_files/files-network.c: Likewise.
18752         * nss/nss_files/files-proto.c: Likewise.
18753         * nss/nss_files/files-pwd.c: Likewise.
18754         * nss/nss_files/files-rpc.c: Likewise.
18755         * nss/nss_files/files-service.c: Likewise.
18756         * nss/nss_files/files-sgrp.c: Likewise.
18757         * nss/nss_files/files-spwd.c: Likewise.
18758         * nss/nss_db/db-alias.c: Removed.
18759         * nss/nss_db/dummy-db.h: Removed.
18760
18761 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18762
18763         * nss/makedb.c: Rewritten to not use database library.
18764         * nss/Makefile: Update to build new makedb program.
18765
18766 2011-06-14  Andreas Jaeger  <aj@suse.de>
18767
18768         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18769         memset declaration.
18770
18771 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18772
18773         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18774         tmpbuf.
18775
18776 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18777
18778         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18779         * elf/Makefile ($(objpfx)ld.so): Likewise.
18780
18781         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18782         Don't list ld.so twice in dependencies.
18783
18784         * posix/bug-regex31.c: Include <stdlib.h>.
18785
18786         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18787
18788         * nis/nss_compat/compat-spwd.c
18789         (getspent_next_nss_netgr): Remove unused variable.
18790         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18791
18792         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18793         nonmembers" output to use the right array.
18794
18795         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18796
18797         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18798
18799         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18800         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18801         * catgets/gencat.c (read_input_file): Likewise.
18802         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18803
18804         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18805         variable definition inside #if's controlling its use.
18806
18807         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18808
18809         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18810
18811         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18812
18813         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18814         unreachable code.
18815
18816         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18817
18818         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18819         * configure: Regenerated.
18820
18821         * Makerules: Revert last change.
18822         * elf/Makefile: Likewise.
18823
18824 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18825
18826         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18827         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18828         (reloc-link): Likewise.
18829
18830 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18831
18832         * elf/Makefile: Add rules to build pldd.
18833         * elf/pldd.c: New file.
18834         * elf/pldd-xx.c: New file.
18835
18836 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18837
18838         * version.h: Update for 2.15 development version.
18839
18840 2011-06-07  David S. Miller  <davem@davemloft.net>
18841
18842         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18843         ifuncs.
18844         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18845         elf_machine_lazy_rel): Likewise.
18846         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18847         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18848         elf_machine_lazy_rel): Likewise.
18849         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18850         dl_hwcap via passed in argument.
18851         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18852         Likewise.
18853
18854 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18855
18856         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18857
18858 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18859
18860         [BZ #12849]
18861         * manual/fdl-1.1.texi: New file, verbatim from:
18862         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18863         * manual/lgpl-2.1.texi: New file, verbatim from:
18864         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18865         * manual/Makefile (licenses): New variable, list those new file names.
18866         (texis): Use it.
18867         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18868
18869         * manual/fdl.texi: File removed.
18870         * manual/lesser.texi: File removed.
18871         * manual/libc.texinfo (Copying, Documentation License):
18872         Use new @include file names, put @appendix directive before @include.
18873
18874 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18875
18876         [BZ #12841]
18877         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18878         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18879         (mq_open): Add __NTH.
18880
18881 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18882
18883         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18884         Assume Intel Core i3/i5/i7 processor if AVX is available.
18885
18886 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18887
18888         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18889         typo.
18890
18891 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18892
18893         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18894         memory.  Use alloca_account.  Fix memory leak when retrying.
18895
18896 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18897
18898         * version.h (RELEASE): Bump for 2.14 release.
18899         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18900
18901         * config.make.in (RANLIB): Remove entry.
18902
18903 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18904
18905         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18906         (libc.pot): Work around missing support for .ksh extension in xgettext.
18907
18908         [BZ #12684]
18909         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18910         if both request failed.
18911         (send_dg): In case of server errors clear resplen or *resplen2.
18912
18913         [BZ #12454]
18914         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18915         when there are multiple maps.
18916         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18917         (_dl_fini): Remove test here.
18918
18919         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18920
18921 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18922
18923         [BZ #12350]
18924         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18925         bit from old_res_options.
18926         (gaih_inet): Likewise.
18927
18928         [BZ #11099]
18929         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18930         as signed.
18931
18932         * resolv/res_init.c (res_setoptions): Make the code more compact.
18933
18934         [BZ #11558]
18935         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18936         set RES_USEVC.
18937
18938         [BZ #11634]
18939         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18940
18941         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18942
18943         [BZ #11781]
18944         * malloc/malloc.h: Declare malloc hook variables as volatile.
18945
18946         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18947         in last patch.
18948
18949         [BZ #11799]
18950         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18951         raise in the comment.
18952         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18953         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18954         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18955
18956 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18957
18958         [BZ #12811]
18959         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18960         grow the buffers more if it already has to be sufficient.
18961         (build_wcs_upper_buffer): Likewise.
18962         * posix/regexec.c (check_matching): Likewise.
18963         (clean_state_log_if_needed): Likewise.
18964         (extend_buffers): Don't enlarge buffers beyond size of the input
18965         buffer.
18966         Patches mostly by Emil Wojak <emil@wojak.eu>.
18967         * posix/bug-regex32.c: New file.
18968         * posix/Makefile (tests): Add bug-regex32.
18969
18970         * locale/findlocale.c (_nl_find_locale): Return right away if
18971         _nl_explode_name failed.
18972         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18973
18974         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18975
18976         * debug/xtrace.sh: Unify messages.
18977         * malloc/memusage.sh: Likewise.
18978
18979         [BZ #12813]
18980         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18981         time symbol from vDSO.  Substitute with vsyscall if not available.
18982         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18983         __vdso_time.
18984
18985         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18986         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18987         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18988         Add sendmmsg and internal_sendmmsg.
18989         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18990         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18991         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18992
18993         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18994         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18995         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18996
18997 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18998
18999         [BZ #12813]
19000         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19001         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19002         available.
19003         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19004         __vdso_getcpu.
19005
19006         [BZ #12814]
19007         * iconvdata/Makefile (tests): Add bug-iconv9.
19008         * iconvdata/bug-iconv9.c: New file.
19009
19010 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19011
19012         [BZ #12814]
19013         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19014
19015 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19016
19017         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19018         (struct user_regs_struct): Change intcs field back to cs.
19019
19020 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19021
19022         * po/ja.po: Update from translation team.
19023
19024 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19025
19026         [BZ #12795]
19027         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19028         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19029
19030 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19031
19032         * stdlib/longlong.h: Update from GCC.
19033
19034 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19035
19036         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19037         parameter name.
19038         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19039         Add parameter name.
19040         (__sysconf): Pass it down.
19041
19042 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19043
19044         [BZ #12671]
19045         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19046         some situations.
19047         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19048         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19049         add in in __libc_use_alloca calls.  Adjust callers.
19050         (glob): Use malloc in some situations.
19051
19052         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19053         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19054         pltexit.
19055
19056 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19057
19058         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19059         and CLOCK_BOOTTIME_ALARM.
19060
19061         [BZ #12782]
19062         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19063         is returned.
19064
19065         * string/_strerror.c (__strerror_r): Print negative errors as signed
19066         numbers.
19067
19068         [BZ #12777]
19069         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19070         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19071         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19072
19073         * configure.in: Fix typo in redirection and correct removal of test
19074         files in two cases.
19075
19076         [BZ #12788]
19077         * locale/setlocale.c (new_composite_name): Fix test to check for
19078         identical name of all categories.
19079
19080         [BZ #12792]
19081         * libio/filedoalloc.c (local_isatty): New function.
19082         (_IO_file_doallocate): Use local_isatty.
19083         * stdio-common/perror.c (perror): In case a new stream is used
19084         forward the stream error.
19085         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19086         error flag.
19087
19088 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19089
19090         [BZ #11869]
19091         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19092         alloca.
19093         * include/alloca.h (extend_alloca_account): Define.
19094
19095         [BZ #11857]
19096         * posix/regex.h: Fix comments with documentation of user-accessible
19097         fields after compilation and describe correct free'ing of pattern
19098         after re_compile_pattern.
19099         Patch by Reuben Thomas <rrt@sc3d.org>.
19100
19101 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19102
19103         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19104         and -mno-altivec to prevent the compiler from using Altivec and/or
19105         VSX instructions when the corresponding registers are not available.
19106
19107 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19108
19109         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19110
19111 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19112
19113         * libio/freopen.c (freopen): Use __dup2, not dup2.
19114         * libio/freopen64.c (freopen64): Likewise.
19115
19116 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19117
19118         [BZ #12775]
19119         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19120         * math/Makefile (tests): Add test-powl.
19121         (CFLAGS-test-powl.c): Define.
19122         * math/test-powl.c: New file.
19123
19124 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19125
19126         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19127
19128 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19129
19130         [BZ #11837]
19131         * iconvdata/gb18030.c: Update to GB18020-2005.
19132
19133 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19134
19135         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19136         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19137         Patch by Aharon Robbins <arnold@skeeve.com>.
19138
19139         [BZ #11892]
19140         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19141         on the stack.
19142
19143         [BZ #11895]
19144         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19145         through underflows.
19146
19147         [BZ #12766]
19148         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19149         point to strings before performing equality test for error_one_per_line
19150         mode.
19151
19152         [BZ #11697]
19153         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19154
19155         [BZ #11820]
19156         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19157         (struct user_fpregs_struct): Avoid __uint*_t types.
19158
19159         [BZ #6420]
19160         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19161         symbol info.  Use it instead of calling _dl_addr locally.
19162         (lock_and_info): New function.
19163         (tr_freehook): Call lock_and_info and pass symbol info as additional
19164         parameter to tr_where.
19165         (tr_mallochook): Likewise.
19166         (tr_reallochook): Likewise.
19167         (tr_memalignhook): Likewise.
19168
19169         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19170         used and couldn't be at all thread-safe.
19171
19172 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19173
19174         * libio/freopen.c (freopen): Don't close old file descriptor
19175         before the new one is opened.  Instead dup the new file descriptor
19176         to the old one after the new stream is created.
19177         * libio/freopen64.c (freopen64): Likewise.
19178         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19179         * libio/fileops.c (_IO_new_file_close_it): Handle new
19180         _IO_FLAGS2_NOCLOSE flag.
19181         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19182         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19183         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19184         _IO_FLAGS2_NOCLOSE flag.
19185         * include/unistd.h: Add hidden_proto for dup3.
19186         Define __have_dup3.
19187         * io/dup3.c: Define hidden symbol.
19188         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19189
19190         [BZ #7101]
19191         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19192         when an incomplete long option is used.
19193         * posix/tst-getopt_long1.c: New file.
19194         * posix/Makefile (tests): Add tst-getopt_long1.
19195
19196         [BZ #10138]
19197         * scripts/config.guess: Update from autoconf-2.68.
19198         * scripts/config.sub: Likewise.
19199
19200         [BZ #10157]
19201         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19202         tests into ...
19203         (has_cpuclock): ...this.  New function.
19204         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19205         macro here based on has_cpuclock code.
19206
19207         [BZ #10149]
19208         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19209         First byte (not low byte) is now always NUL.
19210         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19211
19212         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19213         Use non-cancelable interfaces.
19214
19215         [BZ #9809]
19216         * locale/iso-639.def: Add entry for Sorani.
19217
19218         [BZ #11901]
19219         * include/stdlib.h: Move include protection to the right place.
19220         Define abort_msg_s.  Declare __abort_msg with it.
19221         * stdlib/abort.c (__abort_msg): Adjust type.
19222         * assert/assert.c (__assert_fail_base): New function.  Majority
19223         of code from __assert_fail.  Allocate memory for __abort_msg with
19224         mmap.
19225         (__assert_fail): Now call __assert_fail_base.
19226         * assert/assert-perr.c: Remove bulk of implementation.  Use
19227         __assert_fail_base.
19228         * include/assert.hL Declare __assert_fail_base.
19229         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19230         mmap.
19231         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19232
19233 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19234
19235         [BZ #11952]
19236         [BZ #12453]
19237         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19238         until all modules are registered in the DTV.
19239         * elf/Makefile: Add rules to build and run tst-tls19.
19240         * elf/tst-tls19.c: New file.
19241         * elf/tst-tls19mod1.c: New file.
19242         * elf/tst-tls19mod2.c: New file.
19243         * elf/tst-tls19mod3.c: New file.
19244         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19245
19246         [BZ #12083]
19247         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19248         correctly.
19249
19250         [BZ #12601]
19251         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19252         two-byte sequence errors.
19253         * iconvdata/Makefile (tests): Add bug-iconv8.
19254         * iconvdata/bug-iconv8.c: New file.
19255
19256         [BZ #12626]
19257         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19258         buf2 definition.
19259
19260         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19261
19262         [BZ #12432]
19263         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19264         (dummy_getcfa): New function.
19265         (init): Get _Unwind_GetCFA address, use dummy if not found.
19266         (backtrace_helper): In recursion check, also check whether CFA changes.
19267         (__backtrace): Completely initialize arg.
19268
19269         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19270         storing incomplete byte sequence in state object.  Avoid testing for
19271         guaranteed too small input if we know there is enough data available.
19272
19273 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19274
19275         * Makeconfig (+link-pie): Indent.
19276         * Rules (binaries-pie): Define if $(have-fpie) and
19277         $(build-shared).
19278         (binaries-shared): Also filter out $(binaries-pie).
19279         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19280         * nscd/Makefile (others-pie): Add nscd.
19281         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19282         ($(objpfx)nscd): Remove command override.
19283         * login/Makefile (others-pie): Add pt_chown.
19284         ($(objpfx)pt_chown): Remove command override.
19285         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19286         remove command overrides.
19287
19288 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19289
19290         * libio/tst_putwc.c: Fix error messages.
19291
19292         [BZ #12724]
19293         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19294         currently writing and seek to current position when not.
19295         * libio/Makefile (tests): Add bug-fclose1.
19296         * libio/bug-fclose1.c: New file.
19297
19298 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19299
19300         [BZ #12511]
19301         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19302         don't set DF_1_NODELETE here.
19303         (do_lookup_x): When entering new entry test for copy relocation
19304         and if necessary set DF_1_NODELETE flag.
19305         * elf/tst-unique4.cc: New file.
19306         * elf/tst-unique4.h: New file.
19307         * elf/tst-unique4lib.cc: New file.
19308         * elf/Makefile: Add rules to build and run tst-unique4.
19309         Patch by Piotr Bury <pbury@goahead.com>.
19310
19311 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19312
19313         [BZ #12052]
19314         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
19315
19316         [BZ #12625]
19317         * misc/mntent_r.c (addmntent): Flush the stream after the output
19318
19319         [BZ #12393]
19320         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
19321         (is_trusted_path_normalize): Skip initial colon.  Append slash
19322         to empty buffer.  Duplicate is_trusted_path code but allow
19323         constructed patch to be prefix.
19324         (is_dst): Allow $ORIGIN followed by /.
19325         (_dl_dst_substitute): Correct clearing of check_for_trusted.
19326         Correct testing of result of is_trusted_path_normalize
19327         (decompose_rpath): Fix warning.
19328
19329 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
19330
19331         [BZ #11257]
19332         * grp/initgroups.c (internal_getgrouplist): When we found the service
19333         list through the initgroups entry in nsswitch.conf do not always
19334         continue on a successful lookup.  Don't always use the
19335         __nss_group_database value if it is set.
19336         * nss/nsswitch.conf (initgroups): Change action for successful db
19337         lookup to continue for compatibility.
19338
19339 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
19340
19341         [BZ #11532]
19342         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
19343         and CP774 modules.
19344         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
19345         and CP774 modules.
19346         * iconvdata/tst-tables.sh: Likewise.
19347         * iconvdata/cp770.c: New file.
19348         * iconvdata/cp771.c: New file.
19349         * iconvdata/cp772.c: New file.
19350         * iconvdata/cp773.c: New file.
19351         * iconvdata/cp774.c: New file.
19352         * iconvdata/testdata/CP770: New file.
19353         * iconvdata/testdata/CP770..UTF8: New file.
19354         * iconvdata/testdata/CP771: New file.
19355         * iconvdata/testdata/CP771..UTF8: New file.
19356         * iconvdata/testdata/CP772: New file.
19357         * iconvdata/testdata/CP772..UTF8: New file.
19358         * iconvdata/testdata/CP773: New file.
19359         * iconvdata/testdata/CP773..UTF8: New file.
19360         * iconvdata/testdata/CP774: New file.
19361         * iconvdata/testdata/CP774..UTF8: New file.
19362
19363         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
19364         END CHARMAP line.
19365         * iconvdata/gen-8bit-gap.sh: Likewise.
19366         * iconvdata/gen-8bit.sh: Likewise.
19367
19368         * locale/iso-639.def: Add ary entry.
19369
19370         [BZ #11258]
19371         * locale/C-translit.h.in: Add U20A1 transliteration.
19372
19373         [BZ #12178]
19374         * locale/iso-639.def: Add wae entry.
19375         Patch by Kevin Bortis <bortis@translate-wae.ch>.
19376
19377         [BZ #12545]
19378         * locale/programs/localedef.c (construct_output_path): Use ssize_t
19379         for n.
19380
19381         [BZ #12711]
19382         * locale/C-translit.h.in: Add entry for U20B9.
19383         Patch by pravin.d.s@gmail.com.
19384
19385 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
19386
19387         [BZ #12713]
19388         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
19389         ENAMETOOLONG use generic getcwd.
19390         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
19391         in rtld.  Use *stat64.
19392         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
19393         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
19394         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
19395         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
19396         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
19397         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
19398         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
19399         __fstatat64 macros.
19400         * include/dirent.h: Add libc_hidden_proto for rewinddir.
19401         * dirent/rewinddir.c: Add libc_hidden_def.
19402         * sysdeps/mach/hurd/rewinddir.c: Likewise.
19403         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
19404
19405         * include/dirent.h (__alloc_dir): Add flags parameter.
19406         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
19407         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
19408         __alloc_dir.
19409         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
19410         from fdopendir if O_CLOEXEC is already set.
19411
19412 2011-03-15  Alan Modra  <amodra@gmail.com>
19413
19414         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
19415         l_tls_firstbyte_offset non-zero.  Save padding offset in
19416         l_tls_firstbyte_offset for later use.
19417         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
19418         freeing static tls block.
19419
19420 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
19421
19422         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
19423         where #ifdef was intended.  The intent is to prevent ARG_MAX from
19424         being defined by the kernel headers.
19425
19426 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
19427
19428         [BZ #12734]
19429         * resolv/resolv.h: Define RES_NOTLDQUERY.
19430         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
19431         no-tld-query and set RES_NOTLDQUERY.
19432         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
19433         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
19434         modern BIND to search name as TLD unless forbidden.
19435
19436 2011-05-07  Petr Baudis  <pasky@suse.cz>
19437             Ulrich Drepper  <drepper@gmail.com>
19438
19439         [BZ #12393]
19440         * elf/dl-load.c (fillin_rpath): Move trusted path check...
19441         (is_trusted_path): ...to here.
19442         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
19443         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
19444         using is_trusted_path_normalize() in setuid scripts.
19445
19446 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19447
19448         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
19449         __BEGIN/__END_DECLS.
19450
19451 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
19452
19453         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
19454         NSS_STATUS_NOTFOUND if no record was found.
19455
19456 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19457
19458         * sunrpc/Makefile (headers): Add rpc/netdb.h.
19459         (headers-not-in-tirpc): Remove rpc/netdb.h
19460         * resolv/netdb.h: Revert last change.
19461
19462 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19463
19464         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
19465         circular dependency between libgcc.a and libc.a.
19466
19467 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19468
19469         * resolv/netdb.h: Don't include <rpc/netdb.h>.
19470         * nis/Makefile: Don't install rpcsvc/*.
19471         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
19472         instead of <rpc/types.h>.
19473         (MAXHOSTNAMELEN): Define.
19474
19475 2011-05-03  Andreas Schwab  <schwab@redhat.com>
19476
19477         * elf/ldconfig.c (add_dir): Don't crash on empty path.
19478
19479 2011-04-28  Maciej Babinski  <mbabinski@google.com>
19480
19481         [BZ #12714]
19482         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
19483         gethostbyname4_r when IPv6 results are possible.
19484
19485 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
19486
19487         [BZ #12723]
19488         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
19489         _PC_PIPE_BUF handling.
19490
19491 2011-04-30  Bruno Haible  <bruno@clisp.org>
19492
19493         [BZ #12717]
19494         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
19495         * resolv/netdb.h (getnameinfo): Change type of flags parameter
19496         to 'int'.
19497         * inet/getnameinfo.c (getnameinfo): Likewise.
19498
19499 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
19500
19501         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
19502         to groups setting in database lookup.
19503         * nss/nsswitch.conf: Add initgroups entry.
19504
19505 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
19506
19507         [BZ #12685]
19508         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
19509         mode string.
19510         Patch by Eric Blake <eblake@redhat.com>.
19511
19512 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
19513
19514         * sunrpc/Makefile (need-export-routines): Add svc_run.
19515         (routines): Remove svc_run.
19516         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
19517         * sunrpc/clnt_perr.c (clnt_perrno): Export.
19518         * sunrpc/svc_run.c (svc_run): Likewise.
19519         * sunrpc/svc_udp.c (svcudp_create): Likewise.
19520
19521 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
19522
19523         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
19524         problem in reallocation in last patch.
19525
19526 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
19527
19528         * sunrpc/Makefile: Move inclusion of Rules.
19529
19530 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19531
19532         * nss/nss_files/files-initgroups.c: New file.
19533         * nss/Makefile (libnss_files-routines): Add files-initgroups.
19534         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
19535         _nss_files_initgroups_dyn.
19536
19537 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
19538
19539         * elf/elf.h (R_ARM_IRELATIVE): Define.
19540
19541 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19542
19543         * po/ru.po: Update from translation team.
19544
19545 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19546
19547         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
19548         dependencies.
19549
19550 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
19551
19552         [BZ #12653]
19553         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
19554         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
19555         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19556         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
19557         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
19558
19559 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
19560
19561         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
19562         differing bytes.
19563         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
19564         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
19565         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
19566
19567 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19568
19569         [BZ #12420]
19570         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
19571         storing it.
19572         * stdlib/bug-getcontext.c: New file.
19573         * stdlib/Makefile: Add rules to build and run bug-getcontext.
19574
19575 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19576
19577         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
19578         instructions into .machine "z9-109".
19579         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
19580         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
19581
19582 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19583
19584         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
19585         between environment variables and auxiliary vector.
19586
19587 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
19588
19589         * Makefile: Add rules to build linkobj/libc.so.
19590         * include/libc-symbols.h: Define libc_hidden_nolink.
19591         * include/rpc/auth.h: Mark functions which are to be hidden.
19592         * include/rpc/auth_des.h: Likewise.
19593         * include/rpc/auth_unix.h: Likewise.
19594         * include/rpc/clnt.h: Likewise.
19595         * include/rpc/des_crypt.h: Likewise.
19596         * include/rpc/key_prot.h: Likewise.
19597         * include/rpc/pmap_clnt.h: Likewise.
19598         * include/rpc/pmap_prot.h: Likewise.
19599         * include/rpc/pmap_rmt.h: Likewise.
19600         * include/rpc/rpc_msg.h: Likewise.
19601         * include/rpc/svc.h: Likewise.
19602         * include/rpc/svc_auth.h: Likewise.
19603         * include/rpc/xdr.h: Likewise.
19604         * nis/Makefile: Link all DSOs against linkobj/libc.so.
19605         * nss/Makefile: Likewise.
19606         * sunrpc/Makefile: Don't install headers.  Build library with normal
19607         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
19608         * sunrpc/auth_des.c: Hide exported symbols by default, export some
19609         for the compat linking library.  Remove use of INTDEF/INTUSE.
19610         * sunrpc/auth_none.c: Likewise.
19611         * sunrpc/auth_unix.c: Likewise.
19612         * sunrpc/authdes_prot.c: Likewise.
19613         * sunrpc/authuxprot.c: Likewise.
19614         * sunrpc/clnt_gen.c: Likewise.
19615         * sunrpc/clnt_perr.c: Likewise.
19616         * sunrpc/clnt_raw.c: Likewise.
19617         * sunrpc/clnt_simp.c: Likewise.
19618         * sunrpc/clnt_tcp.c: Likewise.
19619         * sunrpc/clnt_udp.c: Likewise.
19620         * sunrpc/clnt_unix.c: Likewise.
19621         * sunrpc/des_crypt.c: Likewise.
19622         * sunrpc/des_soft.c: Likewise.
19623         * sunrpc/get_myaddr.c: Likewise.
19624         * sunrpc/key_call.c: Likewise.
19625         * sunrpc/key_prot.c: Likewise.
19626         * sunrpc/netname.c: Likewise.
19627         * sunrpc/pm_getmaps.c: Likewise.
19628         * sunrpc/pm_getport.c: Likewise.
19629         * sunrpc/pmap_clnt.c: Likewise.
19630         * sunrpc/pmap_prot.c: Likewise.
19631         * sunrpc/pmap_prot2.c: Likewise.
19632         * sunrpc/pmap_rmt.c: Likewise.
19633         * sunrpc/publickey.c: Likewise.
19634         * sunrpc/rpc_cmsg.c: Likewise.
19635         * sunrpc/rpc_common.c: Likewise.
19636         * sunrpc/rpc_dtable.c: Likewise.
19637         * sunrpc/rpc_prot.c: Likewise.
19638         * sunrpc/rpc_thread.c: Likewise.
19639         * sunrpc/rtime.c: Likewise.
19640         * sunrpc/svc.c: Likewise.
19641         * sunrpc/svc_auth.c: Likewise.
19642         * sunrpc/svc_authux.c: Likewise.
19643         * sunrpc/svc_raw.c: Likewise.
19644         * sunrpc/svc_run.c: Likewise.
19645         * sunrpc/svc_simple.c: Likewise.
19646         * sunrpc/svc_tcp.c: Likewise.
19647         * sunrpc/svc_udp.c: Likewise.
19648         * sunrpc/svc_unix.c: Likewise.
19649         * sunrpc/svcauth_des.c: Likewise.
19650         * sunrpc/xcrypt.c: Likewise.
19651         * sunrpc/xdr.c: Likewise.
19652         * sunrpc/xdr_array.c: Likewise.
19653         * sunrpc/xdr_float.c: Likewise.
19654         * sunrpc/xdr_intXX_t.c: Likewise.
19655         * sunrpc/xdr_mem.c: Likewise.
19656         * sunrpc/xdr_rec.c: Likewise.
19657         * sunrpc/xdr_ref.c: Likewise.
19658         * sunrpc/xdr_sizeof.c: Likewise.
19659         * sunrpc/xdr_stdio.c: Likewise.
19660
19661 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
19662
19663         [BZ #12650]
19664         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
19665         * sysdeps/ia64/dl-tls.h: Likewise.
19666         * sysdeps/powerpc/dl-tls.h: Likewise.
19667         * sysdeps/s390/dl-tls.h: Likewise.
19668         * sysdeps/sh/dl-tls.h: Likewise.
19669         * sysdeps/sparc/dl-tls.h: Likewise.
19670         * sysdeps/x86_64/dl-tls.h: Likewise.
19671         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
19672
19673 2011-03-14  Andreas Schwab  <schwab@redhat.com>
19674
19675         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
19676         rpath element also skip the following colon.
19677         (expand_dynamic_string_token): Add is_path parameter and pass
19678         down to DL_DST_REQUIRED and _dl_dst_substitute.
19679         (decompose_rpath): Call expand_dynamic_string_token with
19680         non-zero is_path.  Ignore empty rpaths.
19681         (_dl_map_object_from_fd): Call expand_dynamic_string_token
19682         with zero is_path.
19683
19684 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
19685
19686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
19687         Make cancelable.
19688
19689 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
19690
19691         [BZ #12655]
19692         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19693         Patch by Filipe David Manana <fdmanana@apache.org>.
19694
19695 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19696
19697         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19698         Maintain aligned stack.
19699         (CHECK_RSP): Remove unused macro.
19700
19701 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19702
19703         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19704         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19705
19706 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19707
19708         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19709
19710         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19711
19712 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19713
19714         [BZ #12518]
19715         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19716         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19717         * sysdeps/x86_64/memmove.c: New file.
19718         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19719         (memcpy): Renamed to ...
19720         (__new_memcpy): This.
19721         (memcpy): Provide GLIBC_2_14 memcpy.
19722         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19723         (memcpy): Provide GLIBC_2_2_5 memcpy.
19724
19725 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19726
19727         [BZ #12631]
19728         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19729
19730 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19731
19732         * misc/syncfs.c: New file.
19733         * misc/Makefile (routines): Add syncfs.
19734         * posix/unistd.h: Declare syncfs.
19735         * sysdeps/unix/syscalls.list: Add syncfs.
19736
19737 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19738
19739         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19740         open_by_handle_at.
19741         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19742         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19743         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19744         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19745         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19746         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19747         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19748
19749 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19750
19751         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19752         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19753         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19754         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19755         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19756         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19757         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19758
19759         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19760         sync_file_range.c with -fexceptions.
19761         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19762         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19763         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19764         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19765         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19766         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19767         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19768         sync_file_range as cancellation point
19769         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19770         now a wrapper around __call_sync_file_range with cancellation handling.
19771         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19772         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19773         function name to __call_sync_file_range.
19774         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19775         Add call_sync_file_range.
19776
19777 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19778
19779         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19780         bits/timex.h.
19781
19782 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19783
19784         * iconv/iconv.h: Fix typo in comment.
19785         * io/fcntl.h: Likewise.
19786         * libio/stdio.h: Likewise.
19787         * posix/spawn.h: Likewise.
19788         * posix/unistd.h: Likewise.
19789         * stdlib/stdlib.h: Likewise.
19790         * time/time.h: Likewise.
19791         * wcsmbs/wchar.h: Likewise.
19792
19793         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19794         open_by_handle): Add.
19795         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19796         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19797         Augment a few comments.
19798         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19799         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19800         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19801         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19802         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19803         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19804         open_by_handle.
19805
19806         * io/fcntl.h (AT_EMPTY_PATH): Define.
19807
19808 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19809
19810         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19811         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19812         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19813         to...
19814         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19815         * Versions.def: Add GLIBC_2.14.
19816         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19817         Export.
19818
19819 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19820
19821         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19822         round counter.
19823         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19824
19825 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19826
19827         [BZ #12597]
19828         * string/test-strncmp.c (do_page_test): New function.
19829         (check2): Likewise.
19830         (test_main): Call check2.
19831         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19832
19833 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19834
19835         [BZ #12587]
19836         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19837         Handle cache information in CPU leaf 4.
19838         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19839
19840 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19841
19842         [BZ #12583]
19843         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19844         character representation.
19845         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19846
19847 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19848
19849         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19850         END(__isnan) to END(__isnanf) to match function entry point/label
19851         EALIGN(__isnanf,...).
19852
19853 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19854
19855         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19856
19857 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19858
19859         [BZ #12510]
19860         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19861         copy from the symbol referenced in the relocation to initialize the
19862         used variable.
19863         Patch by Piotr Bury <pbury@goahead.com>.
19864         * elf/Makefile: Add rules to build and tst-unique3.
19865         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19866         * elf/tst-unique3.cc: New file.
19867         * elf/tst-unique3.h: New file.
19868         * elf/tst-unique3lib.cc: New file.
19869         * elf/tst-unique3lib2.cc: New file.
19870
19871         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19872
19873 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19874
19875         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19876         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19877         to _start.
19878
19879 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19880
19881         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19882         to-be-loaded object along a path to loader is ld.so.
19883
19884 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19885             Ulrich Drepper  <drepper@gmail.com>
19886
19887         * sysdeps/x86_64/memset.S: After aligning destination, code
19888         branches to different locations depending on the value of
19889         misalignment, when multiarch is enabled. Fix this.
19890
19891 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19892
19893         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19894         Set _x86_64_preferred_memory_instruction for AMD processsors.
19895         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19896         Set bit_Prefer_SSE_for_memop for AMD processors.
19897
19898 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19899
19900         * libio/fmemopen.c (fmemopen): Optimize a bit.
19901
19902 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19903
19904         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19905
19906 2011-03-03  Roland McGrath  <roland@redhat.com>
19907
19908         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19909
19910 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19911
19912         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19913         __bzero_ultra1 instead of __memset_ultra1.
19914
19915 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19916             Ulrich Drepper  <drepper@gmail.com>
19917
19918         [BZ #12509]
19919         * include/link.h (struct link_map): Add l_orig_initfini.
19920         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19921         returning unsuccessfully.
19922         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19923         close of a file loaded at startup, restore the original l_initfini
19924         list.
19925         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19926         list, store the pointer.
19927         * elf/Makefile ($(objpfx)noload-mem): New rule.
19928         (noload-ENV): Define.
19929         (tests): Add $(objpfx)noload-mem.
19930         * elf/noload.c: Include <memcheck.h>.
19931         (main): Call mtrace.  Close all opened handles.
19932
19933 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19934
19935         [BZ #12454]
19936         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19937         dependencies are missing.
19938
19939 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19940
19941         Fix __if_freereq crash: Unlike the generic version which uses free,
19942         Hurd needs munmap.
19943         * sysdeps/mach/hurd/ifreq.h: New file.
19944
19945 2011-01-27  Petr Baudis  <pasky@suse.cz>
19946             Ulrich Drepper  <drepper@gmail.com>
19947
19948         [BZ 12445]#
19949         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19950         to extend_alloca().
19951         * stdio-common/bug23.c: New file.
19952         * stdio-common/Makefile (tests): Add bug23.
19953
19954 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19955             Ulrich Drepper  <drepper@gmail.com>
19956
19957         [BZ #12489]
19958         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19959         before performing relro protection.  At old place add assertion
19960         to make sure nothing changed.
19961
19962 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19963             Glauber de Oliveira Costa  <glommer@gmail.com>
19964
19965         * elf/elf.h: Add new ARM TLS relocs.
19966
19967 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19968
19969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19970         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19971         cast from r3.
19972         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19973         'tests' variable.
19974         * sysdeps/wordsize-64/tst-writev.c: New file.
19975
19976 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19977
19978         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19979         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19980         insns in _dl_start to prevent a TOC reference before relocs are
19981         resolved.
19982
19983 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19984
19985         [BZ #12469]
19986         * Makeconfig: Remove RANLIB definition.
19987         * Makerules: Don't use RANLIB.
19988         * aclocal.m4: Remove ranlib test.
19989         * configure.in: No need to check for ranlib.
19990         * elf/rtld-Rules: Don't use RANLIB.
19991
19992 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19993
19994         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19995         protection macro.
19996         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19997         inclusion protection macro.
19998
19999         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20000         SIGRTMIN and SIGRTMAX and print information in that case only when
20001         SIGRTMIN is defined.
20002
20003 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20004
20005         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20006         arginfo fn returning -1.
20007
20008         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20009         and thousands string is zero terminated.
20010
20011 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20012
20013         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20014         sysdeps/unix/sysv/linux/bits/socket.h.
20015
20016 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20017
20018         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20019         (__CPU_COUNT): Remove old macros.
20020         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20021         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20022         (__CPU_ALLOC, __CPU_FREE): Add macros.
20023         (__sched_cpualloc, __sched_cpufree): Add declarations.
20024
20025 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20026
20027         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20028         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20029         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20030         (readdhstai): Return value of addhstaiX call.
20031         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20032         (addgrbyX): Return value returned by cache_addgr.
20033         (readdgrbyname): Return value returned by addgrbyX.
20034         (readdgrbygid): Likewise.
20035         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20036         (addpwbyX): Return value returned by cache_addpw.
20037         (readdpwbyname): Return value returned by addhstbyX.
20038         (readdpwbyuid): Likewise.
20039         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20040         (addservbyX): Return value returned by cache_addserv.
20041         (readdservbyname): Return value returned by addservbyX:
20042         (readdservbyport): Likewise.
20043         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20044         (addhstbyX): Return value returned by cache_addhst.
20045         (readdhstbyname): Return value returned by addhstbyX.
20046         (readdhstbyaddr): Likewise.
20047         (readdhstbynamev6): Likewise.
20048         (readdhstbyaddrv6): Likewise.
20049         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20050         (readdinitgroups): Return value returned by addinitgroupsX.
20051         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20052         (prune_cache): Keep track of timeout value of re-added entries.
20053         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20054         * nscd/nscd.h: Adjust prototypes of readd* functions.
20055
20056 2011-02-04  Roland McGrath  <roland@redhat.com>
20057
20058         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20059         (nis_stats): Likewise.
20060         * nis/nis_modify.c (nis_modify): Likewise.
20061         * nis/nis_remove.c (nis_remove): Likewise.
20062         * nis/nis_add.c (nis_add): Likewise.
20063
20064         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20065
20066         * posix/fnmatch_loop.c: Add some consts.
20067
20068         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20069
20070 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20071
20072         [BZ #12460]
20073         * config.make.in (config-cflags-novzeroupper): Define.
20074         * configure.in: Substitute libc_cv_cc_novzeroupper.
20075         * elf/Makefile (AVX-CFLAGS): Define.
20076         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20077         (CFLAGS-tst-auditmod4a.c): Likewise.
20078         (CFLAGS-tst-auditmod4b.c): Likewise.
20079         (CFLAGS-tst-auditmod6b.c): Likewise.
20080         (CFLAGS-tst-auditmod6c.c): Likewise.
20081         (CFLAGS-tst-auditmod7b.c): Likewise.
20082         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20083
20084 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20085
20086         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20087         function to the callback.
20088         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20089
20090 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20091
20092         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20093         of errno.
20094
20095 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20096
20097         [BZ #11724]
20098         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20099         of constructors.
20100         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20101         of destructors.
20102         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20103
20104         [BZ #11724]
20105         * elf/Makefile: Add rules to build and run new test.
20106         * elf/tst-initorder.c: New file.
20107         * elf/tst-initorder.exp: New file.
20108         * elf/tst-initordera1.c: New file.
20109         * elf/tst-initordera2.c: New file.
20110         * elf/tst-initordera3.c: New file.
20111         * elf/tst-initordera4.c: New file.
20112         * elf/tst-initorderb1.c: New file.
20113         * elf/tst-initorderb2.c: New file.
20114         * elf/tst-order-a1.c: New file.
20115         * elf/tst-order-a2.c: New file.
20116         * elf/tst-order-a3.c: New file.
20117         * elf/tst-order-a4.c: New file.
20118         * elf/tst-order-b1.c: New file.
20119         * elf/tst-order-b2.c: New file.
20120         * elf/tst-order-main.c: New file.
20121         New test case by George Gensure <werkt0@gmail.com>.
20122
20123 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20124
20125         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20126         decoding ACE if AI_CANONIDN.
20127
20128 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20129
20130         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20131
20132 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20133
20134         * version.h (RELEASE): Bump for 2.13 release.
20135         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20136
20137         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20138
20139         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20140         MADV_NOHUGEPAGE.
20141         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20142         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20143         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20144         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20145         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20146         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20147
20148         * posix/getconf.c: Update copyright year.
20149         * catgets/gencat.c: Likewise.
20150         * csu/version.c: Likewise.
20151         * debug/catchsegv.sh: Likewise.
20152         * debug/xtrace.sh: Likewise.
20153         * elf/ldconfig.c: Likewise.
20154         * elf/ldd.bash.in: Likewise.
20155         * elf/sprof.c (print_version): Likewise.
20156         * iconv/iconv_prog.c: Likewise.
20157         * iconv/iconvconfig.c: Likewise.
20158         * locale/programs/locale.c: Likewise.
20159         * locale/programs/localedef.c: Likewise.
20160         * malloc/memusage.sh: Likewise.
20161         * malloc/mtrace.pl: Likewise.
20162         * nscd/nscd.c (print_version): Likewise.
20163         * nss/getent.c: Likewise.
20164
20165         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20166         PF_CAIF, and PF_ALG.
20167         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20168
20169 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20170
20171         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20172         (modules-names): Use them.
20173         (ifunc-test-modules, ifunc-pie-tests): Define.
20174         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20175         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20176         (test-extras): Likewise.
20177         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20178         $(compile-command.c).
20179         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20180         (all-built-dso): Define.
20181         (check-textrel.out, check-execstack.out): Depend on it.
20182
20183         * configure.in: Don't override --enable-multi-arch.
20184
20185 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20186
20187         [BZ #6812]
20188         * nscd/hstcache.c (tryagain): Define.
20189         (cache_addhst): Return tryagain not notfound for temporary errors.
20190         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20191         failed.
20192
20193 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20194
20195         [BZ #10563]
20196         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20197         to make the syscall.
20198         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20199
20200         [BZ #12378]
20201         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20202         and fall back to matching as normal character if the string ends before
20203         the matching ']' is found.  This is what POSIX requires.
20204         * posix/testfnm.c: Adjust test result.
20205         * posix/globtest.sh: Adjust test result.  Add new test.
20206         * posix/tst-fnmatch.input: Likewise.
20207         * posix/tst-fnmatch2.c: Add new test.
20208
20209 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20210
20211         * elf/Makefile (check-execstack): Revert last change.  Depend on
20212         check-execstack.h.
20213         (check-execstack.h): New target.
20214         (generated): Add check-execstack.h.
20215         * elf/check-execstack.c: Include "check-execstack.h".
20216         (main): Revert last change.
20217         (handle_file): Return zero if GNU_STACK is absent and
20218         DEFAULT_STACK_PERMS doesn't include PF_X.
20219
20220 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20221
20222         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20223         in child fails because the descriptor is already closed.
20224         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20225         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20226         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20227
20228         [BZ #12397]
20229         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20230         syscall.
20231
20232         [BZ #10484]
20233         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20234         temporary buffer used to handle multi lookups locally.
20235         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20236
20237 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20238
20239         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20240         loader is ld.so.
20241
20242 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20243
20244         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20245         alignment for SSE2.
20246
20247 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20248
20249         [BZ #12394]
20250         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20251         characters.  When rounding increased number of integer digits recompute
20252         number of groups.
20253         * stdio-common/tst-grouping.c: New file.
20254         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20255
20256 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20257
20258         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20259         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20260
20261         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20262         void.
20263         * bits/select.h: Likewise.
20264
20265 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20266
20267         * po/ja.po: Update from translation team.
20268
20269 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20270
20271         [BZ #11155]
20272         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20273         implementation just like for lxstat, fxstatat, et al.
20274
20275 2010-12-27  Jim Meyering  <meyering@redhat.com>
20276
20277         [BZ #12348]
20278         * posix/regexec.c (build_trtable): Return failure indication upon
20279         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20280
20281 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20282
20283         [BZ #12201]
20284         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20285         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20286         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20287         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20288
20289         [BZ #12207]
20290         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20291
20292         [BZ #12204]
20293         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20294         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20295
20296 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20297
20298         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20299         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20300         script has SORT_BY_INIT_PRIORITY.
20301         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20302         NO_CTORS_DTORS_SECTIONS is defined.
20303         * elf/soinit.c: Likewise.
20304         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20305         NO_CTORS_DTORS_SECTIONS is defined.
20306         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
20307         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
20308         * sysdeps/sh/init-first.c: Likewise.
20309         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
20310
20311 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
20312
20313         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
20314         always use the slow path.
20315
20316 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
20317
20318         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
20319         similar rule which adds the sysdep directories to the header search in
20320         order to pick up the correct platform stackinfo.h.
20321         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
20322         perform test if it is, otherwise return successfully without testing.
20323         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
20324         DEFAULT_STACK_PERMS define in stackinfo.h.
20325         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
20326         defined in stackinfo.h.
20327         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
20328         DEFAULT_STACK_PERMS defined in stackinfo.h.
20329         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
20330         * sysdeps/ia64/stackinfo.h: Likewise.
20331         * sysdeps/s390/stackinfo.h: Likewise.
20332         * sysdeps/sh/stackinfo.h: Likewise.
20333         * sysdeps/sparc/stackinfo.h: Likewise.
20334         * sysdeps/x86_64/stackinfo.h: Likewise.
20335         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
20336         PF_X for powerpc64.  Retain PF_X for powerpc32.
20337
20338 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
20339
20340         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
20341         accurately.
20342         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
20343         GETDENTS_64BIT_ALIGNED.
20344
20345 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
20346
20347         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
20348
20349 2010-12-10  Andreas Schwab  <schwab@redhat.com>
20350
20351         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
20352         _GNU_SOURCE.
20353
20354         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
20355         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
20356         Remove __restrict.
20357         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
20358         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
20359
20360 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
20361
20362         [BZ #11655]
20363         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
20364         are initialized.
20365
20366 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
20367
20368         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
20369
20370 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
20371
20372         * po/it.po: Update from translation team.
20373
20374 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20375
20376         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
20377         unused codes.
20378
20379 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
20380
20381         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
20382
20383 2010-11-24  Andreas Schwab  <schwab@redhat.com>
20384
20385         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
20386         specially.
20387         (gaih_getanswer_slice): Likewise.
20388
20389 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
20390
20391         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
20392
20393 2010-05-31  Petr Baudis  <pasky@suse.cz>
20394
20395         [BZ #11149]
20396         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
20397         silently even in the chroot mode.
20398
20399 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
20400
20401         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
20402         last patch a bit.  Pretty printing
20403
20404 2010-05-31  Petr Baudis <pasky@suse.cz>
20405
20406         [BZ #10085]
20407         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
20408         initialization of skip_initgroups_dyn.
20409
20410 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
20411
20412         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
20413         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20414
20415 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
20416
20417         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
20418
20419 2010-11-11  Andreas Schwab  <schwab@redhat.com>
20420
20421         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
20422         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
20423         (tst-fnmatch-ENV): Set MALLOC_TRACE.
20424         ($(objpfx)tst-fnmatch-mem): New rule.
20425         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
20426         * posix/tst-fnmatch.c (main): Call mtrace.
20427
20428 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
20429
20430         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20431         Support Intel processor model 6 and model 0x2c.
20432
20433 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
20434
20435         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
20436           signed comparison.
20437
20438 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
20439
20440         [BZ #12205]
20441         * string/test-strncasecmp.c (check_result): New function.
20442         (do_one_test): Use it.
20443         (check1): New function.
20444         (test_main): Use it.
20445         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
20446         Support strcasecmp and strncasecmp.
20447
20448 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
20449
20450         [BZ #12194]
20451         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
20452         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20453
20454 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20455
20456         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
20457         IFUNC support.
20458         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20459         memset-x86-64.
20460         * sysdeps/x86_64/multiarch/bzero.S: New file.
20461         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
20462         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
20463         * sysdeps/x86_64/multiarch/memset.S: New file.
20464         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
20465         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20466         Set bit_Prefer_SSE_for_memop for Intel processors.
20467         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
20468         Define.
20469         (index_Prefer_SSE_for_memop): Define.
20470         (HAS_PREFER_SSE_FOR_MEMOP): Define.
20471
20472 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
20473
20474         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
20475         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
20476
20477 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
20478
20479         [BZ #12191]
20480         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20481         (__x86_64_raw_data_cache_size_half): Likewise.
20482         (__x86_64_raw_shared_cache_size): Likewise.
20483         (__x86_64_raw_shared_cache_size_half): Likewise.
20484
20485         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20486         (__x86_64_raw_data_cache_size_half): Likewise.
20487         (__x86_64_raw_shared_cache_size): Likewise.
20488         (__x86_64_raw_shared_cache_size_half): Likewise.
20489         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
20490         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
20491         and __x86_64_raw_shared_cache_size_half.  Round
20492         __x86_64_data_cache_size_half, __x86_64_data_cache_size
20493         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
20494         to multiple of 256 bytes.
20495
20496 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
20497
20498         [BZ #12167]
20499         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
20500         of inacessible symlinks.  Verify result of symlink before returning it.
20501         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
20502         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
20503
20504 2010-10-28  Erich Ritz  <erichritz@gmail.com>
20505
20506         * math/math.h (isinf): Fix typo in comment.
20507
20508 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
20509
20510         * po/da.po: Update from translation team.
20511
20512 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
20513
20514         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
20515         is added to the list.
20516
20517 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20518             Ulrich Drepper  <drepper@gmail.com>
20519
20520         * elf/dl-object.c (_dl_new_object): Don't append the new object to
20521         the global list here.  Move code to...
20522         (_dl_add_to_namespace_list): ...here.  New function.
20523         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
20524         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
20525         * elf/dl-load.c (lose): Don't remove the element from the list.
20526         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
20527         (_dl_map_object): Likewise.
20528
20529 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
20530
20531         [BZ #12159]
20532         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
20533         into all bytes of SSE register.
20534         Patch by Richard Li <richardpku@gmail.com>.
20535
20536 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
20537
20538         [BZ #12140]
20539         * malloc/malloc.c (_int_free): Fill correct number of bytes when
20540         perturbing.
20541
20542 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
20543
20544         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
20545         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
20546         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
20547         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
20549         submachine.
20550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
20551
20552 2010-10-22  Andreas Schwab  <schwab@redhat.com>
20553
20554         * include/dlfcn.h (__RTLD_SECURE): Define.
20555         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
20556         mode & __RTLD_SECURE instead.
20557         (open_path): Rename preloaded parameter to secure.
20558         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
20559         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
20560         * elf/dl-deps.c (openaux): Likewise.
20561         * elf/rtld.c (struct map_args): Remove is_preloaded.
20562         (map_doit): Don't use it.
20563         (dl_main): Likewise.
20564         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
20565         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
20566
20567 2010-09-09  Andreas Schwab  <schwab@redhat.com>
20568
20569         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
20570         (sysd-rules-targets): Remove duplicates.
20571         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
20572         rtld-%.$o dependency.
20573
20574 2010-10-18  Andreas Schwab  <schwab@redhat.com>
20575
20576         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
20577         _dl_map_object do it.
20578
20579 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
20580
20581         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
20582         fast fma builtins, define the macros in the C99 standard.
20583         (FP_FAST_FMAF): Likewise.
20584         (FP_FAST_FMAL): Likewise.
20585         * sysdeps/x86_64/bits/mathdef.h: Likewise.
20586
20587         * bits/mathdef.h: Update copyright year.
20588         * sysdeps/powerpc/bits/mathdef.h: Likewise.
20589
20590 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20591
20592         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
20593         builtins, define the macros in the C99 standard.
20594         (FP_FAST_FMAF): Likewise.
20595         (FP_FAST_FMAL): Likewise.
20596         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
20597         multiply/add.
20598         (FP_FAST_FMAF): Likewise.
20599
20600 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
20601
20602         [BZ #3268]
20603         * math/libm-test.inc (fma_test): Some new testcases.
20604         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
20605         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
20606         y and infinite z.  Do multiplication by C already in long double.
20607         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
20608         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
20609         y and infinite z.  Do bitwise or of inexact bit into u.d.
20610         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
20611         * sysdeps/i386/fpu/s_fmaf.S: Removed.
20612         * sysdeps/i386/fpu/s_fma.S: Removed.
20613         * sysdeps/i386/fpu/s_fmal.S: Removed.
20614
20615 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
20616
20617         [BZ #3268]
20618         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
20619         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
20620         computation is not scheduled after fetestexcept.  Fix value
20621         of minimum denormal long double.
20622
20623 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
20624
20625         [BZ #3268]
20626         * math/libm-test.inc (fma_test): Add some more tests.
20627         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
20628         correctly.
20629
20630 2010-10-15  Andreas Schwab  <schwab@redhat.com>
20631
20632         * scripts/data/localplt-s390-linux-gnu.data: New file.
20633         * scripts/data/localplt-s390x-linux-gnu.data: New file.
20634
20635 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
20636
20637         [BZ #3268]
20638         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
20639         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
20640         instead of dbl-64.
20641         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
20642         inlines.
20643         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
20644         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
20645         if one of x and y is very large and the other is subnormal.
20646         * sysdeps/s390/fpu/s_fmaf.c: New file.
20647         * sysdeps/s390/fpu/s_fma.c: New file.
20648         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
20649         * sysdeps/powerpc/fpu/s_fma.S: New file.
20650         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
20651         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
20652         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
20653
20654 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
20655
20656         [BZ #3268]
20657         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
20658         fma tests.
20659         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
20660         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
20661         * sysdeps/i386/i686/multiarch/s_fma.c: Include
20662         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
20663         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
20664         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
20665         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
20666
20667 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
20668
20669         [BZ #12078]
20670         * posix/regcomp.c (parse_branch): One more memory leak plugged.
20671         * posix/bug-regex31.input: Add test case.
20672
20673 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20674
20675         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
20676         * posix/bug-regex31.input: New file.
20677
20678         [BZ #12078]
20679         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
20680         (parse_sub_exp): Fix last change, use postorder.
20681
20682         * posix/bug-regex31.c: New file.
20683         * posix/Makefile: Add rules to build and run bug-regex31.
20684
20685         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
20686
20687         [BZ #12078]
20688         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
20689
20690         [BZ #12108]
20691         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20692         to have entries in sys_siglist.
20693
20694         [BZ #12093]
20695         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20696         be NULL.
20697
20698 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20699
20700         [BZ #3268]
20701         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20702         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20703         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20704         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20705         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20706         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20707         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20708         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20709         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20710         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20711         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20712         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20713         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20714         * math/ftestexcept.c (fetestexcept): Likewise.
20715         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20716         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20717         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20718         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20719         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20720         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20721         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20722
20723 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20724
20725         [BZ #12107]
20726         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20727         newline.
20728
20729 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20730
20731         * string/bug-strstr1.c: New file.
20732         * string/Makefile: Add rules to build and run bug-strstr1.
20733
20734 2010-10-05  Eric Blake  <eblake@redhat.com>
20735
20736         [BZ #12092]
20737         * string/str-two-way.h (two_way_long_needle): Always clear memory
20738         when skipping input due to the shift table.
20739
20740 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20741
20742         [BZ #12005]
20743         * malloc/mcheck.c: Handle large requests.
20744
20745         [BZ #12077]
20746         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20747         for strncmp and strncasecmp.
20748         * string/stratcliff.c: Add tests for strcmp and strncmp.
20749         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20750
20751 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20752
20753         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20754         __set_fpscr.
20755
20756 2010-09-30  Andreas Jaeger  <aj@suse.de>
20757
20758         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20759         (CGROUP_SUPER_MAGIC): Define.
20760         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20761         Handle btrfs and cgroup file systems.
20762         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20763         Likewise.
20764
20765 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20766
20767         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20768         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20769
20770 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20771
20772         [BZ #12067]
20773         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20774         trying to locate the ELF header.
20775
20776 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20777
20778         [BZ #11611]
20779         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20780         Mask out sign-bit copies when constructing f_fsid.
20781
20782 2010-09-24  Petr Baudis <pasky@suse.cz>
20783
20784         * debug/stack_chk_fail_local.c: Add missing licence exception.
20785         * debug/warning-nop.c: Likewise.
20786
20787 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20788
20789         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20790         implementing getdents64 using getdents syscall, set d_type if
20791         __ASSUME_GETDENTS32_D_TYPE.
20792
20793 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20794
20795         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20796         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20797
20798 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20799
20800         [BZ #12037]
20801         * posix/unistd.h: Undo change of feature selection for ftruncate from
20802         2010-01-11.
20803
20804 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20805
20806         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20807         detection.
20808
20809 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20810
20811         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20812         fanotify_mark.
20813         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20814
20815 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20816
20817         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20818         variables after CHECK_SP call.
20819         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20820
20821 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20822             Ulrich Drepper  <drepper@redhat.com>
20823
20824         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20825         re-relocationg ld.so.
20826         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20827         _dl_init_paths call.
20828         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20829         here anymore.
20830
20831 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20832
20833         * resolv/res_init.c (__res_vinit): Count the default server we added.
20834
20835 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20836             Ulrich Drepper  <drepper@redhat.com>
20837
20838         [BZ #11968]
20839         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20840         (____longjmp_chk): Use %ebx for saving value across system call.
20841         Add unwind info.
20842
20843 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20844
20845         * manual/Makefile: Don't mix pattern rules with normal rules.
20846
20847 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20848
20849         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20850         operation.
20851         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20852         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20853         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20854         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20855         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20856         Likewise.
20857
20858 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20859
20860         [BZ #11979]
20861         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20862         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20863
20864 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20865
20866         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20867         * sysdeps/x86_64/addmul_1.S: Likewise.
20868         * sysdeps/x86_64/lshift.S: Likewise.
20869         * sysdeps/x86_64/mul_1.S: Likewise.
20870         * sysdeps/x86_64/rshift.S: Likewise.
20871         * sysdeps/x86_64/sub_n.S: Likewise.
20872         * sysdeps/x86_64/submul_1.S: Likewise.
20873
20874 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20875
20876         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20877         Define __sched_param instead of SCHED_* and sched_param when
20878         <bits/sched.h> is included with __need_schedparam defined.
20879         * bits/sched.h [__need_schedparam]
20880         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20881         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20882         (__defined_schedparam): Define to 1.
20883         (__sched_param): New structure, identical to sched_param.
20884         (__need_schedparam): Undefine.
20885
20886 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20887
20888         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20889         (epoll_create1): Declare.
20890
20891         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20892
20893 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20894
20895         [BZ #7066]
20896         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20897         shifting retval into place.
20898
20899 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20900
20901         * nis/rpcsvc/nis.h: Update copyright notice.
20902         * nis/rpcsvc/nis.x: Likewise.
20903         * nis/rpcsvc/nis_callback.h: Likewise.
20904         * nis/rpcsvc/nis_callback.x: Likewise.
20905         * nis/rpcsvc/nis_object.x: Likewise.
20906         * nis/rpcsvc/nis_tags.h: Likewise.
20907         * nis/rpcsvc/yp.h: Likewise.
20908         * nis/rpcsvc/yp.x: Likewise.
20909         * nis/rpcsvc/ypupd.h: Likewise.
20910         * nis/yp_xdr.c: Likewise.
20911         * nis/ypupdate_xdr.c: Likewise.
20912
20913         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20914         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20915         (pmap_getport): Use __libc_rpc_getport.
20916         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20917         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20918         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20919
20920 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20921
20922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20923         fanotify_mark.
20924
20925 2010-08-27  Roland McGrath  <roland@redhat.com>
20926
20927         * sysdeps/i386/i686/multiarch/Makefile
20928         (CFLAGS-varshift.c): New variable.
20929
20930 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20931
20932         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20933         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20934
20935         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20936
20937         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20938
20939 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20940
20941         * sysdeps/x86_64/strlen.S: Unroll the loop.
20942         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20943         strlen-sse2 strlen-sse2-bsf.
20944         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20945         __strlen_no_bsf if bit_Slow_BSF is set.
20946         (__strlen_sse42): Removed.
20947         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20948         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20949
20950 2010-08-25  Roland McGrath  <roland@redhat.com>
20951
20952         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20953         * sysdeps/x86_64/multiarch/varshift.c: New file.
20954         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20955         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20956         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20957         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20958
20959 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20960
20961         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20962         strlen-sse2 strlen-sse2-bsf.
20963         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20964         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20965         (__strlen_sse2): Removed.
20966         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20967         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20968         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20969         bit_Slow_BSF for Atom.
20970         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20971         (index_Slow_BSF): Define.
20972         (HAS_SLOW_BSF): Define.
20973
20974 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20975
20976         [BZ #10851]
20977         * resolv/res_init.c (__res_vinit): When no server address at all
20978         is given default to loopback.
20979
20980 2010-08-24  Roland McGrath  <roland@redhat.com>
20981
20982         * configure.in: Remove config-name.h generation.
20983         * configure: Regenerated.
20984         * config-name.in: File removed.
20985         * scripts/config-uname.sh: New file.
20986         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20987         ($(objdir)config-name.h): New target.
20988
20989         * sunrpc/rpc_parse.h: Avoid nested comment.
20990
20991 2010-08-24  Richard Henderson  <rth@redhat.com>
20992             Ulrich Drepper  <drepper@redhat.com>
20993             H.J. Lu  <hongjiu.lu@intel.com>
20994
20995         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20996         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20997         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20998         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20999         _mm_alignr_epi8 with _mm_loadu_si128.
21000         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21001         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21002         (__m128i_shift_right): Removed.
21003         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21004         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21005         * sysdeps/x86_64/multiarch/varshift.h: New file.
21006         * sysdeps/x86_64/multiarch/varshift.S: New file.
21007
21008 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21009
21010         * configure.in: Move assembler checks to before sysdep dir checking.
21011
21012 2010-08-20  Petr Baudis  <pasky@suse.cz>
21013
21014         * LICENSES: Sync the sunrpc license.
21015
21016 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21017
21018         * sunrpc/auth_des.c: Update copyright notice once again.
21019         * sunrpc/auth_none.c: Likewise.
21020         * sunrpc/auth_unix.c: Likewise.
21021         * sunrpc/authdes_prot.c: Likewise.
21022         * sunrpc/authuxprot.c: Likewise.
21023         * sunrpc/bindrsvprt.c: Likewise.
21024         * sunrpc/clnt_gen.c: Likewise.
21025         * sunrpc/clnt_perr.c: Likewise.
21026         * sunrpc/clnt_raw.c: Likewise.
21027         * sunrpc/clnt_simp.c: Likewise.
21028         * sunrpc/clnt_tcp.c: Likewise.
21029         * sunrpc/clnt_udp.c: Likewise.
21030         * sunrpc/clnt_unix.c: Likewise.
21031         * sunrpc/des_crypt.c: Likewise.
21032         * sunrpc/des_soft.c: Likewise.
21033         * sunrpc/get_myaddr.c: Likewise.
21034         * sunrpc/getrpcport.c: Likewise.
21035         * sunrpc/key_call.c: Likewise.
21036         * sunrpc/key_prot.c: Likewise.
21037         * sunrpc/openchild.c: Likewise.
21038         * sunrpc/pm_getmaps.c: Likewise.
21039         * sunrpc/pm_getport.c: Likewise.
21040         * sunrpc/pmap_clnt.c: Likewise.
21041         * sunrpc/pmap_prot.c: Likewise.
21042         * sunrpc/pmap_prot2.c: Likewise.
21043         * sunrpc/pmap_rmt.c: Likewise.
21044         * sunrpc/rpc/auth.h: Likewise.
21045         * sunrpc/rpc/auth_unix.h: Likewise.
21046         * sunrpc/rpc/clnt.h: Likewise.
21047         * sunrpc/rpc/des_crypt.h: Likewise.
21048         * sunrpc/rpc/key_prot.h: Likewise.
21049         * sunrpc/rpc/netdb.h: Likewise.
21050         * sunrpc/rpc/pmap_clnt.h: Likewise.
21051         * sunrpc/rpc/pmap_prot.h: Likewise.
21052         * sunrpc/rpc/pmap_rmt.h: Likewise.
21053         * sunrpc/rpc/rpc.h: Likewise.
21054         * sunrpc/rpc/rpc_des.h: Likewise.
21055         * sunrpc/rpc/rpc_msg.h: Likewise.
21056         * sunrpc/rpc/svc.h: Likewise.
21057         * sunrpc/rpc/svc_auth.h: Likewise.
21058         * sunrpc/rpc/types.h: Likewise.
21059         * sunrpc/rpc/xdr.h: Likewise.
21060         * sunrpc/rpc_clntout.c: Likewise.
21061         * sunrpc/rpc_cmsg.c: Likewise.
21062         * sunrpc/rpc_common.c: Likewise.
21063         * sunrpc/rpc_cout.c: Likewise.
21064         * sunrpc/rpc_dtable.c: Likewise.
21065         * sunrpc/rpc_hout.c: Likewise.
21066         * sunrpc/rpc_main.c: Likewise.
21067         * sunrpc/rpc_parse.c: Likewise.
21068         * sunrpc/rpc_parse.h: Likewise.
21069         * sunrpc/rpc_prot.c: Likewise.
21070         * sunrpc/rpc_sample.c: Likewise.
21071         * sunrpc/rpc_scan.c: Likewise.
21072         * sunrpc/rpc_scan.h: Likewise.
21073         * sunrpc/rpc_svcout.c: Likewise.
21074         * sunrpc/rpc_tblout.c: Likewise.
21075         * sunrpc/rpc_util.c: Likewise.
21076         * sunrpc/rpc_util.h: Likewise.
21077         * sunrpc/rpcinfo.c: Likewise.
21078         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21079         * sunrpc/rpcsvc/key_prot.x: Likewise.
21080         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21081         * sunrpc/rpcsvc/mount.x: Likewise.
21082         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21083         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21084         * sunrpc/rpcsvc/rex.x: Likewise.
21085         * sunrpc/rpcsvc/rstat.x: Likewise.
21086         * sunrpc/rpcsvc/rusers.x: Likewise.
21087         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21088         * sunrpc/rpcsvc/spray.x: Likewise.
21089         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21090         * sunrpc/rtime.c: Likewise.
21091         * sunrpc/svc.c: Likewise.
21092         * sunrpc/svc_auth.c: Likewise.
21093         * sunrpc/svc_authux.c: Likewise.
21094         * sunrpc/svc_raw.c: Likewise.
21095         * sunrpc/svc_run.c: Likewise.
21096         * sunrpc/svc_simple.c: Likewise.
21097         * sunrpc/svc_tcp.c: Likewise.
21098         * sunrpc/svc_udp.c: Likewise.
21099         * sunrpc/svc_unix.c: Likewise.
21100         * sunrpc/svcauth_des.c: Likewise.
21101         * sunrpc/xcrypt.c: Likewise.
21102         * sunrpc/xdr.c: Likewise.
21103         * sunrpc/xdr_array.c: Likewise.
21104         * sunrpc/xdr_float.c: Likewise.
21105         * sunrpc/xdr_mem.c: Likewise.
21106         * sunrpc/xdr_rec.c: Likewise.
21107         * sunrpc/xdr_ref.c: Likewise.
21108         * sunrpc/xdr_sizeof.c: Likewise.
21109         * sunrpc/xdr_stdio.c: Likewise.
21110
21111         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21112         handling.
21113
21114 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21115
21116         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21117
21118 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21119
21120         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21121         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21122         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21123         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21124         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21125         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21126         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21127         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21128         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21129         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21130         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21131         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21132         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21133         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21134
21135 2010-07-26  Anton Blanchard  <anton@samba.org>
21136
21137         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21138         * malloc/arena.c (heap_trim): Likewise.
21139
21140 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21141
21142         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21143         here.  Not...
21144         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21145         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21146
21147 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21148
21149         * sysdeps/i386/elf/Makefile: New file.
21150
21151 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21152
21153         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21154         from fanotify_init.
21155         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21156         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21157
21158 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21159
21160         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21161         of strncasecmp_l.
21162         * sysdeps/multiarch/strcmp.S: Likewise.
21163
21164 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21165
21166         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21167         strncase_l-nonascii.
21168         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21169         Add strncase_l-ssse3.
21170         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21171         * sysdeps/x86_64/strcmp.S: Likewise.
21172         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21173         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21174         * sysdeps/x86_64/strncase.S: New file.
21175         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21176         * sysdeps/x86_64/strncase_l.S: New file.
21177         * string/Makefile (strop-tests): Add strncasecmp.
21178         * string/test-strncasecmp.c: New file.
21179
21180         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21181         warning.
21182
21183         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21184         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21185
21186 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21187
21188         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21189
21190 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21191
21192         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21193         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21194         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21195
21196 2010-05-01  Alan Modra  <amodra@gmail.com>
21197
21198         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21199         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21200         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21201         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21202         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21203         tidying.  Don't tail-call __sigjmp_save for static lib.
21204         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21205         save location.
21206         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21207         (CALL_MCOUNT): Add eh info, and nop after bl.
21208         (TAIL_CALL_SYSCALL_ERROR): New macro.
21209         (PSEUDO_RET): Use it.
21210         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21211         Correct save location of integer regs and cr.
21212         (_dl_profile_resolve): Correct cr save location.  Delete nops
21213         after bl when SHARED.  Reduce cfi size a little by better
21214         placement of cfi directives.
21215         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21216         make a stack frame.  Instead use parm save area as a temp.
21217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21218         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21220         Don't make a stack frame for parent, use parm save area.
21221         Increase child stack frame to 112 bytes.  Don't save unused reg,
21222         and adjust reg usage.  Set up cfi on error recovery and
21223         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21225         (__makecontext): Add dummy nop after jump to exit.
21226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21227         Use correct parm save area and cr save, reduce stack frame.
21228         Correct cfi for possible PSEUDO_RET frame setup.
21229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21230         Branch to local label emitted by PSEUDO_RET rather than
21231         __syscall_error.
21232
21233 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21234
21235         [BZ #11904]
21236         * locale/programs/locale.c (print_assignment): New function.
21237         (show_locale_vars): Use it.
21238
21239 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21240
21241         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21242         field.
21243         (struct statfs64): Likewise.
21244         (_STATFS_F_FLAGS): Define.
21245         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21246         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21247         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21248         (ST_VALID): Define locally.
21249         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21250         __statvfs_getflags, use the provided value.
21251         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21252         __ASSUME_STATFS_F_FLAGS.
21253
21254         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21255
21256         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21257         Add sys/fanotify.h.
21258         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21259         fanotify_mask for GLIBC_2.13.
21260         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21261         fanotify_init and fanotify_mark.
21262         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21263         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21264
21265         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21266         Add prlimit.
21267         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21268         prlimit64 for GLIBC_2.13.
21269         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21270         prlimit64.
21271         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21272         syscall.
21273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21274         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21275         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21276         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21277         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21278         add prlimit alias.
21279         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21280
21281         [BZ #11903]
21282         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21283         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21284
21285         * nss/Makefile: Add rules to build and run tst-nss-test1.
21286         * shlib-versions: Add entry for libnss_test1.
21287         * nss/nss_test1.c: New file.
21288         * nss/tst-nss-test1.c: New file.
21289
21290         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21291         (__nss_configure_lookup): Set appropriate entry in
21292         __nss_configure_lookup to true.
21293         * nss/nsswitch.h: Define enum with indeces of databases in
21294         databases and __nss_database_custom arrays.  Declare
21295         __nss_database_custom.
21296         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21297         to avoid using nscd when custom rules are installed.
21298         * nss/getXXbyYY_r.c: Likewise.
21299         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21300
21301         * nss/nss_files/files-parse.c: Whitespace fixes.
21302
21303 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21304
21305         [BZ #11883]
21306         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
21307         * posix/fnmatch_loop.c: Likewise.
21308
21309 2010-07-17  Andi Kleen  <ak@linux.intel.com>
21310
21311         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
21312         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
21313         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
21314         * Versions.def [GLIBC_2.13]: Add.
21315
21316 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
21317
21318         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21319         Also fail if tpwd after pwuid call is NULL.
21320
21321 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21322
21323         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
21324         when converting to ms.
21325
21326 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21327
21328         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
21329         EOPNOTSUPP errors with ENOTTY.
21330         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
21331         EOPNOTSUPP errors with ENOTTY.
21332
21333 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
21334
21335         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21336         Add strcasecmp_l-ssse3.
21337         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
21338         strcasecmp.
21339         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
21340         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
21341         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
21342
21343 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
21344
21345         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
21346
21347         * string/Makefile (strop-tests): Add strcasecmp.
21348         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21349         strcasecmp_l-nonascii.
21350         (gen-as-const-headers): Add locale-defines.sym.
21351         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
21352         * sysdeps/x86_64/strcasecmp.S: New file.
21353         * sysdeps/x86_64/strcasecmp_l.S: New file.
21354         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
21355         * sysdeps/x86_64/locale-defines.sym: New file.
21356         * string/test-strcasecmp.c: New file.
21357
21358         * string/test-strcasestr.c: Test both ends of the range of characters.
21359         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
21360
21361 2010-07-29  Roland McGrath  <roland@redhat.com>
21362
21363         [BZ #11856]
21364         * manual/locale.texi (Yes-or-No Questions): Fix example code.
21365
21366 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
21367
21368         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
21369         for ld.so.
21370
21371 2010-07-27  Andreas Schwab  <schwab@redhat.com>
21372
21373         * manual/memory.texi (Malloc Tunable Parameters): Document
21374         M_PERTURB.
21375
21376 2010-07-26  Roland McGrath  <roland@redhat.com>
21377
21378         [BZ #11840]
21379         * configure.in (-fgnu89-inline check): Set and substitute
21380         gnu89_inline, not libc_cv_gnu89_inline.
21381         * configure: Regenerated.
21382         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
21383
21384 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
21385
21386         * string/test-strnlen.c: New file.
21387         * string/Makefile (strop-tests): Add strnlen.
21388         * string/tester.c (test_strnlen): Add a few more test cases.
21389         * string/tst-strlen.c: Better error reporting.
21390
21391         * sysdeps/x86_64/strnlen.S: New file.
21392
21393 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
21394
21395         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
21396         lower-latency instructions.
21397
21398 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
21399
21400         * string/test-strcasestr.c: New file.
21401         * string/test-strstr.c: New file.
21402         * string/Makefile (strop-tests): Add strstr and strcasestr.
21403         * string/str-two-way.h: Don't undefine MAX.
21404         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
21405
21406 2010-07-21  Andreas Schwab  <schwab@redhat.com>
21407
21408         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21409         strcasestr-nonascii.
21410         (CFLAGS-strcasestr-nonascii.c): Define.
21411         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
21412         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
21413         Remove unused attribute.
21414
21415 2010-07-20  Roland McGrath  <roland@redhat.com>
21416
21417         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
21418         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
21419         ld.so.cache was broken.  With it, there is no way to disable dsocaps
21420         like LD_HWCAP_MASK can disable hwcaps.
21421
21422 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21423
21424         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
21425
21426 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
21427
21428         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
21429         call in strcasestr.
21430         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
21431         __strcasestr_sse42_nonascii.
21432         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
21433         strcasestr-nonascii.c.
21434         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
21435
21436 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
21437
21438         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
21439         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
21440         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
21441         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
21442
21443 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
21444
21445         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
21446         fcntl.
21447
21448 2010-07-06  Andreas Schwab  <schwab@redhat.com>
21449
21450         [BZ #11577]
21451         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
21452         dl_signal_cerror.
21453
21454 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
21455
21456         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
21457         _PC_PIPE_BUF using F_GETPIPE_SZ.
21458
21459 2010-07-05  Roland McGrath  <roland@redhat.com>
21460
21461         * manual/arith.texi (Rounding Functions): Fix rint description
21462         implicit in round description.
21463
21464 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
21465
21466         * elf/Makefile: Fix linking for a few tests to make recent linker
21467         happy.
21468
21469 2010-06-30  Andreas Schwab  <schwab@redhat.com>
21470
21471         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
21472         $(common-objpfx)libc_nonshared.a.
21473
21474 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
21475
21476         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
21477         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
21478         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21479         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21480         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
21481         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
21482         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21483         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
21485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
21486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
21487         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
21489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
21491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
21492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
21493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
21494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
21496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
21498         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
21499         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
21500         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
21501         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
21502         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
21503         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
21504         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
21505         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
21506         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
21507         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
21508         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
21509         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
21510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
21511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
21512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
21513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
21514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
21515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
21516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
21517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
21518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
21519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
21520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
21521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
21522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
21523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
21524
21525 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21526
21527         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
21528         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
21529         * string/memmove.c (memmove): Renamed to ...
21530         (MEMMOVE): ...this.  Default to memmove.
21531         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
21532         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
21533         (END_CHK): Define.
21534         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21535         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
21536         mempcpy-ssse3-back memmove-ssse3-back.
21537         * sysdeps/x86_64/multiarch/bcopy.S: New file .
21538         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
21539         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
21540         * sysdeps/x86_64/multiarch/memcpy.S: New file.
21541         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
21542         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
21543         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
21544         * sysdeps/x86_64/multiarch/memmove.c: New file.
21545         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
21546         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
21547         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
21548         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
21549         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
21550         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
21551         Define.
21552         (index_Fast_Copy_Backward): Define.
21553         (HAS_ARCH_FEATURE): Define.
21554         (HAS_FAST_REP_STRING): Define.
21555         (HAS_FAST_COPY_BACKWARD): Define.
21556
21557 2010-06-21  Andreas Schwab  <schwab@redhat.com>
21558
21559         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21560         Restore proper fallback handling.
21561
21562 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
21563
21564         [BZ #11701]
21565         * posix/group_member.c (__group_member): Correct checking loop.
21566
21567         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
21568         OOM in getpwuid_r correctly.  Return error number when the caller
21569         should return, otherwise -1.
21570         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
21571         call returning > 0 value.
21572         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
21573
21574 2010-06-07  Andreas Schwab  <schwab@redhat.com>
21575
21576         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
21577         libc_nonshared.a from targets in modules-names.
21578
21579 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
21580
21581         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
21582         requires it.
21583
21584 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
21585
21586         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
21587         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
21588         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
21589         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
21590
21591 2010-06-02  Andreas Schwab  <schwab@redhat.com>
21592
21593         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
21594
21595 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
21596
21597         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
21598         and F_GETPIPE_SZ.
21599         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
21600         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21601         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21602         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21603         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21604         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
21605
21606 2010-06-14  Roland McGrath  <roland@redhat.com>
21607
21608         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
21609
21610 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
21611
21612         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
21613         __REDIRECT followed by __THROW.
21614         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
21615         * posix/getopt.h (getopt): Likewise.
21616
21617 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21618
21619         * hurd/lookup-at.c (__file_name_lookup_at): Accept
21620         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
21621         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
21622         in AT_FLAGS.
21623         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
21624         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
21625
21626 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
21627
21628         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
21629
21630 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
21631
21632         [BZ #11640]
21633         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21634         Properly check family and model.
21635
21636 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
21637
21638         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
21639
21640 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
21641
21642         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
21643
21644 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
21645
21646         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
21647         symbol reference.
21648
21649 2010-05-19  Andreas Schwab  <schwab@redhat.com>
21650
21651         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
21652         symbol reference.
21653
21654 2010-05-21  Andreas Schwab  <schwab@redhat.com>
21655
21656         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
21657         and internal_recvmmsg.
21658         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
21659         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
21660         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
21661         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
21662
21663         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
21664         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
21665         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
21666
21667 2010-05-20  Andreas Schwab  <schwab@redhat.com>
21668
21669         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
21670
21671 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
21672
21673         POWER7 optimizations.
21674         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
21675         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
21676
21677 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
21678
21679         * version.h: Update for 2.13 development version.
21680
21681 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
21682
21683         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
21684         exceptions.  Return 0.
21685
21686 2010-05-07  Roland McGrath  <roland@redhat.com>
21687
21688         * elf/ldconfig.c (main): Add a const.
21689
21690 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
21691
21692         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21693         (args_options): Add no-idn option.
21694         (ahosts_keys_int): Add idn_flags to ai_flags.
21695         (parse_option): Handle 'i' option to clear idn_flags.
21696
21697         * malloc/malloc.c (_int_free): Possible race in the most recently
21698         added check.  Only act on the data if no current modification
21699         happened.
21700
21701 See ChangeLog.17 for earlier changes.