conformtest: Fix typo in CLK_TCK condition.
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
2
3         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
4         Change XOPEN21K to XOPEN2K.
5
6 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7
8         * string/memmove.c: Use memcpy when possible.
9
10 2012-11-06  Andreas Jaeger  <aj@suse.de>
11
12         * po/eo.po: Update from translation team.
13
14 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
15
16         [BZ #14793]
17         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
18         exponent and small x and y exponents, scale x or y up.  Increase
19         by 2 the exponent used in scaling up.
20         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
21         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
22         * math/libm-test.inc (fma_test): Add more tests.
23         (fma_test_towardzero): Likewise.
24         (fma_test_downward): Likewise.
25         (fma_test_upward): Likewise.
26
27 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
28
29         [BZ #14805]
30         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
31         fenv_t *.
32
33         [BZ #14801]
34         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
35         namespace for names of struct fields.
36         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
37         fenv_t fields.
38         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
39         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
40
41 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42
43         [BZ #3665]
44         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
45
46 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
47
48         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
49         PTR_DEMANGLE.
50
51         [BZ #5246]
52         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
53         PTR_DEMANGLE.
54
55 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
56
57         [BZ #14797]
58         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
59         definitely overflow as x * y not x * y + z.
60         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
61         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62         * math/libm-test.inc (fma_test): Add more tests.
63         (fma_test_towardzero): Likewise.
64         (fma_test_downward): Likewise.
65         (fma_test_upward): Likewise.
66
67 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
68
69         [BZ #157]
70
71         * include/stub-tag.h: Remove file.
72         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
73         '#include' of it.
74         * manual/maint.texi (Porting): Don't reference it.
75         * Makerules ($(objpfx)stubs): Likewise.
76         * dirent/closedir.c: Don't include <stub-tag.h>.
77         * dirent/dirfd.c: Likewise.
78         * dirent/fdopendir.c: Likewise.
79         * dirent/getdents.c: Likewise.
80         * dirent/getdents64.c: Likewise.
81         * dirent/opendir.c: Likewise.
82         * dirent/readdir.c: Likewise.
83         * dirent/readdir64.c: Likewise.
84         * dirent/readdir64_r.c: Likewise.
85         * dirent/readdir_r.c: Likewise.
86         * dirent/rewinddir.c: Likewise.
87         * dirent/seekdir.c: Likewise.
88         * dirent/telldir.c: Likewise.
89         * gmon/profil.c: Likewise.
90         * grp/setgroups.c: Likewise.
91         * inet/if_index.c: Likewise.
92         * io/access.c: Likewise.
93         * io/chdir.c: Likewise.
94         * io/chmod.c: Likewise.
95         * io/chown.c: Likewise.
96         * io/close.c: Likewise.
97         * io/dup.c: Likewise.
98         * io/dup2.c: Likewise.
99         * io/dup3.c: Likewise.
100         * io/euidaccess.c: Likewise.
101         * io/faccessat.c: Likewise.
102         * io/fchdir.c: Likewise.
103         * io/fchmod.c: Likewise.
104         * io/fchmodat.c: Likewise.
105         * io/fchown.c: Likewise.
106         * io/fchownat.c: Likewise.
107         * io/fcntl.c: Likewise.
108         * io/flock.c: Likewise.
109         * io/fstatfs.c: Likewise.
110         * io/fstatfs64.c: Likewise.
111         * io/fstatvfs.c: Likewise.
112         * io/fstatvfs64.c: Likewise.
113         * io/futimens.c: Likewise.
114         * io/fxstat.c: Likewise.
115         * io/fxstat64.c: Likewise.
116         * io/fxstatat.c: Likewise.
117         * io/fxstatat64.c: Likewise.
118         * io/getcwd.c: Likewise.
119         * io/isatty.c: Likewise.
120         * io/lchmod.c: Likewise.
121         * io/lchown.c: Likewise.
122         * io/link.c: Likewise.
123         * io/linkat.c: Likewise.
124         * io/lseek.c: Likewise.
125         * io/lseek64.c: Likewise.
126         * io/lxstat64.c: Likewise.
127         * io/mkdir.c: Likewise.
128         * io/mkdirat.c: Likewise.
129         * io/mkfifo.c: Likewise.
130         * io/mkfifoat.c: Likewise.
131         * io/open.c: Likewise.
132         * io/open64.c: Likewise.
133         * io/openat.c: Likewise.
134         * io/openat64.c: Likewise.
135         * io/pipe.c: Likewise.
136         * io/pipe2.c: Likewise.
137         * io/poll.c: Likewise.
138         * io/posix_fadvise.c: Likewise.
139         * io/posix_fadvise64.c: Likewise.
140         * io/posix_fallocate.c: Likewise.
141         * io/posix_fallocate64.c: Likewise.
142         * io/read.c: Likewise.
143         * io/readlink.c: Likewise.
144         * io/readlinkat.c: Likewise.
145         * io/rmdir.c: Likewise.
146         * io/sendfile.c: Likewise.
147         * io/sendfile64.c: Likewise.
148         * io/statfs.c: Likewise.
149         * io/statfs64.c: Likewise.
150         * io/statvfs.c: Likewise.
151         * io/statvfs64.c: Likewise.
152         * io/symlink.c: Likewise.
153         * io/symlinkat.c: Likewise.
154         * io/ttyname.c: Likewise.
155         * io/ttyname_r.c: Likewise.
156         * io/umask.c: Likewise.
157         * io/unlink.c: Likewise.
158         * io/unlinkat.c: Likewise.
159         * io/utime.c: Likewise.
160         * io/utimensat.c: Likewise.
161         * io/write.c: Likewise.
162         * io/xmknod.c: Likewise.
163         * io/xmknodat.c: Likewise.
164         * io/xstat.c: Likewise.
165         * io/xstat64.c: Likewise.
166         * login/getpt.c: Likewise.
167         * login/grantpt.c: Likewise.
168         * login/unlockpt.c: Likewise.
169         * math/e_acoshl.c: Likewise.
170         * math/e_acosl.c: Likewise.
171         * math/e_asinl.c: Likewise.
172         * math/e_atan2l.c: Likewise.
173         * math/e_atanhl.c: Likewise.
174         * math/e_coshl.c: Likewise.
175         * math/e_expl.c: Likewise.
176         * math/e_fmodl.c: Likewise.
177         * math/e_gammal_r.c: Likewise.
178         * math/e_hypotl.c: Likewise.
179         * math/e_j0l.c: Likewise.
180         * math/e_j1l.c: Likewise.
181         * math/e_jnl.c: Likewise.
182         * math/e_lgammal_r.c: Likewise.
183         * math/e_log10l.c: Likewise.
184         * math/e_log2l.c: Likewise.
185         * math/e_logl.c: Likewise.
186         * math/e_powl.c: Likewise.
187         * math/e_rem_pio2l.c: Likewise.
188         * math/e_sinhl.c: Likewise.
189         * math/e_sqrtl.c: Likewise.
190         * math/fclrexcpt.c: Likewise.
191         * math/fedisblxcpt.c: Likewise.
192         * math/feenablxcpt.c: Likewise.
193         * math/fegetenv.c: Likewise.
194         * math/fegetexcept.c: Likewise.
195         * math/fegetround.c: Likewise.
196         * math/feholdexcpt.c: Likewise.
197         * math/fesetenv.c: Likewise.
198         * math/fesetround.c: Likewise.
199         * math/feupdateenv.c: Likewise.
200         * math/fgetexcptflg.c: Likewise.
201         * math/fraiseexcpt.c: Likewise.
202         * math/fsetexcptflg.c: Likewise.
203         * math/ftestexcept.c: Likewise.
204         * math/k_cosl.c: Likewise.
205         * math/k_rem_pio2l.c: Likewise.
206         * math/k_sinl.c: Likewise.
207         * math/k_tanl.c: Likewise.
208         * math/s_asinhl.c: Likewise.
209         * math/s_atanl.c: Likewise.
210         * math/s_cbrtl.c: Likewise.
211         * math/s_erfl.c: Likewise.
212         * math/s_expm1l.c: Likewise.
213         * math/s_log1pl.c: Likewise.
214         * math/s_tanhl.c: Likewise.
215         * misc/acct.c: Likewise.
216         * misc/brk.c: Likewise.
217         * misc/chflags.c: Likewise.
218         * misc/chroot.c: Likewise.
219         * misc/fchflags.c: Likewise.
220         * misc/fgetxattr.c: Likewise.
221         * misc/flistxattr.c: Likewise.
222         * misc/fremovexattr.c: Likewise.
223         * misc/fsetxattr.c: Likewise.
224         * misc/fsync.c: Likewise.
225         * misc/ftruncate.c: Likewise.
226         * misc/futimes.c: Likewise.
227         * misc/futimesat.c: Likewise.
228         * misc/getdomain.c: Likewise.
229         * misc/getdtsz.c: Likewise.
230         * misc/gethostid.c: Likewise.
231         * misc/gethostname.c: Likewise.
232         * misc/getloadavg.c: Likewise.
233         * misc/getpagesize.c: Likewise.
234         * misc/getsysstats.c: Likewise.
235         * misc/getxattr.c: Likewise.
236         * misc/gtty.c: Likewise.
237         * misc/ioctl.c: Likewise.
238         * misc/lgetxattr.c: Likewise.
239         * misc/listxattr.c: Likewise.
240         * misc/llistxattr.c: Likewise.
241         * misc/lremovexattr.c: Likewise.
242         * misc/lsetxattr.c: Likewise.
243         * misc/lutimes.c: Likewise.
244         * misc/madvise.c: Likewise.
245         * misc/mincore.c: Likewise.
246         * misc/mlock.c: Likewise.
247         * misc/mlockall.c: Likewise.
248         * misc/mmap.c: Likewise.
249         * misc/mprotect.c: Likewise.
250         * misc/msync.c: Likewise.
251         * misc/munlock.c: Likewise.
252         * misc/munlockall.c: Likewise.
253         * misc/munmap.c: Likewise.
254         * misc/preadv.c: Likewise.
255         * misc/preadv64.c: Likewise.
256         * misc/ptrace.c: Likewise.
257         * misc/pwritev.c: Likewise.
258         * misc/pwritev64.c: Likewise.
259         * misc/readv.c: Likewise.
260         * misc/reboot.c: Likewise.
261         * misc/remap_file_pages.c: Likewise.
262         * misc/removexattr.c: Likewise.
263         * misc/revoke.c: Likewise.
264         * misc/select.c: Likewise.
265         * misc/setdomain.c: Likewise.
266         * misc/setegid.c: Likewise.
267         * misc/seteuid.c: Likewise.
268         * misc/sethostid.c: Likewise.
269         * misc/sethostname.c: Likewise.
270         * misc/setregid.c: Likewise.
271         * misc/setreuid.c: Likewise.
272         * misc/setxattr.c: Likewise.
273         * misc/sstk.c: Likewise.
274         * misc/stty.c: Likewise.
275         * misc/swapoff.c: Likewise.
276         * misc/swapon.c: Likewise.
277         * misc/sync.c: Likewise.
278         * misc/syncfs.c: Likewise.
279         * misc/syscall.c: Likewise.
280         * misc/truncate.c: Likewise.
281         * misc/ualarm.c: Likewise.
282         * misc/usleep.c: Likewise.
283         * misc/ustat.c: Likewise.
284         * misc/utimes.c: Likewise.
285         * misc/vhangup.c: Likewise.
286         * misc/writev.c: Likewise.
287         * posix/_exit.c: Likewise.
288         * posix/alarm.c: Likewise.
289         * posix/execve.c: Likewise.
290         * posix/fexecve.c: Likewise.
291         * posix/fork.c: Likewise.
292         * posix/fpathconf.c: Likewise.
293         * posix/getaddrinfo.c: Likewise.
294         * posix/getegid.c: Likewise.
295         * posix/geteuid.c: Likewise.
296         * posix/getgid.c: Likewise.
297         * posix/getgroups.c: Likewise.
298         * posix/getlogin.c: Likewise.
299         * posix/getlogin_r.c: Likewise.
300         * posix/getpgid.c: Likewise.
301         * posix/getpid.c: Likewise.
302         * posix/getppid.c: Likewise.
303         * posix/getresgid.c: Likewise.
304         * posix/getresuid.c: Likewise.
305         * posix/getsid.c: Likewise.
306         * posix/getuid.c: Likewise.
307         * posix/glob64.c: Likewise.
308         * posix/nanosleep.c: Likewise.
309         * posix/pathconf.c: Likewise.
310         * posix/pause.c: Likewise.
311         * posix/posix_madvise.c: Likewise.
312         * posix/pread.c: Likewise.
313         * posix/pread64.c: Likewise.
314         * posix/pwrite.c: Likewise.
315         * posix/pwrite64.c: Likewise.
316         * posix/sched_getaffinity.c: Likewise.
317         * posix/sched_getp.c: Likewise.
318         * posix/sched_gets.c: Likewise.
319         * posix/sched_primax.c: Likewise.
320         * posix/sched_primin.c: Likewise.
321         * posix/sched_rr_gi.c: Likewise.
322         * posix/sched_setaffinity.c: Likewise.
323         * posix/sched_setp.c: Likewise.
324         * posix/sched_sets.c: Likewise.
325         * posix/sched_yield.c: Likewise.
326         * posix/setgid.c: Likewise.
327         * posix/setlogin.c: Likewise.
328         * posix/setpgid.c: Likewise.
329         * posix/setresgid.c: Likewise.
330         * posix/setresuid.c: Likewise.
331         * posix/setsid.c: Likewise.
332         * posix/setuid.c: Likewise.
333         * posix/sleep.c: Likewise.
334         * posix/spawni.c: Likewise.
335         * posix/sysconf.c: Likewise.
336         * posix/times.c: Likewise.
337         * posix/wait.c: Likewise.
338         * posix/wait3.c: Likewise.
339         * posix/wait4.c: Likewise.
340         * posix/waitpid.c: Likewise.
341         * resolv/gai_sigqueue.c: Likewise.
342         * resource/getpriority.c: Likewise.
343         * resource/getrlimit.c: Likewise.
344         * resource/getrusage.c: Likewise.
345         * resource/nice.c: Likewise.
346         * resource/setpriority.c: Likewise.
347         * resource/setrlimit.c: Likewise.
348         * resource/ulimit.c: Likewise.
349         * rt/aio_cancel.c: Likewise.
350         * rt/aio_fsync.c: Likewise.
351         * rt/aio_read.c: Likewise.
352         * rt/aio_sigqueue.c: Likewise.
353         * rt/aio_suspend.c: Likewise.
354         * rt/aio_write.c: Likewise.
355         * rt/clock_getres.c: Likewise.
356         * rt/clock_gettime.c: Likewise.
357         * rt/clock_nanosleep.c: Likewise.
358         * rt/clock_settime.c: Likewise.
359         * rt/lio_listio.c: Likewise.
360         * rt/mq_close.c: Likewise.
361         * rt/mq_getattr.c: Likewise.
362         * rt/mq_notify.c: Likewise.
363         * rt/mq_open.c: Likewise.
364         * rt/mq_receive.c: Likewise.
365         * rt/mq_send.c: Likewise.
366         * rt/mq_setattr.c: Likewise.
367         * rt/mq_timedreceive.c: Likewise.
368         * rt/mq_timedsend.c: Likewise.
369         * rt/mq_unlink.c: Likewise.
370         * rt/shm_open.c: Likewise.
371         * rt/shm_unlink.c: Likewise.
372         * rt/timer_create.c: Likewise.
373         * rt/timer_delete.c: Likewise.
374         * rt/timer_getoverr.c: Likewise.
375         * rt/timer_gettime.c: Likewise.
376         * rt/timer_settime.c: Likewise.
377         * setjmp/__longjmp.c: Likewise.
378         * setjmp/setjmp.c: Likewise.
379         * signal/kill.c: Likewise.
380         * signal/killpg.c: Likewise.
381         * signal/raise.c: Likewise.
382         * signal/sigaction.c: Likewise.
383         * signal/sigaltstack.c: Likewise.
384         * signal/sigblock.c: Likewise.
385         * signal/sigignore.c: Likewise.
386         * signal/sigintr.c: Likewise.
387         * signal/signal.c: Likewise.
388         * signal/sigpause.c: Likewise.
389         * signal/sigpending.c: Likewise.
390         * signal/sigqueue.c: Likewise.
391         * signal/sigreturn.c: Likewise.
392         * signal/sigset.c: Likewise.
393         * signal/sigsetmask.c: Likewise.
394         * signal/sigstack.c: Likewise.
395         * signal/sigsuspend.c: Likewise.
396         * signal/sigtimedwait.c: Likewise.
397         * signal/sigvec.c: Likewise.
398         * signal/sigwait.c: Likewise.
399         * signal/sigwaitinfo.c: Likewise.
400         * signal/sysv_signal.c: Likewise.
401         * socket/accept.c: Likewise.
402         * socket/accept4.c: Likewise.
403         * socket/bind.c: Likewise.
404         * socket/connect.c: Likewise.
405         * socket/getpeername.c: Likewise.
406         * socket/getsockname.c: Likewise.
407         * socket/getsockopt.c: Likewise.
408         * socket/isfdtype.c: Likewise.
409         * socket/listen.c: Likewise.
410         * socket/recv.c: Likewise.
411         * socket/recvfrom.c: Likewise.
412         * socket/recvmsg.c: Likewise.
413         * socket/send.c: Likewise.
414         * socket/sendmsg.c: Likewise.
415         * socket/sendto.c: Likewise.
416         * socket/setsockopt.c: Likewise.
417         * socket/shutdown.c: Likewise.
418         * socket/sockatmark.c: Likewise.
419         * socket/socket.c: Likewise.
420         * socket/socketpair.c: Likewise.
421         * stdio-common/ctermid.c: Likewise.
422         * stdio-common/cuserid.c: Likewise.
423         * stdio-common/remove.c: Likewise.
424         * stdio-common/rename.c: Likewise.
425         * stdio-common/renameat.c: Likewise.
426         * stdio-common/tempname.c: Likewise.
427         * stdlib/getcontext.c: Likewise.
428         * stdlib/makecontext.c: Likewise.
429         * stdlib/setcontext.c: Likewise.
430         * stdlib/swapcontext.c: Likewise.
431         * stdlib/system.c: Likewise.
432         * streams/fattach.c: Likewise.
433         * streams/fdetach.c: Likewise.
434         * streams/getmsg.c: Likewise.
435         * streams/getpmsg.c: Likewise.
436         * streams/putmsg.c: Likewise.
437         * streams/putpmsg.c: Likewise.
438         * sysdeps/unix/bsd/getpt.c: Likewise.
439         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
440         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
441         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
443         Likewise.
444         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
445         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
446         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
447         * sysvipc/msgctl.c: Likewise.
448         * sysvipc/msgget.c: Likewise.
449         * sysvipc/msgrcv.c: Likewise.
450         * sysvipc/msgsnd.c: Likewise.
451         * sysvipc/semctl.c: Likewise.
452         * sysvipc/semget.c: Likewise.
453         * sysvipc/semop.c: Likewise.
454         * sysvipc/semtimedop.c: Likewise.
455         * sysvipc/shmat.c: Likewise.
456         * sysvipc/shmctl.c: Likewise.
457         * sysvipc/shmdt.c: Likewise.
458         * sysvipc/shmget.c: Likewise.
459         * termios/tcdrain.c: Likewise.
460         * termios/tcflow.c: Likewise.
461         * termios/tcflush.c: Likewise.
462         * termios/tcgetattr.c: Likewise.
463         * termios/tcgetpgrp.c: Likewise.
464         * termios/tcsendbrk.c: Likewise.
465         * termios/tcsetattr.c: Likewise.
466         * termios/tcsetpgrp.c: Likewise.
467         * time/adjtime.c: Likewise.
468         * time/clock.c: Likewise.
469         * time/getitimer.c: Likewise.
470         * time/gettimeofday.c: Likewise.
471         * time/setitimer.c: Likewise.
472         * time/settimeofday.c: Likewise.
473         * time/stime.c: Likewise.
474         * time/time.c: Likewise.
475
476 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
477
478         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
479         /usr/old/bin.
480
481         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
482         instead of spaces.
483         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
484
485 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
486
487         [BZ #14796]
488         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
489         FE_TONEAREST before applying Dekker multiplication and Knuth
490         addition.  Clear inexact exceptions and check for exact zero
491         results afterwards.
492         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
493         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
494         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
495         * math/libm-test.inc (fma_test): Add more tests.
496         (fma_test_towardzero): Likewise.
497         (fma_test_downward): Likewise.
498         (fma_test_upward): Likewise.
499         * sysdeps/generic/math_private.h (default_libc_fesetround): New
500         function.
501         (libc_fesetround): New macro.
502         (libc_fesetroundf): Likewise.
503         (libc_fesetroundl): Likewise.
504         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
505         function.
506         (libc_fesetround_387): Likewise.
507         (libc_fesetroundf): New macro.
508         (libc_fesetround): Likewise.
509         (libc_fesetroundl): Likewise.
510         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
511         function.
512         (libc_fesetroundf): New macro.
513         (libc_fesetround): Likewise.
514         (libc_fesetroundl): Likewise.
515         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
516         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
517         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
518         libm_hidden_ver.
519         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
520         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
521         libm_hidden_def.
522         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
523         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
524         libm_hidden_ver.
525         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
526         libm_hidden_def.
527
528         [BZ #3439]
529         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
530         integer constant usable in #if and use that to give value to enum
531         constant.
532         (FE_DIVBYZERO): Likewise.
533         (FE_UNDERFLOW): Likewise.
534         (FE_OVERFLOW): Likewise.
535         (FE_INVALID): Likewise.
536         (FE_INVALID_SNAN): Likewise.
537         (FE_INVALID_ISI): Likewise.
538         (FE_INVALID_IDI): Likewise.
539         (FE_INVALID_ZDZ): Likewise.
540         (FE_INVALID_IMZ): Likewise.
541         (FE_INVALID_COMPARE): Likewise.
542         (FE_INVALID_SOFTWARE): Likewise.
543         (FE_INVALID_SQRT): Likewise.
544         (FE_INVALID_INTEGER_CONVERSION): Likewise.
545         (FE_TONEAREST): Likewise.
546         (FE_TOWARDZERO): Likewise.
547         (FE_UPWARD): Likewise.
548         (FE_DOWNWARD): Likewise.
549         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
550         (FE_DIVBYZERO): Likewise.
551         (FE_OVERFLOW): Likewise.
552         (FE_UNDERFLOW): Likewise.
553         (FE_INEXACT): Likewise.
554         (FE_TONEAREST): Likewise.
555         (FE_DOWNWARD): Likewise.
556         (FE_UPWARD): Likewise.
557         (FE_TOWARDZERO): Likewise.
558         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
559         (FE_UNDERFLOW): Likewise.
560         (FE_OVERFLOW): Likewise.
561         (FE_DIVBYZERO): Likewise.
562         (FE_INVALID): Likewise.
563         (FE_TONEAREST): Likewise.
564         (FE_TOWARDZERO): Likewise.
565         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
566         (FE_OVERFLOW): Likewise.
567         (FE_UNDERFLOW): Likewise.
568         (FE_DIVBYZERO): Likewise.
569         (FE_INEXACT): Likewise.
570         (FE_TONEAREST): Likewise.
571         (FE_TOWARDZERO): Likewise.
572         (FE_UPWARD): Likewise.
573         (FE_DOWNWARD): Likewise.
574         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
575         (FE_DIVBYZERO): Likewise.
576         (FE_OVERFLOW): Likewise.
577         (FE_UNDERFLOW): Likewise.
578         (FE_INEXACT): Likewise.
579         (FE_TONEAREST): Likewise.
580         (FE_DOWNWARD): Likewise.
581         (FE_UPWARD): Likewise.
582         (FE_TOWARDZERO): Likewise.
583
584 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
585
586         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
587
588 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
589
590         * scripts/cross-test-ssh.sh (command): Use newlines to separate
591         commands.  Quote $PWD.
592         (blacklist_exports): Don't use remove_newlines.  Replace "declare
593         -x" by "export".
594         (remove_newlines): Remove.
595
596 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
597
598         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
599         * stdlib/stdlib.h (atof): Moved to ...
600         * include/bits/stdlib-float.h: Here.  New file.
601         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
602         * stdlib/bits/stdlib-float.h: New file.
603         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
604         -mno-sse -mno-mmx.
605         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
606         <xmmintrin.h>.
607
608 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
609
610         * conform/conformtest.pl (@headers): Add fenv.h.
611         * conform/data/fenv.h-data: New file.
612         * include/fenv.h [_ISOMAC]: Disable all contents of file except
613         include of <math/fenv.h>.
614
615         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
616         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
617         && !UNIX98].  Enables tests for XOPEN2K8.
618         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
619         POSIX2008]: Likewise.
620
621         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
622         (struct rusage): Do not expect type or its members.
623
624         [BZ #3439]
625         * math/math.h (FP_NAN): Define macro to integer constant usable in
626         #if and use that to give value to enum constant.
627         (FP_INFINITE): Likewise.
628         (FP_ZERO): Likewise.
629         (FP_SUBNORMAL): Likewise.
630         (FP_NORMAL): Likewise.
631
632 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
633
634         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
635         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
636         arguments.
637
638 2012-11-02  Roland McGrath  <roland@hack.frob.com>
639
640         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
641         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
642         autoconf-time if not.
643         * configure.in: Remove AC_PREREQ.
644
645 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
646
647         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
648         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
649         of the internal implementation.
650
651 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
652
653         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
654         except include of <misc/sys/syslog.h>.
655
656 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
657
658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
659         function returns with a NULL context exit with zero.
660
661 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
662
663         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
664
665 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
666
667         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
668         (run_program_cmd): This.
669         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
670         (tst_langinfo): New variable.  Use it.
671
672 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
673
674         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
675         floating point opcodes.
676
677 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
678
679         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
680         variable.
681
682         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
683
684         * sysdeps/mach/hurd/powerpc: Remove directory.
685         * sysdeps/mach/powerpc: Likewise.
686
687 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
688
689         * scripts/check-local-headers.sh: Ignore c++ headers.
690
691 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
692
693         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
694         __libc_cleanup_region_start argument.
695
696 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
697
698         [BZ #14784]
699         [BZ #14785]
700         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
701         x * y using scaling, not as x * y + z.
702         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
703         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
704         * math/libm-test.inc (fma_test): Add more tests.
705         (fma_test_towardzero): Likewise.
706         (fma_test_downward): Likewise.
707         (fma_test_upward): Likewise.
708
709 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
710
711         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
712
713 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
714
715         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
716         New variable.
717
718 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
719
720         * rt/tst-shm.c (worker): Correct checking for mmap failure.
721
722 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
723
724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
725         Fix sort order.
726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
727         Likewise.
728
729 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
730
731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
732         Fix the order of the list for glibc 2.17.
733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
734         Likewise.
735
736 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
737
738         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
739
740 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
741
742         [BZ #14610]
743         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
744         for low part of x being zero before using __atanl (y).
745         * math/libm-test.inc (atan2_test): Add another test.
746
747         * manual/install.texi (Configuring and compiling): Document
748         general use of test-wrapper and test-wrapper-env.
749         * INSTALL: Regenerated.
750
751         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
752         (__fma): Do not extract and scale down low bits on after-rounding
753         systems when result rounded to normal precision would have normal
754         exponent.
755         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
756         (__fmal): Do not extract and scale down low bits on after-rounding
757         systems when result rounded to normal precision would have normal
758         exponent.
759         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
760         (__fmal): Do not extract and scale down low bits on after-rounding
761         systems when result rounded to normal precision would have normal
762         exponent.
763         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
764         macro.
765         (fma_test): Add more tests.
766         (fma_test_towardzero): Likewise.
767         (fma_test_downward): Likewise.
768         (fma_test_upward): Likewise.
769
770 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
771
772         * sysdeps/i386/tininess.h: Renamed to ...
773         * sysdeps/x86/tininess.h: This.
774         * sysdeps/x86_64/tininess.h: Removed.
775
776 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
777
778         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
779         input.  Use $(build-program-cmd).
780         ($(objpfx)tst-array1-static.out): Likewise.
781         ($(objpfx)tst-array2.out): Likewise.
782         ($(objpfx)tst-array3.out): Likewise.
783         ($(objpfx)tst-array4.out): Likewise.
784         ($(objpfx)tst-array5.out): Likewise.
785         ($(objpfx)tst-array5-static.out): Likewise.
786
787 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
788
789         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
790         if defined.
791
792         * nss/nsswitch.h (nss_interface_function): Provide new
793         macro for use with NSS functions.
794         * grp/initgroups.c: Use new macro.
795         * nss/getXXbyYY.c: Likewise.
796         * nss/getXXbyYY_r.c: Likewise.
797         * nss/getXXent.c: Likewise.
798         * nss/getXXent_r.c: Likewise.
799         * sysdeps/posix/getaddrinfo.c: Likewise.
800
801 2012-10-30  Andreas Jaeger  <aj@suse.de>
802
803         * po/ru.po: Update Russion translation from translation project.
804
805 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
806
807         [BZ #14152]
808         [BZ #14783]
809         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
810         result and shift together with sticky bit instead of replicating
811         round-to-nearest rounding.
812         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
813         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
814         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
815         missing underflow exceptions.
816         (fma_test_towardzero): Add more tests.
817         (fma_test_downward): Likewise.
818         (fma_test_upward): Likewise.
819
820         [BZ #14047]
821         * sysdeps/generic/tininess.h: New file.
822         * sysdeps/i386/tininess.h: Likewise.
823         * sysdeps/sh/tininess.h: Likewise.
824         * sysdeps/x86_64/tininess.h: Likewise.
825         * stdlib/tst-strtod-underflow.c: Likewise.
826         * stdlib/tst-tininess.c: Likewise.
827         * stdlib/strtod_l.c: Include <tininess.h>.
828         (round_and_return): Do not set errno for exact underflow cases.
829         Force an underflow exception when setting errno for underflow.
830         Determine underflow based on rounding to normal precision if
831         TININESS_AFTER_ROUNDING.
832         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
833         ERANGE for exact underflow cases.
834         * stdlib/Makefile (tests): Add tst-tininess and
835         tst-strtod-underflow.
836         ($(objpfx)tst-tininess): Use $(link-libm).
837         ($(objpfx)tst-strtod-underflow): Likewise.
838
839 2012-10-30  Andreas Jaeger  <aj@suse.de>
840
841         [BZ#14767]
842         * elf/Makefile (tests): Remove conditional for have-initfini-array
843         since this is now always required and the variable does not exist
844         anymore.
845         (tests-static): Likewise.
846         (modules-names): Likewise.
847
848         * po/eo.po: Add Esperanto translation from translation project.
849
850         * elf/tst-array1.c (fini_array): Make writeable so that it can be
851         merged with constructor/destructor.
852         (init_array): Likewise.
853         * elf/tst-array2dep.c (fini_array): Likewise.
854         (init_array): Likewise.
855
856 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
857
858         * manual/message.texi: Delete @cartouche tags.
859
860 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
861
862         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
863         EOPNOTSUPP.
864         * sysdeps/mach/hurd/fsync.c: Likewise.
865
866         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
867         [_POSIX_REALTIME_SIGNALS]: Change condition to
868         [_POSIX_REALTIME_SIGNALS > 0].
869
870 2012-10-27  Andreas Jaeger  <aj@suse.de>
871
872         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
873         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
874         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
875         [__WORDSIZE != 64]: Likewise.
876
877 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
878
879         *  iconvdata/tst-table.sh: Remove ${SHELL}.
880         *  iconvdata/tst-tables.sh: Likewise.
881
882 2012-10-25  David S. Miller  <davem@davemloft.net>
883
884         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
885         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
886         of strtoull.
887
888         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
889         ifunc-impl-list.c
890         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
891         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
892         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
893         file.
894
895 2012-10-25  Roland McGrath  <roland@hack.frob.com>
896
897         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
898         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
899         __getdirentries.
900
901 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
902             Jim Blandy  <jimb@codesourcery.com>
903
904         * scripts/cross-test-ssh.sh: New file.
905         * manual/install.texi (Configuring and compiling): Document use of
906         cross-test-ssh.sh.
907         * INSTALL: Regenerated.
908
909 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
910
911         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
912         EOPNOTSUPP.
913
914 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
915
916         * Makeconfig (run-program-prefix): Fix comment.
917
918 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
919             Jim Blandy  <jimb@codesourcery.com>
920
921         * Makeconfig (test-wrapper): New variable,
922         (test-wrapper-env): Likewise.
923         [$(cross-compiling) = yes && $(test-wrapper) != ""]
924         (run-built-tests): Define to yes.
925         (run-program-prefix): Use $(test-wrapper).
926         (built-program-cmd): Likewise.
927         * Rules (make-test-out): Use $(test-wrapper-env) and
928         $(host-built-program-cmd).
929         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
930         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
931         tst-pathopt.sh.
932         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
933         $(test-wrapper-env) to tst-rtld-load-self.sh.
934         ($(objpfx)order2.out): Use $(test-wrapper).
935         ($(objpfx)tst-initorder.out): Likewise.
936         ($(objpfx)tst-initorder2.out): Likewise.
937         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
938         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
939         (test_wrapper_env): New variable.  Use it to run ld.so.
940         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
941         Use it to run ld.so.
942         (test_wrapper_env): Likewise.
943         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
944         $(test-wrapper) to run-iconv-test.sh.
945         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
946         (ICONV): Use $test_wrapper.
947         * posix/Makefile ($(objpfx)globtest.out): Pass
948         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
949         globtest.sh, not $(run-program-prefix).
950         * posix/globtest.sh (run_via_rtld_prefix): New variable.
951         (test_wrapper): Likewise.
952         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
953         set together with run_via_rtld_prefix.
954         (run_program_prefix): Define in terms of test_wrapper and
955         run_via_rtld_prefix.
956
957 2012-10-24  Roland McGrath  <roland@hack.frob.com>
958
959         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
960         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
961         Targets removed.
962
963         [BZ #14743]
964         * include/time.h: Remove librt_hidden_proto (clock_gettime).
965         Declare __clock_getres, __clock_gettime, __clock_settime,
966         __clock_nanosleep, and __clock_getcpuclockid.
967         * rt/clock_gettime.c: Define __clock_gettime as an alias.
968         Remove librt_hidden_def (clock_gettime).
969         * sysdeps/unix/clock_gettime.c: Likewise.
970         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
971         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
972         * rt/clock_getres.c: Define __clock_getres as an alias.
973         * sysdeps/posix/clock_getres.c: Likewise.
974         * rt/clock_settime.c: Define __clock_settime as an alias.
975         * sysdeps/unix/clock_settime.c: Likewise.
976         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
977         * sysdeps/unix/clock_nanosleep.c: Likewise.
978         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
979         * rt/clock-compat.c: New file.
980         * rt/Makefile (librt-routines): Add clock-compat and move
981         $(clock-routines) to ...
982         (routines): ... here, new variable.
983         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
984         Don't add get_clockfreq here.
985         * rt/Versions (libc: GLIBC_2.17): New version set.
986         Add clock_* symbols here.
987         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
988         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
989         (GLIBC_2.17): Add clock_* symbols.
990         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
991         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
992         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
994         Likewise.
995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
996         Likewise.
997         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
998         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
999         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1000         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1001         * NEWS: Mention the move.
1002
1003         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1004         Use __open, __read, __close rather than their public counterparts.
1005         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1006         (__get_clockfreq_via_cpuinfo): Likewise.
1007         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1008         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1009
1010         * config.h.in (HAVE_IFUNC): New #undef.
1011         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1012         was successful.
1013         * configure: Regenerated.
1014
1015 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1016
1017         * configure.in: Move READELF check to start of file.
1018         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1019         libc_cv_asm_gnu_indirect_function in the process.
1020         * configure: Regenerated.
1021
1022 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1023
1024         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1025         send the output to /dev/null.
1026         (libc_cv_cc_with_libunwind): Likewise.
1027         (libc_cv_as_noexecstack): Likewise.
1028         * configure: Regenerate.
1029
1030 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1031
1032         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1033
1034         * posix/globtest.sh (TMPDIR): Do not set.
1035         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1036         (testout): Likewise.
1037
1038 2012-10-24  Andreas Jaeger  <aj@suse.de>
1039
1040         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1041         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1042         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1043         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1044         posix_fadvise64, posix_fallocate64.
1045
1046         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1047         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1048         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1049         Likewise.
1050         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1051         Likewise.
1052         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1053
1054         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1055         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1056         <bits/fcntl-linux.h>.
1057         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1058
1059         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1060         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1061         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1062         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1063         [__WORDSIZE != 64]: Likewise.
1064
1065 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1066
1067         * Makeconfig (run-built-tests): New variable.
1068         * Rules [$(cross-compiling) = yes]: Change condition to
1069         [$(run-built-tests) = no].
1070         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1071         to [$(run-built-tests) = yes].
1072         * elf/Makefile [$(cross-compiling) = no]: Likewise
1073         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1074         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1075         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1076         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1077         * io/Makefile [$(cross-compiling) = no]: Likewise.
1078         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1079         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1080         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1081         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1082         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1083         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1084         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1085         * string/Makefile [$(cross-compiling) = no]: Likewise.
1086
1087         * posix/Makefile ($(objpfx)globtest.out): Pass
1088         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1089         $(rtld-installed-name).
1090         * posix/globtest.sh (elf_objpfx): Remove variable.
1091         (rtld_installed_name): Likewise.
1092         (library_path): Likewise.
1093         (run_program_prefix): New variable.  Use for running globtest
1094         binary.
1095
1096 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1097             Joseph Myers  <joseph@codesourcery.com>
1098
1099         * Makeconfig (host-built-program-cmd): New variable.
1100         * elf/Makefile (tst-stackguard1-ARGS): Use
1101         $(host-built-program-cmd).
1102         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1103         (tst-spawn-ARGS): Likewise.
1104         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1105
1106 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1107             Jim Blandy  <jimb@codesourcery.com>
1108
1109         * Makeconfig (run-via-rtld-prefix): New variable.
1110         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1111         (built-program-cmd): Likewise.
1112
1113 2012-10-22  Andreas Jaeger  <aj@suse.de>
1114
1115         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1116         __O_RSYNC if it exists, otherwise to O_SYNC.
1117
1118 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1119             Joseph Myers  <joseph@codesourcery.com>
1120
1121         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1122         /dev/null.
1123         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1124         from /dev/null
1125         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1126         /dev/null.
1127
1128 2012-10-22  Andreas Jaeger  <aj@suse.de>
1129
1130         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1131         Define always.
1132         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1133
1134         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1135         bits/fcntl-linux.h.
1136
1137         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1138         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1139
1140         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1141         to __O_LARGEFILE.
1142         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1143         to __O_LARGEFILE.
1144
1145 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1146             Joseph Myers  <joseph@codesourcery.com>
1147
1148         * config.make.in (NM): New variable.
1149
1150 2012-10-21  Andreas Jaeger  <aj@suse.de>
1151
1152         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1153         definitions and declarations that are provided by
1154         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1155
1156 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1157
1158         [BZ #14683]
1159         * elf/Makefile (tests-static): Add tst-leaks1-static.
1160         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1161         ($(objpfx)tst-leaks1-static): New rule.
1162         ($(objpfx)tst-leaks1-static-mem): Likewise.
1163         (tst-leaks1-static-ENV): New macro.
1164         * elf/dl-open.c (dl_open_worker): Check the main application
1165         only if SHARED is defined.
1166         * elf/tst-leaks1-static.c: New file.
1167
1168 2012-10-20  Andreas Jaeger  <aj@suse.de>
1169
1170         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1171         generic values for Linux.
1172         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1173         and declarations that are provided by <bits/fcntl-linux.h> and
1174         include <bits/fcntl-linux.h>.
1175         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1176         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1177
1178 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1179
1180         * io/fcntl.h: Move include of <bits/types.h> to the top and
1181         include it unconditionally.
1182
1183 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1184
1185         * wcsmbs/Makefile (tests-ifunc): New variable.
1186         (tests): Add $(tests-ifunc).
1187         * wcsmbs/test-wcschr-ifunc.c: New file.
1188         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1189         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1190         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1191         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1192         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1193
1194         * string/Makefile (tests-ifunc): New variable.
1195         (tests): Add $(tests-ifunc).
1196         * string/test-memccpy.c (TEST_NAME): New macro.
1197         * string/test-memchr.c (TEST_NAME): Likewise.
1198         * string/test-memcmp.c (TEST_NAME): Likewise.
1199         * string/test-memcpy.c (TEST_NAME): Likewise.
1200         * string/test-memmem.c (TEST_NAME): Likewise.
1201         * string/test-memmove.c (TEST_NAME): Likewise.
1202         * string/test-memset.c (TEST_NAME): Likewise.
1203         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1204         * string/test-stpcpy.c (TEST_NAME): Likewise.
1205         * string/test-stpncpy.c (TEST_NAME): Likewise.
1206         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1207         * string/test-strcasestr.c (TEST_NAME): Likewise.
1208         * string/test-strcat.c (TEST_NAME): Likewise.
1209         * string/test-strchr.c (TEST_NAME): Likewise.
1210         * string/test-strcmp.c(TEST_NAME): Likewise.
1211         * string/test-strcpy.c (TEST_NAME): Likewise.
1212         * string/test-strcspn.c (TEST_NAME): Likewise.
1213         * string/test-strlen.c (TEST_NAME): Likewise.
1214         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1215         * string/test-strncmp.c (TEST_NAME): Likewise.
1216         * string/test-strncpy.c (TEST_NAME): Likewise.
1217         * string/test-strnlen.c (TEST_NAME): Likewise.
1218         * string/test-strpbrk.c (TEST_NAME): Likewise.
1219         * string/test-strrchr.c (TEST_NAME): Likewise.
1220         * string/test-strspn.c (TEST_NAME): Likewise.
1221         * string/test-strstr.c (TEST_NAME): Likewise.
1222         * string/test-bcopy-ifunc.c: New file.
1223         * string/test-bzero-ifunc.c: Likewise.
1224         * string/test-memccpy-ifunc.c: Likewise.
1225         * string/test-memchr-ifunc.c: Likewise.
1226         * string/test-memcmp-ifunc.c: Likewise.
1227         * string/test-memcpy-ifunc.c: Likewise.
1228         * string/test-memmem-ifunc.c: Likewise.
1229         * string/test-memmove-ifunc.c: Likewise.
1230         * string/test-mempcpy-ifunc.c: Likewise.
1231         * string/test-memset-ifunc.c: Likewise.
1232         * string/test-rawmemchr-ifunc.c: Likewise.
1233         * string/test-stpcpy-ifunc.c: Likewise.
1234         * string/test-stpncpy-ifunc.c: Likewise.
1235         * string/test-strcasecmp-ifunc.c: Likewise.
1236         * string/test-strcasestr-ifunc.c: Likewise.
1237         * string/test-strcat-ifunc.c: Likewise.
1238         * string/test-strchr-ifunc.c: Likewise.
1239         * string/test-strchrnul-ifunc.c: Likewise.
1240         * string/test-strcmp-ifunc.c: Likewise.
1241         * string/test-strcpy-ifunc.c: Likewise.
1242         * string/test-strcspn-ifunc.c: Likewise.
1243         * string/test-strlen-ifunc.c: Likewise.
1244         * string/test-strncasecmp-ifunc.c: Likewise.
1245         * string/test-strncat-ifunc.c: Likewise.
1246         * string/test-strncmp-ifunc.c: Likewise.
1247         * string/test-strncpy-ifunc.c: Likewise.
1248         * string/test-strnlen-ifunc.c: Likewise.
1249         * string/test-strpbrk-ifunc.c: Likewise.
1250         * string/test-strrchr-ifunc.c: Likewise.
1251         * string/test-strspn-ifunc.c: Likewise.
1252         * string/test-strstr-ifunc.c: Likewise.
1253
1254         * debug/Makefile (tests-ifunc): New variable.
1255         (tests): Add $(tests-ifunc).
1256         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1257         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1258         * debug/test-stpcpy_chk-ifunc.c: New file.
1259         * debug/test-strcpy_chk-ifunc.c: Likewise.
1260
1261 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1262
1263         [BZ #13601]
1264         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1265         header is not read in.
1266
1267 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1268
1269         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1270         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1271         directly.  Pass built executable to script as
1272         $(built-program-cmd).
1273         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1274         $testprogram without using LD_LIBRARY_PATH and $ldso.
1275
1276         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1277         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1278         $(rtld-installed-name).
1279         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1280         (rtld_installed_name): Likewise.
1281         (library_path): Likewise.
1282         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1283         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1284         $(run-program-prefix) to tst-tables.sh.
1285         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1286         it to run tst-table-from and tst-table-to.
1287         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1288         Pass it to tst-table.sh.
1289         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1290         $(run-program-prefix) to tst-gettext.sh.
1291         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1292         tst-translit.sh.
1293         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1294         tst-gettext2.sh.
1295         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1296         to run tst-gettext.
1297         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1298         to run tst-gettext2.
1299         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1300         to run tst-translit.
1301         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
1302         $(run-program-prefix) to tst-mtrace.sh.
1303         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
1304         to run tst-mtrace.
1305         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
1306         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
1307         $(rtld-installed-name).
1308         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
1309         (rtld_installed_name): Likewise.
1310         (run_program_prefix): New variable.  Use it to run wordexp-test.
1311
1312         * Makeconfig (ARCH): Remove all definitions.
1313         (machine): Likewise.
1314         [ARCH]: Remove conditional code.
1315         [!objdir]: Give error.
1316         [!objdir] (objpfx): Remove.
1317         [!objdir] (common-objpfx): Likewise.
1318         [!objdir] (common-objdir): Likewise.
1319         * configure.in (config_makefile): Remove.  Hardcode Makefile in
1320         AC_CONFIG_FILES call.
1321         * configure: Regenerated.
1322
1323         [BZ #13888]
1324         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
1325         or TMPDIR.
1326         (testout): Likewise.
1327
1328         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
1329         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
1330         $(rtld-installed-name).
1331         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
1332         (rtld_installed_name): Likwise.
1333         (runit): Remove function.
1334         (run_getconf): New variable,  Use it for running getconf binary.
1335
1336 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
1337
1338         [BZ #14716]
1339         * string/test-memmem.c (check_result): New function.
1340         (do_one_test): Use it.
1341         (check1): New function.
1342         (test_main): Use it.
1343
1344 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1345
1346         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
1347
1348 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
1349
1350         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
1351         (_G_LSEEK64): Likewise.
1352         (_G_MMAP64): Likewise.
1353         (_G_FSTAT64): Likewise.
1354         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
1355         (_G_LSEEK64): Likewise.
1356         (_G_MMAP64): Likewise.
1357         (_G_FSTAT64): Likewise.
1358         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
1359         unconditional.  Call __mmap64 directly.
1360         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
1361         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
1362         __lseek64 directly.
1363         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
1364         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
1365         __mmap64 directly.
1366         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
1367         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1368         __lseek64 directly.
1369         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
1370         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1371         __lseek64 directly.
1372         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
1373         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
1374         __lseek64 directly.
1375         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
1376         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
1377         __fxstat64 directly.
1378         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
1379         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
1380         unconditional.
1381         (freopen64) [!_G_OPEN64]: Remove conditional code.
1382         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
1383         unconditional.
1384         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
1385         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
1386         unconditional.
1387         (ftello64) [!_G_LSEEK64]: Remove conditional code.
1388         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
1389         unconditional.
1390         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1391         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
1392         unconditional.
1393         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
1394         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
1395         unconditional.
1396         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1397         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
1398         unconditional.
1399         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1400         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
1401         unconditional.
1402         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1403
1404 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1405
1406         [BZ #12140]
1407         * manual/memory.texi (Malloc Tunable Parameters): Add note
1408         about free list pointers overwriting some perturb bytes.
1409         Wording suggested by Roland McGrath.
1410
1411 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
1412
1413         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
1414         (lgamma_test): Likewise.
1415         (tgamma_test): Likewise.
1416
1417 2012-10-16  Florian Weimer  <fweimer@redhat.com>
1418
1419         [BZ #14700]
1420         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
1421         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
1422
1423 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
1424
1425         * NEWS: Mention BZ #14716.
1426         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
1427         when removing AVAILABLE1_USES_J macro.
1428
1429 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1430
1431         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
1432         (__bswap_64): __uint64_t for unsigned 64-bit int.
1433
1434 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
1435
1436         * include/string.h (memmem): Declare libc hidden alias.
1437         * string/memmem.c (memmem): Define libc hidden alias.
1438         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
1439         __read, __close instead of open, read, close.
1440
1441 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1442
1443         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
1444         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
1445         global and hidden.
1446         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
1447         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
1448         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
1449         Likewise.
1450         (__rawmemchr_sse2): Likewise.
1451         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
1452         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
1453         (__strchr_sse2): Likewise.
1454         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
1455         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
1456         (__strcasecmp_sse2): Likewise.
1457         (__strncasecmp_sse2): Likewise.
1458         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
1459         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
1460         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
1461         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
1462         (__strrchr_sse2): Likewise.
1463         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
1464         ifunc-impl-list.c.
1465         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
1466         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
1467         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1468         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1469         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
1470         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
1471         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1472         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1473         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1474         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
1475         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
1476         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
1477         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
1478         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
1479         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1480         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1481         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1482         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1483         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1484         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
1485         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
1486         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
1487         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
1488         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1489         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
1490         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1491         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1492         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1493         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
1494         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
1495
1496         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
1497         global and hidden.
1498         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
1499         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
1500         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
1501         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
1502         Likewise.
1503         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
1504         Likewise.
1505         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
1506         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
1507         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
1508         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
1509         ifunc-impl-list.c.
1510         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
1511         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
1512         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
1513         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
1514         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
1515         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
1516         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
1517         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
1518         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
1519         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
1520         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
1521         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
1522         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
1523         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
1524         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
1525         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1526         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
1527         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
1528         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
1529         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
1530         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
1531         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
1532         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
1533         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1534         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1535         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
1536         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
1537         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
1538         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
1539         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
1540         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
1541         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
1542         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1543         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
1544         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
1545         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
1546         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
1547         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
1548         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
1549         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
1550         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
1551
1552         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
1553         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
1554         * include/ifunc-impl-list.h: New file.
1555         * misc/ifunc-impl-list.c: Likewise.
1556         * misc/Makefile (routines): Add ifunc-impl-list.
1557         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
1558         * string/test-string.h: Include <ifunc-impl-list.h>.
1559         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
1560         impl_array): New variables.
1561         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
1562         are defined.
1563         (test_init): Call __libc_ifunc_impl_list to initialize
1564         func_list if TEST_IFUNC and TEST_NAME are defined.
1565
1566         * string/Makefile (strop-tests): Add bcopy and bzero.
1567         * string/test-bcopy.c: New file.
1568         * string/test-bzero.c: Likewise.
1569         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
1570         defined.
1571         * string/test-memset.c: Support bzero test if TEST_BZERO is
1572         defined.
1573         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
1574         __libc_memmove.
1575         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
1576         __libc_memset.
1577         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
1578         of memset.
1579
1580 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
1581
1582         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
1583         * configure: Regenerated.
1584
1585         * Makeconfig (+link-static-before-libc): Don't include
1586         $(link-static-libc).
1587
1588         * libio/libio.h (_IO_pos_t): Remove.
1589
1590 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1591
1592         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
1593         McGrath.
1594
1595 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1596
1597         * crypt/crypt-entry.c: Include fips-private.h.
1598         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
1599         * crypt/md5c-test.c (main): Tolerate disabled MD5.
1600         * sysdeps/unix/sysv/linux/fips-private.h: New file.
1601         * sysdeps/generic/fips-private.h: New file, dummy fallback.
1602
1603 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1604
1605         * crypt/crypt-private.h: Include stdbool.h.
1606         (_ufc_setup_salt_r): Return bool.
1607         * crypt/crypt-entry.c: Include errno.h.
1608         (__crypt_r): Return NULL with EINVAL for bad salt.
1609         * crypt/crypt_util.c (bad_for_salt): New.
1610         (_ufc_setup_salt_r): Check that salt is long enough and within
1611         the specified alphabet.
1612         * crypt/badsalttest.c: New file.
1613         * crypt/Makefile (tests): Add it.
1614         ($(objpfx)badsalttest): New.
1615
1616 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1617
1618         * NEWS: Add entry for BZ #14602.
1619
1620 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1621
1622         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
1623         type-generic.
1624         * math/libm-test.inc: Update comment listing what functions and
1625         macros are tested.
1626         (isgreater_test): New function.
1627         (isgreaterequal_test): Likewise.
1628         (isless_test): Likewise.
1629         (islessequal_test): Likewise.
1630         (islessgreater_test): Likewise.
1631         (isunordered_test): Likewise.
1632         (main): Call the new functions.
1633
1634 2012-10-09  Roland McGrath  <roland@hack.frob.com>
1635
1636         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
1637         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
1638         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
1639         * sysdeps/i386/configure: Regenerated.
1640         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
1641         * sysdeps/mach/configure: Regenerated.
1642         * sysdeps/mach/hurd/configure: Regenerated.
1643         * sysdeps/powerpc/configure: Regenerated.
1644         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1645         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1646         * sysdeps/s390/s390-32/configure: Regenerated.
1647         * sysdeps/s390/s390-64/configure: Regenerated.
1648         * sysdeps/sh/configure: Regenerated.
1649         * sysdeps/sparc/configure: Regenerated.
1650         * sysdeps/unix/sysv/linux/configure: Regenerated.
1651         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
1652         * sysdeps/x86_64/configure: Regenerated.
1653
1654         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
1655         defined.  Don't check if MAP is NULL.
1656
1657 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1658
1659         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
1660         (_G_stat64): Likewise.
1661         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
1662         (_G_stat64): Likewise.
1663         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
1664         instead of struct _G_stat64.
1665         * libio/fileops.c (mmap_remap_check): Likewise.
1666         (decide_maybe_mmap): Likewise.
1667         (_IO_new_file_seekoff): Likewise.
1668         (_IO_file_stat): Likewise.
1669         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
1670         _G_off64_t.
1671         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
1672         instead of struct _G_stat64.
1673         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1674
1675 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
1676
1677         [BZ #14602]
1678         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1679         Replace with ...
1680         (CHECK_EOL): New macro.
1681         (two_way_short_needle): Check beginning of haystack for EOL.  Use
1682         CHECK_EOL.
1683         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1684         Replace with CHECK_EOL.
1685         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1686         Replace with CHECK_EOL.
1687
1688 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1689
1690         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1691         type-generic.
1692         * math/libm-test.inc: Update comment listing what functions and
1693         macros are tested.
1694         (finite_test): New function.
1695         (isinf_test): Likewise.
1696         (isnan_test): Likewise.
1697         (fpclassify_test): Test subnormal input.
1698         (isfinite_test): Likewise.
1699         (isnormal_test): Likewise.
1700         (main): Call the new functions.
1701
1702 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1703
1704         [BZ #14660]
1705         * Makerules (%.dynsym): Force C locale when running
1706         $(OBJDUMP) --dynamic-syms.
1707
1708 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1709
1710         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1711         <stdint.h>.
1712
1713 2012-10-06  David S. Miller  <davem@davemloft.net>
1714
1715         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1716         upper 32-bits of the length value in %o2 since we use branch-on-register
1717         tests which consider the entire 64-bit register.
1718
1719 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1720
1721         * string/test-strstr.c (check2): Add a test for page boundary.
1722
1723 2012-10-05  David S. Miller  <davem@davemloft.net>
1724
1725         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1726         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1727         file.
1728         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1729         sysdep_routines.
1730         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1731         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1732         and bzero when HWCAP_SPARC_CRYPTO is present.
1733
1734 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1735
1736         [BZ #14602]
1737         * string/test-strstr.c (check2): New function.
1738         (test_main): Call check2.
1739
1740         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1741         and bug-strchr1.
1742         * string/bug-strcasestr1.c (do_test): Moved to ...
1743         * string/test-strcasestr.c (check1): Here.  New function.
1744         (do_one_test): Break out result checking code into ...
1745         (check_result): This.  New function.
1746         (do_one_test): Call check_result.
1747         (test_main): Call check1.
1748         * string/bug-strchr1.c (do_test): Moved to ...
1749         * string/test-strchr.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-strstr1.c (main): 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-strcasestr1.c: Removed.
1761         * string/bug-strchr1.c: Likewise.
1762         * string/bug-strstr1.c: Likewise.
1763
1764         * elf/Makefile (dl-routines): Add hwcaps.
1765         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1766         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1767         (_dl_important_hwcaps): Moved to ...
1768         * elf/dl-hwcaps.c: Here.  New file.
1769         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1770
1771         [BZ #14557]
1772         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1773         if IS_IN_rtld isn't defined.
1774
1775         * elf/dl-support.c (_dl_sysinfo_map): New.
1776         Include "get-dynamic-info.h" and "setup-vdso.h".
1777         (_dl_non_dynamic_init): Call setup_vdso.
1778         * elf/dynamic-link.h: Don't include <assert.h>.
1779         (elf_get_dynamic_info): Moved to ...
1780         * elf/get-dynamic-info.h: Here.  New file.
1781         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1782         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1783         * elf/setup-vdso.h: Here.  New file.
1784         * elf/rtld.c: Include "setup-vdso.h".
1785         (dl_main): Call setup_vdso.
1786
1787 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1788
1789         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1790         creal in comment listing functions tested.  List finite, isinf,
1791         isnan, isless, islessequal, isgreater, isgreaterequal,
1792         islessgreater, isunordered, lgamma_r and pow10 as functions and
1793         macros not tested.  Mention which functions not tested are aliases
1794         for other functions.  Fix typo.  Note that signs of NaNs are not
1795         tested.
1796
1797         * scripts/config.guess: Update from config.git.
1798         * scripts/config.sub: Likewise.
1799
1800 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1801
1802         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1803         * misc/madvise.c (madvise): Renamed to __madvise.
1804         Make madvise a weak alias.
1805         * include/sys/mman.h: Declare __madvise.
1806         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1807         * sysdeps/unix/syscalls.list
1808         (madvise): Make __madvise the strong name, and madvise a weak alias.
1809         * sysdeps/unix/sysv/linux/syscalls.list
1810         (madvise, mmap): Remove redundant entries.
1811         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1812         * malloc/malloc.c (mtrim): Likewise.
1813         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1814
1815 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1816
1817         * sysdeps/mach/hurd/dl-cache.c: File removed.
1818         * config.h.in (USE_LDCONFIG): New #undef.
1819         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1820         * configure: Regenerated.
1821         * elf/Makefile (dl-routines): Add dl-cache only under
1822         [$(use-ldconfig) = yes].
1823         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1824         cache on [USE_LDCONFIG].
1825         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1826         [USE_LDCONFIG].
1827         * elf/rtld.c (dl_main): Likewise.
1828
1829 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1830
1831         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1832         _SC_LEVEL4_CACHE_LINESIZE.
1833
1834 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1835
1836         * sysdeps/unix/bsd/confstr.h: File removed.
1837
1838 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1839
1840         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1841         sys/sdt-config.h.
1842
1843 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1844
1845         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1846         Make 'mapoff' field ElfW(Off) rather than off_t.
1847
1848 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1849
1850         * nscd/Makefile: Remove nscd-cflags and all its users.
1851         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1852         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1853
1854         [BZ #10631]
1855         * malloc.c (malloc_printerr): Clarify error message.
1856
1857 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1858
1859         [BZ #14648]
1860         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1861         Set bit_FMA_Usable if FMA is supported.
1862         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1863         macro.
1864         (bit_FMA4_Usable): Updated.
1865         (index_FMA_Usable): New macro.
1866         (CPUID_FMA): Likewise
1867         (HAS_FMA): Defined with bit_FMA_Usable.
1868
1869 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1870
1871         * bits/types.h (__swblk_t): Type removed.
1872         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1873         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1874         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1875         (__SWBLK_T_TYPE): Likewise.
1876         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1877         (__SWBLK_T_TYPE): Likewise.
1878         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1879         (__SWBLK_T_TYPE): Likewise.
1880         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1881         (__SWBLK_T_TYPE): Likewise.
1882
1883 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1884             Honza Horak <hhorak@redhat.com>
1885
1886         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1887         (xdr_mapname): Use YPMAXMAP as maxsize.
1888         (xdr_peername): Use YPMAXPEER as maxsize.
1889         (xdr_keydat): Use YPAXRECORD as maxsize.
1890         (xdr_valdat): Use YPMAXRECORD as maxsize.
1891
1892 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1893
1894         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1895
1896         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1897         * csu/init-first.c: ... here.
1898         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1899         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1900         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1901         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1902         * sysdeps/i386/init-first.c: File removed.
1903         * sysdeps/sh/init-first.c: File removed.
1904
1905 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1906
1907         [BZ #14645]
1908         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1909         if x * y might underflow to zero and z is zero.
1910         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1911         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1912         * math/libm-test.inc (min_subnorm_value): New variable.
1913         (fma_test): Add more tests.
1914         (fma_test_towardzero): Likewise.
1915         (fma_test_downward): Likewise
1916         (fma_test_upward): Likewise.
1917         (initialize): Set min_subnorm_value.
1918
1919 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1920
1921         [BZ #14638]
1922         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1923         0 + 0.
1924         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1925         mode for addition resulting in exact zero.
1926         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1927         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1928         exact 0 + 0.
1929         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1930         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1931         * math/libm-test.inc (fma_test): Add more tests.
1932         (fma_test_towardzero): New function.
1933         (fma_test_downward): Likewise.
1934         (fma_test_upward): Likewise.
1935         (main): Call the new functions.
1936
1937 2012-09-28  David S. Miller  <davem@davemloft.net>
1938
1939         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1940
1941 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1942
1943         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1944         instead of SIGALRM.
1945
1946         * sysdeps/gnu/_G_config.h: Moved to ...
1947         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1948         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1949         * sysdeps/generic/_G_config.h: ... here.
1950
1951         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1952
1953         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1954
1955         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1956         Conditionalize target on [libnss_test1.so-version].
1957
1958         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1959
1960         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1961         (elfobjdir): Move out of conditionals.
1962
1963         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1964         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1965         (__nss_lookup_function): Conditionalize label remove_from_tree on
1966         [!DO_STATIC_NSS || SHARED], matching its only use.
1967
1968 2012-09-28  David S. Miller  <davem@davemloft.net>
1969
1970         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1971         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1972         file.
1973         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1974         sysdep_routines.
1975         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1976         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1977         when HWCAP_SPARC_CRYPTO is present.
1978
1979 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1980
1981         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1982
1983 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1984
1985         [BZ #6530]
1986         * stdio-common/vfprintf.c (process_string_arg): Revert
1987         2000-07-22 change.
1988
1989 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1990
1991         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1992         for testcase.
1993         * stdio-common/tst-sprintf.c: Include <locale.h>
1994         (main): Test sprintf's handling of incomplete multibyte
1995         characters.
1996
1997 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1998
1999         * elf/dl-runtime.c (VERSYMIDX): Removed.
2000         * elf/dl-version.c (VERSYMIDX): Likewise.
2001         * elf/do-rel.h (VERSYMIDX): Likewise.
2002         (VALIDX): Likewise.
2003         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2004         * elf/rtld.c (VALIDX): Likewise.
2005         (ADDRIDX): Likewise.
2006         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2007         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2008         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2009         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2010         (VALIDX): Likewise.
2011         (ADDRIDX): Likewise.
2012
2013 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2014
2015         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2016
2017 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2018
2019         [BZ #11438]
2020         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2021         to global scope.
2022         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2023         addresses are in the same scope as 192.0.2/24.
2024         * posix/gai.conf: Document new scope table defaults.
2025
2026 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2027
2028         [BZ #5298]
2029         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2030         for ftell.  Compute offsets from write pointers instead.
2031         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2032
2033 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2034
2035         [BZ #14543]
2036         * libio/Makefile (tests): New test case tst-fseek.
2037         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2038         combination works in wide mode.
2039         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2040         state when the external buffer state changes.
2041
2042 2012-09-27  David S. Miller  <davem@davemloft.net>
2043
2044         [BZ #14376]
2045         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2046         pass reloc->r_addend in as the 'high' argument to
2047         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2048
2049         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2050
2051 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2052
2053         * rt/tst-aio2.c: Include <pthread.h>.
2054         * rt/tst-aio3.c: Likewise.
2055
2056 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2057
2058         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2059
2060 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2061
2062         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2063         contents on [SHARED].
2064
2065 2012-09-26  Marek Polacek  <polacek@redhat.com>
2066
2067         [BZ #14530]
2068         [BZ #13741]
2069         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2070         for C++ and GCC <4.3 as well as for non GCC compilers.
2071
2072 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2073
2074         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2075
2076 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2077
2078         * Makefile.in (all, install): Declare with .PHONY.
2079         Reported by Michael Hope <michael.hope@linaro.org>.
2080
2081 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2082
2083         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2084         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2085         system header.
2086         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2087         Likewise.
2088         (sydep_routines): Add the new and the internal functions.
2089         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2090         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2092         (GLIBC_2.17): Add the new function.
2093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2094         (GLIBC_2.17): Likewise.
2095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2096         (GLIBC_2.17): Likewise.
2097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2098         (GLIBC_2.17): Likewise.
2099         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2100
2101 2012-09-25  Alan Modra  <amodra@gmail.com>
2102
2103         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2104         Add release barrier before setting once_control to say
2105         initialisation is done.  Add hints on lwarx.  Use macro in
2106         place of isync.
2107         (clear_once_control): Add release barrier.
2108
2109 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2110
2111         [BZ #13629]
2112         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2113         specially.
2114         * math/s_clog10.c (__clog10): Likewise.
2115         * math/s_clog10f.c (__clog10f): Likewise.
2116         * math/s_clog10l.c (__clog10l): Likewise.
2117         * math/s_clogf.c (__clogf): Likewise.
2118         * math/s_clogl.c (__clogl): Likewise.
2119         * math/Makefile (libm-calls): Add x2y2m1.
2120         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2121         (__x2y2m1): Likewise.
2122         (__x2y2m1l): Likewise.
2123         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2124         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2125         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2126         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2127         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2128         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2129         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2130         * sysdeps/i386/fpu/libm-test-ulps: Update.
2131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2132
2133         [BZ #14621]
2134         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2135         int as type of variable DEPTH.
2136         (glob): Use size_t instead of int as type of variables NEWCOUNT
2137         and OLD_PATHC.
2138
2139 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2140
2141         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2142         Add s_sincosf-sse2.
2143         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2144         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2145         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2146         macros for using routine as __sincosf_ia32.
2147         Use macro for function declaration and weak_alias.
2148         * sysdeps/i386/fpu/libm-test-ulps: Update.
2149
2150         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2151         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2152
2153         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2154         subnormal argument.
2155         * math/s_cexpf.c (__cexpf): Likewise.
2156         * math/s_csinf.c (__csinf): Likewise.
2157         * math/s_csinhf.c (__csinhf): Likewise.
2158         * math/s_ctanf.c (__ctanf): Likewise.
2159         * math/s_ctanhf.c (__ctanhf): Likewise.
2160         * math/s_ccosh.c (__ccoshf): Likewise.
2161         * math/s_cexp.c (__cexpl): Likewise.
2162         * math/s_csin.c (__csin): Likewise.
2163         * math/s_csinh.c (__csinh): Likewise.
2164         * math/s_ctan.c (__ctan): Likewise.
2165         * math/s_ctanh.c (ctanh): Likewise.
2166         * math/s_ccoshl.c (__ccoshl): Likewise.
2167         * math/s_cexpl.c (__cexpl): Likewise.
2168         * math/s_csinl.c (__csinl): Likewise.
2169         * math/s_csinhl.c (__csinhl): Likewise.
2170         * math/s_ctanl.c (__ctanl): Likewise.
2171         * math/s_ctanhl.c (__ctanhl): Likewise.
2172
2173 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2174
2175         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2176         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2177         (_IO_off_t): Define to __off_t, not _G_off_t.
2178         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2179         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2180         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2181         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2182         type of __dummy and __dummy2 fields.
2183         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2184         (_G_ssize_t): Likewise.
2185         (_G_off_t): Likewise.
2186         (_G_pid_t): Likewise.
2187         (_G_uid_t): Likewise.
2188         (_G_wchar_t): Likewise.
2189         (_G_wint_t): Likewise.
2190         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2191         (_G_ssize_t): Likewise.
2192         (_G_off_t): Likewise.
2193         (_G_pid_t): Likewise.
2194         (_G_uid_t): Likewise.
2195         (_G_wchar_t): Likewise.
2196         (_G_wint_t): Likewise.
2197         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2198         (_G_ssize_t): Likewise.
2199         (_G_off_t): Likewise.
2200         (_G_pid_t): Likewise.
2201         (_G_uid_t): Likewise.
2202         (_G_wchar_t): Likewise.
2203         (_G_wint_t): Likewise.
2204
2205 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2206
2207         * malloc/arena.c: Include malloc-sysdep.h.
2208         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2209         is sufficient to shrink the heap or an unmap is needed.
2210         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2211         new function check_may_shrink_heap.
2212         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2213         new function check_may_shrink_heap.
2214
2215 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2216
2217         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2218         comments.
2219
2220 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2221
2222         * catgets/test-gencat.sh: Add "set -e".
2223         * elf/tst-pathopt.sh: Likewise.
2224         * grp/tst_fgetgrent.sh: Likewise.
2225         * iconvdata/run-iconv-test.sh: Likewise.
2226         * intl/tst-gettext.sh: Likewise.
2227         * intl/tst-gettext2.sh: Likewise.
2228         * intl/tst-gettext4.sh: Likewise.
2229         * intl/tst-gettext6.sh: Likewise.
2230         * intl/tst-translit.sh: Likewise.
2231         * io/ftwtest-sh: Likewise.
2232         * libio/test-freopen.sh: Likewise.
2233         * malloc/tst-mtrace.sh: Likewise.
2234         * posix/globtest.sh: Likewise.
2235         * posix/tst-getconf.sh: Likewise.
2236         * posix/wordexp-tst.sh: Likewise.
2237         * stdio-common/tst-printf.sh: Likewise.
2238         * stdio-common/tst-unbputc.sh: Likewise.
2239         * stdlib/tst-fmtmsg.sh: Likewise.
2240         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2241         * catgets/Makefile: Do not specify -e option when running
2242         testsuite shell scripts.
2243         * elf/Makefile: Likewise.
2244         * grp/Makefile: Likewise.
2245         * iconvdata/Makefile: Likewise.
2246         * intl/Makefile: Likewise.
2247         * io/Makefile: Likewise.
2248         * libio/Makefile: Likewise.
2249         * malloc/Makefile: Likewise.
2250         * posix/Makefile: Likewise.
2251         * stdio-common/Makefile: Likewise.
2252         * stdlib/Makefile: Likewise.
2253         * sysdeps/x86_64/Makefile: Likewise.
2254
2255         * io/ftwtest-sh: Add copyright header.
2256         * posix/globtest.sh: Likewise.
2257         * posix/tst-getconf.sh: Likewise.
2258         * posix/wordexp-tst.sh: Likewise.
2259         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2260
2261 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2262
2263         [BZ #13679]
2264         * Makeconfig (+link): Defined as $(+link-static) if
2265         $(build-shared) isn't yes.
2266         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2267         isn't yes.
2268         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2269
2270         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2271
2272         [BZ #14562]
2273         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2274         new chunk size with MALLOC_ALIGN_MASK.
2275
2276 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2277
2278         [BZ #5044]
2279         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2280         <rounding-mode.h>.
2281         (__printf_fphex): Determine rounding using get_rounding_mode and
2282         round_away.
2283         * stdio-common/tst-printf-round.c (struct hex_test): New
2284         structure.
2285         (hex_tests): New variable.
2286         (test_hex_in_one_mode): New function.
2287         (do_test): Also run tests for hex float output.
2288
2289 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2290
2291         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2292         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2293         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2294         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2295         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2296         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2297         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2298         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2299
2300 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2301
2302         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
2303         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
2304         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
2305         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
2306
2307 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
2308
2309         [BZ #14579]
2310         * elf/rtld.c (dl_main): Limit the check for self loading to normal
2311         mode only.
2312         * elf/tst-rtld-load-self.sh: New test.
2313         * elf/Makefile: Run it.
2314
2315 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
2316
2317         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
2318         (tst-writev-ENV): Remove.
2319         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
2320
2321 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
2322
2323         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
2324
2325 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
2326
2327         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
2328         unconditional.
2329         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
2330         Likewise.
2331         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
2332         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
2333         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
2334         Likewise.
2335
2336 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2337
2338         [BZ #14587]
2339         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
2340         * config.make.in (have-cpp-asm-debuginfo): Removed.
2341         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
2342         * configure: Regenerated.
2343
2344 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2345
2346         [BZ #5044]
2347         * stdio-common/printf_fp.c: Include <stdbool.h> and
2348         <rounding-mode.h>.
2349         (___printf_fp): Determine rounding using get_rounding_mode and
2350         round_away.
2351         * stdio-common/tst-printf-round.c: New file.
2352         * stdio-common/Makefile (tests): Add tst-printf-round.
2353         (link-libm): New variable.
2354         ($(objpfx)tst-printf-round): Depend in $(link-libm).
2355
2356 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2357
2358         [BZ #14576]
2359         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
2360         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
2361         Likewise.
2362         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
2363         Likewise.
2364
2365 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
2366
2367         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
2368         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2369         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2370         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2371
2372 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
2373
2374         [BZ #14518]
2375         * include/rounding-mode.h: New file.
2376         * sysdeps/generic/get-rounding-mode.h: Likewise.
2377         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
2378         * stdlib/strtod_l.c: Include <rounding-mode.h>.
2379         (MAX_VALUE): New macro.
2380         (MIN_VALUE): Likewise.
2381         (overflow_value): New function.
2382         (underflow_value): Likewise.
2383         (round_and_return): Use overflow_value and underflow_value to
2384         determine return values in overflow and underflow cases.  Use
2385         round_away to determine rounding depending on rounding mode.
2386         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
2387         determine return values in overflow and underflow cases.
2388         * stdlib/tst-strtod-round.c: Include <fenv.h>.
2389         (struct test_results): New structure.
2390         (struct test): Use struct test_results to store expected results
2391         for all rounding modes.
2392         (TEST): Include expected results for all rounding modes.
2393         (test_in_one_mode): New function.
2394         (do_test): Use test_in_one_mode to compute and check results.
2395         Check results for all rounding modes.
2396         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
2397         $(link-libm).
2398
2399 2012-12-09  Allan McRae  <allan@archlinux.org>
2400
2401         * sysdeps/i386/fpu/libm-test-ulps: Update
2402
2403 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
2404
2405         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
2406         (_G_int32_t): Likewise.
2407         (_G_uint16_t): Likewise.
2408         (_G_uint32_t): Likewise.
2409         (_G_HAVE_BOOL): Likewise.
2410         (_G_HAVE_ATEXIT): Likewise.
2411         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2412         (_G_HAVE_IO_FILE_OPEN): Likewise.
2413         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
2414         (_G_int32_t): Likewise.
2415         (_G_uint16_t): Likewise.
2416         (_G_uint32_t): Likewise.
2417         (_G_HAVE_BOOL): Likewise.
2418         (_G_HAVE_ATEXIT): Likewise.
2419         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2420         (_G_HAVE_IO_FILE_OPEN): Likewise.
2421         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
2422         (_G_int32_t): Likewise.
2423         (_G_uint16_t): Likewise.
2424         (_G_uint32_t): Likewise.
2425         (_G_HAVE_BOOL): Likewise.
2426         (_G_HAVE_ATEXIT): Likewise.
2427         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2428         (_G_HAVE_IO_FILE_OPEN): Likewise.
2429
2430 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2431
2432         * csu/libc-tls.c: Update copyright years.
2433
2434 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
2435
2436         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
2437         [!_G_USING_THUNKS]: Remove conditional code.
2438         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
2439         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
2440
2441         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
2442         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
2443         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2444         (_G_VTABLE_LABEL_PREFIX): Likewise.
2445         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2446         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2447         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2448         (_G_VTABLE_LABEL_PREFIX): Likewise.
2449         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2450         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2451         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2452         (_G_VTABLE_LABEL_PREFIX): Likewise.
2453         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2454
2455 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2456
2457         * libio/Makefile: Include ../Makeconfig before tests.
2458         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
2459         only if $(build-shared) is yes.
2460
2461         * iconv/gconv_db.c: Update copyright years.
2462
2463 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2464
2465         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
2466         unwind info if defined PIC. Fix special cases description.
2467         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
2468
2469         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
2470         DP_HI_MASK entry.
2471         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
2472
2473 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2474
2475         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
2476
2477         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
2478         is NULL.
2479
2480         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
2481         (LDLIBS-tst-chk4): This.
2482         (LDFLAGS-tst-chk5): Renamed to ...
2483         (LDLIBS-tst-chk5): This.
2484         (LDFLAGS-tst-chk6): Renamed to ...
2485         (LDLIBS-tst-chk6): This.
2486         (LDFLAGS-tst-lfschk4): Renamed to ...
2487         (LDLIBS-tst-lfschk4): This.
2488         (LDFLAGS-tst-lfschk5): Renamed to ...
2489         (LDLIBS-tst-lfschk5): This.
2490         (LDFLAGS-tst-lfschk6): Renamed to ...
2491         (LDLIBS-tst-lfschk6): This.
2492
2493         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
2494         on $(common-objpfx)soversions.mk.
2495
2496 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
2497
2498         [BZ #10014]
2499         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
2500         example host name.
2501
2502 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2503
2504         * malloc/arena.c (arena_get_retry): New function that gets
2505         another arena for the caller to try its request on.
2506         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
2507         current arena cannot fulfill the request.
2508         (__libc_memalign): Likewise.
2509         (__libc_memalign): Likewise.
2510         (__libc_pvalloc): Likewise.
2511         (__libc_calloc): Likewise.
2512
2513 2012-09-05  John Tobey  <john.tobey@gmail.com>
2514
2515         [BZ #13542]
2516         * manual/arith.texi (Operations on Complex): Fix description
2517         of carg branch cut.
2518
2519 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2520
2521         [BZ #10014]
2522         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
2523         host name.
2524
2525         [BZ #10038]
2526         * manual/memory.texi (Memory): Make order of menu items match
2527         order of sections.
2528
2529 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2530
2531         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
2532         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
2533         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
2534
2535 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2536
2537         * csu/libc-tls.c (static_dtv): Renamed to ...
2538         (_dl_static_dtv): This.  Make it global.
2539         (_dl_initial_dtv): Removed.
2540         (__libc_setup_tls): Updated.
2541         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
2542         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
2543         DL_INITIAL_DTV.
2544
2545 2012-09-06  Petr Machata  <pmachata@redhat.com>
2546
2547         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
2548         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
2549         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
2550         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
2551
2552 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2553
2554         [BZ #14545]
2555         * csu/libc-tls.c (_dl_initial_dtv): New variable.
2556         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
2557         freeing dtv[-1].
2558
2559 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2560
2561         [BZ #14544]
2562         * Makeconfig (link-static-before-libc): Replace $(+prector)
2563         with $(+prectorT).
2564         (link-static-after-libc): Replace $(+postctor) with
2565         $(+postctorT).
2566         (link-bounded): Replace $(+prector)/$(+postctor) with
2567         $(+prectorT)/$(+postctorT).
2568         (+prectorT): New macro.
2569         (+postctorT): Likewise.
2570
2571 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2572
2573         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
2574         (round_str): Handle values above the maximum for IBM long double
2575         as inexact.
2576         * stdlib/tst-strtod-round.c (tests): Regenerated.
2577
2578 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2579
2580         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
2581         assembler flag.
2582         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
2583         zarch_nohighgprs around the zarch optimized routines.
2584         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
2585         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
2586         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
2587         for zarch.
2588
2589 2012-09-05  David S. Miller  <davem@davemloft.net>
2590
2591         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2592
2593         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
2594         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
2595         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
2596         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
2597         entries.
2598
2599 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2600
2601         * malloc/arena.c: Fold copyright years.
2602         * malloc/mcheck.c, malloc/memusage.c: Likewise.
2603
2604 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2605
2606         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
2607
2608 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2609
2610         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
2611
2612 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2613
2614         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
2615         change internal state upon failure.
2616
2617 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2618
2619         * malloc/mcheck.c (mcheck_check_all): Fix typo.
2620         * malloc/memusage.c (mmap): Likewise.
2621         (mmap64, mremap): Likewise.  Adjust name in comment.
2622
2623 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2624
2625         * libio/fileops.c: Fix typos in comments.
2626         * libio/oldfileops.c: Likewise.
2627         * libio/wfileops.c: Likewise.
2628
2629 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2630
2631         [BZ #1349]
2632         * malloc/Makefile (tests): Add tst-malloc-usable test case.
2633         (tst-malloc-usable-ENV): Set environment for test case.
2634         * malloc/hooks.c (malloc_check_get_size): New function to get
2635         requested size.
2636         * malloc/malloc.c (musable): Use malloc_check_get_size.
2637         * malloc/tst-malloc-usable.c: New test case.
2638
2639 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2640
2641         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
2642
2643 2012-09-05  Allan McRae  <allan@archlinux.org>
2644
2645         [BZ #13966]
2646         * configure.in (CXX_SYSINCLUDES): Use compiler output to
2647         determine header location.
2648         * configure: Regenerated.
2649
2650 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2651
2652         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
2653         float format.
2654         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
2655         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
2656         format.
2657         (test): Regenerate.
2658
2659 2012-09-04  David S. Miller  <davem@davemloft.net>
2660
2661         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
2662         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
2663         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
2664
2665 2012-09-04  Florian Weimer  <fweimer@redhat.com>
2666
2667         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
2668         failures.
2669
2670         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
2671
2672 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
2673
2674         [BZ #9914]
2675         * libio/iogetdelim.c: Include <limits.h>.
2676         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
2677         + len + 1 would overflow.
2678
2679 2012-09-03  Andreas Jaeger  <aj@suse.de>
2680
2681         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2682         * sysdeps/i386/fpu/libm-test-ulps: Update.
2683
2684 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2685
2686         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2687         Add s_sinf-sse2, s_conf-sse2.
2688
2689         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2690         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2691         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2692         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2693
2694         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2695         for using routine as __sinf_ia32.
2696         Use macro for function declaration and weak_alias.
2697         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2698         for using routine as __cosf_ia32.
2699         Use macro for function declaration and weak_alias.
2700
2701         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2702         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2703
2704         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2705         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2706         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2707
2708         * math/libm-test.inc (cos_test): Add more test cases.
2709         (sin_test): Likewise.
2710         (sincos_test): Likewise.
2711
2712 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2713
2714         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2715         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2716         hidden.
2717         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2718
2719 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2720
2721         [BZ #14538]
2722         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2723         first element of the GOT.
2724         (elf_machine_load_address): Return the difference between
2725         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2726
2727 2012-09-01  Allan McRae  <allan@archlinux.org>
2728
2729         [BZ #13412]
2730         * configure.in (AWK): Require gawk version 3.0 or later.
2731         * configure: Regenerated.
2732
2733 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2734
2735         * sysdeps/unix/sysv/linux/kernel-features.h
2736         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2737         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2738         [__NR_clock_getres]: Make code unconditional.
2739         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2740         (clock_getcpuclockid): Remove code left unreachable by removal of
2741         conditionals.
2742         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2743         code unconditional.
2744         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2745         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2746         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2747         Make code unconditional.
2748         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2749         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2750         * sysdeps/unix/sysv/linux/clock_settime.c
2751         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2752         conditional code.
2753         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2754         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2755
2756 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2757
2758         [BZ #14476]
2759         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2760         scripts/test-installation.pl.
2761
2762         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2763         and $ld_so_version if it is set.
2764
2765 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2766
2767         [BZ #14516]
2768         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2769         failure if reading from procfs failed.
2770         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2771
2772 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2773
2774         * sysdeps/unix/sysv/linux/kernel-features.h
2775         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2776         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2777         Remove conditional code.
2778         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2779         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2780         Remove conditional code.
2781         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2782         * sysdeps/unix/sysv/linux/i386/fxstat.c
2783         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2784         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2785         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2786         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2787         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2788         * sysdeps/unix/sysv/linux/i386/lxstat.c
2789         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2790         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2791         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2792         Remove conditional code.
2793         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2794         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2795         Remove conditional code.
2796         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2797         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2798         <kernel-features.h>.
2799         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2800         Remove.
2801         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2802         Remove conditional code.
2803         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2804         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2805         Remove conditional.
2806
2807 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2808
2809         [BZ #5400]
2810         * NEWS: Add fixed bug number.
2811
2812 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2813
2814         [BZ #14519]
2815         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2816         underflowing exponent in case of negative sign.
2817         * stdlib/tst-strtod-round-data: Add more tests.
2818         * stdlib/tst-strtod-round.c (tests): Regenerated.
2819
2820         [BZ #3479]
2821         * stdlib/strtod_l.c (NDIG): Remove.
2822         (HEXNDIG): Likewise.
2823         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2824         smallest representable value.
2825         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2826         lie within an exact representation of 1/2 ulp of the result.
2827         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2828         unconditionally.
2829         (TENS_P9_IDX): Define unconditionally.
2830         (TENS_P9_SIZE): Likewise.
2831         (TENS_P10_IDX): Likewise.
2832         (TENS_P10_SIZE): Likewise.
2833         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2834         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2835         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2836         entries for 10^2^13 and 10^2^14.
2837         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2838         (TENS_P13_IDX): Define.
2839         (TENS_P13_SIZE): Likewise.
2840         (TENS_P14_IDX): Likewise.
2841         (TENS_P14_SIZE): Likewise.
2842         (_fpioconst_pow10): Change array size to
2843         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2844         unconditional.
2845         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2846         1024]: Add entries for 10^2^13 and 10^2^14.
2847         [LAST_POW10 > _LAST_POW10]: Remove #error.
2848         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2849         (_fpioconst_pow10): Change array size to
2850         FPIOCONST_POW10_ARRAY_SIZE.
2851         * stdlib/gen-fpioconst.c: New file.
2852         * stdlib/gen-tst-strtod-round.c: Likewise.
2853         * stdlib/tst-strtod-round-data: Likewise.
2854         * stdlib/tst-strtod-round.c: Likewise.
2855         * stdlib/Makefile (tests): Add tst-strtod-round.
2856
2857         [BZ #14459]
2858         * stdlib/strtod_l.c: Include <stdint.h>.
2859         (NDEBUG): Do not define.
2860         (round_and_return): Change EXPONENT parameter to type intmax_t.
2861         Rearrange calculations to avoid internal overflow possibilities.
2862         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2863         Rearrange calculations to avoid internal overflow possibilities.
2864         Assert that number fits inside MPNSIZE limbs.
2865         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2866         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2867         calculations and add assertions to avoid internal overflow
2868         possibilities.  Add casts to avoid signed/unsigned operations.
2869         * stdlib/tst-strtod-overflow.c: New file.
2870         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2871
2872 2012-08-25  Marek Polacek  <polacek@redhat.com>
2873
2874         * time/time.h: Fix some typos in comments.
2875
2876 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2877
2878         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2879         * posix/tst-rfc3484-2.c: Likewise.
2880         * posix/tst-rfc3484-3.c: Likewise.
2881
2882 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2883
2884         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2885         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2886
2887 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2888
2889         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2890         #include of fxstatat64.c.
2891
2892 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2893
2894         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2895         * shadow/getspent_r.c: Likewise.
2896         * shadow/getspnam.c: Likewise.
2897         * shadow/getspnam_r.c: Likewise.
2898         * gshadow/getsgent.c: Likewise.
2899         * gshadow/getsgent_r.c: Likewise.
2900         * gshadow/getsgnam.c: Likewise.
2901         * gshadow/getsgnam_r.c: Likewise.
2902         * inet/getnetbyad.c: Likewise.
2903         * inet/getnetbyad_r.c: Likewise.
2904         * inet/getnetbynm.c: Likewise.
2905         * inet/getnetbynm_r.c: Likewise.
2906         * inet/getnetent.c: Likewise.
2907         * inet/getnetent_r.c: Likewise.
2908         * inet/getproto.c: Likewise.
2909         * inet/getproto_r.c: Likewise.
2910         * inet/getprtent.c: Likewise.
2911         * inet/getprtent_r.c: Likewise.
2912         * inet/getprtname.c: Likewise.
2913         * inet/getprtname_r.c: Likewise.
2914         * inet/getrpcbyname.c: Likewise.
2915         * inet/getrpcbyname_r.c: Likewise.
2916         * inet/getrpcbynumber.c: Likewise.
2917         * inet/getrpcbynumber_r.c: Likewise.
2918         * inet/getrpcent.c: Likewise.
2919         * inet/getrpcent_r.c: Likewise.
2920         * inet/getaliasent.c: Likewise.
2921         * inet/getaliasent_r.c: Likewise.
2922         * inet/getaliasname.c: Likewise.
2923         * inet/getaliasname_r.c: Likewise.
2924         * nscd/getgrgid_r.c: Likewise.
2925         * nscd/getgrnam_r.c: Likewise.
2926         * nscd/gethstbyad_r.c: Likewise.
2927         * nscd/gethstbynm3_r.c: Likewise.
2928         * nscd/getpwnam_r.c: Likewise.
2929         * nscd/getpwuid_r.c: Likewise.
2930         * nscd/getsrvbynm_r.c: Likewise.
2931         * nscd/getsrvbypt_r.c: Likewise.
2932         * nscd/gai.c: Likewise.
2933
2934         * configure.in (build_nscd): New substituted variable, set
2935         by --disable-build-nscd and defaults to $use_nscd.
2936         * configure: Regenerated.
2937         * config.make.in (build-nscd): New substituted variable.
2938         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2939         Change conditional to require [$(build-nscd) = yes] as well.
2940         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2941
2942         [BZ# 13696]
2943         * configure.in (use_nscd): New substituted variable, set by
2944         --disable-nscd.  If enabled, define USE_NSCD.
2945         * configure: Regenerated.
2946         * config.h.in: Add USE_NSCD.
2947         * config.make.in (use-nscd): New substituted variable.
2948         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2949         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2950         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2951         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2952         (CFLAGS-getgrnam_r.c): Likewise.
2953         (CFLAGS-initgroups.c): Likewise.
2954         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2955         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2956         Variables removed.
2957         * inet/getnetgrent_r.c
2958         (nscd_setnetgrent): New function, broken out of ...
2959         (setnetgrent): ... here.  Call it.
2960         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2961         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2962         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2963         * nscd/Makefile (routines, aux): Move definitions after include of
2964         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2965         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2966         Conditionalize on [USE_NSCD].
2967         (is_nscd, nscd_init_cb): Likewise.
2968         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2969         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2970         * nss/nss_db/db-init.c: Likewise.
2971         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2972         [USE_NSCD].
2973         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2974         (make_request): Use it.
2975         (cache_valid_p): New function.
2976         (__check_pf): Use it.
2977         * NEWS: Add item for --disable-nscd.
2978
2979 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2980
2981         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2982         to support sed >= 4.2.1-20-ga9bf076.
2983         * configure: Regenerated.
2984
2985 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2986
2987         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2988         Conditionalize whole body on [IREL].
2989
2990 2012-08-22  Jeff Law <law@redhat.com>
2991
2992         [BZ #14505]
2993         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2994         if the family is PF_UNSPEC.
2995
2996 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2997
2998         * Makerules (lib-version): Rename from V.
2999         (install-lib-nosubdir): Change V to lib-version.
3000
3001 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3002
3003         [BZ #14252]
3004         * powerpc32/power6/wcschr.c: New file.
3005         * powerpc32/power6/wcscpy.c: New file.
3006         * powerpc32/power6/wcsrchr.c: New file.
3007         * powerpc64/power6/wcschr.c: New file.
3008         * powerpc64/power6/wcscpy.c: New file.
3009         * powerpc64/power6/wcsrchr.c: New file.
3010
3011 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3012
3013         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3014         (two_way_short_needle): Use it.
3015         * string/strstr.c (AVAILABLE1_USES_J): Define.
3016         * string/strcasestr.c: Likewise.
3017
3018         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3019         array references.
3020         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3021
3022         [BZ #11607]
3023         * NEWS: Add an entry.
3024         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3025         define their defaults.
3026         (two_way_short_needle): Detect end-of-string on-the-fly.
3027         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3028         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3029         * string/bug-strcasestr1.c: New test.
3030         * string/Makefile: Run it.
3031
3032 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3033
3034         [BZ #11607]
3035         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3036         the first character.
3037
3038 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3039
3040         * csu/elf-init.c (__libc_csu_irel): Function removed.
3041         * csu/libc-start.c (apply_irel): New function.
3042         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3043
3044 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3045
3046         * sysdeps/unix/sysv/linux/kernel-features.h
3047         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3048         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3049         <kernel-features.h>.
3050         [__NR_fadvise64_64]: Make code unconditional.
3051         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3052         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3053         !__NR_fadvise64_64)]: Likewise.
3054         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3055         !__NR_fadvise64_64))]: Likewise.
3056         [__NR_fadvise64]: Make code unconditional.
3057         [!__NR_fadvise64]: Remove conditional code.
3058         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3059         <kernel-features.h>.
3060         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3061         unconditional.
3062         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3063         conditional code.
3064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3065         not include <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/s390/s390-32/posix_fadvise64.c: Do not
3071         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
3077 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3078
3079         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3080         slight instruction rearrangements per scrollpipe analysis.
3081         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3082
3083 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3084
3085         * manual/syslog.texi (syslog; vsyslog, closelog):
3086         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3087         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3088
3089         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3090         DSOCAPS to match condition on defining it.
3091
3092 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3093
3094         * sysdeps/unix/sysv/linux/kernel-features.h
3095         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3096         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3097         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3098         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3100         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3101         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3103         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3104         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3105
3106         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3107         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3108
3109         * sysdeps/unix/sysv/linux/kernel-features.h
3110         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3111         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3112         unconditional.
3113         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3114         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3115         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3116         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3117         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3118         Make code unconditional.
3119         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3120         (__mmap64) [!__NR_mmap2]: Likewise.
3121         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3122         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3123         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3124         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3125         [__NR_mmap2]: Make code unconditional.
3126         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3127         (__mmap64) [!__NR_mmap2]: Likewise.
3128
3129 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3130
3131         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3132
3133 2012-08-18  Andreas Jaeger  <aj@suse.de>
3134
3135         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3136
3137 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3138
3139         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3140         * include/unistd.h (__have_sock_cloexec): Likewise.
3141         (__have_pipe2): Likewise.
3142         (__have_dup3): Likewise.
3143
3144 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3145
3146         [BZ #9685]
3147         * include/unistd.h (__have_pipe2): Change define into an extern int.
3148         (__have_dup3): Likewise.
3149         * socket/have_sock_cloexec.c: Include fcntl.h.
3150         (__have_pipe2): New variable.
3151         (__have_dup3): Likewise.
3152
3153 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3154
3155         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3156
3157 2012-08-17  Marek Polacek  <polacek@redhat.com>
3158
3159         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3160         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3161
3162 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3163
3164         * configure.in: Add AC_SUBST for sysheaders.
3165         * configure: Regenerated.
3166         * config.make.in (sysheaders): New substituted variable.
3167
3168         * sysdeps/unix/mkfifo.c: Moved ...
3169         * sysdeps/posix/mkfifo.c: ... here.
3170         * sysdeps/unix/mkfifoat.c: Moved ...
3171         * sysdeps/posix/mkfifoat.c: ... here.
3172
3173         * sysdeps/unix/utime.c: Moved ...
3174         * sysdeps/posix/utime.c: ... here.
3175
3176         * sysdeps/unix/time.c: Moved ...
3177         * sysdeps/posix/time.c: ... here.
3178         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3179         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3180
3181         * sysdeps/unix/nice.c: Moved ...
3182         * sysdeps/posix/nice.c: ... here.
3183
3184         * sysdeps/unix/alarm.c: Moved ...
3185         * sysdeps/posix/alarm.c: ... here.
3186
3187         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3188
3189 2012-08-17  Jeff Law <law@redhat.com>
3190
3191         * intl/Makefile (codeset_mo): New variable.
3192         ($(codeset_mo)): New target.
3193         (tst-codeset.out): Depend on that.  Remove explicit rule.
3194         (tst-gettext3.out, tst-gettext5.out): Likewise.
3195         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3196         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3197         * intl/tst-codeset.sh: Remove.
3198         * intl/tst-gettext3.sh: Likewise.
3199         * intl/tst-gettext5.sh: Likewise.
3200
3201 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3202
3203         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3204         * sysdeps/unix/syscalls.list: ... here.
3205
3206         * sysdeps/posix/getaddrinfo.c
3207         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3208         (gaiconf_init, gaiconf_reload): Use them.
3209         [!_STATBUF_ST_NSEC]
3210         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3211         Define using time_t rather than struct timespec.
3212
3213         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3214         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3215         Macros removed.
3216         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3217         [!NO_THREADS].
3218         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3219         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3220         Likewise.
3221
3222         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3223         __libc_cleanup_push argument.
3224
3225         * bits/param.h: New file.
3226         * misc/sys/param.h: New file.
3227         * include/sys/param.h: New file.
3228         * misc/Makefile (headers): Add bits/param.h.
3229         * sysdeps/generic/sys/param.h: File removed.
3230         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3231         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3232         * sysdeps/mach/hurd/bits/param.h: New file.
3233         * sysdeps/mach/hurd/sys/param.h: File removed.
3234
3235         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3236         last change.
3237
3238         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3239         [_IO_MTSAFE_IO].
3240         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3241         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3242         New macros.
3243
3244         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3245         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3246         rather than -D_IO_MTSAFE_IO conditionally.
3247         * stdio-common/Makefile (CPPFLAGS): Likewise.
3248         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3249         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3250         Use $(libio-mtsafe).
3251         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3252         of -D_IO_MTSAFE_IO.
3253         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3254         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3255         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3256         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3257         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3258         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3259         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3260         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3261         (CFLAGS-fread_u_chk.c): Likewise.
3262         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3263         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3264         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3265         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3266         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3267         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3268         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3269         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3270         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3271
3272         * libio/Makefile: Test [$(libc-reentrant) = yes]
3273         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3274
3275         * Makeconfig
3276         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3277         * sysdeps/pthread/configure: File removed.
3278         * sysdeps/pthread/Makeconfig: New file.
3279         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3280         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3281
3282 2012-08-16  Gary Benson  <gbenson@redhat.com>
3283
3284         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3285         unmapping the first object in a namespace.
3286
3287 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3288
3289         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3290         (__internal_setnetgrent): ... this.  Add internal_function to
3291         definition.  Add libc_hidden_def.
3292         (setnetgrent): Update caller.
3293         (internal_endnetgrent): Renamed to ...
3294         (__internal_endnetgrent): ... this.  Add internal_function to
3295         definition.  Add libc_hidden_def.
3296         (endnetgrent): Update caller.
3297         (internal_getnetgrent_r): Renamed to ...
3298         (__internal_getnetgrent_r): ... this.  Add internal_function to
3299         definition.  Add libc_hidden_def.
3300         (__getnetgrent_r): Update caller.
3301         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
3302
3303 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3304
3305         * stdlib/longlong.h: Update from GCC.
3306
3307 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3308
3309         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
3310         on _QL, which is set by umul_ppmm but never used.
3311         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
3312         variables, which are set by GMP macros but never used.
3313         * stdio-common/_itowa.c (_itowa): Likewise.
3314         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
3315         * stdlib/mod_1.c (mpn_mod_1): Likewise.
3316
3317 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
3318
3319         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
3320         struct La_sh_regs is not constant.
3321         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
3322         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
3323         and struct La_sparc64_regs are not constant.
3324
3325 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3326
3327         * sysdeps/unix/sysv/linux/kernel-features.h
3328         (__ASSUME_POSIX_TIMERS): Remove.
3329         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3330         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3331         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
3332         Make code unconditional.
3333         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3334         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
3335         Make code unconditional.
3336         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3337         * sysdeps/unix/sysv/linux/clock_nanosleep.c
3338         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
3339         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3340         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
3341         Make code unconditional.
3342         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3343         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
3344         (__libc_missing_posix_timers): Remove.
3345
3346 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3347
3348         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
3349         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
3350
3351         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
3352
3353         * elf/dl-sym.c: Include <stdlib.h>.
3354
3355         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
3356         constants, which avoids warnings in 32-bit builds.
3357
3358         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
3359         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
3360
3361         * misc/lseek.c: File moved to ...
3362         * io/lseek.c: ... here.
3363
3364         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
3365
3366         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
3367         shifting LEN more than 31 bits at once.
3368
3369 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3370
3371         [BZ #14195]
3372         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
3373         segmentation fault for a case of two empty input strings.
3374         * string/test-strncasecmp.c (check1): Renamed to...
3375         (bz12205): ...this.
3376         (bz14195): Add new testcase for two empty input strings and N > 0.
3377         (test_main): Call new testcase, adapt for renamed function.
3378
3379 2012-08-15  Andreas Jaeger  <aj@suse.de>
3380
3381         [BZ #14090]
3382         * crypt/md5test2.c: New test, based on test supplied by Serge
3383         Belyshev <belyshev@depni.sinp.msu.ru>.
3384         * crypt/Makefile (xtests): Add md5test-giant..
3385         * crypt/Makefile ($(objpfx)md5test-giant): Add.
3386
3387 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3388
3389         [BZ #14090]
3390         * crypt/md5.c (md5_process_block): Don't assume the buffer
3391         length is less than 2**32.
3392         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
3393         length is less than 2**64.
3394
3395 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3396
3397         * string/str-two-way.h: Include <sys/param.h>.
3398         (MAX): Macro removed.
3399
3400         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
3401         Move #define and #undef of memmove to just before and after
3402         including <string.h>.
3403
3404         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
3405         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
3406         and after including <string.h>.  Move declarations of
3407         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
3408         to before #include "string/memmove.c".
3409
3410         * include/dirent.h: Declare __getdirentries.
3411
3412         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
3413         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
3414
3415 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3416
3417         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
3418         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
3419         * sysdeps/i386/configure: Regenerated.
3420         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
3421         STABS_CURRENT_FILE, and STABS_FUN.
3422         (END): Remove call to STABS_FUN_END.
3423         (STABS_CURRENT_FILE1): Delete.
3424         (STABS_CURRENT_FILE): Likewise.
3425         (STABS_FUN): Likewise.
3426         (STABS_FUN_END): Likewise.
3427         (STABS_FUN2): Likewise.
3428         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
3429         * sysdeps/x86_64/configure: Regenerated.
3430
3431 2012-08-14  Roland McGrath  <roland@hack.frob.com>
3432
3433         * elf/dl-open.c: Include <atomic.h>.
3434         * elf/dl-lookup.c: Likewise.
3435
3436 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
3437
3438         * sysdeps/unix/sysv/linux/kernel-features.h
3439         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
3440         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
3441         unconditionally.
3442         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
3443         unconditionally.
3444         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
3445         condition on __ASSUME_CLONE_THREAD_FLAGS.
3446
3447 2012-08-14  Andreas Jaeger  <aj@suse.de>
3448
3449         * sysdeps/i386/fpu/libm-test-ulps: Update.
3450
3451 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
3452
3453         * include/atomic.h (atomic_exchange_and_add): Split into ...
3454         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
3455         New atomic macros.
3456
3457 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
3458
3459         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3460
3461 2012-08-13  Jeff Law <law@redhat.com>
3462
3463         * manual/stdio.texi (snprintf): Clarify handling of the trailing
3464         null byte in the output string.
3465
3466 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
3467
3468         * sysdeps/unix/sysv/linux/kernel-features.h
3469         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
3470         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
3471         (__ASSUME_ARG_MAX_STACK_BASED): Define.
3472         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3473         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
3474         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
3475         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
3476
3477 2012-08-09  Jeff Law <law@redhat.com>
3478
3479         [BZ #13939]
3480         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
3481         When avoid_arena is set, don't retry in the that arena.  Pick the
3482         next one, whatever it might be.
3483         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
3484         (arena_lock): Pass in new parameter to arena_get2.
3485         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
3486         arena_get2.
3487         (__libc_malloc): Unify retrying after main arena failure with
3488         __libc_memalign version.
3489         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
3490
3491 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3492
3493         [BZ #14166]
3494         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
3495         to __redirect_strstr.
3496         (__strstr_sse42): Use typeof __redirect_strstr.
3497         (__strstr_ia32): Likewise.
3498         (__libc_strstr): New prototype.
3499         (strstr): Renamed to ...
3500         (__libc_strstr): This.
3501         (strstr): New strong alias of __libc_strstr.
3502         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
3503         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
3504         __redirect_time.
3505         Include <time.h>.
3506         (__libc_time): New prototype.
3507         (time_ifunc): Replace time with __libc_time.
3508         (time): New strong alias and hidden definition of __libc_time.
3509         (__GI_time): Remove strong alias.
3510         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
3511         Include <stddef.h>.
3512         (memmove): Redefined to __redirect_memmove.
3513         (__memmove_sse2): Use typeof __redirect_memmove.
3514         (__memmove_ssse3): Likewise.
3515         (__memmove_ssse3_back): Likewise.
3516         (__libc_memmove): New prototype.
3517         (memmove): Renamed to ...
3518         (__libc_memmove): This.
3519         (memmove): New strong alias of __libc_memmove.
3520
3521 2012-08-08  Mark Salter  <msalter@redhat.com>
3522
3523         * elf/elf.h
3524         (R_MN10300_TLS_GD): Define.
3525         (R_MN10300_TLS_LD): Likewise.
3526         (R_MN10300_TLS_LDO): Likewise.
3527         (R_MN10300_TLS_GOTIE): Likewise.
3528         (R_MN10300_TLS_IE): Likewise.
3529         (R_MN10300_TLS_LE): Likewise.
3530         (R_MN10300_TLS_DTPMOD): Likewise.
3531         (R_MN10300_TLS_DTPOFF): Likewise.
3532         (R_MN10300_TLS_TPOFF): Likewise.
3533         (R_MN10300_SYM_DIFF): Likewise.
3534         (R_MN10300_ALIGN): Likewise.
3535         (R_MN10300_NUM): Update.
3536
3537 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
3538
3539         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
3540         Remove.
3541
3542 2012-08-08  Roland McGrath  <roland@hack.frob.com>
3543
3544         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
3545
3546         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
3547         sysdeps/unix -> sysdeps/posix move.
3548         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3549
3550 2012-08-07      Allan McRae     <allan@archlinux.org>
3551
3552         [BZ #14303]
3553         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
3554         (SUNOS_CPP): Likewise.
3555         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
3556         not found.
3557         (open_input): Call CPP using execvp.
3558
3559 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3560
3561         * sysdeps/unix/sysv/linux/kernel-features.h
3562         (__ASSUME_PROT_GROWSUPDOWN): Remove.
3563         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3564         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3565         (__ASSUME_WAITID_SYSCALL): Likewise.
3566         * sysdeps/unix/sysv/linux/dl-execstack.c
3567         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
3568         code unconditional.
3569         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
3570         conditional code.
3571         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
3572         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
3573         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
3574         code.
3575         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
3576         unconditional.
3577         [__ASSUME_WAITID_SYSCALL]: Likewise.
3578         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
3579
3580 2012-08-07  Roland McGrath  <roland@hack.frob.com>
3581
3582         * sysdeps/unix/closedir.c: Renamed to ...
3583         * sysdeps/posix/closedir.c: ... here.
3584         * sysdeps/unix/dirfd.c: Renamed to ...
3585         * sysdeps/posix/dirfd.c: ... here.
3586         * sysdeps/unix/dirstream.h: Renamed to ...
3587         * sysdeps/posix/dirstream.h: ... here.
3588         * sysdeps/unix/fdopendir.c: Renamed to ...
3589         * sysdeps/posix/fdopendir.c: ... here.
3590         * sysdeps/unix/opendir.c: Renamed to ...
3591         * sysdeps/posix/opendir.c: ... here.
3592         * sysdeps/unix/readdir.c: Renamed to ...
3593         * sysdeps/posix/readdir.c: ... here.
3594         * sysdeps/unix/readdir_r.c: Renamed to ...
3595         * sysdeps/posix/readdir_r.c: ... here.
3596         * sysdeps/unix/rewinddir.c: Renamed to ...
3597         * sysdeps/posix/rewinddir.c: ... here.
3598         * sysdeps/unix/seekdir.c: Renamed to ...
3599         * sysdeps/posix/seekdir.c: ... here.
3600         * sysdeps/unix/telldir.c: Renamed to ...
3601         * sysdeps/posix/telldir.c: ... here.
3602         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
3603         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
3604         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3605         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
3606
3607         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
3608         * bits/fcntl.h: ... here.
3609
3610         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
3611         not 0.
3612         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
3613         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
3614         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
3615         (struct flock): Move l_start, l_len to the beginning.
3616         Use __pid_t for l_pid.
3617         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
3618         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
3619         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
3620         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
3621         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
3622         [__USE_LARGEFILE64] (struct flock64): New type.
3623         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
3624
3625         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
3626         * bits/dirent.h: ... here.
3627
3628         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
3629         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
3630
3631 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3632
3633         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3634         Change from 2.6.0 to 2.6.16.
3635         * sysdeps/unix/sysv/linux/configure: Regenerated.
3636         * sysdeps/unix/sysv/linux/kernel-features.h
3637         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
3638         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
3639         version.
3640         (__ASSUME_UTIMES): Likewise.
3641         (__ASSUME_CLONE_STOPPED): Remove.
3642         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
3643         architectures, not kernel version.
3644         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
3645         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3646         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3647         (__ASSUME_WAITID_SYSCALL): Likewise.
3648         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
3649         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
3650         * README: State 2.6.16 as minimum Linux kernel version.  Do not
3651         refer to older versions.
3652
3653 2012-08-06  Roland McGrath  <roland@hack.frob.com>
3654
3655         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
3656         Define alphasort64 as an alias.
3657         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
3658         Define versionsort64 as an alias.
3659         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
3660         Define scandir64 as an alias.
3661         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
3662         Define scandirat64 as an alias.
3663         * dirent/alphasort64.c (alphasort64):
3664         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
3665         * dirent/versionsort64.c: Likewise.
3666         * dirent/scandir64.c: Likewise.
3667         * dirent/scandirat64.c: Likewise.
3668         * sysdeps/wordsize-64/alphasort.c: File removed.
3669         * sysdeps/wordsize-64/alphasort64.c: File removed.
3670         * sysdeps/wordsize-64/scandir.c: File removed.
3671         * sysdeps/wordsize-64/scandir64.c: File removed.
3672         * sysdeps/wordsize-64/scandirat.c: File removed.
3673         * sysdeps/wordsize-64/scandirat64.c: File removed.
3674         * sysdeps/wordsize-64/versionsort.c: File removed.
3675         * sysdeps/wordsize-64/versionsort64.c: File removed.
3676         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
3677         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
3678         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
3679         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
3680         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
3681         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
3682         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
3683         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
3684
3685         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3686         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3687         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3688         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3689         [defined __arch64__ || defined __sparcv9]
3690         (__INO_T_MATCHES_INO64_T): New macro.
3691         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3692         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3693         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3694         * sysdeps/unix/sysv/linux/bits/dirent.h
3695         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3696         (_DIRENT_MATCHES_DIRENT64): New macro.
3697
3698         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3699         Define lockf64 as an alias.
3700         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3701         Define fseeko64 as an alias.
3702         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3703         Define ftello64 as an alias.
3704         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3705         Define _IO_fgetpos64 and fgetpos64 as aliases.
3706         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3707         Define _IO_fsetpos64 and fsetpos64 as aliases.
3708         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3709         Conditionalize body on this.
3710         * libio/fseeko64.c: Likewise.
3711         * libio/ftello64.c: Likewise.
3712         * libio/iofgetpos64.c: Likewise.
3713         * libio/iofsetpos64.c: Likewise.
3714         * sysdeps/wordsize-64/lockf.c: File removed.
3715         * sysdeps/wordsize-64/lockf64.c: File removed.
3716         * sysdeps/wordsize-64/fseeko.c: File removed.
3717         * sysdeps/wordsize-64/fseeko64.c: File removed.
3718         * sysdeps/wordsize-64/ftello.c: File removed.
3719         * sysdeps/wordsize-64/ftello64.c: File removed.
3720         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3721         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3722         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3723         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3724         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3725         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3726         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3727         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3728         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3729         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3730         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3731         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3732         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3733         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3734
3735         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3736         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3737         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3738         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3739         [defined __arch64__ || defined __sparcv9]
3740         (__OFF_T_MATCHES_OFF64_T): New macro.
3741         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3742         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3743         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3744         (__OFF_T_MATCHES_OFF64_T): New macro.
3745
3746 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3747
3748         * stdlib/secure-getenv.c (__secure_getenv): Replace
3749         GLIBC_2_16 with GLIBC_2_17.
3750
3751 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3752
3753         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3754         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3755
3756 2012-08-03  David S. Miller  <davem@davemloft.net>
3757
3758         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3759
3760 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3761
3762         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3763         Remove.
3764         (__ASSUME_CORRECT_SI_PID): Likewise.
3765         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3766         (__ASSUME_TMPFS_NAME): Likewise.
3767         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3768         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3769         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3770         (HAVE_AUX_SECURE): Make definition unconditional.
3771         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3772         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3773
3774 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3775
3776         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3777         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3778         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3779         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3780         __eloop_threshold instead of SYMLOOP_MAX.
3781
3782         * sysdeps/generic/eloop-threshold.h: New file.
3783         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3784         of MAXSYMLINKS.
3785         * elf/chroot_canon.c (chroot_canon): Likewise.
3786
3787 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3788
3789         [BZ #13717]
3790         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3791         Change to 2.6.0 everywhere.
3792         * sysdeps/unix/sysv/linux/configure: Regenerated.
3793         * sysdeps/unix/sysv/linux/kernel-features.h
3794         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3795         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3796         kernel versions.
3797         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3798         (__ASSUME_FUTEX_REQUEUE): Remove.
3799         (__ASSUME_STATFS64): Define unconditionally.
3800         (__ASSUME_AT_SECURE): Likewise.
3801         (__ASSUME_CORRECT_SI_PID): Likewise.
3802         (__ASSUME_TGKILL): Define without depending on kernel version for
3803         i386.
3804         (__ASSUME_UTIMES): Likewise.
3805         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3806         kernel version.
3807         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3808         (__ASSUME_TMPFS_NAME): Likewise.
3809         * README: Update reference to Linux kernel versions.
3810
3811 2012-08-02  Marek Polacek  <polacek@redhat.com>
3812
3813         [BZ# 14150]
3814         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3815         libc_cv_asm_type_prefix with %.
3816         * configure: Regenerated.
3817         * include/libc-symbols.h: Remove comment about
3818         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3819         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3820         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3821         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3822         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3823         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3824         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3825         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3826         * elf/tst-unique2mod1.c: Likewise.
3827         * elf/tst-unique1mod2.c: Likewise.
3828         * elf/tst-unique1mod1.c: Likewise.
3829         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3830         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3831         Replace ASM_TYPE_DIRECTIVE with .type.
3832         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3833         * sysdeps/i386/sysdep.h: Likewise.
3834         * sysdeps/x86_64/sysdep.h: Likewise.
3835         * sysdeps/sh/sysdep.h: Likewise.
3836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3837         Do not define ASM_TYPE_DIRECTIVE.
3838         * sysdeps/powerpc/sysdep.h: Likewise.
3839         * sysdeps/powerpc/powerpc32/sysdep.h:
3840         Replace ASM_TYPE_DIRECTIVE with .type.
3841         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3842         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3843         * sysdeps/i386/fpu/e_powf.S: Likewise.
3844         * sysdeps/i386/fpu/e_expl.S: Likewise.
3845         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3846         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3847         * sysdeps/i386/fpu/e_pow.S: Likewise.
3848         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3849         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3850         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3851         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3852         * sysdeps/i386/fpu/e_log2.S: Likewise.
3853         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3854         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3855         * sysdeps/i386/fpu/e_powl.S: Likewise.
3856         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3857         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3858         * sysdeps/i386/fpu/e_logl.S: Likewise.
3859         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3860         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3861         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3862         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3863         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3864         * sysdeps/i386/fpu/e_log.S: Likewise.
3865         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3866         * sysdeps/i386/fpu/e_logf.S: Likewise.
3867         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3868         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3869         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3870         * sysdeps/i386/fpu/e_log10.S: Likewise.
3871         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3872         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3873         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3874         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3875         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3876         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3877         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3878         * sysdeps/i386/i686/strtok.S: Likewise.
3879         * sysdeps/i386/i386-mcount.S: Likewise.
3880         * sysdeps/i386/strtok.S: Likewise.
3881         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3882         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3883         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3884         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3885         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3886         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3887         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3888         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3889         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3890         * sysdeps/x86_64/_mcount.S: Likewise.
3891         * sysdeps/x86_64/strtok.S: Likewise.
3892         * sysdeps/sh/_mcount.S: Likewise.
3893
3894 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3895
3896         * libio/iofopen.c: Include <fcntl.h>.
3897         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3898         (_IO_fopen64, fopen64): Define as aliases.
3899         * libio/iofopen64.c: Include <fcntl.h>.
3900         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3901         Conditionalize body on this.
3902         * sysdeps/wordsize-64/iofopen.c: File removed.
3903         * sysdeps/wordsize-64/iofopen64.c: File removed.
3904
3905 2012-08-01  Marek Polacek  <polacek@redhat.com>
3906
3907         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3908         Use dlfcn directly instead of a variable.
3909         (binfmt-subdir): Do not define.
3910         (dlfcn): Likewise.
3911
3912 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3913
3914         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3915         Remove all definitions.
3916         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3917         <kernel-features.h>.
3918         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3919         (miss_F_GETOWN_EX): Remove all definitions.
3920         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3921         macro definition.
3922         [!__ASSUME_FCNTL64]: Remove conditional code.
3923         [__ASSUME_FCNTL64]: Make code unconditional.
3924         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3925         <kernel-features.h>.
3926         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3927         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3928         (lockf64) [__NR_fcntl64]: Make code unconditional.
3929         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3930
3931         * sysdeps/unix/sysv/linux/kernel-features.h
3932         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3933         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3934         Make code unconditional.
3935         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3936         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3938         [__NR_vfork]: Make code unconditional.
3939         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3940         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3942         [__NR_vfork]: Make code unconditional.
3943         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3944         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3945
3946 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3947
3948         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3949         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3950
3951         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3952         Define mkstemp64 as an alias.
3953         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3954         Define mkstemps64 as an alias.
3955         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3956         Define mkostemp64 as an alias.
3957         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3958         Define mkostemps64 as an alias.
3959         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3960         Conditionalize body on this.
3961         * misc/mkostemp64.c: Likewise.
3962         * misc/mkostemps64.c: Likewise.
3963         * misc/mkstemps64.c: Likewise.
3964         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3965         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3966         * sysdeps/wordsize-64/mkostemp.c: File removed.
3967         * sysdeps/wordsize-64/mkstemp.c: File removed.
3968         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3969         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3970         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3971         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3972
3973         [BZ #14138]
3974         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3975         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3976         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3977         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3978
3979         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3980         compat_symbol macros from <shlib-compat.h> rather than the underlying
3981         default_symbol_version and symbol_version macros, so that DEFAULT
3982         lines in shlib-versions are respected.
3983         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3984
3985 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3986
3987         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3988         Declare with warn_unused_result.
3989         (setgid, setregid, setegid, setresgid): Likewise.
3990         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3991         Likewise.
3992         * WUR-REPORT: Remove set*id functions.
3993
3994 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3995
3996         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3997
3998 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3999
4000         * include/sys/socket.h (__libc_accept, __libc_accept4):
4001         Add attribute_hidden.
4002         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4003
4004         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4005         use of PTR_MANGLE.
4006         * inet/getnetgrent_r.c (setup): Likewise.
4007
4008         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4009
4010 2012-07-31  David S. Miller  <davem@davemloft.net>
4011
4012         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4013
4014 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4015
4016         [BZ #13629]
4017         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4018         value between 1.0 and 2.0 and smaller part has absolute value less
4019         than 1.0.
4020         * math/s_clog10.c (__clog10): Likewise.
4021         * math/s_clog10f.c (__clog10f): Likewise.
4022         * math/s_clog10l.c (__clog10l): Likewise.
4023         * math/s_clogf.c (__clogf): Likewise.
4024         * math/s_clogl.c (__clogl): Likewise.
4025         * math/libm-test.inc (clog_test): Add more tests.
4026         (clog10_test): Likewise.
4027         * sysdeps/i386/fpu/libm-test-ulps: Update.
4028         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4029
4030 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4031
4032         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4033         Exit with zero in case no suitable GID is found, and write a
4034         message to standard error.
4035
4036 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4037
4038         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4039         rather than to 1.
4040         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4041         (MAXPATHLEN): Removed.
4042         (NOGROUP, NODEV): New macros.
4043         (setbit, clrbit, isset, isclr): New macros.
4044         (howmany, roundup, powerof2): New macros.
4045         (DEV_BSIZE): New macro.
4046
4047         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4048         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4049
4050         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4051         definition on [!__NO_LONG_DOUBLE_MATH].
4052
4053         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4054         PTR_MANGLE and PTR_DEMANGLE.
4055
4056         * socket/accept4.c (accept4): Rename to __libc_accept4.
4057         Define accept4 as a weak alias.
4058
4059         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4060         on [_DIRENT_HAVE_D_TYPE].
4061         * io/ftw.c (ftw_dir): Likewise.
4062
4063         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4064
4065         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4066
4067         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4068         Use the BSD numbers rather than the arbitrary ones we had.
4069         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4070         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4071         (SIGXCPU, SIGXFSZ): New macros.
4072         (_NSIG): Now 32.
4073
4074         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4075         initializer on [_LIBC_REENTRANT].
4076
4077         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4078         definitions inside [_POSIX_MAPPED_FILES].
4079
4080         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4081
4082         * dirent/opendir.c: Include <fcntl.h>.
4083
4084         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4085         (__libc_getspecific): Likewise.
4086         (__libc_key_create): Likewise.
4087
4088         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4089         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4090         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4091         (tmpfile64): Define as alias.
4092         * sysdeps/wordsize-64/tmpfile.c: File removed.
4093         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4094         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4095         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4096
4097         * stdio-common/vfscanf.c: Include <stdbool.h>.
4098         * nss/makedb.c: Likewise.
4099         * stdio-common/_i18n_number.h: Likewise.
4100         * argp/argp-help.c: Likewise.
4101         * posix/wordexp.c: Likewise.
4102         * sysdeps/posix/spawni.c: Likewise.
4103         * nss/nss_files/files-initgroups.c: Likewise.
4104         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4105         * nss/nss_files/files-initgroups.c: Likewise.
4106         * nss/nss_db/db-netgrp.c: Likewise.
4107         * nss/nss_db/db-initgroups.c: Likewise.
4108         * io/fchmodat.c: Include <sys/stat.h>.
4109
4110         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4111         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4112
4113         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4114         [HAVE_MMAP].
4115
4116         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4117         Add multiple inclusion protection.
4118
4119 2012-07-27  David S. Miller  <davem@davemloft.net>
4120
4121         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4122
4123 2012-07-27  Gary Benson  <gbenson@redhat.com>
4124
4125         [BZ #14298]
4126         * elf/rtld.c: Include <stap-probe.h>.
4127         (dl_main): Added static probes "init_start" and "init_complete".
4128         * elf/dl-load.c: Include <stap-probe.h>.
4129         (lose): Take new parameter "nsid".
4130         Added static probe "map_failed".
4131         (_dl_map_object_from_fd): Pass namespace id to lose.
4132         Added static probe "map_start".
4133         (open_verify): Pass namespace id to lose.
4134         * elf/dl-open.c: Include <stap-probe.h>.
4135         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4136         and "reloc_complete".
4137         * elf/dl-close.c: Include <stap-probe.h>.
4138         (_dl_close_worker): Added static probes "unmap_start" and
4139         "unmap_complete".
4140         * elf/rtld-debugger-interface.txt: New file documenting the above.
4141
4142 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4143
4144         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4145         rather than a string variable.
4146         * sunrpc/rpc_main.c (h_output): Likewise.
4147         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4148
4149 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4150
4151         * inet/check_native.c: New file.
4152
4153 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4154
4155         [BZ #13629]
4156         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4157         if larger part has absolute value 1.0.
4158         * math/s_clog10.c (__clog10): Likewise.
4159         * math/s_clog10f.c (__clog10f): Likewise.
4160         * math/s_clog10l.c (__clog10l): Likewise.
4161         * math/s_clogf.c (__clogf): Likewise.
4162         * math/s_clogl.c (__clogl): Likewise.
4163         * math/libm-test.inc (clog_test): Add more tests.
4164         (clog10_test): Likewise.
4165         * sysdeps/i386/fpu/libm-test-ulps: Update.
4166         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4167
4168         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4169         (pltexit): Likewise.
4170         (La_regs): Likewise.
4171         (La_retval): Likewise.
4172         (int_retval): Likewise.
4173         Update #error for removed macros to refer only to definitions in
4174         tst-audit.h.
4175         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4176         macro.
4177         (pltexit): Likewise.
4178         (La_regs): Likewise.
4179         (La_retval): Likewise.
4180         (int_retval): Likewise.
4181         * elf/tst-auditmod4b.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-auditmod5b.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-auditmod6b.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-auditmod6c.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-auditmod7b.c (pltenter): Remove all definitions of
4206         macro.
4207         (pltexit): Likewise.
4208         (La_regs): Likewise.
4209         (La_retval): Likewise.
4210         (int_retval): Likewise.
4211         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4212         macro definitions in tst-audit.h.
4213         * sysdeps/i386/tst-audit.h: New file.
4214         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4215         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4216         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4217         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4218         * sysdeps/sh/tst-audit.h: Likewise.
4219         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4220         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4221         * sysdeps/x86_64/tst-audit.h: Likewise.
4222
4223 2012-07-26  Andreas Jaeger  <aj@suse.de>
4224
4225         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4226         ptrace.
4227
4228         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4229         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4230         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4231         PTRACE_O_MASK.
4232         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4233         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4234         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4235
4236         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4237         value.
4238
4239         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4240         _sigsys.
4241         (si_call_addr, si_syscall, si_arch): Define new macro.
4242         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4243         _sigsys.
4244         (si_call_addr, si_syscall, si_arch): Define new marcro.
4245         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4246         _sigsys.
4247         (si_call_addr, si_syscall, si_arch): Define new macro.
4248         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4249         _sigsys.
4250         (si_call_addr, si_syscall, si_arch): Define new macro.
4251
4252 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4253
4254         [BZ #13717]
4255         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4256         Change to 2.4.21 where previously 2.4.1.
4257         * sysdeps/unix/sysv/linux/configure: Regenerated.
4258         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4259         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4260         Linux kernel version.
4261         (__ASSUME_STD_AUXV): Remove.
4262         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4263         kernel version.
4264         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4265         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4266         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4267         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4268         (__ASSUME_NETLINK_SUPPORT): Likewise.
4269         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4270         (__no_netlink_support): Remove conditional definition.
4271         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4272         Remove.
4273         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4274         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4275         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4276         (if_nameindex_ioctl): Remove.
4277         (if_nameindex_netlink): Do not handle __no_netlink_support.
4278         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4279         code.
4280         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4281         Remove conditional code.
4282         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4283         code.
4284         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4285         unconditional.
4286         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4287         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4288         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4289         Remove.
4290         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4291         [!__ASSUME_STD_AUXV]: Remove conditional code.
4292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4293         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4294         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4296         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4297         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4298         code.
4299         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
4301         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
4302         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4303         conditional code.
4304         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
4306         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4307         code.
4308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
4309         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4310         conditional code.
4311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4312         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4313         code unconditional.
4314         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4315         conditional code.
4316         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4317         unconditional.
4318         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4319         conditional code.
4320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4321         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4322         unconditional.
4323         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4324         conditional code.
4325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4326         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4327         code unconditional.
4328         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4329         conditional code.
4330         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4331         unconditional.
4332         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4333         conditional code.
4334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4335         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4336         code unconditional.
4337         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4338         conditional code.
4339         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4340         unconditional.
4341         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4342         conditional code.
4343
4344 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
4345
4346         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
4347         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
4348         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4349         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
4350         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
4351         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4352         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4353         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
4354         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
4355         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4356         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
4357         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4358         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
4359         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4360         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4361         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
4362         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
4363         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
4364         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
4365         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
4366         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
4367         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4368         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4369
4370 2012-07-25  Florian Weimer  <fweimer@redhat.com>
4371
4372         * Versions.def: Add GLIBC_2.17.
4373         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
4374         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
4375         Introduce __libc_secure_getenv.
4376         * stdlib/Versions (2.17): Add secure_getenv
4377         (GLIBC_PRIVATE): Add __libc_secure_getenv.
4378         * stdlib/secure-getenv.c: Rename __secure_getenv to
4379         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
4380         symbol __secure_getenv for GLIBC_2.0.
4381         * stdlib/tst-secure-getenv.c: New.
4382         * stdlib/Makefile (tests): Add testcase.
4383         * manual/startup.texi (Environment Access): Document
4384         secure_getenv.
4385         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
4386         __libc_secure_getenv.
4387         * inet/ruserpass.c (ruserpass): Likewise.
4388         * malloc/mtrace.c (mtrace): Likewise.
4389         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
4390         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4391         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
4392         * sysdeps/posix/tempname.c: Likewise.  Evaluate
4393         HAVE_SECURE_GETENV.
4394         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
4395         __secure_getenv to __libc_secure_getenv.
4396         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
4397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4398         Likewise.
4399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4400         Likewise.
4401         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
4402         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
4403         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4404         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
4405         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
4406         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4407         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
4408
4409 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4410
4411         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
4412         (struct La_i86_retval): Likewise.
4413         (struct La_x86_64_regs): Likewise.
4414         (struct La_x86_64_retval): Likewise.
4415         (struct La_x32_regs): Likewise.
4416         (struct La_x32_retval): Likewise.
4417         (struct La_ppc32_regs): Likewise.
4418         (struct La_ppc32_retval): Likewise.
4419         (struct La_ppc64_regs): Likewise.
4420         (struct La_ppc64_retval): Likewise.
4421         (struct La_sh_regs): Likewise.
4422         (struct La_sh_retval): Likewise.
4423         (struct La_s390_32_regs): Likewise.
4424         (struct La_s390_32_retval): Likewise.
4425         (struct La_s390_64_regs): Likewise.
4426         (struct La_s390_64_retval): Likewise.
4427         (struct La_sparc32_regs): Likewise.
4428         (struct La_sparc32_retval): Likewise.
4429         (struct La_sparc64_regs): Likewise.
4430         (struct La_sparc64_retval): Likewise.
4431         (struct audit_ifaces): Remove architecture-specific pltenter and
4432         pltexit members.
4433         * sysdeps/i386/ldsodefs.h: New file.
4434         * sysdeps/powerpc/ldsodefs.h: Likewise.
4435         * sysdeps/s390/ldsodefs.h: Likewise.
4436         * sysdeps/sh/ldsodefs.h: Likewise.
4437         * sysdeps/sparc/ldsodefs.h: Likewise.
4438         * sysdeps/x86_64/ldsodefs.h: Likewise.
4439
4440 2012-07-25  Marek Polacek  <polacek@redhat.com>
4441
4442         [BZ #6808]
4443         * math/libm-test.inc (yn_test): Add another test.
4444         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
4445         to ERANGE when the result is +-Inf.
4446         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
4447         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4448         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
4449         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
4450
4451 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
4452
4453         * conform/data/time.h-data (NULL): Use macro-constant.  Require
4454         equal to 0.
4455         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
4456         clock_t.
4457         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
4458
4459 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
4460
4461         * configure.in <sysdeps resolving>: Correct printing
4462         Implies_before.
4463         * configure: Regenerate.
4464
4465 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
4466
4467         * math/w_ilogb.c: Include <limits.h>.
4468         * math/w_ilogbl.c: Likewise.
4469
4470 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4471
4472         * manual/lang.texi (__va_copy): Document primarily as ISO C99
4473         va_copy.  Document allowing for unavailable va_copy only as
4474         pre-C99 compatibility.
4475         * manual/string.texi (Copying and Concatenation): Use va_copy
4476         instead of __va_copy in concat example.
4477
4478 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
4479
4480         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
4481         (__sendto): Use create_address_port.  Initialize APORT and deallocate
4482         it if not null.
4483
4484         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
4485         with O_NOLINK passed to __file_name_lookup.
4486
4487         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
4488         with O_NOLINK passed to __file_name_lookup.
4489
4490         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
4491         negative N or less than NGIDS.
4492
4493         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
4494         type to string_t.  Set ERANGE as errno and return it if NAME is not big
4495         enough.  Use memcpy instead of strncpy.
4496
4497 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4498
4499         * elf/Makefile (check-data): Remove.
4500         (localplt.data): New vpath directive.
4501         ($(objpfx)check-localplt.out): Use localplt.data from vpath
4502         instead of $(check-data).
4503         * scripts/data/localplt-generic.data: Move to ...
4504         * sysdeps/generic/localplt.data: ... here.
4505         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
4506         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
4507         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
4508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
4509         ... here.
4510         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
4511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
4512         ... here.
4513         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
4514         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
4515         ... here.
4516         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
4517         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
4518         ... here.
4519         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
4520         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
4521         ... here.
4522         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
4523         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
4524         ... here.
4525
4526 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4527
4528         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
4529         PPC32 and PPC64 files.
4530         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
4531         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
4532
4533 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4534
4535         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
4536         __makecontext_ret to ...
4537         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
4538         ... here and call exit if uc_link is NULL.  New file.
4539         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
4540         __makecontext_ret.S.
4541         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
4542         __makecontext_ret to ...
4543         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
4544         ... here and call exit if uc_link is NULL.  New file.
4545         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
4546         __makecontext_ret.S.
4547
4548 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4549
4550         * elf/elf.h (R_390_IRELATIVE): New definition.
4551         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
4552         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
4553         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
4554         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4555         (elf_machine_lazy_rel): Likewise.
4556         * sysdeps/s390/dl-irel.h: New file.
4557         * sysdeps/s390/s390-64/memcpy.S: New asm code.
4558         * sysdeps/s390/s390-64/memset.S: New asm code.
4559         * sysdeps/s390/s390-64/memcmp.S: New asm code.
4560         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
4561         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
4562         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
4563         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
4564         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
4565         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
4566         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
4567         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
4568         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
4569         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
4570         * sysdeps/s390/s390-32/memcpy.S: New asm code.
4571         * sysdeps/s390/s390-32/memset.S: New asm code.
4572         * sysdeps/s390/s390-32/memcmp.S: New asm code.
4573
4574 2012-07-17  Marek Polacek  <polacek@redhat.com>
4575
4576         [BZ #14349]
4577         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
4578         * sysdeps/s390/s390-64/configure.in: Likewise.
4579         * sysdeps/sparc/configure.in: Likewise.
4580         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
4581         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
4582         * sysdeps/i386/configure.in: Likewise.
4583         * sysdeps/x86_64/configure.in: Likewise.
4584         * sysdeps/sh/configure.in: Likewise.
4585         * sysdeps/s390/s390-32/configure: Regenerated.
4586         * sysdeps/s390/s390-64/configure: Likewise.
4587         * sysdeps/x86_64/configure: Likewise.
4588         * sysdeps/sh/configure: Likewise.
4589         * sysdeps/powerpc/powerpc64/configure: Likewise.
4590         * sysdeps/powerpc/powerpc32/configure: Likewise.
4591         * sysdeps/sparc/configure: Likwise.
4592         * sysdeps/i386/configure: Likewise.
4593
4594         * elf/dl-open.c: Comment fixes.
4595
4596 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
4597
4598         * Makefile [CXX] (check-data): Remove.
4599         [CXX] (c++-types.data): New vpath directive.
4600         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
4601         vpath.  Do not allow for C++ type data being missing.
4602         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
4603         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
4604         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
4605         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
4606         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
4607         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
4608         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
4609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
4610         ... here.
4611         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
4612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
4613         ... here.
4614         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
4615         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
4616         ... here.
4617         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
4618         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
4619         ... here.
4620         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
4621         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
4622         ... here.
4623         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
4624         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
4625         ... here.
4626         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
4627         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
4628         ... here.
4629         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
4630         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
4631
4632         * elf/tls-macros.h (TLS_LE): Move architecture-specific
4633         definitions to architecture-specific files.
4634         (TLS_IE): Likewise.
4635         (TLS_LD): Likewise.
4636         (TLS_GD): Likewise.
4637         * sysdeps/i386/tls-macros.h: New file.
4638         * sysdeps/powerpc/tls-macros.h: Likewise.
4639         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
4640         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
4641         * sysdeps/sh/tls-macros.h: Likewise.
4642         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
4643         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
4644         * sysdeps/x86_64/tls-macros.h: Likewise.
4645
4646 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4647
4648         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
4649         zero value for regular exit case.
4650
4651         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4652         (__start_context): Preserve zero value for regular exit case.
4653
4654 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4655             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4656
4657         * manual/setjmp.texi (setcontext): Clarify normal process
4658         termination when uc_link is the null pointer.
4659         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
4660         exit call.
4661
4662 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
4663
4664         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
4665         preprocessor.  Test for each exception mask separately.
4666
4667 2012-07-16  Andreas Jaeger  <aj@suse.de>
4668
4669         * po/ru.po: Update from translation team.
4670
4671 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
4672
4673         * conform/data/string.h-data (NULL): Use macro-constant.  Require
4674         equal to 0.
4675         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4676         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4677         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
4678         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
4679         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4680
4681 2012-07-13  Andreas Jaeger  <aj@suse.de>
4682
4683         * po/fr.po: Update from translation team.
4684
4685 2012-07-12  Marek Polacek  <polacek@redhat.com>
4686
4687         [BZ #14173]
4688         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4689         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4690         loop condition.
4691
4692 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4693
4694         [BZ #13717]
4695         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4696         Change to 2.4.1 where previously 2.4.0.
4697         * sysdeps/unix/sysv/linux/configure: Regenerated.
4698         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4699         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4700         version.
4701         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4702         (__ASSUME_AT_CLKTCK): Remove.
4703         (__ASSUME_AT_PAGESIZE): Likewise.
4704         (__ASSUME_AT_XID): Likewise.
4705         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4706         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4707         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4708         unconditionally.
4709         (HAVE_AUX_PAGESIZE): Likewise.
4710         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4711         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4712         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4713
4714 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4715
4716         [BZ #14307]
4717         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4718         the temporary buffer used to invoke __gethostbyname2_r,
4719         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4720         host_data / struct gaih_addrtuple.
4721         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4722         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4723         header file nss/nsswitch.h.
4724         * nss/nsswitch.h (global scope): Add definition of implementation
4725         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4726         resolv/nss_dns/dns-host.c).
4727
4728 2012-07-11  Andreas Jaeger  <aj@suse.de>
4729
4730         * po/fr.po: Update from translation team.
4731
4732         * po/sv.po: Update from translation team
4733         * po/fr.po: Another update from translation team.
4734
4735 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4736
4737         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4738         for subnormals or multiply small sinh result by itself.
4739         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4740         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4741
4742 2012-07-11  David S. Miller  <davem@davemloft.net>
4743
4744         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4745
4746 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4747
4748         [BZ #14347]
4749         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4750         (INTERNAL_MARK): Shift it here.
4751
4752 2012-07-10  Marek Polacek  <polacek@redhat.com>
4753
4754         [BZ #14151]
4755         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4756         libc_cv_asm_global_directive with .globl.
4757         * configure: Regenerated.
4758         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4759         with .globl.
4760         * sysdeps/i386/configure: Regenerated.
4761         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4762         with .globl.
4763         * sysdeps/x86_64/configure: Regenerated.
4764         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4765         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4766         * elf/tst-unique2mod2.c: Likewise.
4767         * elf/tst-unique2mod1.c: Likewise.
4768         * elf/tst-unique1mod2.c: Likewise.
4769         * elf/tst-unique1mod1.c: Likewise.
4770         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4771         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4772         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4773         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4774         * sysdeps/mach/sysdep.h: Likewise.
4775         * sysdeps/i386/sysdep.h: Likewise.
4776         * sysdeps/i386/i386-mcount.S: Likewise.
4777         * sysdeps/x86_64/_mcount.S: Likewise.
4778         * sysdeps/x86_64/sysdep.h: Likewise.
4779         * sysdeps/sh/_mcount.S: Likewise.
4780         * sysdeps/sh/sysdep.h: Likewise.
4781         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4782         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4783         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4784         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4785         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4786         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4787         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4788         * locale/localeinfo.h: Likewise.
4789         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4790         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4791
4792 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4793
4794         [BZ #14336]
4795         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4796         system".
4797         * manual/message.texi (The Uniforum approach): Likewise.
4798         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4799         (glibc iconv Implementation): Likewise.
4800
4801 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4802
4803         [BZ #14337]
4804         * math/s_clog.c (__clog): Avoid scaling a value down where that
4805         could result in underflow.
4806         * math/s_clog10.c (__clog10): Likewise.
4807         * math/s_clog10f.c (__clog10f): Likewise.
4808         * math/s_clog10l.c (__clog10l): Likewise.
4809         * math/s_clogf.c (__clogf): Likewise.
4810         * math/s_clogl.c (__clogl): Likewise.
4811         * math/libm-test.inc (clog_test): Add more tests.
4812         (clog10_test): Likewise.
4813         * sysdeps/i386/fpu/libm-test-ulps: Update.
4814         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4815
4816 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4817
4818         [BZ #14283]
4819         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4820         by 7 not 8 to examine high bit of fractional part.
4821
4822         [BZ #14042]
4823         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4824         for call to __mcount_internal.
4825         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4826         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4827         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4828
4829 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4830
4831         [BZ #14154]
4832         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4833         approximation for values within 0x1p-13f of an odd multiple of
4834         pi/4.
4835         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4836         exception.  Add more tests.
4837         * sysdeps/i386/fpu/libm-test-ulps: Update.
4838
4839         [BZ #6778]
4840         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4841         inputs and return -1 for them.  Do not check for +Inf in case not
4842         reachable for +Inf.
4843         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4844         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4845         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4846         and return -1 for them.  Do not check for +Inf in case not
4847         reachable for +Inf.
4848         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4849         define.
4850         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4851         and return -1 for them.  Do not check for +Inf in case not
4852         reachable for +Inf.
4853         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4854         spurious underflow.
4855         * sysdeps/i386/fpu/libm-test-ulps: Update.
4856         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4857
4858 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4859
4860         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4861
4862 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4863
4864         [BZ #14157]
4865         [BZ #14331]
4866         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4867         could result in spurious underflow.  Scale down values above
4868         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4869         * math/s_csqrtf.c (__csqrtf): Likewise.
4870         * math/s_csqrtl.c (__csqrtl): Likewise.
4871         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4872         spurious underflow.
4873         * sysdeps/i386/fpu/libm-test-ulps: Update.
4874         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4875
4876 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4877
4878         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4879         xopen-msg.sed.
4880         * catgets/xopen-msg.awk: New file.
4881         * catgets/xopen-msg.sed: Removed.
4882
4883         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4884         po2text.sed.
4885         * intl/po2test.awk: New file.
4886         * intl/po2test.sed: Removed.
4887
4888 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4889
4890         [BZ #14328]
4891         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4892         or multiply small sinh result by itself.
4893         * math/s_ctanf.c (__ctanf): Likewise.
4894         * math/s_ctanh.c (__ctanh): Likewise.
4895         * math/s_ctanhf.c (__ctanhf): Likewise.
4896         * math/s_ctanhl.c (__ctanhl): Likewise.
4897         * math/s_ctanl.c (__ctanl): Likewise.
4898         * math/libm-test.inc (ctan_test_tonearest): New function.
4899         (ctan_test_towardzero): Likewise.
4900         (ctan_test_downward): Likewise.
4901         (ctan_test_upward): Likewise.
4902         (ctanh_test_tonearest): Likewise.
4903         (ctanh_test_towardzero): Likewise.
4904         (ctanh_test_downward): Likewise.
4905         (ctanh_test_upward): Likewise.
4906         (main): Call these new functions.
4907         * sysdeps/i386/fpu/libm-test-ulps: Update.
4908         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4909
4910 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4911
4912         * .gitignore: Delete /ports entry.
4913
4914 2012-07-03  Andreas Jaeger  <aj@suse.de>
4915
4916         * po/bg.po: Update from translation team.
4917         * po/cs.po: Likewise.
4918         * po/de.po: Likewise.
4919         * po/hr.po: Likewise.
4920         * po/nl.pl: Likewise.
4921         * po/pl.po: Likewise.
4922         * po/vi.po: Likewise.
4923
4924 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4925
4926         * Makeconfig [!+link] (+link-before-libc): New variable.
4927         [!+link] (+link-after-libc): Likewise.
4928         [!+link] (+link-tests): Likewise.
4929         [!+link] (+link): Define in terms of $(+link-before-libc) and
4930         $(+link-after-libc).
4931         [!+link-static] (+link-static-before-libc): New variable.
4932         [!+link-static] (+link-static-after-libc): Likewise.
4933         [!+link-static] (+link-static-tests): Likewise.
4934         [!+link-static] (+link-static): Define in terms of
4935         $(+link-static-before-libc) and $(+link-static-after-libc).
4936         [build-shared] (link-libc-before-gnulib): New variable.
4937         [build-shared] (link-libc-tests): Likewise.
4938         [build-shared] (link-libc): Define in terms of
4939         $(link-libc-before-gnulib).
4940         [!build-shared] (link-libc-tests): New variable.
4941         (link-libc-static-tests): New variable.
4942         [!gnulib] (gnulib-arch): New variable.
4943         [!gnulib] (gnulib-tests): Likewise.
4944         [!gnulib] (static-gnulib-arch): Likewise.
4945         [!gnulib] (static-gnulib-tests): Likewise.
4946         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4947         Define with "=" instead of ":=".
4948         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4949         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4950         * Rules (binaries-all-notests): New variable.
4951         (binaries-all-tests): Likewise.
4952         (binaries-static-notests): Likewise.
4953         (binaries-static-tests): Likewise.
4954         (binaries-all): Define using $(binaries-all-notests) and
4955         $(binaries-all-tests).
4956         (binaries-static): Define using $(binaries-static-notests) and
4957         $(binaries-static-tests).
4958         (binaries-shared-tests): New variable.
4959         (binaries-shared-notests): Likewise.
4960         (binaries-shared): Remove variable.
4961         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4962         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4963         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4964         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4965         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4966         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4967         * elf/Makefile (sln-modules): New variable.
4968         (extra-objs): Add $(sln-modules:=.o).
4969         (ldconfig-modules): Add static-stubs.
4970         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4971         * elf/static-stubs.c: New file.
4972
4973         [BZ #14283]
4974         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4975         by 7 not 8 to examine high bit of fractional part.  Use volatile
4976         variables when splitting into final array of floats if
4977         __FLT_EVAL_METHOD__ != 0.
4978         * math/libm-test.inc (cos_test): Add another test.
4979         (sin_test): Likewise.
4980         * sysdeps/i386/fpu/libm-test-ulps: Update.
4981
4982         [BZ #14273]
4983         * math/libm-test.inc (cosh_test): Add more tests.
4984
4985         * version.h (RELEASE): Set to "development".
4986         (VERSION): Set to "2.16.90".
4987
4988 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4989
4990         * NEWS: Update copyright. Remove last-updated date.
4991         Mention math library bug fixes and timezone data changes.
4992         * README: Mention GNU/Hurd, x32, and HPPA support status.
4993
4994 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4995
4996         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4997
4998 2012-06-27  Andreas Jaeger  <aj@suse.de>
4999
5000         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5001
5002 2012-06-25  Andreas Jaeger  <aj@suse.de>
5003
5004         * sysdeps/s390/fpu/libm-test-ulps: Update.
5005
5006 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5007             Thomas Schwinge  <thomas@codesourcery.com>
5008
5009         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5010         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5011         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5012         fanotify_mark.
5013
5014 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5015
5016         * sysdeps/mach/start.c: Remove file.
5017         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5018         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5019         * sysdeps/sh/init-first.c: Likewise.
5020
5021         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5022         registers for frame unwinding purposes, add CFI directives.
5023         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5024         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5025         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5026         Likewise.
5027
5028         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5029         __fortify_fail returning.
5030         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5031
5032         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5033         sysdeps/sh/____longjmp_chk.S.
5034         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5035         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5036         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5037         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5038
5039         * sysdeps/sh/abort-instr.h: New file.
5040         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5041         process in case exit returns.
5042
5043         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5044         initialize the GOT register before use.
5045
5046         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5047         calculation of ARGC > 4.
5048
5049         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5050         meaningful names to some local labels.
5051
5052 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5053             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5054
5055         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5056         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5057         (__arch_compare_and_exchange_val_16_acq): Likewise.
5058         (__arch_compare_and_exchange_val_32_acq): Likewise.
5059         (atomic_exchange_and_add): Fix gUSA sequence.
5060         (atomic_add): Likewise.
5061         (atomic_add_negative): Likewise.
5062         (atomic_add_zero): Likewise.
5063         (atomic_bit_test_set): Likewise.
5064
5065 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5066
5067         [BZ #13579]
5068         * include/link.h (struct link_map): Add l_free_initfini.
5069         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5070         l_initfini.
5071         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5072         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5073         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5074         set.
5075
5076 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5077
5078         * configure.in: Use AC_LANG_SOURCE.
5079         * configure: Regenerate.
5080
5081 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5082
5083         * configure.in (libc_cv_localstatedir): New substituted variable.
5084         * configure: Regenerated.
5085         * config.make.in (localstatedir): New variable, substituted from
5086         libc_cv_localstatedir.
5087         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5088         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5089         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5090         * sysdeps/gnu/configure: Regenerated.
5091
5092 2012-06-21  Jeff Law  <law@redhat.com>
5093
5094         [BZ #14277]
5095         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5096         free.  Simplify list management for _LIBC case.
5097
5098 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5099
5100         [BZ #14273]
5101         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5102         Clear sign bit of 64-bit integer value before comparing against
5103         overflow value.
5104
5105         * sysdeps/mach/configure: Regenerated.
5106
5107 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5108
5109         [BZ #14278]
5110         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5111
5112 2012-06-21  Jeff Law  <law@redhat.com>
5113
5114         [BZ #13882]
5115         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5116         uint16_t for elements in the "seen" array to avoid char overflows.
5117         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5118         * elf/dl-open.c (dl_open_worker): Likewise.
5119
5120 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5121
5122         * scripts/list-sources.sh: Scan PORTS for translations.
5123         * po/libc.pot: Regenerated.
5124
5125 2012-06-21  Andreas Jaeger  <aj@suse.de>
5126
5127         [BZ #12194]
5128         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5129         warning.
5130         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5131         * bits/byteswap-16.h (__bswap_16): Likewise.
5132         * bits/byteswap.h (__bswap_constant_16): Likewise.
5133
5134 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5135
5136         [BZ #14117]
5137         * sysdeps/i386/fpu_control.h: Removed.
5138         * sysdeps/x86_64/fpu_control.h: Moved to ...
5139         * sysdeps/x86/fpu_control.h: Here.
5140
5141         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5142         (_FPU_SETCW): Likewise.
5143
5144 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5145
5146         [BZ #14117]
5147         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5148         * sysdeps/x86/fpu/bits/mathinline.h: This.
5149         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5150
5151         [BZ #14050]
5152         [BZ #14117]
5153         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5154         functions if __x86_64__ is defined.
5155
5156 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5157
5158         * string/endian.h: Add !__ASSEMBLER__ condition for including
5159         conversion interfaces.
5160
5161 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5162
5163         [BZ #14241]
5164         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5165         of ABS(x) in calculating zero to negative powers other than odd
5166         integers.
5167         * math/libm-test.inc (pow_test): Add more tests.
5168
5169 2012-06-15  Andreas Jaeger  <aj@suse.de>
5170
5171         * manual/contrib.texi (Contributors): Update entry of Liubov
5172         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5173         Machado Filho.
5174
5175 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5176
5177         * string/string.h: Add __wur to GNU version of strerror_r.
5178
5179 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5180
5181         [BZ #14229]
5182         * string/Makefile (tests): Add tst-strtok_r.
5183         * string/tst-strtok_r.c: New file.
5184         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5185         RAX_LP/RDX_LP on SAVE_PTR.
5186
5187 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5188
5189         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5190
5191 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5192
5193         * libm_test.inc (csqrt_test): Allow more spurious underflow
5194         exceptions.
5195         (j0_test): Likewise.
5196         (j1_test): Likewise.
5197         (y0_test): Likewise.
5198         (y1_test): Likewise.
5199
5200 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5201
5202         * po/Makefile (libc.pot): Use UTF-8 charset.
5203
5204 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5205
5206         [BZ #14210]
5207         Suppress sign-conversion warning from FD_SET.
5208         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5209         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5210         not unsigned long int.
5211         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5212
5213 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5214
5215         [BZ #14050]
5216         [BZ #14117]
5217         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5218         __extern_always_inline instead of __extern_inline.
5219         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5220         (__signbit): Likewise.
5221         (__signbitl): Support C++ namespace.
5222         (lrintf): New inline function.
5223         (lrint): Likewise.
5224         (llrintf): Likewise.
5225         (llrint): Likewise.
5226         (fmaxf): Likewise.
5227         (fmax): Likewise.
5228         (fminf): Likewise.
5229         (fmin): Likewise.
5230         (rint): Likewise.
5231         (rintf): Likewise.
5232         (ceil): Likewise.
5233         (ceilf): Likewise.
5234         (floor): Likewise.
5235         (floorf): Likewise.
5236         (nearbyint): Likewise.
5237         (nearbyintf): Likewise.
5238
5239 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5240
5241         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5242         non-default versions.
5243
5244 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5245
5246         [BZ #14218]
5247         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5248
5249 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5250
5251         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5252         (FE_UPWARD, FE_DOWNWARD): Don't define.
5253         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5254         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5255
5256         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5257         reading it.
5258         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5259         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5260
5261 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5262
5263         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5264         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5265         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5266         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5267
5268 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5269
5270         [BZ #14117]
5271         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5272         * sysdeps/i386/fpu/Implies: New file.
5273         * sysdeps/x86_64/fpu/Implies: Likewise.
5274         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5275         * sysdeps/x86/fpu/bits/fenv.h: This.
5276
5277         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5278         __SSE_MATH__.
5279
5280 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5281
5282         [BZ #14134]
5283         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5284         character 0xffff that matches the last element of the
5285         conversion table.
5286
5287 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5288
5289         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5290         fmodl commit.
5291
5292 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5293
5294         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5295         values higher than 25.6283.
5296
5297 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5298
5299         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5300         subnormal exponent extraction and add some __builtin_expect.
5301         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
5302         Fix for subnormal mantissa calculation.
5303
5304 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
5305
5306         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
5307         cpu2 is -1 and errno is not ENOSYS.
5308
5309 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5310
5311         [BZ #14117]
5312         * sysdeps/i386/i486/bits/string.h: Renamed to ...
5313         * sysdeps/x86/bits/string.h: This.
5314         * sysdeps/x86_64/bits/string.h: Removed.
5315
5316         * sysdeps/i386/i486/bits/string.h: Define inline functions only
5317         if not compiling for x86-64, but compiling for >= i486.
5318
5319         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
5320         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
5321
5322         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
5323         New macro from Linux kernel 3.4.0.
5324         (FP_XSTATE_MAGIC2): Likewise.
5325         (FP_XSTATE_MAGIC2_SIZE): Likewise.
5326         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
5327         (struct _fpx_sw_bytes): New struct.
5328         (struct _xsave_hdr): Likewise.
5329         (struct _ymmh_state): Likewise.
5330         (struct _xstate): Likewise.
5331
5332         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
5333         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
5334         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
5335         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
5336         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
5337         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
5338
5339         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
5340         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
5341         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
5342         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
5343         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
5344         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
5345
5346 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5347
5348         [BZ #13743]
5349         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
5350         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
5351         (sysdep_headers): Include sys/platform/ppc.h.
5352         * sysdeps/powerpc/test-gettimebase.c: Test for
5353         __ppc_get_timebase() to catch future ISA opcode/insn changes.
5354         * manual/Makefile (appendices): Include platform.texi.
5355         * manual/contrib.texi (Contributors): Update @node pointers.
5356         * manual/maint.texi (Maintenance): Likewise.
5357         (Platform): New node.
5358         * manual/platform.texi: New file.  Document the new features.
5359
5360 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5361             Jakub Jelinek  <jakub@redhat.com>
5362
5363         [BZ #14188]
5364         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
5365         where __builtin_expect is unavailable.
5366
5367 2012-06-03  David S. Miller  <davem@davemloft.net>
5368
5369         * stdlib/longlong.h: Updated from GCC.
5370
5371 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
5372
5373         [BZ #14042]
5374         * sysdeps/powerpc/powerpc32/mcount.c: New file.
5375         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
5376         __mcount_internal.
5377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
5378         (GLIBC_2.16): Likewise.
5379
5380 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5381
5382         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
5383
5384 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5385
5386         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
5387         (default-abi): New variable.
5388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
5389         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
5390         variable.
5391         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
5392         Likewise.
5393         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
5394         Likewise.
5395         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
5396         Likewise.
5397
5398         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
5399         definition.  Document in comment.
5400
5401 2012-06-01  David S. Miller  <davem@davemloft.net>
5402
5403         * stdlib/longlong.h: Updated from GCC.
5404
5405 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5406
5407         [BZ #14117]
5408         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
5409         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
5410         sys/debugreg.h sys/io.h here.
5411         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
5412         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
5413         sys/io.h.
5414         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
5415         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
5416         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
5417         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
5418         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
5419         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
5420
5421         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
5422         Define only if __x86_64__ is defined.
5423
5424 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5425
5426         [BZ #14048]
5427         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
5428         Use int64_t for variable i.
5429         * math/libm-test.inc (fmod_test): Add more tests.
5430
5431         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
5432         z computation is not scheduled after fetestexcept.
5433         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
5434         Use math_force_eval instead of asm to ensure calculation scheduled
5435         before exception test.
5436         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
5437         Ensure a1 + u.d computation is not scheduled after fetestexcept.
5438
5439 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
5440
5441         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
5442         computation is not scheduled after fetestexcept.
5443
5444 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5445
5446         [BZ #14117]
5447         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
5448         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
5449
5450 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5451
5452         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
5453         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5454
5455 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5456
5457         [BZ #14117]
5458         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
5459         <bits/wordsize.h>.
5460         (__WCHAR_MIN): Support __WORDSIZE == 64.
5461         (__WCHAR_MAX): Likewise.
5462
5463         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
5464         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
5465
5466         [BZ #14183]
5467         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
5468         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
5469
5470         [BZ #14117]
5471         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
5472         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
5473
5474         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
5475         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
5476
5477         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
5478         Defined to 1 if __x86_64__ isn't defined.
5479         (_STAT_VER_LINUX_OLD): New.
5480         (st_atime): Remove duplicate.
5481         (st_mtime): Likewise.
5482         (st_ctime): Likewise.
5483
5484 2012-05-31  David S. Miller  <davem@davemloft.net>
5485
5486         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
5487         entries.
5488
5489 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
5490
5491         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
5492         gen-libm-test.pl.
5493
5494         [BZ #14132]
5495         * elf/dl-reloc.c: Include <_itoa.h>.
5496         (_dl_reloc_bad_type): Remove use of INTUSE.
5497         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
5498         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
5499         * stdio-common/psiginfo.c (psiginfo): Likewise.
5500         * stdio-common/psignal.c (psignal): Likewise.
5501         * string/strsignal.c (strsignal): Likewise.
5502         * include/signal.h (_sys_siglist): Declare hidden proto.
5503         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
5504         INTVARDEF with libc_hidden_data_def.
5505         * stdio-common/itoa-udigits.c: Likewise.
5506         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
5507         (_itoa_lower_digits_internal): Remove declaration.
5508         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
5509         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
5510         (_sys_sigabbrev_internal): Remove aliases.
5511         (_sys_siglist): Define hidden alias.
5512
5513 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5514
5515         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5516         bits/sysctl.h.
5517
5518 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5519
5520         [BZ #14117]
5521         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
5522         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
5523
5524         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
5525         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
5526         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
5527         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
5528         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
5529         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
5530
5531         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
5532         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
5533         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
5534
5535         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
5536         with __addr.
5537         (insw): Likewise.
5538         (insl): Likewise.
5539         (outsb): Likewise.
5540         (outsw): Likewise.
5541         (outsl): Likewise.
5542
5543         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
5544         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
5545         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
5546
5547         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
5548         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
5549         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
5550         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
5551         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
5552         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
5553
5554         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
5555         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
5556
5557         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
5558         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
5559
5560         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
5561         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
5562         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
5563
5564         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
5565         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
5566         to ...
5567         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
5568
5569         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
5570         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
5571         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
5572
5573         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
5574         for x86-64.
5575         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
5576
5577 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
5578
5579         * math/math.h (M_El): Use two more decimal places.
5580         (M_LOG2El): Likewise.
5581         (M_LOG10El): Likewise.
5582         (M_LN2l): Likewise.
5583         (M_LN10l): Likewise.
5584         (M_PIl): Likewise.
5585         (M_PI_2l): Likewise.
5586         (M_PI_4l): Likewise.
5587         (M_1_PIl): Likewise.
5588         (M_2_PIl): Likewise.
5589         (M_2_SQRTPIl): Likewise.
5590         (M_SQRT2l): Likewise.
5591         (M_SQRT1_2l): Likewise.
5592
5593 2012-05-31  David S. Miller  <davem@davemloft.net>
5594
5595         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
5596         values between float registers.
5597         * sysdeps/sparc/sparc64/memset.S: Likewise.
5598         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5599
5600 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
5601
5602         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
5603         -D_FORTIFY_SOURCE=1.
5604         (CPPFLAGS-tst-longjmp_chk.c): Define.
5605         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
5606         (CPPFLAGS-tst-longjmp_chk2.c): Define.
5607         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
5608         CFLAGS-tst-wchar-h.c.
5609
5610 2012-05-31  Marek Polacek  <polacek@redhat.com>
5611
5612         [BZ #14132]
5613         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
5614         __endmntent_internal): Remove declaration.
5615         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
5616         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
5617         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
5618
5619 2012-05-30  David S. Miller  <davem@davemloft.net>
5620
5621         * sysdeps/sparc/sparc32/soft-fp/q_util.c
5622         (___Q_simulate_exceptions): Use real FP ops rather than writing
5623         into the %fsr.
5624         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
5625         Likewise.
5626
5627 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5628
5629         [BZ #14117]
5630         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
5631         * sysdeps/x86/bits/xtitypes.h: This.
5632
5633         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
5634         * sysdeps/x86/bits/wordsize.h: This.
5635
5636         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
5637         * sysdeps/x86/bits/huge_vall.h: This.
5638
5639         * sysdeps/i386/bits/select.h: Removed.
5640         * sysdeps/x86_64/bits/select.h: Renamed to ...
5641         * sysdeps/x86/bits/select.h: This.
5642
5643         * sysdeps/i386/bits/setjmp.h: Removed.
5644         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
5645         * sysdeps/x86/bits/setjmp.h: This.
5646
5647         * sysdeps/i386/bits/mathdef.h: Removed.
5648         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
5649         * sysdeps/x86/bits/mathdef.h: This.
5650
5651 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5652
5653         [BZ #14132]
5654         * include/sys/socket.h (__connect_internal)
5655         (__libc_sa_len_internal): Remove declaration.
5656         (__connect, __libc_sa_len): Declare hidden_proto.
5657         (SA_LEN): Remove use of INTUSE.
5658         * socket/connect.c: Add libc_hidden_def.
5659         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
5660         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
5661         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
5662         alias.
5663         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5664         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5665         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
5666         of adding _internal alias.
5667
5668 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5669
5670         [BZ #14117]
5671         * sysdeps/i386/bits/link.h: Removed.
5672         * sysdeps/i386/bits/linkmap.h: Likewise.
5673         * sysdeps/x86_64/bits/link.h: Renamed to ...
5674         * sysdeps/x86/bits/link.h: This.
5675         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
5676         * sysdeps/x86/bits/linkmap.h: This.
5677
5678         * sysdeps/i386/bits/endian.h: Removed.
5679         * sysdeps/x86_64/bits/endian.h: Renamed to ...
5680         * sysdeps/x86/bits/endian.h: This.
5681
5682         * sysdeps/i386/bits/byteswap.h: Removed.
5683         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5684         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
5685         * sysdeps/x86/bits/byteswap.h: This.
5686         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5687         * sysdeps/x86/bits/byteswap-16.h: This.
5688         * sysdeps/i386/Implies: Add x86.
5689         * sysdeps/x86_64/Implies: Likewise.
5690
5691 2012-05-30  David S. Miller  <davem@davemloft.net>
5692
5693         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5694         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5695         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5696         (FP_TRAPPING_EXCEPTIONS): Define.
5697         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5698         (FP_TRAPPING_EXCEPTIONS): Define.
5699         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5700         subnormals only when inexact has been signalled or underflow
5701         exceptions are enabled.
5702         (_FP_PACK_CANONICAL): Likewise.
5703
5704 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5705
5706         [BZ #14183]
5707         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5708         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5709
5710 2012-05-30  Richard Henderson  <rth@twiddle.net>
5711
5712         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5713         with #ifndef NOT_IN_libc.
5714
5715         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5716         marked to avoid plt entry.
5717
5718 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5719
5720         [BZ #14112]
5721         * Makeconfig (default-abi): New macro.
5722         (abi-includes): Likewise.
5723         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5724         $(abi-$(default-abi)-lib-soname) for soname if defined.
5725         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5726         abi-variants.
5727         * Makefile (installed-stubs): Likewise.
5728         * include/stubs-biarch.h: Removed.
5729         * scripts/lib-names.awk: Only handle one library at a time.
5730         * scripts/soversions.awk: Remove WORDSIZE support.
5731         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5732         entries.
5733         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5734         Removed.
5735         (syscall-list-default-condition): Likewise.
5736         (syscall-list-default-condition): Likewise.
5737         (syscall-list-includes): Likewise.
5738         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5739         syscall-list-* with abi-*.  Handle undefined abi-variants.
5740         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5741         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5742         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5743         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5744         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5745         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5746         Removed.
5747         (syscall-list-32-options): Likewise.
5748         (syscall-list-32-condition): Likewise.
5749         (syscall-list-64-options): Likewise.
5750         (syscall-list-64-condition): Likewise.
5751         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5752         macro.
5753         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5754         Renamed to ...
5755         (abi-*): This.
5756         (abi-64-ld-soname): New macro.
5757         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5758         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5759         Renamed to ...
5760         (abi-*): This.
5761         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5762         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5763
5764 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5765
5766         * sysdeps/unix/sysv/linux/kernel-features.h
5767         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5768         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5769         include <kernel-features.h>.
5770         [!__NR_ftruncate64]: Remove conditional code.
5771         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5772         [__NR_ftruncate64]: Make code unconditional.
5773         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5774         * sysdeps/unix/sysv/linux/truncate64.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/powerpc/powerpc32/ftruncate64.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/truncate64.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
5793         * configure.in (libc_cv_fpie): Weaken to a compile test using
5794         LIBC_TRY_CC_OPTION.
5795         * configure: Regenerated.
5796
5797 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5798
5799         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5800         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5801         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5802         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5803         Refreshed.
5804         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5805         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5806         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5807         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5808         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5809         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5810         Refreshed.
5811
5812 2012-05-27  David S. Miller  <davem@davemloft.net>
5813
5814         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5815         (___Q_zero): New.
5816         (__Q_simulate_exceptions): Return void.  Change to simulate
5817         exceptions by writing into the %fsr.
5818         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5819         (__Qp_handle_exceptions): Likewise.
5820         (numbers): Delete.
5821         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5822         __Qp_handle_exceptions.
5823         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5824         __Qp_handle_exceptions.
5825         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5826         as unused and give dummy FP_RND_NEAREST initializer.
5827         (FP_INHIBIT_RESULTS): Define.
5828         (___Q_simulate_exceptions): Update declaration.
5829         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5830         formatting.
5831         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5832         as unused and give dummy FP_RND_NEAREST initializer.
5833         (__Qp_handle_exceptions): Update declaration.
5834         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5835         formatting.
5836
5837 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5838
5839         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5840         the temporary FPU control word.
5841         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5842         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5843         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5844         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5845         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5846         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5847         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5848         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5849         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5850         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5851         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5852
5853 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5854
5855         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5856         fields.
5857
5858 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5859
5860         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5861         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5862         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5863         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5864         Likewise.
5865         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5866         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5867         Likewise.
5868
5869 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5870
5871         * po/h.po: Update from translation team.
5872
5873 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5874
5875         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5876
5877         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5878         handling of denormals.
5879         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5880         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5881         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5882         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5883         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5884         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5885         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5886         Likewise.
5887
5888 2012-05-26  Marek Polacek  <polacek@redhat.com>
5889
5890         [BZ #14152]
5891         * math/libm-test.inc (fma_test): Don't always expect underflow
5892         exception.
5893
5894 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5895
5896         [BZ #12416]
5897         * elf/tst-execstack.c: Include stackinfo.h.
5898         (do_test): Adjust test case to ensure that pthread_getattr_np
5899         behaviour remains the same after marking stack executable.
5900
5901 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5902
5903         * sysdeps/unix/sysv/linux/kernel-features.h
5904         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5905         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5906         kernel-features.h.
5907         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5908         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5909         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5910         kernel-features.h.
5911         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5912         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5913
5914 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5915
5916         * configure.in: Define the default includes to being none.
5917         * configure: Regenerated.
5918
5919 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5920
5921         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5922         * sysdeps/x86_64/setjmp.S: Likewise.
5923         * sysdeps/i386/bsd-setjmp.S: Likewise.
5924         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5925         * sysdeps/i386/setjmp.S: Likewise.
5926         * sysdeps/i386/__longjmp.S: Likewise.
5927         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5928         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5929
5930         * include/stap-probe.h: New file.
5931         * configure.in: Handle --enable-systemtap.
5932         * configure: Regenerated.
5933         * config.h.in (USE_STAP_PROBE): New #undef.
5934         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5935         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5936         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5937
5938 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5939
5940         [BZ #13717]
5941         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5942         to 2.4.0 where earlier.
5943         * sysdeps/unix/sysv/linux/configure: Regenerated.
5944         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5945         <kernel-features.h>.
5946         [__ASSUME_32BITUIDS]: Make code unconditional.
5947         [!__ASSUME_32BITUIDS]: Remove conditional code.
5948         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5949         <kernel-features.h>.
5950         [__ASSUME_32BITUIDS]: Make code unconditional.
5951         [!__ASSUME_32BITUIDS]: Remove conditional code.
5952         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5953         [__ASSUME_32BITUIDS]: Make code unconditional.
5954         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5955         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5956         <kernel-features.h>.
5957         [__ASSUME_32BITUIDS]: Make code unconditional.
5958         [!__ASSUME_32BITUIDS]: Remove conditional code.
5959         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5960         <kernel-features.h>.
5961         [__ASSUME_32BITUIDS]: Make code unconditional.
5962         [!__ASSUME_32BITUIDS]: Remove conditional code.
5963         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5964         <kernel-features.h>.
5965         [__ASSUME_32BITUIDS]: Make code unconditional.
5966         [!__ASSUME_32BITUIDS]: Remove conditional code.
5967         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5968         <kernel-features.h>.
5969         [__ASSUME_32BITUIDS]: Make code unconditional.
5970         [!__ASSUME_32BITUIDS]: Remove conditional code.
5971         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5972         <kernel-features.h>.
5973         [__ASSUME_32BITUIDS]: Make code unconditional.
5974         [!__ASSUME_32BITUIDS]: Remove conditional code.
5975         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5976         <kernel-features.h>.
5977         [__ASSUME_32BITUIDS]: Make code unconditional.
5978         [!__ASSUME_32BITUIDS]: Remove conditional code.
5979         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5980         <kernel-features.h>.
5981         [__ASSUME_32BITUIDS]: Make code unconditional.
5982         [!__ASSUME_32BITUIDS]: Remove conditional code.
5983         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5984         <kernel-features.h>.
5985         [__ASSUME_32BITUIDS]: Make code unconditional.
5986         [!__ASSUME_32BITUIDS]: Remove conditional code.
5987         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5988         <kernel-features.h>.
5989         [__ASSUME_32BITUIDS]: Make code unconditional.
5990         [!__ASSUME_32BITUIDS]: Remove conditional code.
5991         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5992         <kernel-features.h>.
5993         [__ASSUME_32BITUIDS]: Make code unconditional.
5994         [!__ASSUME_32BITUIDS]: Remove conditional code.
5995         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5996         <kernel-features.h>.
5997         [__NR_setresgid] (__setresgid): Do not declare.
5998         [__ASSUME_32BITUIDS]: Make code unconditional.
5999         [!__ASSUME_32BITUIDS]: Remove conditional code.
6000         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6001         <kernel-features.h>.
6002         [__NR_setresuid] (__setresuid): Do not declare.
6003         [__ASSUME_32BITUIDS]: Make code unconditional.
6004         [!__ASSUME_32BITUIDS]: Remove conditional code.
6005         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
6006         <kernel-features.h>.
6007         [__ASSUME_32BITUIDS]: Make code unconditional.
6008         [!__ASSUME_32BITUIDS]: Remove conditional code.
6009         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
6010         <kernel-features.h>.
6011         [__ASSUME_32BITUIDS]: Make code unconditional.
6012         [!__ASSUME_32BITUIDS]: Remove conditional code.
6013         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
6014         <kernel-features.h>.
6015         [__ASSUME_32BITUIDS]: Make code unconditional.
6016         [!__ASSUME_32BITUIDS]: Remove conditional code.
6017         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
6018         <kernel-features.h>.
6019         [__ASSUME_32BITUIDS]: Make code unconditional.
6020         [!__ASSUME_32BITUIDS]: Remove conditional code.
6021         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
6022         <kernel-features.h>.
6023         [__ASSUME_32BITUIDS]: Make code unconditional.
6024         [!__ASSUME_32BITUIDS]: Remove conditional code.
6025         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
6026         <kernel-features.h>.
6027         [__ASSUME_32BITUIDS]: Make code unconditional.
6028         [!__ASSUME_32BITUIDS]: Remove conditional code.
6029         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
6030         <kernel-features.h>.
6031         [__ASSUME_32BITUIDS]: Make code unconditional.
6032         [!__ASSUME_32BITUIDS]: Remove conditional code.
6033         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
6034         <kernel-features.h>.
6035         [__ASSUME_32BITUIDS]: Make code unconditional.
6036         [!__ASSUME_32BITUIDS]: Remove conditional code.
6037         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
6038         <kernel-features.h>.
6039         [__ASSUME_32BITUIDS]: Make code unconditional.
6040         [!__ASSUME_32BITUIDS]: Remove conditional code.
6041         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
6042         <kernel-features.h>.
6043         [__ASSUME_32BITUIDS]: Make code unconditional.
6044         [!__ASSUME_32BITUIDS]: Remove conditional code.
6045         * sysdeps/unix/sysv/linux/kernel-features.h
6046         (__ASSUME_SETRESUID_SYSCALL): Remove.
6047         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6048         (__ASSUME_32BITUIDS): Likewise.
6049         (__ASSUME_LDT_WORKS): Likewise.
6050         (__ASSUME_O_DIRECTORY): Likewise.
6051         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6052         architecture but not kernel version.
6053         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6054         (__ASSUME_MMAP2_SYSCALL): Likewise.
6055         (__ASSUME_STAT64_SYSCALL): Likewise.
6056         (__ASSUME_IPC64): Likewise.
6057         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6058         <kernel-features.h>.
6059         [__ASSUME_32BITUIDS]: Make code unconditional.
6060         [!__ASSUME_32BITUIDS]: Remove conditional code.
6061         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6062         <kernel-features.h>.
6063         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6064         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6065         132096]: Remove conditional code.
6066         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6067         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6068         <kernel-features.h>.
6069         [__ASSUME_32BITUIDS]: Make code unconditional.
6070         [!__ASSUME_32BITUIDS]: Remove conditional code.
6071         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6072         <kernel-features.h>.
6073         [__ASSUME_32BITUIDS]: Make code unconditional.
6074         [!__ASSUME_32BITUIDS]: Remove conditional code.
6075         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6076         <kernel-features.h>.
6077         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6078         unconditional.
6079         (__setresgid): Do not declare.
6080         [__ASSUME_32BITUIDS]: Make code unconditional.
6081         [!__ASSUME_32BITUIDS]: Remove conditional code.
6082         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6083         <kernel-features.h>.
6084         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6085         unconditional.
6086         (__setresuid): Do not declare.
6087         [__ASSUME_32BITUIDS]: Make code unconditional.
6088         [!__ASSUME_32BITUIDS]: Remove conditional code.
6089         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6090         <kernel-features.h>.
6091         [__ASSUME_32BITUIDS]: Make code unconditional.
6092         [!__ASSUME_32BITUIDS]: Remove conditional code.
6093         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6094         <kernel-features.h>.
6095         [__ASSUME_32BITUIDS]: Make code unconditional.
6096         [!__ASSUME_32BITUIDS]: Remove conditional code.
6097
6098 2012-05-25  Richard Henderson  <rth@twiddle.net>
6099
6100         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6101         dl_hwcap to ifunc resolver.
6102         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6103         elf_ifunc_invoke.
6104         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6105         dl_hwcap to ifunc resolver.
6106         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6107
6108 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6109
6110         [BZ #14153]
6111         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6112         for |x| <= 2**-26, not 2**-57.
6113         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6114         exception.
6115
6116 2012-05-24  Jeff Law  <law@redhat.com>
6117
6118         * stdio-common/Makefile (tests): Add bug25.
6119         * stdio-common/bug25.c: New test.
6120
6121 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6122
6123         [BZ #13576]
6124         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6125         multiple of MALLOC_ALIGNMENT in size.
6126         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6127
6128 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6129
6130         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6131         Require >= 256.
6132         (FILENAME_MAX): Use macro-int-constant.
6133         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6134         (_IOFBF): Use macro-int-constant.
6135         (_IOLBF): Likewise.
6136         (_IONBF): Likewise.
6137         (SEEK_CUR): Likewise.
6138         (SEEK_END): Likewise.
6139         (SEEK_SET): Likewise.
6140         (TMP_MAX): Likewise.
6141         (EOF): Use macro-int-constant.  Require < 0.
6142         (NULL): Use macro-constant.  Require == 0.
6143         (stdin): Require type to be FILE *.
6144         (stdout): Likewise.
6145         (stderr): Likewise.
6146         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6147         macro-int-constant.
6148         (EXIT_SUCCESS): Likewise.
6149         (NULL): Use macro-constant.  Require == 0.
6150         (RAND_MAX): Use macro-int-constant.
6151         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6152         [C99-based standards] (strtof): Require function.
6153         [C99-based standards] (strtold): Likewise.
6154         [C99-based standards] (strtoll): Likewise.
6155         [C99-based standards] (strtoull): Likewise.
6156         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6157         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6158         [ISO || ISO99 || ISO11] (math.h): Likewise.
6159         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6160         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6161         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6162
6163 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6164
6165         [BZ #14132]
6166         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6167         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6168         * intl/dgettext.c (DCGETTEXT): Likewise.
6169         * intl/gettext.c (DCGETTEXT): Likewise.
6170         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6171         * posix/regex_internal.h (gettext): Likewise.
6172         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6173         Remove declaration.
6174         * include/argz.h (__argz_count_internal)
6175         (__argz_stringify_internal): Remove declaration.
6176         (__argz_count, __argz_stringify): Declare hidden proto.
6177         * intl/dcgettext.c: Remove use of INTDEF.
6178         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6179         * string/argz-stringify.c: Likewise.
6180         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6181         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6182         Declare hidden proto.
6183         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6184         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6185         Declare hidden proto.
6186         * include/stdio.h (__asprintf_internal): Don't declare.
6187         (__asprintf): Don't define as macro.  Declare hidden proto.
6188         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6189         (__fsetlocking): Declare hidden proto.
6190         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6191         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6192         hidden proto.
6193         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6194         (_IO_setlinebuf): Remove use of INTUSE.
6195         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6196         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6197         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6198         Remove declaration.
6199         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6200         (_IO_do_flush): Remove use of INTUSE.
6201         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6202         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6203         (_IO_adjust_column, _IO_least_wmarker)
6204         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6205         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6206         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6207         (_IO_default_doallocate, _IO_wdefault_doallocate)
6208         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6209         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6210         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6211         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6212         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6213         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6214         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6215         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6216         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6217         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6218         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6219         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6220         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6221         proto.
6222         (_IO_flush_all_internal, _IO_adjust_column_internal)
6223         (_IO_default_uflow_internal, _IO_default_finish_internal)
6224         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6225         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6226         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6227         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6228         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6229         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6230         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6231         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6232         (_IO_file_close_internal, _IO_file_close_it_internal)
6233         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6234         (_IO_file_init_internal, _IO_file_attach_internal)
6235         (_IO_file_fopen_internal, _IO_file_read_internal)
6236         (_IO_file_sync_internal, _IO_file_seek_internal)
6237         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6238         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6239         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6240         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6241         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6242         (_IO_list_all_internal, _IO_link_in_internal)
6243         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6244         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6245         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6246         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6247         (_IO_do_write_internal, _IO_padn_internal)
6248         (_IO_getline_info_internal, _IO_getline_internal)
6249         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6250         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6251         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6252         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6253         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6254         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6255         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6256         with libc_hidden_ver, remove use of INTUSE.
6257         * libio/genops.c: Likewise.
6258         * libio/freopen.c: Likewise.
6259         * libio/freopen64.c: Likewise.
6260         * libio/iofclose.c: Likewise.
6261         * libio/iofdopen.c: Likewise.
6262         * libio/iofflush.c: Likewise.
6263         * libio/iofflush_u.c: Likewise.
6264         * libio/iofgets.c: Likewise.
6265         * libio/iofgets_u.c: Likewise.
6266         * libio/iofopen.c: Likewise.
6267         * libio/iofopncook.c: Likewise.
6268         * libio/iofread.c: Likewise.
6269         * libio/iofread_u.c: Likewise.
6270         * libio/ioftell.c: Likewise.
6271         * libio/iofwrite.c: Likewise.
6272         * libio/iogetline.c: Likewise.
6273         * libio/iogets.c: Likewise.
6274         * libio/iogetwline.c: Likewise.
6275         * libio/iopadn.c: Likewise.
6276         * libio/iopopen.c: Likewise.
6277         * libio/ioseekoff.c: Likewise.
6278         * libio/ioseekpos.c: Likewise.
6279         * libio/iosetbuffer.c: Likewise.
6280         * libio/iosetvbuf.c: Likewise.
6281         * libio/ioungetc.c: Likewise.
6282         * libio/ioungetwc.c: Likewise.
6283         * libio/iovdprintf.c: Likewise.
6284         * libio/iovsprintf.c: Likewise.
6285         * libio/iovsscanf.c: Likewise.
6286         * libio/memstream.c: Likewise.
6287         * libio/obprintf.c: Likewise.
6288         * libio/oldfileops.c: Likewise.
6289         * libio/oldiofclose.c: Likewise.
6290         * libio/oldiofdopen.c: Likewise.
6291         * libio/oldiofopen.c: Likewise.
6292         * libio/oldiopopen.c: Likewise.
6293         * libio/oldstdfiles.c: Likewise.
6294         * libio/putc.c: Likewise.
6295         * libio/setbuf.c: Likewise.
6296         * libio/setlinebuf.c: Likewise.
6297         * libio/stdfiles.c: Likewise.
6298         * libio/strops.c: Likewise.
6299         * libio/vasprintf.c: Likewise.
6300         * libio/vscanf.c: Likewise.
6301         * libio/vsnprintf.c: Likewise.
6302         * libio/vswprintf.c: Likewise.
6303         * libio/wfiledoalloc.c: Likewise.
6304         * libio/wfileops.c: Likewise.
6305         * libio/wgenops.c: Likewise.
6306         * libio/wmemstream.c: Likewise.
6307         * libio/wstrops.c: Likewise.
6308         * libio/__fpurge.c: Likewise.
6309         * libio/__fsetlocking.c: Likewise.
6310         * assert/assert.c: Likewise.
6311         * debug/fgets_chk.c: Likewise.
6312         * debug/fgets_u_chk.c: Likewise.
6313         * debug/fread_chk.c: Likewise.
6314         * debug/fread_u_chk.c: Likewise.
6315         * debug/gets_chk.c: Likewise.
6316         * debug/obprintf_chk.c: Likewise.
6317         * debug/vasprintf_chk.c: Likewise.
6318         * debug/vdprintf_chk.c: Likewise.
6319         * debug/vsnprintf_chk.c: Likewise.
6320         * debug/vsprintf_chk.c: Likewise.
6321         * malloc/mtrace.c: Likewise.
6322         * misc/error.c: Likewise.
6323         * misc/syslog.c: Likewise.
6324         * stdio-common/asprintf.c: Likewise.
6325         * stdio-common/fxprintf.c: Likewise.
6326         * stdio-common/getw.c: Likewise.
6327         * stdio-common/isoc99_fscanf.c: Likewise.
6328         * stdio-common/isoc99_scanf.c: Likewise.
6329         * stdio-common/isoc99_vfscanf.c: Likewise.
6330         * stdio-common/isoc99_vscanf.c: Likewise.
6331         * stdio-common/isoc99_vsscanf.c: Likewise.
6332         * stdio-common/printf-prs.c: Likewise.
6333         * stdio-common/printf_fp.c: Likewise.
6334         * stdio-common/printf_fphex.c: Likewise.
6335         * stdio-common/printf_size.c: Likewise.
6336         * stdio-common/putw.c: Likewise.
6337         * stdio-common/scanf.c: Likewise.
6338         * stdio-common/sprintf.c: Likewise.
6339         * stdio-common/tmpfile.c: Likewise.
6340         * stdio-common/vfprintf.c: Likewise.
6341         * stdio-common/vfscanf.c: Likewise.
6342         * stdlib/strfmon_l.c: Likewise.
6343         * sunrpc/openchild.c: Likewise.
6344         * sunrpc/xdr_stdio.c: Likewise.
6345         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
6346         * sysdeps/mach/hurd/tmpfile.c: Likewise.
6347
6348 2012-05-24  Roland McGrath  <roland@hack.frob.com>
6349
6350         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6351
6352         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
6353         in the third column, to generate for the shared library an IFUNC
6354         that uses _dl_vdso_vsym.
6355         * Makerules (COMPILE.c, compile-stdin.c): New variables.
6356         * Makeconfig (object-suffixes-noshared): New variable.
6357
6358         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
6359         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
6360         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
6361         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
6362
6363         [BZ #14132]
6364         * include/sys/time.h (__gettimeofday): Remove macro.
6365         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
6366         * time/gettimeofday.c (__gettimeofday): Remove #undef.
6367         Remove INTDEF.
6368         (__gettimeofday): Add libc_hidden_def.
6369         (gettimeofday): Add libc_hidden_weak.
6370         * sysdeps/mach/gettimeofday.c: Likewise.
6371         * sysdeps/posix/gettimeofday.c: Likewise.
6372         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
6373         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
6374         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
6375         (__gettimeofday_internal): Remove strong_alias.
6376         (__gettimeofday): Add libc_hidden_def.
6377         (gettimeofday): Add libc_hidden_weak.
6378         * sysdeps/unix/syscalls.list (gettimeofday):
6379         Remove __gettimeofday_internal alias.
6380
6381 2012-05-24  Daniel Jacobowitz  <drow@false.org>
6382             H.J. Lu  <hongjiu.lu@intel.com>
6383
6384         [BZ #12495]
6385         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
6386         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
6387         (largebin_index_32_big): New.
6388         (largebin_index): Use it for 16-byte alignment.
6389         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
6390         correction with front_misalign.
6391
6392 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6393
6394         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
6395         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
6396         Likewise.
6397         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
6398         Likewise.
6399         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
6400         Likewise.
6401         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
6402         Likewise.
6403         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
6404         Likewise.
6405         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
6406         Likewise.
6407         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
6408         Likewise.
6409         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6410         Likewise.
6411         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
6412         Likewise.
6413         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
6414         Likewise.
6415         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
6416         Likewise.
6417         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
6418         Likewise.
6419
6420         * scripts/data/c++-types-x32-linux-gnu.data: New file.
6421         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
6422
6423 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6424
6425         [BZ #10846]
6426         [BZ #14036]
6427         * math/libm-test.inc (exp_test): Add test from bug 14036.
6428         (pow_test): Add test from bug 10846.
6429
6430         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
6431         and other flags.
6432         (special_function): Do not include flags in test name.
6433         (parse_args): Likewise.
6434         * sysdeps/i386/fpu/libm-test-ulps: Update.
6435         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6436         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6437         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6439
6440         * math/gen-libm-test.pl (%beautify): Add entries for underflow
6441         exceptions.
6442         * math/libm-test.inc ("Philosophy"): Update comment about
6443         exception testing.
6444         (UNDERFLOW_EXCEPTION): New macro.
6445         (UNDERFLOW_EXCEPTION_OK): Likewise.
6446         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
6447         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
6448         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
6449         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
6450         (INVALID_EXCEPTION_OK): Update value.
6451         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6452         (OVERFLOW_EXCEPTION_OK): Likewise.
6453         (IGNORE_ZERO_INF_SIGN): Likewise.
6454         (test_exceptions): Handle underflow exceptions.
6455         (acos_test): Update for underflow exception expectations.
6456         (cexp_test): Likewise.
6457         (clog_test): Likewise.
6458         (clog10_test): Likewise.
6459         (csqrt_test): Likewise.
6460         (ctan_test): Likewise.
6461         (ctanh_test): Likewise.
6462         (exp_test): Likewise.
6463         (exp10_test): Likewise.
6464         (exp2_test): Likewise.
6465         (expm1_test): Likewise.
6466         (fma_test): Likewise.
6467         (j0_test): Likewise.
6468         (jn_test): Likewise.
6469         (nexttoward_test): Likewise.
6470         (pow_test): Likewise.
6471         (scalbn_test): Likewise.
6472         (scalbln_test): Likewise.
6473         (tan_test): Likewise.
6474         (y1_test): Likewise.
6475         * sysdeps/i386/fpu/libm-test-ulps: Update.
6476         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6477
6478 2012-05-23  David S. Miller  <davem@davemloft.net>
6479
6480         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6481         (__libc_sigaction): Remove unused local variables.
6482
6483 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6484
6485         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
6486
6487 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6488
6489         mktime: avoid signed integer overflow
6490         * time/mktime.c (__mktime_internal): Do not mishandle the case
6491         where diff == INT_MIN.
6492
6493         mktime: simplify computation of average
6494         * time/mktime.c (ranged_convert): Use new time_t_avg function
6495         instead of rolling our own (probably-slower) code.
6496
6497         mktime: do not assume signed right shift propagates sign bit
6498         * time/mktime.c (isdst_differ): New static function.
6499         (__mktime_internal): No need to normalize tm_isdst now.
6500         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
6501         tm_isdst values.
6502
6503         mktime: merge another wrapv change from gnulib
6504         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
6505         from some compilers.
6506
6507         mktime: remove incorrect attempt at unusual arithmetics
6508         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
6509         The code didn't really work on such machines anyway.
6510         (TYPE_MINIMUM): Assume two's complement.
6511         (twos_complement_arithmetic): Verify that long_int and time_t
6512         are two's complement (or unsigned, in the latter case).
6513
6514         mktime: check signed shifts on long_int and time_t, too
6515         * time/mktime.c (SHR): Check that shifts work as desired
6516         on the types long_int and time_t too, as SHR is used on
6517         such types.
6518
6519         mktime: do not assume 'long' is wide enough
6520         * time/mktime.c (verify): Move decl up.
6521         (long_int): New type.
6522         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
6523         to remove assumption in the code that 'long' is wide enough to
6524         store year values.  This assumption is not true on x32 and on
6525         some non-glibc platforms.
6526
6527         mktime: merge wrapv change from gnulib
6528         * time/mktime.c (WRAPV): New macro.
6529         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
6530         (guess_time_tm, __mktime_internal): Do not assume that signed
6531         integer overflow wraps around; modern compilers generate code
6532         where this assumption is no longer valid.
6533
6534 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6535
6536         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6537         Replace "jmp L(pseudo_end)" with "ret".
6538         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6539         Likewise.
6540
6541 2012-05-23  Andreas Jaeger  <aj@suse.de>
6542
6543         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
6544         * sysdeps/unix/sysv/linux/poll.c: Remove file.
6545
6546 2012-05-23  Andreas Jaeger  <aj@suse.de>
6547             Maximilian Attems  <max@stro.at>
6548
6549         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
6550         New macros.
6551
6552 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6553
6554         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
6555         code so that pseudo_end is just ret and the stack pointer is
6556         correct also for static library in error case.
6557
6558 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
6559
6560         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
6561         move to syscalls.list.
6562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
6563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
6564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
6565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
6566
6567         * manual/install.texi (Running make install): Do not mention Linux
6568         kernel version for which pt_chown is not needed.
6569         (Linux): Do not mention problems with nscd with 2.0 kernels.
6570         * INSTALL: Regenerated.
6571
6572 2012-05-23  Andreas Jaeger  <aj@suse.de>
6573
6574         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
6575         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
6576         macro.
6577         * sysdeps/unix/sysv/linux/s390/bits/mman.h
6578         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6579         * sysdeps/unix/sysv/linux/sh/bits/mman.h
6580         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6581         * sysdeps/unix/sysv/linux/i386/bits/mman.h
6582         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6583         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
6584         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6585         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
6586         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6587         * sysdeps/unix/sysv/linux/bits/in.h
6588         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
6589
6590 2012-05-22  Roland McGrath  <roland@hack.frob.com>
6591
6592         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
6593         (PREPARE_VERSION): Just use assert instead, it will be elided
6594         under [NDEBUG] anyway.
6595
6596 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6597
6598         * sysdeps/unix/sysv/linux/Makefile: Include
6599         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
6600         (sysdep_routines): Remove sysctl.
6601         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
6602         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
6603         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
6604         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
6605         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
6606
6607 2012-05-22  Andreas Jaeger  <aj@suse.de>
6608
6609         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
6610         that pseudo_end is just ret and the stack pointer is correct also
6611         for static library in error case.
6612
6613 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
6614
6615         [BZ #14122]
6616         * nss/nsswitch.c (defconfig_entries): New variable.
6617         (__nss_database_lookup): Don't leak defconfig entries.
6618         (nss_parse_service_list): Don't leak on error paths.
6619         (free_database_entries): New function.
6620         (free_defconfig): New function.
6621         (free_mem): Move common code to free_database_entries.
6622
6623 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6624
6625         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
6626         Add arch_prctl.
6627         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6628
6629         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6630         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
6631         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
6632         New macro.
6633         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6634         (INTERNAL_SYSCALL_TYPES): Likewise.
6635         (LOAD_ARGS_TYPES_[1-6]): Likewise.
6636         (LOAD_REGS_TYPES_[1-6]): Likewise.
6637         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
6638         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
6639
6640 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6641
6642         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
6643         copysignl for GLIBC_2_0.
6644         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
6645         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
6646         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
6647         logbl for GLIBC_2_0.
6648         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
6649         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
6650
6651 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6652
6653         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
6654         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6655
6656         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6657         Use "neg %eax".
6658
6659         * time/mktime.c: Update copyright years.
6660
6661 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6662
6663         mktime: merge comment-quoting-style change from gnulib
6664         * time/mktime.c: Quote 'like this' in comments.
6665         The GNU coding standards suggest that we no longer quote `like this',
6666         as "`" and "'" are typically rendered asymmetrically nowadays.
6667         The typical gnulib style is to quote 'like this' when quoting
6668         code, and "like this" when quoting English.
6669
6670         * time/mktime.c (compile-command): Add "-I.".
6671
6672         mktime: merge mktime-internal.h change from gnulib
6673         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
6674
6675         mktime: merge time_r change from gnulib
6676         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
6677
6678         mktime: merge DEBUG change from gnulib
6679         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
6680         case system <time.h> has a #define.
6681
6682         mktime: merge <sys/types.h> change from gnulib
6683         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
6684         since <time.t> is now guaranteed to define time_t.
6685
6686         mktime: merge HAVE_CONFIG_H change from gnulib
6687         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6688
6689 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6690
6691         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6692         Use "neg %eax".
6693
6694         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6695         __rlim_t cast.
6696         (struct rusage): Use anonymous union to pad each field to
6697         __syscall_slong_t.
6698
6699 2012-05-21  David S. Miller  <davem@davemloft.net>
6700
6701         * Makefules (o-iterator): Remove .s cases.
6702         (compile-command.s): Delete.
6703         (COMPILE.s): Delete.
6704         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6705
6706 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6707
6708         * configure.in (libc_cv_predef_stack_protector): Only consider
6709         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6710         * configure: Regenerated.
6711
6712 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6713
6714         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6715         New macro.  Use R*LP on int and pointer.
6716         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6717         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6718         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6719         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6720
6721         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6722         [__WORDSIZE_TIME64_COMPAT32] instead of
6723         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6724         (struct utmp): Likewise.
6725         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6726         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6727         Renamed to ...
6728         (__WORDSIZE_TIME64_COMPAT32): This.
6729         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6730         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6731         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6732         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6733         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6734         (__WORDSIZE_TIME64_COMPAT32): New macro.
6735
6736 2012-05-21  Andreas Jaeger  <aj@suse.de>
6737
6738         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6739         only if [SHARED]. Add prototype for __wcschr_ia32.
6740
6741 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6742
6743         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6744         of %rbp unmolested in the jmp_buf while mangling the low bits.
6745         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6746         unmolested high bits of %rbp while demangling the low bits.
6747         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6748
6749 2012-05-21  Andreas Jaeger  <aj@suse.de>
6750
6751         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6752         * sunrpc/svc_simple.c: Use it for registerrpc.
6753         * sunrpc/xcrypt.c: Use it for passwd2des.
6754
6755         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6756
6757 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6758
6759         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6760         Don't define if [__SYSCALL_WORDSIZE != 32].
6761         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6762         New macro.
6763
6764 2012-05-21  Bruno Haible  <bruno@clisp.org>
6765             Andreas Jaeger  <aj@suse.de>
6766
6767         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6768         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6769         inptr and inend for must_buffer_ch.
6770         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6771         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6772         * stdio-common/Makefile (tests): Remove bug15.
6773         (bug15-ENV): Remove macro.
6774         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6775         anymore.
6776
6777 2012-05-19  Andreas Jaeger  <aj@suse.de>
6778             Roland McGrath  <roland@hack.frob.com>
6779
6780         * manual/contrib.texi: Completely rewritten. It contains now an
6781         alphabetical list of contributors and their contributions.
6782
6783 2012-05-21  Richard Henderson  <rth@twiddle.net>
6784
6785         * misc/getauxval.c (__getauxval): Use unsigned long int.
6786         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6787         (getauxval): Use unsigned long int.
6788
6789 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6790
6791         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6792
6793 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6794
6795         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6796         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6797         __alignof__ (long double).
6798
6799 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6800
6801         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6802
6803 2012-05-20  Richard Henderson  <rth@twiddle.net>
6804
6805         * misc/getauxval.c: New file.
6806         * misc/sys/auxv.h: New file.
6807         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6808         (routines): Add getauxval.
6809         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6810         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6811         * elf/dl-sysdep.c (_dl_auxv): Remove.
6812         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6813         * elf/dl-support.c (_dl_auxv): New variable.
6814         (_dl_aux_init): Initialize it.
6815         * manual/startup.texi (Auxiliary Vector): New node.
6816         * sysdeps/generic/bits/hwcap.h: New file.
6817         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6818         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6819         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6820         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6821         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6822         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6824         Update.
6825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6826         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6827         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6828         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6829         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6830         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6831         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6832         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6833
6834 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6835
6836         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6837
6838 2012-05-19  David S. Miller  <davem@davemloft.net>
6839
6840         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6841
6842 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6843
6844         [BZ #14123]
6845         * math/s_ccosh.c: Include <float.h>
6846         (__ccosh): Avoid internal overflow calculating sinh and cosh
6847         values before multiplying by sin and cos values.
6848         * math/s_ccoshf.c: Likewise.
6849         * math/s_ccoshl.c: Likewise.
6850         * math/s_csin.c: Likewise.
6851         * math/s_csinf.c: Likewise.
6852         * math/s_csinl.c: Likewise.
6853         * math/s_csinh.c: Likewise.
6854         * math/s_csinhf.c: Likewise.
6855         * math/s_csinhl.c: Likewise.
6856         * math/libm-test.inc (ccos_test): Add more tests.
6857         (ccosh_test): Likewise.
6858         (csin_test): Likewise.
6859         (csinh_test): Likewise.
6860         * sysdeps/i386/fpu/libm-test-ulps: Update.
6861         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6862
6863 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6864
6865         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6866         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6867
6868         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6869
6870 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6871
6872         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6873         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6874         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6875         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6876         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6877         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6878         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6879         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6880         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6881         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6882         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6883         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6884         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6885         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6886         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6887         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6888         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6889         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6890         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6891         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6892         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6893         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6894         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6895         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6896         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6897         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6898         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6899         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6900         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6901         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6902         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6903
6904 2012-05-18  Andreas Jaeger  <aj@suse.de>
6905
6906         * csu/.gitignore: Delete.
6907
6908 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6909
6910         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6911         (timex): Use __syscall_slong_t.
6912
6913 2012-05-18  Andreas Jaeger  <aj@suse.de>
6914             Carlos O'Donell  <carlos_odonell@mentor.com>
6915
6916         * manual/install.texi (Configuring and compiling): Update
6917         description about files modified in the source directory.
6918         * INSTALL: Regenerated.
6919
6920 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6921
6922         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6923         value.  Use "or" to set return value to -1.
6924         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6925         negate return value.
6926
6927 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6928
6929         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6930         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6931         failure if the compiler has Graphite support disabled.
6932         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6933         Likewise.
6934         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6935         CFLAGS-memmove.c): Likewise.
6936         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6937         Likewise.
6938
6939 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6940
6941         * sysdeps/x86_64/x32/_itoa.h: New file.
6942
6943         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6944         getdents system call only if kernel and user dirents have the
6945         same d_ino and d_off.
6946
6947         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6948         LLONG_MAX != LONG_MAX.
6949         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6950         (_fitoa_word): Likewise.
6951
6952         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6953         years.
6954         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6955         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6956         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6957
6958         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6959         include <bits/wordsize.h>.  Check __x86_64__ instead of
6960         __WORDSIZE.
6961         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6962         if __x86_64__ is defined.  Use anonymous union on fpstate.
6963
6964         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6965         anonymous union.
6966
6967 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6968
6969         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6970         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6971         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6972         Refer to _rtld_local_ro instead of _rtld_global_ro.
6973         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6974         Likewise.
6975         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6976         Likewise.
6977         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6978         Likewise.
6979         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6980         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6981         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6982
6983         * sysdeps/powerpc/powerpc32/dl-machine.c
6984         (__elf_machine_runtime_setup) [PROF]: Don't reference
6985         _dl_prof_resolve.
6986
6987 2012-05-18  Andreas Jaeger  <aj@suse.de>
6988
6989         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6990         function only available for GCCs before 3.4 since GCC 3.4
6991         introduced a builtin.
6992         (lrint): Likewise.
6993         (llrintf): Likewise.
6994         (llrint): Likewise.
6995         (fmaxf): Likewise.
6996         (fmax): Likewise.
6997         (fminf): Likewise.
6998         (fmin): Likewise.
6999         (rint): Likewise.
7000         (rintf): Likewise.
7001         (nearbyint): Likewise.
7002         (nearbyintf): Likewise.
7003         (ceil): Likewise.
7004         (ceilf): Likewise.
7005         (floor): Likewise.
7006         (floorf): Likewise.
7007
7008 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7009
7010         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7011         on both fields and cast pointer to __syscall_ulong_t.
7012
7013         * bits/types.h (__fsword_t): New type.
7014         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7015         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7016         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7017         (__FSWORD_T_TYPE): Likewise.
7018         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7019         (__FSWORD_T_TYPE): Likewise.
7020         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7021         (__FSWORD_T_TYPE): Likewise.
7022         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7023         (__FSWORD_T_TYPE): Likewise.
7024         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7025         __SWORD_TYPE with __fsword_t.
7026         (statfs64): Likewise.
7027
7028 2012-05-17  David S. Miller  <davem@davemloft.net>
7029
7030         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7031
7032 2012-05-17  Andreas Jaeger  <aj@suse.de>
7033
7034         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7035         warning.
7036
7037 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7038
7039         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7040
7041 2012-05-17  Andreas Jaeger  <aj@suse.de>
7042
7043         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7044         when it is used.
7045
7046 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7047
7048         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7049
7050 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7051
7052         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7053         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7054
7055 2012-05-17  Andreas Jaeger  <aj@suse.de>
7056             Carlos O'Donell  <carlos_odonell@mentor.com>
7057
7058         [BZ #14059]
7059         * sysdeps/x86_64/multiarch/init-arch.h
7060         (bit_YMM_Usable): Rename to...
7061         (bit_AVX_Usable): ... this.
7062         (bit_FMA4_Usable): New macro.
7063         (bit_XMM_state): New macro.
7064         (bit_YMM_state): New macro.
7065         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7066         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7067         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7068         (CPUID_OSXSAVE): New macro.
7069         (CPUID_AVX): New macro.
7070         (CPUID_FMA4): New macro.
7071         (index_YMM_Usable): Rename to...
7072         (index_AVX_Usable): ... this.
7073         (HAS_AVX): Use HAS_ARCH_FEATURE.
7074         (HAS_FMA4): Likewise.
7075         (HAS_YMM_USABLE): Remove.
7076         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7077         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7078         are present.
7079         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7080         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7081         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7082         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7083         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7084
7085 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7086
7087         * math/libm-test.c: Support platforms without multiple rounding modes.
7088         * math/bug-nextafter.c: Support platforms without FP exceptions.
7089         * math/bug-nexttoward.c: Likewise.
7090         * math/test-fenv.c: Likewise.
7091         * math/test-misc.c: Likewise.
7092         * stdlib/bug-getcontext.c: Likewise.
7093
7094 2012-05-17  Andreas Jaeger  <aj@suse.de>
7095
7096         * manual/examples/search.c (critter_cmp): Change signature to
7097         avoid warnings.
7098         * manual/string.texi (Collation Functions): Likewise.
7099
7100 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7101
7102         * bits/types.h: Fold copyright years.
7103         * bits/typesizes.h: Likewise.
7104         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7105         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7106         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7107         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7108         * time/time.h: Likewise.
7109
7110 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7111
7112         [BZ #208]
7113         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7114         in instead of returning them.  Return void.
7115         (__libc_mallinfo): Accumulate over all arenas.
7116         (__malloc_stats): Adjust for change in int_mallinfo interface.
7117
7118 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7119
7120         [BZ #10375]
7121         * configure.in (NM): Add AC_CHECK_TOOL for it.
7122         (libc_extra_cflags): New substituted variable.
7123         Check for -fstack-protector being used implicitly.
7124         * configure: Regenerated.
7125         * config.make.in (config-extra-cflags): New variable,
7126         gets @libc_extra_cflags@.
7127         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7128
7129         [BZ #10375]
7130         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7131         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7132         * configure: Regenerated.
7133         * config.make.in (CPPUNDEFS): New substituted variable.
7134         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7135         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7136         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7137
7138 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7139
7140         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7141         (mq_attr): Use __syscall_slong_t.
7142
7143 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7144
7145         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7146         Check __x86_64__ instead of __WORDSIZE.
7147         (_STAT_VER_LINUX): Likewise.
7148         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7149         __syscall_ulong_t and __syscall_slong_t.
7150         (stat64): Likewise.
7151
7152 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7153
7154         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7155
7156 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7157
7158         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7159
7160 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7161
7162         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7163         __syscall_ulong_t.
7164
7165         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7166         include <bits/wordsize.h>.  Check __x86_64__ instead of
7167         __WORDSIZE.
7168         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7169         defined.
7170         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7171
7172         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7173         include <bits/wordsize.h>.  Check __x86_64__ instead of
7174         __WORDSIZE.
7175         (user_regs_struct): Use "__extension__ unsigned long long"
7176         instead of "unsigned long" if __x86_64__ is defined.
7177         (user): Likewise.  Pad after pointer field if __ILP32__ is
7178         defined.
7179
7180 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7181
7182         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7183         versions 5 to 9.
7184         * configure: Regenerated.
7185         * manual/install.texi (texinfo): Increase version requirement to
7186         4.5 or later.
7187         * INSTALL: Regenerated.
7188
7189         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7190
7191 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7192
7193         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7194
7195         * sysdeps/x86_64/x32/ffs.c: New file.
7196
7197         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7198         __syscall_ulong_t.
7199         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7200         defined.  Use __syscall_ulong_t.
7201         (shminfo): Use __syscall_ulong_t.
7202         (shm_info): Likewise.
7203
7204         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7205         __syscall_ulong_t.
7206
7207         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7208         <bits/wordsize.h>.
7209         (msgqnum_t): Use __syscall_ulong_t.
7210         (msglen_t): Likewise.
7211         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7212         __syscall_ulong_t.
7213
7214         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7215         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7216
7217         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7218
7219         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7220         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7221
7222         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7223         __syscall_slong_t.
7224
7225         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7226         include <bits/wordsize.h>.  Check __x86_64__ instead of
7227         __WORDSIZE.
7228
7229         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7230         "unsigned long long int" if __x86_64__ is defined.
7231         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7232
7233         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7234         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7235         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7236
7237         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7238         <stdint.h>.
7239         (GET_PC): Cast to uintptr_t first.
7240         (GET_FRAME): Likewise.
7241         (GET_STACK): Likewise.
7242
7243         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7244         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7245         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7246         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7247         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7248         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7249         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7250         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7251         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7252         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7253         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7254         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7255         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7256         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7257         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7258         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7259         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7260         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7261         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7262         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7263         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7264         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7265         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7266         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7267         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7268         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7269         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7270         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7271         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7272
7273 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7274
7275         * Makerules (+depfiles): Also collect depfiles from .oS in
7276         $(extra-objs).
7277         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7278         .oS, $(libnldbl-routines)).
7279
7280         * Makerules (native-compile-mkdep-flags): Define.
7281         * sunrpc/Makefile (extra-objs): Add $(addprefix
7282         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7283         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7284         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7285         calling $(make-target-directory).
7286
7287 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7288
7289         * bits/types.h (__snseconds_t): Removed.
7290         * time/time.h (struct timespec): Replace __snseconds_t with
7291         __syscall_slong_t.
7292         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7293         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7294         Likewise.
7295         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7296         (__SNSECONDS_T_TYPE): Likewise.
7297         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7298         (__SNSECONDS_T_TYPE): Likewise.
7299         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7300         (__SNSECONDS_T_TYPE): Likewise.
7301
7302 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7303
7304         * sysdeps/mach/hurd/bits/typesizes.h
7305         (__SYSCALL_SLONG_TYPE): New macro.
7306         (__SYSCALL_ULONG_TYPE): Likewise.
7307
7308 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7309
7310         * bits/types.h (__syscall_slong_t): New type.
7311         (__syscall_ulong_t): Likewise.
7312
7313         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
7314         (__SYSCALL_ULONG_TYPE): Likewise.
7315         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7316         (__SYSCALL_SLONG_TYPE): Likewise.
7317         (__SYSCALL_ULONG_TYPE): Likewise.
7318         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7319         (__SYSCALL_SLONG_TYPE): Likewise.
7320         (__SYSCALL_ULONG_TYPE): Likewise.
7321         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7322         (__SYSCALL_SLONG_TYPE): Likewise.
7323         (__SYSCALL_ULONG_TYPE): Likewise.
7324
7325 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7326
7327         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
7328         Add sigaltstack-offsets.sym.
7329         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
7330         <sigaltstack-offsets.h>.
7331         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
7332         longjmp_msg pointer.
7333         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
7334         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
7335         signal stack.
7336         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
7337
7338 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7339
7340         * elf/stackguard-macros.h: Remove file.
7341         * sysdeps/generic/stackguard-macros.h: New file.
7342         * sysdeps/i386/stackguard-macros.h: Likewise.
7343         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
7344         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
7345         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7346         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7347         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
7348         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
7349         * sysdeps/x86_64/stackguard-macros.h: Likewise.
7350         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
7351         <elf/stackguard-macros.h>.
7352
7353         [BZ #14109]
7354         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
7355         __aligned__ in attribute.
7356         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
7357         (gregset_t): Likewise.
7358
7359 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7360
7361         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
7362         * sysdeps/x86_64/64/Implies-after: Here.  New file.
7363         * sysdeps/x86_64/x32/Implies-after: New file.
7364
7365 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7366
7367         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
7368         and access return value for _dl_profile_fixup.  Use R10_LP to
7369         load frame size.
7370
7371 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7372
7373         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
7374
7375 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7376
7377         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
7378         * sysdeps/x86_64/x32/sysdep.h: New file.
7379
7380 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7381
7382         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
7383         * sysdeps/x86_64/setjmp.S: Likewise.
7384
7385 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7386
7387         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
7388         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
7389         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
7390         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
7391         remove unused global constant.
7392
7393 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
7394
7395         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
7396         include of <not-cancel.h>.
7397
7398 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7399
7400         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
7401
7402 2012-05-15  Jeff Law  <law@redhat.com>
7403             Andreas Jaeger  <aj@suse.de>
7404
7405         [BZ #13594]
7406         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
7407         out from...
7408         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
7409         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
7410         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
7411         code changing __hst_map_handle.map.
7412
7413 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7414
7415         * configure.in (sysnames): Look for Implies-before and Implies-after
7416         files.
7417         * configure: Regenerated.
7418
7419 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7420
7421         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
7422         8-byte data alignment with LP_SIZE alignment.
7423
7424 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7425
7426         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
7427         into R10_LP.
7428
7429 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7430
7431         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
7432
7433 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7434
7435         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
7436         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
7437         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
7438         Likewise.
7439         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
7440
7441 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7442
7443         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
7444         (stackinfo_sub_sp): Likewise.
7445
7446 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7447
7448         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
7449         RAX_LP.
7450
7451 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7452
7453         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
7454         into R*_LP.
7455
7456 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7457
7458         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
7459         sizes into R*_LP.
7460
7461 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7462
7463         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
7464
7465 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7466
7467         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
7468         into R11_LP and load __x86_64_shared_cache_size_half into
7469         R8_LP.
7470
7471 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7472
7473         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
7474         R8_LP.
7475
7476 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7477
7478         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
7479         logb for POWER7.
7480         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
7481         logbf for POWER7.
7482         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
7483         logbl for POWER7.
7484         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
7485         powerpc32/power7/fpu/s_logb.c via #include.
7486         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
7487         powerpc32/power7/fpu/s_logbf.c via #include.
7488         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
7489         powerpc32/power7/fpu/s_logbl.c via #include.
7490
7491 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7492
7493         * README.libm: Remove file.
7494
7495 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7496
7497         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
7498         count for x32.  Use R*_LP and omit operand-size suffix.
7499
7500 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7501
7502         * shlib-versions: Move x86_64-.*-linux.* entries to ...
7503         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
7504         * sysdeps/x86_64/x32/shlib-versions: New file.
7505
7506 2012-05-14  Roland McGrath  <roland@hack.frob.com>
7507
7508         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
7509         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
7510         Use _dl_fatal_printf instead.
7511
7512 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7513
7514         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
7515         set if not set by the user.  Do not allow for being unset.
7516         * sysdeps/unix/sysv/linux/configure: Regenerated.
7517
7518 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7519
7520         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
7521         the `q' suffix from lea and replace .quad with ASM_ADDR.
7522
7523 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7524
7525         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
7526         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
7527         instead of $17.
7528         (PTR_DEMANGLE): Likewise.
7529
7530 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7531
7532         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
7533         (LP_OP): Likewise.
7534         (ASM_ADDR): Likewise.
7535         (RAX_LP): Likewise.
7536         (RBP_LP): Likewise.
7537         (RBX_LP): Likewise.
7538         (RCX_LP): Likewise.
7539         (RDI_LP): Likewise.
7540         (RSI_LP): Likewise.
7541         (RSP_LP): Likewise.
7542         (R8_LP): Likewise.
7543         (R9_LP): Likewise.
7544         (R10_LP): Likewise.
7545         (R10_LP): Likewise.
7546         (R11_LP): Likewise.
7547         (R12_LP): Likewise.
7548         (R13_LP): Likewise.
7549         (R14_LP): Likewise.
7550         (R15_LP): Likewise.
7551
7552 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7553
7554         * sysdeps/x86_64/x32/dl-machine.h: New file.
7555
7556 2012-05-14  Andreas Jaeger  <aj@suse.de>
7557
7558         * manual/Makefile (subdir): Remove export of subdir.
7559         (all): Remove target.
7560         (.PHONY): Remove all from list.
7561         (mkinstalldirs): Remove.
7562         (.PHONY): Remove installdirs from list.
7563         ($(inst_infodir)/libc.info): Use make-target-directory.
7564         (installdirs): Remove.
7565         (subdir_%): Remove.
7566         (glibc-targets): Remove.
7567         (lib): Remove.
7568         (stubs): Remove.
7569         ($(objpfx)stubs ../po/manual.pot): Remove.
7570         ($(objpfx)stamp%): Remove.
7571         (make-target-directory): Remove.
7572         (subdir_install): Remove.
7573         (routines): Remove.
7574         (aux): Remove.
7575         (sources): Remove.
7576         (objects): Remove.
7577         (headers): Remove.
7578
7579         [BZ #13750]
7580         * manual/.gitignore: Remove, it's not needed anymore.
7581         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
7582         all files in it.
7583         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
7584         directory.
7585         (texis): Renamed to $(objpfx)texis.
7586         (texis-path): New, contains path to generated files.
7587         (chapters.%): Use texis-path for complete path, add extra argument
7588         libc-texinfo.sh.
7589         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
7590         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
7591         (summary,texi, stamp-summary): Use complete path of
7592         files. Generate files in build dir.
7593         (dir-add.texi): Build in build dir.
7594         (libm-err.texi,stamp-libm-err): Likewise.
7595         (version.texi, stamp-version): Likewise.
7596         (.%c.texi): Likewise.
7597         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
7598         (mostlyclean): Remove target.
7599         (realclean): Remove target.
7600         (generated): Add new variable with contents from mostlyclean and
7601         realclean, remove entries duplicated in common-mostlyclean, add
7602         stamp-libm-err and stamp-version.
7603         (generated-dirs): Add libc directory.
7604         ($(inst_infodir)/libc.info): Install files from build dir.
7605
7606         * manual/install.texi (Configuring and compiling): Adjust since
7607         the info files are not part of the tar ball anymore.
7608
7609 2012-05-14  Andreas Jaeger  <aj@suse.de>
7610
7611         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
7612         variable.
7613
7614 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7615
7616         [BZ #13717]
7617         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7618         to 2.2.0 where earlier.
7619         * sysdeps/unix/sysv/linux/configure: Regenerated.
7620         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
7621         Remove conditional code.
7622         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
7623         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
7624         Remove conditional code.
7625         [!__NR_lchown]: Likewise.
7626         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7627         [__NR_lchown]: Likewise.
7628         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
7629         comment referencing __ASSUME_LCHOWN_SYSCALL.
7630         * sysdeps/unix/sysv/linux/i386/sigaction.c
7631         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7632         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7633         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
7634         Remove conditional code.
7635         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
7636         (__protocol_available): Remove #if 0 code.
7637         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
7638         conditional code.
7639         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
7640         * sysdeps/unix/sysv/linux/kernel-features.h
7641         (__ASSUME_GETCWD_SYSCALL): Don't define.
7642         (__ASSUME_REALTIME_SIGNALS): Likewise.
7643         (__ASSUME_PREAD_SYSCALL): Likewise.
7644         (__ASSUME_PWRITE_SYSCALL): Likewise.
7645         (__ASSUME_POLL_SYSCALL): Likewise.
7646         (__ASSUME_LCHOWN_SYSCALL): Likewise.
7647         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
7648         non-SPARC.
7649         (__ASSUME_SIOCGIFNAME): Don't define.
7650         (__ASSUME_MSG_NOSIGNAL): Likewise.
7651         (__ASSUME_SENDFILE): Define unconditionally.
7652         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
7653         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
7654         conditional code.
7655         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
7656         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
7657         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7658         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7659         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
7660         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7661         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
7663         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7664         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
7666         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7667         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
7669         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7670         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
7672         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7673         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
7675         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7676         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
7678         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7679         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
7681         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7682         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
7684         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7685         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7686         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7687         Remove conditional code.
7688         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7689         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7690         Remove conditional code.
7691         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7692         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7693         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7694         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7695         Remove conditional code.
7696         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7697         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7698         Remove conditional code.
7699         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7700         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7701         Remove conditional code.
7702         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7703         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7704         Remove conditional code.
7705         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7706         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7707         Remove conditional code.
7708         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7709         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7710         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7711         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7712         * sysdeps/unix/sysv/linux/sigaction.c
7713         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7714         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7715         * sysdeps/unix/sysv/linux/sigpending.c
7716         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7717         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7718         * sysdeps/unix/sysv/linux/sigprocmask.c
7719         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7720         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7721         * sysdeps/unix/sysv/linux/sigsuspend.c
7722         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7723         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7724         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7725         (__libc_missing_rt_sigs): Remove.
7726         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7727         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7728         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7729         Remove conditional code.
7730         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7731         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7732         return 1.
7733         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7734         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7735         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7736         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7737
7738 2012-05-14  Andreas Jaeger  <aj@suse.de>
7739
7740         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7741         it's not used in glibc.
7742         (__coshm1): Likewise.
7743         (__acosh1p): Likewise.
7744         (__sgn): Likewise.
7745
7746         * manual/string.texi (Copying and Concatenation): Add missing
7747         variable in concat example.
7748         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7749
7750 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7751
7752         [BZ #14103]
7753         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7754         __builtin_clzl with __builtin_clzll.
7755
7756 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7757
7758         [BZ #14104]
7759         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7760         libc_freeres_ptr.
7761
7762 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7763
7764         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7765         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7766         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7767         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7768
7769 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7770
7771         * NEWS: Update ia64 info.
7772
7773 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7774
7775         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7776         used as bcopy.
7777
7778 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7779
7780         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7781         * sysdeps/unix/syscalls.list (dup3): Likewise.
7782         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7783         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7784
7785 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7786
7787         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7788         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7789
7790 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7791
7792         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7793         thread pointer.
7794         (TLS_IE): Use mov/add instead of movq/addq to load thread
7795         pointer.
7796         (TLS_GD_PREFIX): New.
7797         (TLS_GD): Use it.
7798
7799 2012-05-11  David S. Miller  <davem@davemloft.net>
7800
7801         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7802         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7803         (_FPU_SETCW): Likewise.
7804
7805 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7806
7807         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7808         is 32-byte aligned.
7809
7810 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7811
7812         [BZ #11837]
7813         * iconvdata/gb18030.c: Update tables.
7814         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7815         characters specially.
7816         (BODY for TO_LOOP): Add encoding of missing ranges.
7817
7818 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7819
7820         [BZ #13673]
7821         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7822         * sysdeps/mach/hurd/dup3.c: Likewise.
7823         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7824         * sysdeps/powerpc/memmove.c:: Likewise.
7825
7826 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7827
7828         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7829         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7830
7831 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7832
7833         * elf/elf.h (R_X86_64_RELATIVE64): New.
7834         (R_X86_64_NUM): Updated.
7835         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7836         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7837         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7838         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7839         tst-quad1pie tst-quad2pie
7840         (modules-names): Add tst-quadmod1 tst-quadmod2.
7841         ($(objpfx)tst-quad1): New dependency.
7842         ($(objpfx)tst-quad2): Likewise.
7843         ($(objpfx)tst-quad1pie): Likewise.
7844         ($(objpfx)tst-quad2pie): Likewise.
7845         * sysdeps/x86_64/tst-quad1.c: New file.
7846         * sysdeps/x86_64/tst-quad1pie.c: New file.
7847         * sysdeps/x86_64/tst-quad2.c: Likewise.
7848         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7849         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7850         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7851         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7852         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7853
7854 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7855
7856         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7857         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7858         * streams/stropts.h (t_scalar_t): Define type.
7859
7860         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7861         (_PATH_PRESERVE): Set to "/var/lib".
7862         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7863
7864         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7865         instead of int.
7866
7867         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7868         if __dir_mkfile succeeded.
7869
7870         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7871         checking for _hurd_dtablesize.  Unlock it right after having
7872         finished _hurd_dtable allocation.
7873
7874 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7875
7876         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7877         * sysdeps/mach/hurd/configure: Regenerated.
7878         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7879         special-casing to...
7880         * sysdeps/gnu/configure.in: ... this new file.
7881         * sysdeps/unix/sysv/linux/configure: Regenerated.
7882         * sysdeps/gnu/configure: New generated file.
7883
7884         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7885         for Linux: use nsec instead of usec, as well as:
7886         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7887         members of type struct timespec.
7888         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7889         New macros.
7890         (struct stat64): Likewise.
7891         (_STATBUF_ST_NSEC): New macro.
7892         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7893
7894         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7895         __strtoul_internal rather than strtoul.
7896
7897 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7898
7899         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7900         and reject them.
7901
7902 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7903
7904         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7905         which preserves existing values.
7906         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7907
7908 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7909
7910         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7911         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7912         greater than FD_SETSIZE.
7913
7914 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7915
7916         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7917         allocated, call __vm_protect to finish enabling the existing space, and
7918         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7919         allocate the remainder.
7920
7921 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7922
7923         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7924         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7925
7926 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7927
7928         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7929         sysdeps/mach/hurd/readlink.c.
7930
7931         * posix/tst-sysconf.c (posix_options): Only use
7932         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7933         _POSIX_SYNCHRONIZED_IO when they are defined
7934         * sysdeps/mach/hurd/bits/posix_opt.h:
7935         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7936         (_XOPEN_REALTIME): Undefine macro.
7937         (_XOPEN_REALTIME_THREADS): Undefine macro.
7938         (_XOPEN_SHM): Undefine macro.
7939         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7940         macro to -1.
7941         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7942         macro to -1.
7943         (_POSIX_ASYNC_IO): Undefine macro.
7944         (_POSIX_PRIORITIZED_IO): Undefine macro.
7945         (_POSIX_SPIN_LOCKS): Define macro to -1.
7946
7947         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7948         SA_NODEFER, SA_RESETHAND.
7949         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7950         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7951         F_DUPFD_CLOEXEC.
7952
7953 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7954
7955         * elf/Makefile (pldd-modules): Define unconditionally.
7956
7957 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7958
7959         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7960
7961 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7962
7963         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7964         Return ENOENT when name is empty.
7965         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7966
7967 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7968
7969         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7970
7971         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7972
7973 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7974
7975         Fix mlock in all cases except non-readable pages.
7976         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7977         instead of VM_PROT_ALL as parameter to __vm_wire function.
7978
7979         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7980         (__mkdir): When path is `/', just fail with EEXIST.
7981         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7982
7983 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7984
7985         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7986         <sys/uio.h> (for writev).
7987         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7988         and <sys/param.h> (for MIN).
7989
7990 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7991
7992         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7993         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7994         if interrupted.
7995
7996 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7997
7998         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7999         Depend on against $(link-rpcuserlibs).
8000
8001 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8002
8003         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8004         (__libc_stack_end): Do not use attribute_relro.
8005         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8006         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8007         to libthread-provided value.
8008         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8009         attribute_relro.
8010
8011 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8012
8013         [BZ #3748]
8014         * bits/libc-lock.h (__libc_once_get): New macro.
8015         * sysdeps/mach/bits/libc-lock.h: Likewise.
8016         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8017         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8018         instead of using implementation details.
8019
8020         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8021         * libio/freopen.c: Likewise.
8022         * libio/freopen64.c: Likewise.
8023         * misc/syslog.c: Likewise.
8024         * nscd/connections.c: Likewise.
8025         * nscd/netgroupcache.c: Likewise.
8026         * sysdeps/posix/getcwd.c: Likewise.
8027
8028 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8029
8030         * math/w_ilogbf.c: Add #include <limits.h>.
8031
8032 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8033
8034         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8035         path instead of returning without unlocking.
8036
8037         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8038         immediate-write ioctls.
8039         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8040
8041 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8042
8043         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8044         __builtin_frame_address instead of making assumptions about the
8045         location of the return address relative to DATA.  Force early load of
8046         the return address.
8047         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8048         __builtin_frame_address.
8049
8050         dup3 for GNU Hurd.
8051         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8052         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8053         implement dup3 and do some further code clean-ups.
8054         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8055         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8056
8057 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8058
8059         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8060
8061         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8062         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8063         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8064         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8065         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8066         d->port.lock.
8067
8068         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8069         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8070         when handler == SIG_ERR, not when handler != SIG_ERR.
8071
8072 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8073
8074         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8075         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8076         definitions.
8077
8078         accept4 for GNU Hurd.
8079         * include/sys/socket.h (__libc_accept4): New prototype.
8080         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8081         to implement __libc_accept4.
8082         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8083         __libc_accept4.
8084         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8085
8086         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8087         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8088         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8089         signal-defines.sym.
8090
8091 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8092
8093         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8094
8095 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8096
8097         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8098         assertion on O_CLOEXEC flag.
8099         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8100         * hurd/intern-fd.c: Likewise.
8101         * hurd/port2fd.c: Likewise.
8102
8103 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8104
8105         [BZ #3906]
8106         * bits/in.h (IPV6_PKTINFO): Define new macro.
8107         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8108
8109 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8110
8111         [BZ #13954]
8112         [BZ #13955]
8113         [BZ #13956]
8114         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8115         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8116         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8117         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8118         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8119         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8120         * math/libm-test.inc (logb_test) : Additional logb tests.
8121
8122 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8123             Andreas Jaeger  <aj@suse.de>
8124
8125         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8126         * configure: Regenerated.
8127         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8128         * config.make.in (link-obsolete-rpc): New substituted variable.
8129         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8130         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8131         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8132         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8133         so that libc.a contains the symbols.
8134         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8135         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8136         * sunrpc/auth_none.c: Likewise.
8137         * sunrpc/auth_unix.c: Likewise.
8138         * sunrpc/authdes_prot.c: Likewise.
8139         * sunrpc/authuxprot.c: Likewise.
8140         * sunrpc/clnt_gen.c: Likewise.
8141         * sunrpc/clnt_perr.c: Likewise.
8142         * sunrpc/clnt_raw.c: Likewise.
8143         * sunrpc/clnt_simp.c: Likewise.
8144         * sunrpc/clnt_tcp.c: Likewise.
8145         * sunrpc/clnt_udp.c: Likewise.
8146         * sunrpc/clnt_unix.c: Likewise.
8147         * sunrpc/des_crypt.c: Likewise.
8148         * sunrpc/des_soft.c: Likewise.
8149         * sunrpc/get_myaddr.c: Likewise.
8150         * sunrpc/key_call.c: Likewise.
8151         * sunrpc/key_prot.c: Likewise.
8152         * sunrpc/netname.c: Likewise.
8153         * sunrpc/pm_getmaps.c: Likewise.
8154         * sunrpc/pm_getport.c: Likewise.
8155         * sunrpc/pmap_clnt.c: Likewise.
8156         * sunrpc/pmap_prot.c: Likewise.
8157         * sunrpc/pmap_prot2.c: Likewise.
8158         * sunrpc/pmap_rmt.c: Likewise.
8159         * sunrpc/publickey.c: Likewise.
8160         * sunrpc/rpc_cmsg.c: Likewise.
8161         * sunrpc/rpc_common.c: Likewise.
8162         * sunrpc/rpc_dtable.c: Likewise.
8163         * sunrpc/rpc_prot.c: Likewise.
8164         * sunrpc/rpc_thread.c: Likewise.
8165         * sunrpc/rtime.c: Likewise.
8166         * sunrpc/svc.c: Likewise.
8167         * sunrpc/svc_auth.c: Likewise.
8168         * sunrpc/svc_raw.c: Likewise.
8169         * sunrpc/svc_run.c: Likewise.
8170         * sunrpc/svc_tcp.c: Likewise.
8171         * sunrpc/svc_udp.c: Likewise.
8172         * sunrpc/svc_unix.c: Likewise.
8173         * sunrpc/svcauth_des.c: Likewise.
8174         * sunrpc/xcrypt.c: Likewise.
8175         * sunrpc/xdr.c: Likewise.
8176         * sunrpc/xdr_array.c: Likewise.
8177         * sunrpc/xdr_float.c: Likewise.
8178         * sunrpc/xdr_intXX_t.c: Likewise.
8179         * sunrpc/xdr_mem.c: Likewise.
8180         * sunrpc/xdr_rec.c: Likewise.
8181         * sunrpc/xdr_ref.c: Likewise.
8182         * sunrpc/xdr_sizeof.c: Likewise.
8183         * sunrpc/xdr_stdio.c: Likewise.
8184
8185 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8186
8187         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8188         change.  Update copyright years.
8189
8190 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8191
8192         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8193
8194 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8195             Joseph Myers  <joseph@codesourcery.com>
8196             Paul Pluzhnikov  <ppluzhnikov@google.com>
8197
8198         [BZ #14012]
8199         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8200         requiring rpcgen.
8201         [cross-compiling] (extra-libs): Likewise.
8202         [cross-compiling] (extra-libs-others): Likewise.
8203         [cross-compiling] (librpcsvc-routines): Likewise.
8204         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8205         [cross-compiling] (omit-deps): Likewise.
8206         (sunrpc-CPPFLAGS): New variable.
8207         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8208         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8209         (cross-rpcgen-objs): New variable.
8210         (extra-objs): Append $(cross-rpcgen-objs).
8211         ($(cross-rpcgen-objs)): New rule.
8212         ($(objpfx)cross-rpcgen): Likewise.
8213         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8214         comment.
8215         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8216         ($(objpfx)x%.stmp): Likewise.
8217         * sunrpc/proto.h [IS_IN_build] (_): Define.
8218         [IS_IN_build] (_libc_intl_domainname): Likewise.
8219
8220 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8221
8222         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8223         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8224         and R_X86_64_TPOFF64.
8225
8226 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8227
8228         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8229         sysdeps/unix/sysv/syscalls.list.
8230         (stime): Likewise.
8231         (utime): Likewise.
8232         * sysdeps/unix/sysv/syscalls.list: Remove file.
8233
8234 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8235
8236         [BZ #3440]
8237         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8238         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8239         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8240         (__LC_IDENTIFICATION): Make these macros useful in #if
8241         expressions, as required by C99.
8242
8243 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8244
8245         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8246         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8247         after this.
8248
8249 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8250
8251         * stdlib/longlong.h: Updated from GCC.
8252
8253 2012-05-09  Andreas Jaeger  <aj@suse.de>
8254
8255         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8256         default is first entry.
8257         (run_mode): Set type.
8258         (main): Remove informal message about syslog.
8259         (options): Fix typo.
8260
8261         [BZ #14053]
8262         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8263         to asm.
8264         (lrint): Likewise.
8265         (llrintf): Likewise.
8266         (llrint): Likewise.
8267         (rint): Likewise.
8268         (rintf): Likewise.
8269         (nearbyint): Likewise.
8270         (nearbyintf): Likewise.
8271
8272 2012-05-09  Andreas Jaeger  <aj@suse.de>
8273             Pedro Alves  <palves@redhat.com>
8274
8275         * nscd/nscd.c (run_mode): Use enum.
8276         (main): Cleanup coding style issue.
8277
8278 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8279             Andreas Jaeger  <aj@suse.de>
8280
8281         * nscd/nscd.c (go_background): Replaced with...
8282         (run_mode): ... this.
8283         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8284         (options): Add -F --foreground.
8285         (main): Implement it.
8286         (parse_opt): Parse it.
8287
8288 2012-05-09  Andreas Jaeger  <aj@suse.de>
8289
8290         [BZ #14083]
8291         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8292         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8293         -Wconversion warning.
8294         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8295         Likewise.
8296
8297 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8298
8299         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8300         == 0.
8301         (LC_ALL): Use macro-int-constant.
8302         (LC_COLLATE): Likewise.
8303         (LC_CTYPE): Likewise.
8304         (LC_MESSAGES): Likewise.
8305         (LC_MONETARY): Likewise.
8306         (LC_NUMERIC): Likewise.
8307         (LC_TIME): Likewise.
8308         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
8309         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8310         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8311         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
8312         Specify type.
8313         [C99-based standards] (float_t): Expect type.
8314         [C99-based standards] (double_t): Expect type.
8315         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
8316         type.
8317         [C99-based standards] (HUGE_VALL): Likewise.
8318         [C99-based standards] (INFINITY): Likewise.
8319         [C99-based standards] (NAN): Likewise.
8320         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
8321         [C99-based standards] (FP_NAN): Likewise.
8322         [C99-based standards] (FP_NORMAL): Likewise.
8323         [C99-based standards] (FP_SUBNORMAL): Likewise.
8324         [C99-based standards] (FP_ZERO): Likewise.
8325         [C99-based standards] (FP_FAST_FMA): Use
8326         optional-macro-int-constant.  Specify type.  Require == 1.
8327         [C99-based standards] (FP_FAST_FMAF): Likewise.
8328         [C99-based standards] (FP_FAST_FMAL): Likewise.
8329         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
8330         [C99-based standards] (FP_ILOGBNAN): Likewise.
8331         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
8332         Specify type.
8333         [C99-based standards] (MATH_ERREXCEPT): Likewise.
8334         [C99-based standards] (math_errhandling): Specify type.
8335         [ISO99 || ISO11] (signgam): Do not allow.
8336         [non-C99-based standards] (copysignf): Do not allow.
8337         [non-C99-based standards] (exp2f): Likewise.
8338         [non-C99-based standards] (log2f): Likewise.
8339         [non-C99-based standards] (modff): Allow.
8340         [non-C99-based standards] (erff): Do not allow.
8341         [non-C99-based standards] (erfcf): Likewise.
8342         [non-C99-based standards] (gammaf): Likewise.
8343         [non-C99-based standards] (hypotf): Likewise.
8344         [non-C99-based standards] (j0f): Likewise.
8345         [non-C99-based standards] (j1f): Likewise.
8346         [non-C99-based standards] (jnf): Likewise.
8347         [non-C99-based standards] (lgammaf): Likewise.
8348         [non-C99-based standards] (tgammaf): Likewise.
8349         [non-C99-based standards] (y0f): Likewise.
8350         [non-C99-based standards] (y1f): Likewise.
8351         [non-C99-based standards] (ynf): Likewise.
8352         [non-C99-based standards] (isnanf): Likewise.
8353         [non-C99-based standards] (acoshf): Likewise.
8354         [non-C99-based standards] (asinhf): Likewise.
8355         [non-C99-based standards] (atanhf): Likewise.
8356         [non-C99-based standards] (cbrtf): Likewise.
8357         [non-C99-based standards] (expm1f): Likewise.
8358         [non-C99-based standards] (ilogbf): Likewise.
8359         [non-C99-based standards] (log1pf): Likewise.
8360         [non-C99-based standards] (logbf): Likewise.
8361         [non-C99-based standards] (nextafterf): Likewise.
8362         [non-C99-based standards] (remainderf): Likewise.
8363         [non-C99-based standards] (rintf): Likewise.
8364         [non-C99-based standards] (scalbf): Likewise.
8365         [non-C99-based standards] (copysignl): Likewise.
8366         [non-C99-based standards] (exp2l): Likewise.
8367         [non-C99-based standards] (log2l): Likewise.
8368         [non-C99-based standards] (modfl): Allow.
8369         [non-C99-based standards] (erfl): Do not allow.
8370         [non-C99-based standards] (erfcl): Likewise.
8371         [non-C99-based standards] (gammal): Likewise.
8372         [non-C99-based standards] (hypotl): Likewise.
8373         [non-C99-based standards] (j0l): Likewise.
8374         [non-C99-based standards] (j1l): Likewise.
8375         [non-C99-based standards] (jnl): Likewise.
8376         [non-C99-based standards] (lgammal): Likewise.
8377         [non-C99-based standards] (tgammal): Likewise.
8378         [non-C99-based standards] (y0l): Likewise.
8379         [non-C99-based standards] (y1l): Likewise.
8380         [non-C99-based standards] (ynl): Likewise.
8381         [non-C99-based standards] (isnanl): Likewise.
8382         [non-C99-based standards] (acoshl): Likewise.
8383         [non-C99-based standards] (asinhl): Likewise.
8384         [non-C99-based standards] (atanhl): Likewise.
8385         [non-C99-based standards] (cbrtl): Likewise.
8386         [non-C99-based standards] (expm1l): Likewise.
8387         [non-C99-based standards] (ilogbl): Likewise.
8388         [non-C99-based standards] (log1pl): Likewise.
8389         [non-C99-based standards] (logbl): Likewise.
8390         [non-C99-based standards] (nextafterl): Likewise.
8391         [non-C99-based standards] (remainderl): Likewise.
8392         [non-C99-based standards] (rintl): Likewise.
8393         [non-C99-based standards] (scalbl): Likewise.
8394         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8395         [non-C99-based standards] (FP_*): Do not allow.
8396         [C99-based standards] (FP_*): Change to
8397         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8398         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8399         allow.
8400         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
8401         (SIG_ERR): Likewise.
8402         [X/Open-based standards] (SIG_HOLD): Likewise.
8403         (SIG_IGN): Likewise.
8404         (SIGABRT): Use macro-int-constant.  Specify type.  Require
8405         positive value.
8406         (SIGFPE): Likewise.
8407         (SIGILL): Likewise.
8408         (SIGINT): Likewise.
8409         (SIGSEGV): Likewise.
8410         (SIGTER): Likewise.
8411         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
8412         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
8413         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
8414         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
8415         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
8416         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
8417         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
8418         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
8419         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
8420         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
8421         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
8422         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
8423         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
8424         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
8425         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
8426         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
8427         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
8428         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
8429         [X/Open-based standards] (SIGTRAP): Likewise.
8430         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
8431         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
8432         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
8433         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
8434         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8435         allow.
8436
8437 2012-05-08  Ian Wienand  <ianw@vmware.com>
8438
8439         [BZ #14080]
8440         * time/tzset.c (__tzset_parse_tz): Update default rules for
8441         daylight time changes in the Energy Policy Act of 2005.
8442
8443 2012-05-09  Andreas Jaeger  <aj@suse.de>
8444
8445         [BZ #13983]
8446         * elf/ldconfig.c (parse_conf): Change string to make clear that
8447         ldconfig only issued a warning if ld.so.conf does not exist.
8448
8449 2012-05-08  David S. Miller  <davem@davemloft.net>
8450
8451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
8452         movxtod instead of popping the value on the stack.
8453
8454         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8455
8456 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
8457
8458         * config.h.in: Add HAVE_ARM_PCS_VFP.
8459
8460 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
8461
8462         [BZ #13979]
8463         * include/features.h: Warn if user requests __FORTIFY_SOURCE
8464         checking but the checks are disabled for any reason.
8465
8466 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8467
8468         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
8469         and ELF64_R_TYPE with ELFW(R_TYPE).
8470
8471 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
8472
8473         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
8474         (ulimit): Likewise.
8475
8476         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
8477         (settimeofday): Likewise.
8478
8479 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
8480
8481         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
8482         a struct th_u2 inside the union, and move tu_block/tu_code into
8483         a new th_u3 union of tu_block/tu_code inside of that.  Move
8484         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
8485         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
8486         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
8487         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
8488         (th_stuff): Change to th_u1.tu_stuff.
8489         (th_data): Define.
8490         (th_msg): Change to th_u1.th_u2.tu_data.
8491
8492 2012-05-07  David S. Miller  <davem@davemloft.net>
8493
8494         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8495
8496         [BZ #14074]
8497         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
8498         (SETUP_PIC_REG): Use it.
8499         (SETUP_PIC_REG_LEAF): Use it.
8500
8501 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
8502
8503         [BZ #13885]
8504         [BZ #13923]
8505         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8506         USE_AS_EXPM1L.
8507         (EXPL_FINITE): Likewise.
8508         (FLDLOG): Likewise.
8509         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8510         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8511         e_expl.S.
8512         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8513         USE_AS_EXPM1L.
8514         (EXPL_FINITE): Likewise.
8515         (FLDLOG): Likewise.
8516         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8517         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8518         e_expl.S.
8519         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
8520         test of -max_value argument for long double.
8521         * sysdeps/i386/fpu/libm-test-ulps: Update.
8522         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8523
8524 2012-05-06  David S. Miller  <davem@davemloft.net>
8525
8526         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
8527         quad soft-float symbols whose references which are compiler
8528         generated.
8529         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8530
8531 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
8532
8533         [BZ #13884]
8534         [BZ #13914]
8535         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8536         USE_AS_EXP10L.
8537         (EXPL_FINITE): Likewise.
8538         (FLDLOG): Likewise.
8539         (c0): Likewise.
8540         (c1): Likewise.
8541         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8542         Adjust comments for base varying.
8543         (__expl_finite): Change alias to EXPL_FINITE.
8544         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
8545         e_expl.S.
8546         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
8547         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
8548         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
8549         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
8550         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8551         USE_AS_EXP10L.
8552         (EXPL_FINITE): Likewise.
8553         (FLDLOG): Likewise.
8554         (c0): Likewise.
8555         (c1): Likewise.
8556         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8557         Adjust comments for base varying.
8558         (__expl_finite): Change alias to EXPL_FINITE.
8559         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
8560         tests for bugs.
8561         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8562
8563         [BZ #14064]
8564         * math/libm-test.inc (check_float_internal): Correct ulp
8565         calculation for subnormal expected results.
8566
8567 2012-05-06  Andreas Jaeger  <aj@suse.de>
8568
8569         * Makeconfig (+math-flags): New, set to -frounding-math.
8570         (+cflags): Add +math-flags so that all of glibc gets compiled with
8571         it.
8572
8573         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
8574
8575 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
8576
8577         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
8578         Disable one test.
8579
8580         [BZ #13787]
8581         [BZ #13922]
8582         [BZ #14036]
8583         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
8584         (__ieee754_expl): Allow for and saturate large arguments.
8585         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
8586         (u_threshold): Likewise.
8587         (__exp): Call __ieee754_exp before checking for overflow and
8588         underflow.
8589         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
8590         (u_threshold): Likewise.
8591         (__expf): Call __ieee754_expf before checking for overflow and
8592         underflow.
8593         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
8594         (u_threshold): Likewise.
8595         (__expl): Call __ieee754_expl before checking for overflow and
8596         underflow.
8597         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
8598         (__ieee754_expl): Allow for and saturate large arguments.
8599         * math/libm-test.inc (exp_test): Add another test.  Do not allow
8600         missing overflow exception on overflow.
8601         (expm1_test): Do not allow missing overflow exception on overflow.
8602
8603         * sysdeps/i386/fpu/e_expl.c: Move to ...
8604         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
8605         rather than using inline asm.
8606         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
8607         * sysdeps/x86_64/fpu/e_expl.S: Copy from
8608         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
8609
8610         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
8611         (nice): Likewise.
8612         (poll): Likewise.
8613         (signal): Likewise.
8614         (time): Likewise.
8615         (times): Likewise.
8616
8617 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8618
8619         * sysdeps/unix/syscalls.list (adjtime): Add entry from
8620         sysdeps/unix/common/syscalls.list.
8621         (fchmod): Likewise.
8622         (fchown): Likewise.
8623         (ftruncate): Likewise.
8624         (getrusage): Likewise.
8625         (gettimeofday): Likewise.
8626         (setpgid): Likewise.
8627         (setregid): Likewise.
8628         (setreuid): Likewise.
8629         (sigaction): Likewise.
8630         (truncate): Likewise.
8631         (vhangup): Likewise.
8632         * sysdeps/unix/common/syscalls.list: Remove file.
8633         * sysdeps/unix/bsd/Implies: Don't include unix/common.
8634         * sysdeps/unix/sysv/linux/Implies: Likewise.
8635
8636 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8637
8638         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
8639         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
8640         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
8641         Moved to ...
8642         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
8643         Here.
8644         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
8645         to ...
8646         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
8647         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
8648         to ...
8649         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
8650         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
8651         to ...
8652         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
8653         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
8654         to ...
8655         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
8656         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
8657         to ...
8658         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
8659         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
8660         to ...
8661         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
8662         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
8663         to ...
8664         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
8665         Here.
8666         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
8667         to ...
8668         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
8669         Here.
8670         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
8671         to ...
8672         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
8673         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
8674         Moved to ...
8675         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
8676         Here.
8677         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
8678         to ...
8679         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
8680
8681 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8682
8683         * sysdeps/unix/common/bits/dirent.h: Remove file.
8684         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8685
8686         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8687         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8688         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8689         * sysdeps/unix/bsd/isatty.c: Likewise.
8690         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8691         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8692         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8693
8694 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8695
8696         [BZ #13563]
8697         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8698         long double comparison inaccuracies.
8699         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8700         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8701
8702 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8703
8704         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8705         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8706
8707 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8708
8709         [BZ #14049]
8710         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8711         nonzero digits before rounding a hex value.
8712         * stdlib/tst-strtod.c (tests): Add another test.
8713
8714 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8715
8716         * sysdeps/s390/fpu/libm-test-ulps: Update.
8717
8718 2012-05-03  Andreas Jaeger  <aj@suse.de>
8719
8720         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8721         does not get optimized out.
8722         (malloc_opt_barrier): New.
8723
8724 2012-05-03  Andreas Jaeger  <aj@suse.de>
8725             Roland McGrath  <roland@hack.frob.com>
8726
8727         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8728         intermediate file deletion.
8729         (generated): Add .symlist files.
8730
8731 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8732
8733         [BZ #13775]
8734         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8735         Redirect under this condition.
8736         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8737         [__USE_GNU] (__dprintf_chk): Not under this condition.
8738         [__USE_GNU] (__vdprintf_chk): Likewise.
8739         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8740         under this condition.
8741         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8742         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8743         [__USE_XOPEN2K8] (vdprintf): Likewise.
8744         [__USE_GNU] (__dprintf_chk): Not under this condition.
8745         [__USE_GNU] (__vdprintf_chk): Likewise.
8746         [__USE_GNU] (dprintf): Likewise.
8747         [__USE_GNU] (vdprintf): Likewise.
8748
8749 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8750
8751         * elf/Makefile (common-generated): Set this instead of generated for
8752         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8753         $(all-built-dso)-derived lists.
8754
8755 2012-05-03  Andreas Jaeger  <aj@suse.de>
8756
8757         * sysdeps/i386/fpu/libm-test-ulps: Update.
8758
8759         * FAQ: Removed.
8760         * FAQ.in: Likewise.
8761         * scripts/gen-FAQ.pl: Likewise.
8762         * manual/install.texi (Installation): Point to online location of
8763         FAQ.
8764         * Makefile (files-for-dist): Remove FAQ.
8765         (FAQ): Remove.
8766
8767 2012-05-02  Allan McRae  <allan@archlinux.org>
8768
8769         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8770         (LDFLAGS-reldepmod5.so): Likewise.
8771         (LDFLAGS-reldep6mod1.so): Likewise.
8772         (LDFLAGS-reldep6mod4.so): Likewise.
8773         (LDFLAGS-reldep8mod3.so): Likewise.
8774         (LDFLAGS-unload4mod1.so): Likewise.
8775         (LDFLAGS-unload4mod2.so): Likewise.
8776         (LDFLAGS-tst-initorder): Likewise.
8777         (LDFLAGS-tst-initordera2.so): Likewise.
8778         (LDFLAGS-tst-initordera3.so): Likewise.
8779         (LDFLAGS-tst-initordera4.so): Likewise.
8780         (LDFLAGS-tst-initorderb2.so): Likewise.
8781         (LDFLAGS-noload): Likewise.
8782         (LDFLAGS-next): Likewise.
8783         (LDFLAGS-order2mod1.so): Likewise.
8784         (LDFLAGS-order2mod2.so): Likewise.
8785         (LDFLAGS-tst-initorder2): Likewise.
8786         (LDFLAGS-tst-initorder2a.so): Likewise.
8787         (LDFLAGS-tst-initorder2b.so): Likewise.
8788         (LDFLAGS-tst-initorder2c.so): Likewise.
8789         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8790
8791 2012-05-02  David S. Miller  <davem@davemloft.net>
8792
8793         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8794
8795 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8796
8797         [BZ #14055]
8798         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8799
8800 2012-05-02  Andreas Jaeger  <aj@suse.de>
8801
8802         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8803         since we manipulate rounding mode.
8804         (CPPFLAGS-test-idouble.c): Likewise.
8805         (CPPFLAGS-test-ifloat.c): Likewise.
8806         (CFLAGS-test-ldouble.c): Likewise.
8807         (CFLAGS-test-double.c): Likewise.
8808         (CFLAGS-test-float.c): Likewise.
8809         (CFLAGS-test-misc.c): Likewise.
8810         (CFLAGS-test-test-fenv.c): Likewise.
8811
8812 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8813
8814         [BZ #2550]
8815         [BZ #2570]
8816         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8817         comparisons to determine direction to adjust input.
8818
8819 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8820
8821         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8822         output to the target.
8823
8824         * scripts/localplt.awk: New file.
8825         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8826         (check-localplt-CFLAGS): Variable removed.
8827         ($(all-built-dso:=.jmprel)): New static pattern rule.
8828         (generated): Add those targets.
8829         (localplt-built-dso): New variable.
8830         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8831
8832         * elf/check-localplt.c: File removed.
8833
8834         * scripts/check-execstack.awk: New file.
8835         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8836         (check-execstack-CFLAGS): Variable removed.
8837         ($(objpfx)check-execstack.h): Target removed.
8838         ($(objpfx)execstack-default): New target.
8839         (generated): Add that instead of check-execstack.h.
8840         ($(all-built-dso:=.phdr)): New static pattern rule.
8841         (generated): Add those targets.
8842         * elf/check-execstack.c: File removed.
8843
8844         * scripts/check-textrel.awk: New file.
8845         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8846         (check-textrel-CFLAGS): Variable removed.
8847         (all-built-dso): Use := to define.o
8848         ($(all-built-dso:=.dyn)): New static pattern rule.
8849         (generated): Add those targets.
8850         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8851         * config.make.in (READELF): New substituted variable.
8852         * elf/check-textrel.c: File removed.
8853
8854 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8855
8856         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8857         allow.
8858         * conform/data/ctype.h-data [C99-based standards] (isblank):
8859         Expect function.
8860         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8861         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8862         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8863         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8864         Specify type.  Require positive value.
8865         (EILSEQ): Likewise.
8866         (ERANGE): Likewise.
8867         [ISO || POSIX] (EILSEQ): Do not expect.
8868         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8869         Specify type.  Require positive value.
8870         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8871         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8872         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8873         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8874         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8875         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8876         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8877         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8878         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8879         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8880         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8881         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8882         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8883         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8884         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8885         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8886         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8887         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8888         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8889         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8890         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8891         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8892         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8893         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8894         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8895         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8896         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8897         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8898         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8899         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8900         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8901         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8902         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8903         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8904         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8905         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8906         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8907         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8908         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8909         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8910         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8911         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8912         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8913         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8914         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8915         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8916         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8917         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8918         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8919         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8920         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8921         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8922         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8923         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8924         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8925         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8926         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8927         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8928         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8929         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8930         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8931         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8932         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8933         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8934         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8935         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8936         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8937         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8938         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8939         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8940         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8941         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8942         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8943         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8944         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8945         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8946         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8947         Require >= 2.
8948         (FLT_ROUNDS): Expect as macro, not constant.
8949         (FLT_MANT_DIG): Use macro-int-constant.
8950         (DBL_MANT_DIG): Likewise.
8951         (LDBL_MANT_DIG): Likewise.
8952         (FLT_DIG): Likewise.
8953         (DBL_DIG): Likewise.
8954         (LDBL_DIG): Likewise.
8955         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8956         (DBL_MIN_EXP): Likewise.
8957         (LDBL_MIN_EXP): Likewise.
8958         (FLT_MAX_EXP): Use macro-int-constant.
8959         (DBL_MAX_EXP): Likewise.
8960         (LDBL_MAX_EXP): Likewise.
8961         (FLT_MAX_10_EXP): Likewise.
8962         (DBL_MAX_10_EXP): Likewise.
8963         (LDBL_MAX_10_EXP): Likewise.
8964         (FLT_MAX): Use macro-constant.
8965         (DBL_MAX): Likewise.
8966         (LDBL_MAX): Likewise.
8967         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8968         (DBL_EPSILON): Likewise.
8969         (LDBL_EPSILON): Likewise.
8970         (FLT_MIN): Likewise.
8971         (DBL_MIN): Likewise.
8972         (LDBL_MIN): Likewise.
8973         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8974         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8975         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8976         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8977         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8978         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8979         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8980         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8981         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8982         [ISO11] (FLT_TRUE_MIN): Likewise.
8983         [ISO11] (LDBL_TRUE_MIN): Likewise.
8984         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8985         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8986         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8987         (SCHAR_MAX): Likewise.
8988         (UCHAR_MAX): Likewise.
8989         (CHAR_MIN): Likewise.
8990         (CHAR_MAX): Likewise.
8991         (MB_LEN_MAX): Use macro-int-constant.
8992         (SHRT_MIN): Use macro-int-constant.  Specify type.
8993         (SHRT_MAX): Likewise.
8994         (USHRT_MAX): Likewise.
8995         (INT_MAX): Likewise.
8996         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8997         bound negative.
8998         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8999         bound with "U".
9000         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9001         bound with "L".
9002         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9003         bound negative.  Suffix upper bound with "L".
9004         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9005         bound with "UL".
9006         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9007         Specify type.
9008         [C99-based standards] (LLONG_MAX): Likewise.
9009         [C99-based standards] (ULLONG_MAX): Likewise.
9010         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9011         == 0.
9012         [ISO11] (max_align_t): Require type.
9013         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9014
9015         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9016         from $CFLAGS, without defining away __attribute__ calls.
9017         (checknamespace): Use $CFLAGS_namespace.
9018
9019         * conform/conformtest.pl (@keywords): Only include C99 keywords
9020         for standards based on C99 or C11.
9021
9022         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9023         Disable tests.
9024         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9025         UNIX98]: Likewise.
9026
9027         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9028         usability of symbols in #if.
9029
9030         * conform/conformtest.pl: If macro or constant types start
9031         "promoted:", expect the symbol to be of the following type
9032         promoted by the integer promotions.
9033
9034         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9035         in one place.  Also handle "macro-constant".
9036
9037         * conform/conformtest.pl: Only accept expected macro values with
9038         "==".  Parse all "macro" lines in one place.
9039         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9040
9041         * conform/conformtest.pl: Handle braced types on "constant" lines
9042         instead of handling "typed-constant".
9043         * conform/data/signal.h-data: Use "constant" instead of
9044         "typed-constant".
9045
9046         * conform/conformtest.pl: Handle "optional-" at start of lines in
9047         one place rather than duplicating several cases.  Handle each
9048         format of "macro" line with initial "optional-".
9049
9050         * conform/conformtest.pl: Only accept expected constant or
9051         optional-constant values with "==".  Parse all "constant" lines in
9052         one place.  Parse all "optional-constant" lines in one place.
9053         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9054         * conform/data/fmtmsg.h-data: Likewise.
9055         * conform/data/netinet/in.h-data: Likewise.
9056         * conform/data/tar.h-data: Likewise.
9057         * conform/data/limits.h-data: Use "==" form on "constant" and
9058         "optional-constant" lines.
9059
9060         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9061         Use -std=c99 for XOPEN2K.
9062         (@knownproblems): Remove.
9063         (newtoken): Don't check %isknown.
9064
9065         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9066         Do not expect macro.
9067         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9068         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9069         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9070         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9071         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9072         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9073         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9074         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9075         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9076         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9077         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9078         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9079         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9080         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9081         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9082         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9083         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9084         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9085         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9086         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9087         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9088         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9089         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9090         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9091         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9092         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9093         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9094         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9095         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9096         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9097         [XPG3] (acosh): Likewise.
9098         [XPG3] (asinh): Likewise.
9099         [XPG3] (atanh): Likewise.
9100         [XPG3] (cbrt): Likewise.
9101         [XPG3] (expm1): Likewise.
9102         [XPG3] (ilogb): Likewise.
9103         [XPG3] (log1p): Likewise.
9104         [XPG3] (logb): Likewise.
9105         [XPG3] (nextafter): Likewise.
9106         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9107         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9108         [XPG3] (remainder): Likewise.
9109         [XPG3] (rint): Likewise.
9110         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9111         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9112         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9113         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9114         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9115         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9116         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9117         [UNIX98 || XOPEN2K] (scalb): Expect.
9118         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9119         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9120         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9121         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9122         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9123         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9124         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9125         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9126         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9127         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9128         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9129         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9130         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9131         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9132         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9133         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9134         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9135         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9136         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9137         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9138         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9139         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9140         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9141         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9142         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9143         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9144         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9145         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9146         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9147         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9148         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9149         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9150         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9151         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9152         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9153         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9154         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9155         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9156         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9157         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9158         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9159         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9160         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9161         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9162         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9163         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9164         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9165         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9166         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9167         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9168         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9169         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9170         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9171         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9172         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9173         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9174         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9175         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9176         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9177         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9178         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9179         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9180         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9181         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9182         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9183         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9184         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9185         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9186         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9187         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9188         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9189         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9190         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9191         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9192         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9193         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9194         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9195         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9196         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9197         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9198         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9199         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9200         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9201         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9202         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9203         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9204         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9205         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9206         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9207         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9208         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9209         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9210         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9211         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9212         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9213         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9214         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9215         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9216         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9217         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9218         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9219         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9220         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9221         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9222         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9223         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9224         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9225         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9226         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9227         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9228         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9229         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9230         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9231         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9232         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9233         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9234         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9235         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9236         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9237         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9238         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9239         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9240         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9241         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9242         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9243         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9244         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9245         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9246         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9247         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9248         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9249         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9250         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9251         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9252         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9253         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9254         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9255
9256         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9257         _XOPEN_SOURCE_EXTENDED for XPG4.
9258
9259         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9260
9261         * Makeconfig (localtime): Remove variable.
9262         (inst_localtime-file): Likewise.
9263
9264 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9265
9266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9267         Update.
9268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9269         Update.
9270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9271         Update.
9272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9273         Update.
9274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9275         Update.
9276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9277         Update.
9278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9279         Update.
9280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9281         Update.
9282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9283         Update.
9284
9285 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9286
9287         [BZ #2550]
9288         [BZ #2570]
9289         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9290         comparisons to determine direction to adjust input.
9291         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9292         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9293         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9294         Likewise.
9295         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9296         Likewise.
9297         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9298         Likewise.
9299         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9300         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9301         Likewise.
9302         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9303         Likewise.
9304         * math/libm-test.inc (nexttoward_test): Add more tests.
9305
9306 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9307
9308         [BZ #14040]
9309         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
9310         in version GLIBC_2.1, not GLIBC_2.0.
9311         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
9312         Likewise.
9313
9314 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
9315
9316         [BZ #13942]
9317         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
9318         (1 - x) * (1 + x).
9319         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9320         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
9321         * math/libm-test.inc (acos_test): Add more tests.
9322         (asin_test): Likewise.
9323         * sysdeps/i386/fpu/libm-test-ulps: Update.
9324         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9325
9326         [BZ #14034]
9327         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
9328         of square root.
9329         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
9330         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9331         * math/libm-test.inc (acos_test_tonearest): New function.
9332         (acos_test_towardzero): Likewise.
9333         (acos_test_downward): Likewise.
9334         (acos_test_upward): Likewise.
9335         (asin_test_tonearest): Likewise.
9336         (asin_test_towardzero): Likewise.
9337         (asin_test_downward): Likewise.
9338         (asin_test_upward): Likewise.
9339         (main): Call the new functions.
9340         * sysdeps/i386/fpu/libm-test-ulps: Update.
9341         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9342
9343         [BZ #13884]
9344         [BZ #13924]
9345         * math/e_exp10.c: Include <float.h>.
9346         (__ieee754_exp10): Handle underflow here rather than multiplying
9347         large negative argument by M_LN10.
9348         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
9349         of __ieee754_expf.
9350         * math/e_exp10l.c: Include <float.h>.
9351         (__ieee754_exp10l): Handle underflow here rather than multiplying
9352         large negative argument by M_LN10l.
9353         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
9354         spurious overflow exception on underflow.
9355
9356 2012-04-29  Marek Polacek  <polacek@redhat.com>
9357
9358         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
9359         (__fortify_function): New macro.
9360         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
9361         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
9362         __extern_always_inline.
9363         * libio/bits/stdio2.h: Likewise.
9364         * libio/bits/stdio.h: Likewise.
9365         * string/string.h: Likewise.
9366         * string/bits/string3.h: Likewise.
9367         * include/stdio.h: Likewise.
9368         * stdlib/bits/stdlib.h: Likewise.
9369         * stdlib/stdlib.h: Likewise.
9370         * rt/bits/mqueue2.h: Likewise.
9371         * rt/mqueue.h: Likewise.
9372         * posix/bits/unistd.h: Likewise.
9373         * posix/unistd.h: Likewise.
9374         * io/bits/poll2.h: Likewise.
9375         * io/bits/fcntl2.h: Likewise.
9376         * io/fcntl.h: Likewise.
9377         * io/sys/poll.h: Likewise.
9378         * misc/bits/syslog.h: Likewise.
9379         * misc/bits/syslog-ldbl.h: Likewise.
9380         * misc/sys/syslog.h: Likewise.
9381         * socket/bits/socket2.h: Likewise.
9382         * socket/sys/socket.h: Likewise.
9383         * debug/tst-chk1.c: Likewise.
9384         * wcsmbs/bits/wchar2.h: Likewise.
9385         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9386         * wcsmbs/wchar.h: Likewise.
9387
9388 2012-04-29  Andreas Jaeger  <aj@suse.de>
9389
9390         * Makerules (tests): Remove enable-check-abi protection.
9391         (check-abi-warn): Remove.
9392         (check-abi-%): Remove check-abi-warn usage.
9393
9394         * configure.in: Remove check-abi configure option.
9395         * configure: Regenerated.
9396         * config.make.in (enable-check-abi): Remove.
9397
9398 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
9399
9400         [BZ #14033]
9401         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
9402         double functions to double *_finite functions.
9403
9404         [BZ #13941]
9405         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
9406         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
9407         LDBL_MIN_EXP.
9408         * stdio-common/Makefile (tests): Add tst-sprintf3.
9409         * stdio-common/tst-sprintf3.c: New file.
9410
9411         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
9412         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
9413
9414 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9415
9416         * conform/conformtest.pl: Remove duplicate typed-constant
9417         handling.
9418
9419 2012-04-28  David S. Miller  <davem@davemloft.net>
9420
9421         * Makerules (%.abilist): Add vpath on sysdep_dirs.
9422         (check-abi-%): Remove AWK script prerequisite and explicit
9423         abilist directory.
9424         (check-abi): Rewrite to just diff the symlist with the abilist.
9425         (config-tls, config-abi-config): Delete, no longer used.
9426         (update-abi-%): Remove AWK script and explicit abilist directory.
9427         (update-abi): Rewrite to simply compare and conditionally copy the
9428         symlist and the sysdep abilist file.  Remove update-abi-config
9429         checks.
9430         * abilist/ld.abilist: Remove.
9431         * abilist/libBrokenLocale.abilist: Remove.
9432         * abilist/libanl.abilist: Remove.
9433         * abilist/libcrypt.abilist: Remove.
9434         * abilist/libdl.abilist: Remove.
9435         * abilist/librt.abilist: Remove.
9436         * abilist/libthread_db.abilist: Remove.
9437         * abilist/libutil.abilist: Remove.
9438         * scripts/extract-abilist.awk: Remove.
9439         * scripts/merge-abilist.awk: Remove.
9440         * sysdeps/generic/libcidn.abilist: New file.
9441         * sysdeps/generic/libnss_compat.abilist: New file.
9442         * sysdeps/generic/libnss_db.abilist: New file.
9443         * sysdeps/generic/libnss_dns.abilist: New file.
9444         * sysdeps/generic/libnss_files.abilist: New file.
9445         * sysdeps/generic/libnss_hesiod.abilist: New file.
9446         * sysdeps/generic/libnss_nis.abilist: New file.
9447         * sysdeps/generic/libnss_nisplus.abilist: New file.
9448         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
9449         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
9450         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
9451         file.
9452         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
9453         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
9454         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
9455         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
9456         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
9457         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
9458         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
9459         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
9460         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
9461         file.
9462         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
9463         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
9464         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
9465         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
9466         file.
9467         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
9468         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
9469         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
9470         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
9471         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
9472         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
9473         file.
9474         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
9475         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
9476         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
9477         file.
9478         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
9479         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
9480         New file.
9481         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
9482         New file.
9483         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
9484         New file.
9485         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
9486         New file.
9487         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
9488         New file.
9489         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
9490         New file.
9491         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
9492         New file.
9493         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
9494         New file.
9495         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
9496         New file.
9497         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
9498         New file.
9499         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
9500         New file.
9501         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
9502         New file.
9503         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
9504         New file.
9505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
9506         file.
9507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
9508         New file.
9509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
9510         New file.
9511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
9512         file.
9513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
9514         New file.
9515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
9516         New file.
9517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
9518         file.
9519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
9520         New file.
9521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9522         New file.
9523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
9524         New file.
9525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
9526         New file.
9527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
9528         New file.
9529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
9530         New file.
9531         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
9532         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
9533         file.
9534         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
9535         New file.
9536         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
9537         file.
9538         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
9539         file.
9540         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
9541         file.
9542         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
9543         file.
9544         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
9545         file.
9546         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9547         New file.
9548         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
9549         file.
9550         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
9551         file.
9552         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
9553         New file.
9554         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
9555         file.
9556         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
9557         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
9558         file.
9559         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
9560         New file.
9561         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
9562         file.
9563         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
9564         file.
9565         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
9566         file.
9567         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
9568         file.
9569         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
9570         file.
9571         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9572         New file.
9573         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
9574         file.
9575         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
9576         file.
9577         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
9578         New file.
9579         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
9580         file.
9581         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
9582         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
9583         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
9584         file.
9585         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
9586         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
9587         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
9588         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
9589         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
9590         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
9591         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
9592         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
9593         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
9594         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
9595         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
9596         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
9597         file.
9598         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
9599         New file.
9600         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
9601         file.
9602         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
9603         file.
9604         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
9605         file.
9606         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
9607         file.
9608         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
9609         file.
9610         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
9611         New file.
9612         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
9613         New file.
9614         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
9615         file.
9616         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
9617         New file.
9618         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
9619         file.
9620         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
9621         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
9622         file.
9623         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
9624         New file.
9625         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
9626         file.
9627         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
9628         file.
9629         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
9630         file.
9631         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
9632         file.
9633         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
9634         file.
9635         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
9636         New file.
9637         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
9638         New file.
9639         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
9640         file.
9641         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
9642         New file.
9643         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
9644         file.
9645
9646 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9647
9648         * conform/conformtest.pl: Fix typo in handling typed-constant from
9649         allow-header.
9650
9651 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9652
9653         * README: Cut down references to pre-2.6 Linux kernels and
9654         Linuxthreads.  Update lists of configurations in libc and ports
9655         and sort alphabetically.  Say "or newer" with Linux kernel version
9656         requirements.
9657
9658         * config.h.in [IS_IN_build]: Allow compiling without optimization.
9659
9660 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9661
9662         [BZ #887]
9663         * math/libm-test.inc (logb_test_downward): New test to expose
9664         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
9665         rounding mode.
9666
9667 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9668
9669         [BZ #14027]
9670         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
9671         to be done.
9672         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
9673         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
9674
9675 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
9676
9677         * sysdeps/unix/i386/brk.S: Remove file.
9678         * sysdeps/unix/i386/dl-brk.S: Likewise.
9679         * sysdeps/unix/i386/pipe.S: Likewise.
9680         * sysdeps/unix/i386/sigreturn.S: Likewise.
9681         * sysdeps/unix/i386/syscall.S: Likewise.
9682         * sysdeps/unix/i386/vfork.S: Likewise.
9683         * sysdeps/unix/i386/wait.S: Likewise.
9684
9685         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9686         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9687
9688         * configure.in (arm*-none*): Do not allow without
9689         --enable-hacker-mode.
9690         (netbsd*): Remove case setting base_os.
9691         (386bsd*): Likewise.
9692         (freebsd*): Likewise.
9693         (bsdi*): Likewise.
9694         (osf*): Likewise.
9695         (sunos*): Likewise.
9696         (ultrix*): Likewise.
9697         (newsos*): Likewise.
9698         (dynix*): Likewise.
9699         (*bsd*): Likewise.
9700         (sysv*): Likewise.
9701         (isc*): Likewise.
9702         (esix*): Likewise.
9703         (sco*): Likewise.
9704         (minix*): Likewise.
9705         (irix4*): Likewise.
9706         (irix6*): Likewise.
9707         (solaris[2-9]*): Likewise.
9708         (none): Likewise.
9709         * configure: Regenerated.
9710
9711 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9712
9713         [BZ #11521]
9714         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9715         overflow or cancellation in calculating denominator.
9716         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9717         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9718         down expression to avoid unexpected rounding in newer GCCs.
9719         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9720
9721 2012-04-26  David S. Miller  <davem@davemloft.net>
9722
9723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9724         long-double compat symbols.
9725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9730         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9731         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9732         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9733         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9734         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9735         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9736         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9737         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9738
9739 2012-04-25  David S. Miller  <davem@davemloft.net>
9740
9741         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9742         HWCAP_* values only after the memory barriers have been defined.
9743         (atomic_full_barrier): Define.
9744         (atomic_read_barrier): Define.
9745         (atomic_write_barrier): Define.
9746
9747 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9748
9749         * shlib-versions: Add libgcc_s version information.
9750         * sysdeps/generic/libgcc_s.h: Remove.
9751         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9752         libgcc_s.h.
9753         * sysdeps/gnu/unwind-resume.c: Likewise.
9754         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9755
9756 2012-04-25  David S. Miller  <davem@davemloft.net>
9757
9758         * sysdeps/unix/sparc/brk.S: Delete.
9759         * sysdeps/unix/sparc/dl-brk.S: Delete.
9760         * sysdeps/unix/sparc/pipe.S: Delete.
9761         * sysdeps/unix/sparc/sysdep.S: Delete.
9762         * sysdeps/unix/sparc/sysdep.h: Delete.
9763         * sysdeps/unix/sparc/vfork.S: Delete.
9764         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9765         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9766         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9767         ret_ERRVAL, r0, r1, MOVE): Define.
9768         (JUMPTARGET): Remove.
9769         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9770         sysdeps/unix/sparc/sysdep.h
9771         (ENTRY, END): Remove.
9772         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9773
9774 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9775
9776         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9777         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9778         -DIS_IN_build.
9779
9780         * timezone/README: Update upstream location and email address for
9781         tzcode and tzdata.
9782         * timezone/zdump.c: Update from tzcode 2012b.
9783         * timezone/zic.c: Likewise.
9784
9785         * configure.in (libc_cv_as_needed): Remove test.
9786         * configure: Regenerated.
9787         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9788         conditional definition.
9789         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9790         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9791         * config.make.in (have-as-needed): Remove variable.
9792
9793 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9794             Paul Pluzhnikov  <ppluzhnikov@google.com>
9795
9796         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9797         strings correctly.
9798
9799 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9800
9801         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9802         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9803         * sysdeps/sh/strlen.S: Likewise.
9804
9805 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9806
9807         * sysdeps/unix/fork.S: Remove file.
9808         * sysdeps/unix/i386/fork.S: Likewise.
9809         * sysdeps/unix/sparc/fork.S: Likewise.
9810
9811         * sysdeps/unix/system.c: Remove file.
9812         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9813
9814         * sysdeps/unix/getegid.S: Remove file.
9815         * sysdeps/unix/geteuid.S: Likewise.
9816
9817 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9818
9819         * scripts/check-localplt.awk: New file.
9820         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9821         of diff.
9822         * scripts/data/localplt-generic.data: Add a comment.
9823
9824         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9825         NODE when __dir_mkfile failed.
9826         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9827         Reported by Ludovic Courtès <ludo@gnu.org>.
9828
9829 2012-04-24  Andreas Jaeger  <aj@suse.de>
9830
9831         * Makerules (common-clean): Also remove gen-as-const-headers
9832         files.
9833
9834 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9835
9836         * Makerules (native-compile): Do not change working directory for
9837         build.  Use $(OUTPUT_OPTION) in command.
9838         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9839
9840 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9841
9842         [BZ #13886]
9843         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9844         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9845         * math/libm-test.inc (floor_test): Add more tests.
9846         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9847
9848 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9849
9850         * sysdeps/unix/getdents.c: Remove file.
9851         * sysdeps/unix/sysv/getdents.c: Likewise.
9852         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9853
9854         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9855         sysdeps/unix/mman/syscalls.list.
9856         (mmap): Likewise.
9857         (mprotect): Likewise.
9858         (msync): Likewise.
9859         (munmap): Likewise.
9860         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9861         * sysdeps/unix/mman/syscalls.list: Remove.
9862         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9863
9864         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9865         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9866         * configure: Regenerated.
9867         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9868         $(libgcc_s_suffix).
9869         * config.make.in (libgcc_s_suffix): Remove variable.
9870
9871 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9872
9873         * sysdeps/unix/sysv/gethostname.c: Move to ...
9874         * sysdeps/posix/gethostname.c: ... here.
9875
9876         * sysdeps/unix/execve.S: Remove file.
9877
9878         * sysdeps/unix/_exit.S: Remove file.
9879
9880 2012-04-23  Andreas Jaeger  <aj@suse.de>
9881
9882         [BZ #13739]
9883         * manual/Makefile: Remove make dist support, there's no
9884         need for a stand-alone documentation tar ball.
9885         (TEXI2DVI): Define always, it's not in Makeconfig.
9886         (dist): Removed.
9887         (tar-it): Removed.
9888         (edition): Removed.
9889         (glibc-doc-$(edition).tar): Removed
9890         (%.Z): Removed.
9891         (%.gz): Removed.
9892         (%.uu): Removed.
9893         (ETAGS): Remove, it's in Makeconfig.
9894         (move-if-change): Remove, it's in Makeconfig.
9895
9896 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9897
9898         [BZ #13970]
9899         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9900         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9901         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9902         (strtod_l, strtof_l, strtold_l): Remove __wur.
9903         It is not necessarily an error to ignore strtol's return value.
9904         One can reliably look at the stored endptr to decide whether
9905         the number had valid syntax.
9906
9907 2012-04-21  Andreas Jaeger  <aj@suse.de>
9908
9909         [BZ #13739]
9910         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9911
9912 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9913
9914         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9915         * sysdeps/unix/sysv/Versions: Remove file.
9916
9917 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9918
9919         [BZ #13927]
9920         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9921
9922 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9923
9924         [BZ #7064]
9925         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9926         version from __vm86.
9927
9928 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9929
9930         * sysdeps/unix/common/lxstat.c: Remove file.
9931         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9932
9933         * sysdeps/unix/sysv/Makefile: Remove file.
9934
9935         * sysdeps/unix/sysv/direct.h: Remove file.
9936
9937         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9938         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9939         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9940         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9941         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9942         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9943         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9944
9945         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9946
9947         * sysdeps/unix/xmknod.c: Remove file.
9948         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9949
9950         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9951
9952         * sysdeps/unix/sysv/i386/time.S: Remove file.
9953
9954         * sysdeps/unix/fxstat.c: Remove file.
9955         * sysdeps/unix/xstat.c: Likewise.
9956         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9957
9958         * sysdeps/unix/sysv/sigaction.c: Remove file.
9959
9960         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9961         (sysdep_headers): Remove variable.
9962         [termio.h not in sysdep_headers] (generated): Likewise.
9963         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9964         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9965         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9966         * sysdeps/unix/sysv/tcflow.c: Likewise.
9967         * sysdeps/unix/sysv/tcflush.c: Likewise.
9968         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9969         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9970         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9971         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9972         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9973
9974         * sysdeps/unix/siglist.c: Remove file.
9975
9976         * sysdeps/unix/getppid.S: Remove file.
9977
9978         * sysdeps/unix/mkdir.c: Remove file.
9979         * sysdeps/unix/rmdir.c: Likewise.
9980
9981 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9982
9983         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9984         ERR_MAX value.
9985         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9986         errlist-compat value.
9987
9988 2012-04-18  David S. Miller  <davem@davemloft.net>
9989
9990         * sysdeps/generic/memcopy.h (reg_char): Delete.
9991         * debug/strcat_chk.c: Use char, not reg_char.
9992         * debug/strcpy_chk.c: Likewise.
9993         * debug/strncat_chk.c: Likewise.
9994         * debug/strncpy_chk.c: Likewise.
9995         * string/memchr.c: Likewise.
9996         * string/memrchr.c: Likewise.
9997         * string/rawmemchr.c: Likewise.
9998         * string/strcat.c: Likewise.
9999         * string/strchr.c: Likewise.
10000         * string/strchrnul.c: Likewise.
10001         * string/strcmp.c: Likewise.
10002         * string/strcpy.c: Likewise.
10003         * string/strncat.c: Likewise.
10004         * string/strncmp.c: Likewise.
10005         * string/strncpy.c: Likewise.
10006
10007 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10008
10009         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10010         __builtin_memcopy is called when src and dest ranges are known to not
10011         overlap.
10012
10013 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10014
10015         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10016         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10017         fwd_align_merge macro call.
10018         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10019         bwd_align_merge macro call.
10020         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10021
10022 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10023
10024         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10025         bwd_align_merge macros.
10026         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10027         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10028         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10029
10030 2012-04-18  David S. Miller  <davem@davemloft.net>
10031
10032         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10033
10034 2012-04-18  Andreas Jaeger  <aj@suse.de>
10035
10036         [BZ# 6794]
10037         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10038         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10039         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10040
10041         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10042         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10043         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10044
10045         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10046         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10047         Adjust for changed ldbl-128 files.
10048
10049         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10050         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10051         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10052
10053 2012-04-17  David S. Miller  <davem@davemloft.net>
10054
10055         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10056
10057 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10058
10059         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10060         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10061         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10062         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10063         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10064         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10065
10066 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10067
10068         [BZ #6794]
10069         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10070         * math/libm-test.inc: Add ilogb errno and exception tests.
10071         * math/w_ilogb.c: New file: ilogb wrapper.
10072         * math/w_ilogbf.c: New file: ilogbf wrapper.
10073         * math/w_ilogbl.c: New file: ilogbl wrapper.
10074         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10075         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10076         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10077         exception being thrown with 0.0 as argument.
10078         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10079         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10080         exception being thrown with 0.0 as argument.
10081         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10082         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10083         exception being thrown with 0.0 as argument.
10084         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10085         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10086         exception being thrown with 0.0 as argument.
10087         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10088         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10089         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10090         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10091         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10092         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10093         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10094         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10095         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10096
10097 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10098
10099         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10100         with altivec.
10101
10102 2012-04-16  Marek Polacek  <polacek@redhat.com>
10103
10104         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10105
10106 2012-04-16  Marek Polacek  <polacek@redhat.com>
10107
10108         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10109         operands of fdivp instruction.
10110
10111 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10112
10113         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10114         * elf/tst-auditmod3b.c: Likewise.
10115         * elf/tst-auditmod4b.c: Likewise.
10116         * elf/tst-auditmod5b.c: Likewise.
10117         * elf/tst-auditmod6b.c: Likewise.
10118         * elf/tst-auditmod6c.c: Likewise.
10119         * elf/tst-auditmod7b.c: Likewise.
10120         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10121         * sysdeps/x86_64/preconfigure.in: Likewise.
10122         * sysdeps/x86_64/preconfigure: Regenerated.
10123
10124 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10125
10126         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10127         __ILP32__.
10128
10129 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10130
10131         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10132         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10133
10134 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10135
10136         [BZ #13973]
10137         * locale/iso-639.def: Fix gl language name. Spotted by
10138         Yaron Shahrabani.
10139
10140 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10141
10142         [BZ #2074]
10143         * libio/libio.h (__io_write_fn): Update comment.
10144
10145 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10146
10147         [BZ #2074]
10148         * stdio.texi (Hook Functions): The user provided writer function
10149         is not allowed to return -1.
10150
10151 2012-04-11  David S. Miller  <davem@davemloft.net>
10152
10153         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10154
10155 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10156
10157         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10158         Add a leading slash to rtkaio.
10159
10160 2012-04-11  Jim Meyering  <meyering@redhat.com>
10161
10162         [BZ #11959]
10163         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10164         It is not necessarily an error to ignore fwrite's return
10165         value.  One can reliably use ferror to test for errors after
10166         the fact.
10167
10168 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10169
10170         * bits/types.h (__snseconds_t): New type.
10171         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10172
10173         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10174         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10175         (__SNSECONDS_T_TYPE): Likewise.
10176         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10177         (__SNSECONDS_T_TYPE): Likewise.
10178         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10179         (__SNSECONDS_T_TYPE): Likewise.
10180
10181 2012-04-10  Andreas Jaeger  <aj@suse.de>
10182
10183         [BZ #2636]
10184         * manual/time.texi (Processor Time): Return type of times is
10185         elapsed real time since an arbitrary point in the past.
10186         (CPU Time): Move CLK_TCK from here...
10187         (Processor Time): ...to here.  Correct description.
10188         * manual/conf.texi (Constants for Sysconf): Correct description of
10189         _SC_CLK_TCK.
10190
10191 2012-04-10  David S. Miller  <davem@davemloft.net>
10192
10193         [BZ #13967]
10194         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10195         where the is a gap between DT_REL(A) and DT_JMPREL.
10196
10197 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10198
10199         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10200         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10201         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10202
10203 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10204
10205         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10206         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10207         (dl_main): Handle --inhibit-cache.
10208         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10209         _dl_inhibit_cache.
10210         * elf/dl-load.c (_dl_map_object): Use it.
10211         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10212
10213 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10214
10215         [BZ #13872]
10216         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10217         (__ieee754_powl): Saturate large exponents rather than testing for
10218         overflow of y*log2(x).
10219         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10220         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10221         exceptions.
10222
10223         [BZ #11521]
10224         * math/s_ctan.c: Include <float.h>.
10225         (__ctan): Avoid internal overflow or cancellation in calculating
10226         denominator.
10227         * math/s_ctanf.c: Likewise.
10228         * math/s_ctanl.c: Likewise.
10229         * math/s_ctanh.c: Likewise.
10230         * math/s_ctanhf.c: Likewise.
10231         * math/s_ctanhl.c: Likewise.
10232         * math/libm-test.inc (ctan_test): Add more tests.
10233         (ctanh_test): Likewise.
10234         * sysdeps/i386/fpu/libm-test-ulps: Update.
10235         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10236
10237 2012-04-09  Andreas Jaeger  <aj@suse.de>
10238
10239         [BZ #6894]
10240         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10241         is an optional BSD extension.
10242
10243         [BZ #10254]
10244         * manual/stdio.texi (Opening Streams): Document additional fopen
10245         parameters.
10246
10247 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10248
10249         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10250         %eax without telling the compiler.
10251
10252 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10253
10254         [BZ # 13963]
10255         * manual/install.texi: Use sourceware.org.
10256
10257 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10258
10259         [BZ #13873]
10260         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10261         (__ieee754_pow): Generate overflow and underflow using huge*huge
10262         and tiny*tiny rather than just returning constant infinity or zero
10263         for large exponents.
10264         * math/libm-test.inc (pow_test): Require overflow exceptions for
10265         applicable cases of large exponents.
10266
10267         [BZ #706]
10268         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10269         (__ieee754_pow): Use iterative multiplication algorithm only for
10270         integer exponents with absolute value below 1024.  Check for odd
10271         integer exponents when using algorithm for real exponents.
10272         * math/libm-test.inc (pow_test): Add more tests.
10273         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10274
10275 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10276
10277         [BZ #13705]
10278         * math/libm-test.inc (exp_test): Do not allow overflow exception
10279         on underflow test.
10280
10281 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10282
10283         [BZ #13705]
10284         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10285         instead of __kernel_standard_f.
10286
10287 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10288
10289         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10290         * sysdeps/x86_64/memset_chk.S: Likewise.
10291
10292 2012-04-08  Andreas Jaeger  <aj@suse.de>
10293
10294         [BZ #10153]
10295         * manual/startup.texi (Environment Access): Describe return value
10296         for putenv and setenv.
10297
10298         [BZ #6895]
10299         * manual/filesys.texi (Directory Entries): Add description for
10300         DT_LNK.
10301
10302         [BZ #6890]
10303         * manual/filesys.texi (Directory Entries): Clarify that it's file
10304         system not operating system in the description of DT_UNKNOWN.
10305
10306         [BZ #6578]
10307         * manual/syslog.texi (closelog): Fix reference, it's openlog.
10308
10309 2012-04-08  Stephen Compall  <s11@member.fsf.org>
10310
10311         [BZ #6649]
10312         * manual/llio.texi (Opening and Closing Files): Add cross
10313         reference to explain mode argument.
10314
10315 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
10316
10317         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
10318         * sysdeps/x86_64/memset_chk.S: Likewise.
10319
10320 2012-04-07  David S. Miller  <davem@davemloft.net>
10321
10322         * elf/elf.h (R_SPARC_WDISP10): Define.
10323         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
10324         R_SPARC_SIZE32.
10325         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
10326         R_SPARC_SIZE64 and R_SPARC_H34.
10327
10328 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
10329
10330         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
10331         conditions and remove no longer applicable assertion.
10332
10333 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10334
10335         * bits/byteswap.h: Include <features.h>.
10336         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10337         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10338
10339 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10340
10341         * bits/byteswap.h (__bswap_16): Removed.
10342         Include <bits/byteswap-16.h> to get __bswap_16.
10343         * sysdeps/i386/bits/byteswap.h: Likewise.
10344         * sysdeps/s390/bits/byteswap.h: Likewise.
10345         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10346         * bits/byteswap-16.h: New file.
10347         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10348         * sysdeps/s390/bits/byteswap-16.h: Likewise.
10349         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
10350         * string/Makefile (headers): Add bits/byteswap-16.h.
10351
10352 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10353
10354         [BZ #13895]
10355         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
10356         extra indirection.
10357         * nss/Makefile (tests-static, tests): Add tst-nss-static.
10358         * nss/tst-nss-static.c: New.
10359
10360 2012-04-06  Robert Millan  <rmh@gnu.org>
10361
10362         [BZ #6486]
10363         * manual/llio.texi (File Position Primitive): lseek
10364         refers to WHENCE when it really means OFFSET.
10365
10366 2012-04-06  Andreas Jaeger  <aj@suse.de>
10367
10368         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
10369         strncmp declarations.
10370
10371         * abilist/libc.abilist: Add __poll and __ppoll.
10372
10373 2012-04-05  David S. Miller  <davem@davemloft.net>
10374
10375         * scripts/check-local-headers.sh: Accept a host triplet in the
10376         path matched by the exclude regexp.
10377
10378         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
10379         definition.
10380         * sysdeps/powerpc/powerpc32/dl-machine.h
10381         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
10382         * sysdeps/s390/s390-32/dl-machine.h
10383         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10384         * sysdeps/sparc/sparc32/dl-machine.h
10385         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10386         * sysdeps/sparc/sparc64/dl-machine.h
10387         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10388
10389         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
10390         lazy binding.
10391         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
10392         undefined symbol errors.
10393
10394         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
10395         DT_NEEDED entries.
10396
10397 2012-04-05  Michael Matz  <matz@suse.de>
10398
10399         [BZ #13592]
10400         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
10401
10402 2012-04-05  Andreas Jaeger  <aj@suse.de>
10403
10404         [BZ #13908]
10405         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
10406         comment.
10407
10408 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10409
10410         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
10411         which ROUND is no valid rounding mode.
10412
10413 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10414
10415         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
10416         read again.
10417         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
10418
10419 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10420
10421         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
10422         an exception using FPU order intentionally.
10423
10424 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10425
10426         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
10427         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
10428         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
10429         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
10430
10431 2012-04-05  Simon Josefsson  <simon@josefsson.org>
10432
10433         [BZ #12340]
10434         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
10435         EINVAL when BUFLEN is too smal.
10436
10437 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10438
10439         [BZ #13553]
10440         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
10441         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10442
10443 2012-04-03  Andreas Jaeger  <aj@suse.de>
10444
10445         [BZ #13938]
10446         * manual/setjmp.texi (System V contexts): Fix sentence.
10447
10448         [BZ #13926]
10449         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
10450         New macro for this case.
10451         [!__GNUC__] (__bswap_64): New inline function for this case.
10452         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10453         * bits/byteswap.h: Likewise.
10454         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
10455         ull, guard with __GLIBC_HAVE_LONG_LONG.
10456
10457         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
10458         __GLIBC_HAVE_LONG_LONG.
10459
10460         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
10461         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
10462
10463 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10464
10465         [BZ #13691]
10466         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
10467         inptr and inend, rather than using last_ch.
10468
10469 2012-04-02  David S. Miller  <davem@davemloft.net>
10470
10471         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
10472         * stdio-common/printf-parse.h (read_int): Change return type to
10473         'int', return -1 on INT_MAX overflow.
10474         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
10475         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
10476         overflows INT_MAX.  Check for overflow of in-format-string precision
10477         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
10478         SIZE_MAX not INT_MAX for integer overflow test.
10479         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
10480         skip the construct in the format string but do not record anything.
10481         * stdio-common/bug22.c: Adjust to test both width/prevision
10482         INT_MAX overflow as well as total length INT_MAX overflow.  Check
10483         explicitly for proper errno values.
10484
10485 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10486
10487         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
10488         CHAR_MAX.
10489         * string/test-strcmp.c [! WIDE]: Likewise.
10490         * time/tst-mktime2.c: Likewise for INT_MAX.
10491         * string/test-string.h: #include <sys/param.h> for MIN.
10492
10493         * csu/init-first.c (__libc_init_first): Call __ctype_init.
10494         * sysdeps/i386/init-first.c (init): Likewise.
10495         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
10496         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
10497         * sysdeps/sh/init-first.c (init): Likewise.
10498
10499 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
10500
10501         * po/ru.po: Update from translation team.
10502         * po/vi.po: Likewise.
10503
10504 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10505
10506         * resolv/nss_dns/dns-host.c: Merge copyright years.
10507
10508 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10509
10510         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10511         Optimize memcpy with prefetch if
10512         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
10513         src, dst pointers have unequal 16 byte alignments.
10514
10515 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10516
10517         [BZ #13928]
10518         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
10519         from a CNAME entry and return the minimum ttl for the query.
10520         (gaih_getanswer_slice): Likewise.
10521
10522 2012-03-30  Jeff Law  <law@redhat.com>
10523
10524         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
10525         due to long keys.
10526         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
10527         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
10528
10529         * resolv/nss_dns/dns-host.c: Update copyright year.
10530
10531 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
10532
10533         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
10534         requests to save a system call.  Fix check that all bytes are sent.
10535
10536         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
10537         comments for sendmmsg.
10538
10539 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10540
10541         [BZ #13691]
10542         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
10543         with only 1 character between 0x0041 and 0x01b0.
10544         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
10545         * wcsmbs/tst-mbsnrtowcs.c: New file.
10546
10547 2012-03-29  David S. Miller  <davem@davemloft.net>
10548
10549         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
10550         small copies by hand.
10551
10552 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10553
10554         [BZ #13761]
10555         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
10556         _nss_compat_initgroups_dyn): Fall back to malloc/free
10557         for large group memberships.
10558
10559 2012-03-28  David S. Miller  <davem@davemloft.net>
10560
10561         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
10562         that branches into memcpy.
10563         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
10564         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
10565         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
10566         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
10567         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
10568         bits.
10569         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
10570         implementation too.
10571         * sysdeps/sparc/mempcpy.S: New file.
10572
10573         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
10574         the IFUNC routine in the libc case.
10575         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10576
10577         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
10578         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
10579         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
10580         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
10581         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
10582         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
10583         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
10584         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
10585
10586         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
10587         loop to 256 bytes instead of 64 bytes and fix test signedness.
10588
10589         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
10590         * sysdeps/sparc/sparc32/Makefile: rather than here...
10591         * sysdeps/sparc/sparc64/Makefile: and here.
10592
10593 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
10594
10595         * malloc/mallocbug.c: Avoid warnings about unused variables.
10596
10597 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10598
10599         [BZ #13760]
10600         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
10601         in the right place. Discard and retry query if response is
10602         larger than input buffer size.
10603
10604 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
10605
10606         [BZ #369]
10607         [BZ #2678]
10608         [BZ #3866]
10609         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
10610         x for large integer exponent.
10611         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
10612         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
10613         sign of result as needed afterwards.
10614         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10615         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
10616         result for underflowing pow the same as for overflow.
10617         (__kernel_standard_l): Handle powl overflow and underflow here
10618         rather than calling __kernel_standard.
10619         * math/libm-test.inc (pow_test): Add more tests.
10620
10621         [BZ #3868]
10622         [BZ #13879]
10623         [BZ #13910]
10624         [BZ #13911]
10625         [BZ #13912]
10626         [BZ #13913]
10627         [BZ #13915]
10628         [BZ #13916]
10629         [BZ #13917]
10630         [BZ #13918]
10631         [BZ #13919]
10632         [BZ #13920]
10633         [BZ #13921]
10634         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
10635         * sysdeps/ieee754/k_standard.c: Include <float.h>.
10636         (__kernel_standard_l): New function.
10637         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
10638         __kernel_standard.
10639         * math/w_acosl.c (__acosl): Likewise.
10640         * math/w_asinl.c (__asinl): Likewise.
10641         * math/w_atan2l.c (__atan2l): Likewise.
10642         * math/w_atanhl.c (__atanhl): Likewise.
10643         * math/w_coshl.c (__coshl): Likewise.
10644         * math/w_exp10l.c (__exp10l): Likewise.
10645         * math/w_exp2l.c (__exp2l): Likewise.
10646         * math/w_fmodl.c (__fmodl): Likewise.
10647         * math/w_hypotl.c (__hypotl): Likewise.
10648         * math/w_j0l.c (__j0l, __y0l): Likewise.
10649         * math/w_j1l.c (__j1l, __y1l): Likewise.
10650         * math/w_jnl.c (__jnl, __ynl): Likewise.
10651         * math/w_lgammal.c (__lgammal): Likewise.
10652         * math/w_log10l.c (__log10l): Likewise.
10653         * math/w_log2l.c (__log2l): Likewise.
10654         * math/w_logl.c (__logl): Likewise.
10655         * math/w_powl.c (__powl): Likewise.
10656         * math/w_remainderl.c (__remainderl): Likewise.
10657         * math/w_scalbl.c (sysv_scalbl): Likewise.
10658         * math/w_sinhl.c (__sinhl): Likewise.
10659         * math/w_sqrtl.c (__sqrtl): Likewise.
10660         * math/w_tgammal.c (__tgammal): Likewise.
10661         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
10662         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
10663         * math/libm-test.inc (acos_test): Add more tests.
10664         (acosh_test): Likewise.
10665         (asin_test): Likewise.
10666         (atanh_test): Likewise.
10667         (exp_test): Likewise.
10668         (exp10_test): Likewise.
10669         (exp2_test): Likewise.
10670         (expm1_test): Likewise.
10671         (lgamma_test): Likewise.
10672         (log_test): Likewise.
10673         (log10_test): Likewise.
10674         (log1p_test): Likewise.
10675         (log2_test): Likewise.
10676         (pow_test): Do not allow some spurious overflow exceptions.
10677         (sqrt_test): Add more tests.
10678         (tgamma_test): Likewise.
10679         (y0_test): Likewise.
10680         (y1_test): Likewise.
10681         (yn_test): Likewise.
10682
10683 2012-03-27  Anton Blanchard  <anton@samba.org>
10684
10685         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10686         MAP_HUGETLB.
10687         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10688         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10689         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10690
10691 2012-03-27  David S. Miller  <davem@davemloft.net>
10692
10693         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10694
10695         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10696         have-as-vis3 check.
10697
10698 2012-03-27  Andreas Jaeger  <aj@suse.de>
10699
10700         * sysdeps/x86_64/elf/configure.in: Moved to ...
10701         * sysdeps/x86_64/configure.in: ... here.
10702         * sysdeps/x86_64/elf/start.S: Moved to ...
10703         * sysdeps/x86_64/start.S: ... here.
10704         * sysdeps/x86_64/elf/configure: Delete.
10705
10706         * sysdeps/x86_64/configure.in: Merge contents from
10707         sysdeps/i386/configure.in (without i686 check).
10708
10709         * sysdeps/i386/elf/Versions: Merge into ...
10710         * sysdeps/i386/Versions: ... this.
10711         * sysdeps/i386/elf/Versions: Delete file.
10712         * sysdeps/i386/elf/start.S: Moved to ...
10713         * sysdeps/i386/start.S: ...here.
10714         * sysdeps/i386/elf/configure.in: Merge into...
10715         * sysdeps/i386/configure.in: ...here.
10716         * sysdeps/i386/elf/configure.in: Delete file.
10717         * sysdeps/i386/elf/configure: Delete file.
10718
10719         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10720         * debug/backtracesyms.c: ... here.
10721         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10722         * debug/backtracesymsfd.c: ... here.
10723         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10724         * sysdeps/generic/ifunc-sel.h: ... here.
10725
10726         * sysdeps/unix/i386/start.c: Delete file.
10727         * sysdeps/unix/sparc/start.c: Delete file.
10728         * sysdeps/unix/start.c: Delete file.
10729
10730         * sysdeps/sh/elf/configure.in: Moved to ...
10731         * sysdeps/sh/configure.in: ... here.
10732         * sysdeps/sh/elf/start.S: Moved to ...
10733         * sysdeps/sh/start.S: ... here.
10734         * sysdeps/sh/elf/configure: Delete file.
10735
10736         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10737         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10738         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10739         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10740         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10741         * sysdeps/powerpc/powerpc64/start.S: here.
10742         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10743         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10744         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10745         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10746         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10747
10748         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10749         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10750         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10751         * sysdeps/powerpc/powerpc32/start.S: ... here.
10752         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10753         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10754         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10755
10756         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10757         * sysdeps/powerpc/ifunc-sel.h: ... here.
10758         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10759         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10760
10761         * sysdeps/sparc/elf/configure.in: Moved to ...
10762         * sysdeps/sparc/configure.in: ... here.
10763         * sysdeps/sparc/elf/configure: Delete file.
10764         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10765         * sysdeps/sparc/sparc32/start.S: ... here.
10766         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10767         * sysdeps/sparc/sparc64/start.S: ... here.
10768         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10769         * sysdeps/sparc/sparc32/Makefile: ... this.
10770         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10771         * sysdeps/sparc/sparc64/Makefile: ... this.
10772
10773         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10774         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10775         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10776         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10777         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10778         * sysdeps/s390/s390-32/setjmp.S: ... here.
10779         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10780         * sysdeps/s390/s390-32/configure.in: ... here.
10781         * sysdeps/s390/s390-32/elf/configure: Delete file.
10782         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10783         * sysdeps/s390/s390-32/start.S: ... here.
10784
10785         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10786         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10787         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10788         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10789         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10790         * sysdeps/s390/s390-64/setjmp.S: ... here.
10791         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10792         * sysdeps/s390/s390-64/configure.in: ... here
10793         * sysdeps/s390/s390-64/elf/configure: Delete file.
10794         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10795         * sysdeps/s390/s390-64/start.S: ... here.
10796         * sysdeps/s390/s390-64/elf/configure: Delete.
10797
10798         * configure.in: Remove support for elf directories in sysdeps.
10799
10800         * configure: Regenerated.
10801         * sysdeps/i386/configure: Regenerated.
10802         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10803         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10804         * sysdeps/s390/s390-32/configure: Regenerated.
10805         * sysdeps/s390/s390-64/configure: Regenerated.
10806         * sysdeps/sh/configure: Regenerated.
10807         * sysdeps/sparc/configure: Regenerated.
10808         * sysdeps/x86_64/configure: Regenerated.
10809
10810 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10811
10812         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10813
10814         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10815         denormal result into account.
10816
10817 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10818
10819         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10820         Reported by Allan McRae <allan@archlinux.org>.
10821
10822 2012-03-23  Jeff Law  <law@redhat.com>
10823
10824         * nss/getnssent.c (__nss_getent): Fix typo.
10825
10826 2012-03-23  David S. Miller  <davem@davemloft.net>
10827
10828         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10829
10830 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10831
10832         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10833         to pad to uint64_t for each field.
10834         (dl_tls_index): Replace unsigned long with uint64_t.
10835
10836 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10837         Paul Pluzhnikov  <ppluzhnikov@google.com>
10838
10839         [BZ #6528]
10840         * grp/Makefile (otherlibs): Don't set it.
10841         * inet/Makefile (otherlibs): Likewise.
10842         * login/Makefile (otherlibs): Likewise.
10843         * nscd/Makefile (otherlibs): Likewise.
10844         * posix/Makefile (otherlibs): Likewise.
10845         * pwd/Makefile (otherlibs): Likewise.
10846         * rt/Makefile (otherlibs): Likewise.
10847         * sunrpc/Makefile (otherlibs): Likewise.
10848         * nss/Makefile (otherlibs): Likewise.
10849         Add libnss_files to routines and static-only-routines.
10850         ($(objpfx)getent): Remove rule.
10851         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10852         static-only-routines.
10853
10854 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10855
10856         [BZ #13892]
10857         * math/s_cexp.c: Include <float.h>.
10858         (__cexp): Handle exp result overflowing not necessarily
10859         overflowing both real and imaginary parts of result.
10860         * math/s_cexpf.c: Likewise.
10861         * math/s_cexpl.c: Likewise.
10862         * math/libm-test.inc (cexp_test): Add more tests.
10863         * sysdeps/i386/fpu/libm-test-ulps: Update.
10864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10865
10866 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10867
10868         * include/link.h (ELFW): New macro.
10869         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10870         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10871
10872 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10873
10874         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10875         with uint64_t.
10876
10877 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10878
10879         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10880         declaration.
10881         (struct La_x32_retval): Likewise.
10882
10883 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10884
10885         * sysdeps/x86_64/preconfigure.in: New file.
10886         * sysdeps/x86_64/preconfigure: New generated file.
10887
10888 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10889
10890         [BZ #13824]
10891         * math/e_exp2l.c: Include <float.h>.
10892         (__ieee754_exp2l): Handle overflow and underflow cases
10893         separately.  Only pass fractional part of argument to
10894         __ieee754_expl.
10895         * math/libm-test.inc (exp2_test): Add more tests.
10896
10897         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10898         negating x to take absolute value.
10899         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10900         Likewise.
10901         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10902         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10903         Likewise.
10904         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10905         computing low part if x was negated.
10906         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10907
10908 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10909
10910         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10911         la_x32_gnu_pltexit.
10912         (pltexit): Cast int_retval to ptrdiff_t.
10913         * elf/tst-auditmod3b.c: Likewise.
10914         * elf/tst-auditmod4b.c: Likewise.
10915         * elf/tst-auditmod5b.c: Likewise.
10916         * elf/tst-auditmod6b.c: Likewise.
10917         * elf/tst-auditmod6c.c: Likewise.
10918         * elf/tst-auditmod7b.c: Likewise.
10919
10920         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10921         and x32_gnu_pltexit.
10922
10923         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10924         __ELF_NATIVE_CLASS.
10925         (La_x32_regs): New macro.
10926         (La_x32_retval): Likewise.
10927         (la_x32_gnu_pltenter): New function prototype.
10928         (la_x32_gnu_pltexit): Likewise.
10929
10930 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10931
10932         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10933         exponent.
10934
10935         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10936
10937         * configure.in (libc_cv_cc_nofma): Check for option to disable
10938         generation of FMA instructions.
10939         * configure: Regenerate.
10940         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10941         * sysdeps/ieee754/dbl-64/Makefile: New file.
10942         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10943         Remove brandred-fma4.
10944         (CFLAGS-brandred-fma4.c): Remove.
10945         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10946         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10947         define.
10948         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10949         define.
10950
10951 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10952
10953         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10954         LLONG_MAX != LONG_MAX.
10955         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10956         (_fitoa_word): Likewise.
10957         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10958         LLONG_MAX != LONG_MAX.
10959         * stdio-common/_itowa.h: Include <_itoa.h>.
10960         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10961         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10962         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10963         only if not defined.
10964         (_ITOA_WORD_TYPE): Likewise.
10965         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10966         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10967
10968 2012-03-21  David S. Miller  <davem@davemloft.net>
10969
10970         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10971
10972 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10973
10974         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10975         of x86_64 when setting libc_cv_slibdir, libdir and
10976         libc_cv_localedir.
10977         * sysdeps/unix/sysv/linux/configure: Regenerated.
10978
10979 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10980
10981         * manual/lang.texi (Old Varargs): Remove section.
10982         (How Variadic): Update menu.
10983         (va_start): Do not mention varargs.h.
10984
10985 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10986             Joseph Myers  <joseph@codesourcery.com>
10987
10988         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10989         link test.
10990         * configure: Regenerated.
10991
10992 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10993
10994         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10995         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10996         conformtest.pl
10997
10998 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10999
11000         * NOTES: Remove.
11001         * Makefile (files-for-dist): Remove NOTES.
11002         (NOTES): Remove rule.
11003         * README: Don't refer to NOTES.
11004         * manual/creature.texi: Don't include macros.texi.
11005         * manual/intro.texi (creature.texi): Remove comment referring to
11006         NOTES.
11007
11008         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11009         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11010         * configure: Regenerated.
11011         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11012         LIBC_TRY_CC_OPTION.
11013         (libc_cv_as_i686): Likewise.
11014         (libc_cv_cc_avx): Likewise.
11015         (libc_cv_cc_sse2avx): Likewise.
11016         (libc_cv_cc_fma4): Likewise.
11017         (libc_cv_cc_novzeroupper): Likewise.
11018         * sysdeps/i386/configure: Regenerated.
11019
11020         [BZ #13883]
11021         * sysdeps/i386/fpu/s_cexp.S: Remove.
11022         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11023         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11024         * math/libm-test.inc (cexp_test): Add more tests.
11025         * sysdeps/i386/fpu/libm-test-ulps: Update.
11026         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11027
11028 2012-03-21  Allan McRae  <allan@archlinux.org>
11029
11030         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11031
11032 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11033
11034         [BZ #13871]
11035         * math/w_exp2.c: Do not include <float.h>.
11036         (o_threshold, u_threshold): Remove.
11037         (__exp2): Calculate result before checking finiteness and calling
11038         __kernel_standard.
11039         * math/w_exp2f.c: Likewise.
11040         * math/w_exp2l.c: Likewise.
11041         * math/libm-test.inc (exp2_test): Require overflow exception for
11042         1e6 input.
11043
11044         [BZ #3866]
11045         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11046         range of signed 64-bit integers before using fistpll.  Remove
11047         checks for whether integers fit in mantissa bits.
11048         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11049         the range of signed 32-bit integers before using fistpl.  Remove
11050         checks for whether integers fit in mantissa bits.
11051         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11052         (__ieee754_powl): Test for y outside the range of signed 64-bit
11053         integers before using fistpll.  Reduce 64-bit values to 63-bit
11054         ones as needed.
11055         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11056         divide-by-zero is raised for zero to large negative powers.
11057         * sysdeps/x86_64/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         * math/libm-test.inc (pow_test): Add more tests.
11062
11063 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11064
11065         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11066         <stdio-common/_itoa.h>.
11067         * debug/segfault.c: Likewise.
11068         * elf/dl-cache.c: Likewise.
11069         * elf/dl-minimal.c: Likewise.
11070         * elf/dl-misc.c: Likewise.
11071         * elf/dl-sysdep.c: Likewise.
11072         * elf/dl-version.c: Likewise.
11073         * elf/rtld.c: Likewise.
11074         * hurd/hurdsock.c: Likewise.
11075         * hurd/lookup-retry.c: Likewise.
11076         * malloc/malloc.c: Likewise.
11077         * malloc/mtrace.c: Likewise.
11078         * nscd/nscd_getgr_r.c: Likewise.
11079         * nscd/nscd_getpw_r.c: Likewise.
11080         * nscd/nscd_getserv_r.c: Likewise.
11081         * posix/getopt_init.c: Likewise.
11082         * posix/wordexp.c: Likewise.
11083         * stdio-common/_itoa.c: Likewise.
11084         * stdio-common/printf_fphex.c: Likewise.
11085         * stdio-common/vfprintf.c: Likewise.
11086         * string/_strerror.c: Likewise.
11087         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11088         * sysdeps/i386/i686/hp-timing.h: Likewise.
11089         * sysdeps/mach/_strerror.c: Likewise.
11090         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11091         * sysdeps/mach/hurd/sethostid.c: Likewise.
11092         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11093         * sysdeps/mach/xpg-strerror.c: Likewise.
11094         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11095         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11096         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11097         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11098         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11099         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11100         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11101         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11102         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11103         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11104         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11105         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11106         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11107         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11108         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11109         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11110         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11111         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11112         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11113         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11114         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11115
11116         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11117
11118         * stdio-common/_itoa.h: Moved to ...
11119         * sysdeps/generic/_itoa.h: Here.
11120
11121         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11122
11123         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11124         instead of "_itoa.h" and "_itowa.h".
11125         * stdio-common/vfprintf.: Likewise.
11126
11127 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11128
11129         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11130         <bits/wordsize.h>.
11131         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11132         (__signbit): Likwise.
11133         (llrintf): Likwise.
11134         (llrint): Likwise.
11135
11136 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11137
11138         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11139         __WORDSIZE != 64.
11140
11141 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11142
11143         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11144         OVERFLOW_EXCEPTION_OK.
11145         * math/libm-test.inc ("Philosophy"): Update comment about
11146         exception testing.
11147         (OVERFLOW_EXCEPTION): Define.
11148         (OVERFLOW_EXCEPTION_OK): Likewise.
11149         (INVALID_EXCEPTION_OK): Renumber.
11150         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11151         (IGNORE_ZERO_INF_SIGN): Likewise.
11152         (test_exceptions): Handle FE_OVERFLOW.
11153         (exp10_test): Expect overflow exceptions.
11154         (exp2_test): Likewise.
11155         (expm1_test): Likewise.
11156         (nextafter_test): Likewise.
11157         (pow_test): Likewise.
11158         (scalbn_test): Likewise.
11159         (scalbln_test): Likewise.
11160
11161 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11162
11163         * sysdeps/x86_64/bits/atomic.h
11164         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11165         64bit integer.
11166         (atomic_exchange_acq): Likewise.
11167         (__arch_exchange_and_add_body): Likewise.
11168         (__arch_add_body): Likewise.
11169         (atomic_add_negative): Likewise.
11170         (atomic_add_zero): Likewise.
11171
11172 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11173
11174         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11175         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11176
11177 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11178
11179         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11180         Check __x86_64__ instead of __WORDSIZE.
11181
11182 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11183
11184         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11185
11186 2012-03-19  David S. Miller  <davem@davemloft.net>
11187
11188         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11189
11190         * sysdeps/sparc/fpu/fenv_private.h: New file.
11191         * sysdeps/sparc/fpu/math_private.h: Use it.
11192         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11193         Remove.
11194         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11195         (libc_feholdexcept_setroundl): Remove.
11196         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11197         Remove.
11198         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11199         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11200
11201 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11202
11203         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11204         int64_t instead of long int.
11205         (INSERT_WORDS64): Likwise.
11206
11207 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11208
11209         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11210         _Unwind_GetCFA return to _Unwind_Ptr first.
11211
11212 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11213
11214         [BZ #13629]
11215         * math/s_clog.c: Include <float.h>.
11216         (__clog): Scale large or subnormal inputs.
11217         * math/s_clogf.c: Likewise.
11218         * math/s_clogl.c: Likewise.
11219         * math/s_clog10.c: Include <float.h>.
11220         (M_LOG10_2): Define.
11221         (__clog10): Scale large or subnormal inputs.
11222         * math/s_clog10f.c: Likewise.
11223         * math/s_clog10l.c: Likewise.
11224         * math/libm-test.inc (clog_test): Add more tests.
11225         (clog10_test): Likewise.
11226         * sysdeps/i386/fpu/libm-test-ulps: Update.
11227         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11228
11229         [BZ #11451]
11230         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11231         x and y.
11232         * math/libm-test.inc (atan2_test): Add another test.
11233
11234         * Makerules (common-objdir-compile): Remove.
11235         * sysdeps/unix/Makefile (config-generated): Do not add
11236         $(unix-generated) to variable.
11237         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11238         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11239         Remove rule.
11240         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11241         Likewise.
11242         [generic bits/local_lim.h] (before-compile): Do not append to
11243         variable.
11244         [generic bits/local_lim.h] (common-generated): Likewise.
11245         [generic sys/param.h] (before-compile): Do not append to variable.
11246         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11247         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11248         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11249         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11250         include.
11251         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11252         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11253         [generic sys/param.h] ($(addprefix
11254         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11255         [generic sys/param.h] (common-generated): Do not append to
11256         variable.
11257         [generic sys/param.h] (sysdep_headers): Likewise.
11258         [generic bits/errno.h] (before-compile): Do not append to
11259         variable.
11260         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11261         rule.
11262         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11263         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11264         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11265         [generic bits/errno.h] (common-generated): Do not append to
11266         variable.
11267         [generic bits/ioctls.h] (before-compile): Do not append to
11268         variable.
11269         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11270         rule.
11271         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11272         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11273         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11274         rule.
11275         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11276         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11277         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11278         [generic bits/ioctls.h] (common-generated): Do not append to
11279         variable.
11280         [generic sys/syscall.h] (syscall.h): Remove variable.
11281         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11282         rule.
11283         [generic sys/syscall.h] (before-compile): Do not append to
11284         variable.
11285         [generic sys/syscall.h] (common-generated): Likewise.
11286         * sysdeps/unix/errnos-tmpl.c: Remove file.
11287         * sysdeps/unix/errnos.awk: Likewise.
11288         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11289         * sysdeps/unix/ioctls.awk: Likewise.
11290         * sysdeps/unix/mk-local_lim.c: Likewise.
11291         * sysdeps/unix/snarf-ioctls: Likewise.
11292
11293 2012-03-19  Richard Henderson  <rth@twiddle.net>
11294
11295         * sysdeps/i386/fpu/fenv_private.h: New file.
11296         * sysdeps/i386/fpu/math_private.h: Use it.
11297         (math_opt_barrier, math_force_eval): Remove.
11298         (libc_feholdexcept_setround_53bit): Remove.
11299         (libc_feupdateenv_53bit): Remove.
11300         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11301         (math_opt_barrier, math_force_eval): Remove.
11302         (libc_feholdexcept): Remove.
11303         (libc_feholdexcept_setround): Remove.
11304         (libc_fetestexcept, libc_fesetenv): Remove.
11305         (libc_feupdateenv_test): Remove.
11306         (libc_feupdateenv, libc_feholdsetround): Remove.
11307         (libc_feresetround): Remove.
11308
11309         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
11310         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
11311
11312         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
11313         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
11314         (libc_feupdateenv_testl): New.
11315         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
11316         (libc_feupdateenv_testf): New.
11317         (libc_feupdateenv): Use libc_feupdateenv_test.
11318         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
11319         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
11320
11321         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
11322         (libc_feholdsetroundf, libc_feholdsetroundl): New.
11323         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
11324         (libc_feresetround_noex): New.
11325         (libc_feresetround_noexf): New.
11326         (libc_feresetround_noexl): New.
11327         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
11328         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
11329         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
11330         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
11331         SET_RESTORE_ROUND.
11332         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11333         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
11334         (__cos): Likewise.
11335         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
11336         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11337         SET_RESTORE_ROUND_NOEX.
11338         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
11339         SET_RESTORE_ROUND_NOEXF.
11340         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
11341         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
11342         (libc_feholdsetroundf): New.
11343         (libc_feresetround, libc_feresetroundf): New.
11344
11345         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
11346         (libc_feholdexcept_setround_53bit): Convert from macro to function.
11347         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
11348
11349         * sysdeps/generic/math_private.h: Include <fenv.h>.
11350         (default_libc_feholdexcept): New.
11351         (default_libc_feholdexcept_setround): New.
11352         (default_libc_fesetenv, default_libc_feupdateenv): New.
11353         (libc_feholdexcept): Only define if undefined.
11354         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
11355         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
11356         (libc_feholdexcept_setroundl): Likewise.
11357         (libc_feholdexcept_setround_53bit): Likewise.
11358         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
11359         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
11360         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
11361         (libc_feupdateenv_53bit): Likewise.
11362         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
11363         (libc_feholdexcept): Convert from macro to inline function.
11364         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
11365         (libc_fesetenv, libc_feupdateenv): Likewise.
11366
11367         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
11368         not previously defined.
11369         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
11370         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
11371         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
11372         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
11373         * sysdeps/ieee754/flt-32/math_private.h: New file.
11374         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
11375         math_private.h below SET_FLOAT_WORD.
11376         (__isnan, __isinf_ns, __finite): Remove.
11377         (__isnanf, __isinf_nsf, __finitef): Remove.
11378
11379 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
11380
11381         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11382
11383 2012-03-17  David S. Miller  <davem@davemloft.net>
11384
11385         [BZ #6471]
11386         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
11387         for 2.16.
11388
11389 2012-03-16  David S. Miller  <davem@davemloft.net>
11390
11391         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
11392         warnings.
11393
11394         [BZ #6471]
11395         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
11396         properly.
11397         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
11398         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
11399         sysdep_routines when subdir is sysvipc.
11400         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
11401         __getshmlba helper.
11402
11403         * sysdeps/sparc/fpu/libm-test/ulps: Update.
11404
11405 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11406
11407         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
11408         [__LP64__].
11409
11410 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11411
11412         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
11413         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
11414         (__lround): Renamed to ...
11415         (__llround): This.  Replace long int with long long int.
11416         Define lround functions as aliases of llround functions.
11417         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
11418
11419 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11420
11421         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
11422         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
11423         adresses to uintptr_t.  Replace "long int" and "unsigned long
11424         int" with "greg_t" on va_arg.
11425
11426 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11427
11428         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
11429         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
11430
11431         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
11432         Move e_machine check before EI_CLASS check.  Handle x32
11433         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
11434         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
11435         SKIP_EM_IA_64 and include
11436         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
11437
11438         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
11439         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
11440         (add_system_dir): New macro.
11441
11442         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
11443         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
11444
11445 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11446
11447         [BZ #2551]
11448         [BZ #2552]
11449         [BZ #2553]
11450         [BZ #2554]
11451         [BZ #2562]
11452         [BZ #2563]
11453         [BZ #2565]
11454         [BZ #2566]
11455         [BZ #2576]
11456         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
11457         (y0): Likewise.
11458         * math/w_j0f.c (j0f): Likewise.
11459         (y0f): Likewise.
11460         * math/w_j0l.c (__j0l): Likewise.
11461         (__y0l): Likewise.
11462         * math/w_j1.c (j1): Likewise.
11463         (y1): Likewise.
11464         * math/w_j1f.c (j1f): Likewise.
11465         (y1f): Likewise.
11466         * math/w_j1l.c (__j1l): Likewise.
11467         (__y1l): Likewise.
11468         * math/w_jn.c (jn): Likewise.
11469         (yn): Likewise.
11470         * math/w_jnf.c (jnf): Likewise.
11471         (ynf): Likewise.
11472         * math/w_jnl.c (__jnl): Likewise.
11473         (__ynl): Likewise.
11474         * math/libm-test.inc (j0_test): Add more tests.
11475         (j1_test): Likewise.
11476         (jn_test): Likewise.  Add trailing semicolon to existing test.
11477         (y0_test): Likewise.
11478         (y1_test): Likewise.
11479         * sysdeps/i386/fpu/libm-test-ulps: Update.
11480         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11481
11482         [BZ #13851]
11483         [BZ #13854]
11484         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11485         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
11486         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
11487         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
11488         (__tanl): Set errno for infinite argument.
11489         * sysdeps/i386/fpu/mptan.c: Remove.
11490         * sysdeps/i386/fpu/s_tan.S: Likewise.
11491         * sysdeps/i386/fpu/s_tanl.S: Likewise.
11492         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
11493         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
11494         * math/libm-test.inc (tan_test): Add more tests and enable more
11495         tests for double and long double.
11496         * sysdeps/i386/fpu/libm-test-ulps: Update.
11497         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11498
11499 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11500
11501         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
11502         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
11503
11504 2012-03-16  Roland McGrath  <roland@hack.frob.com>
11505
11506         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
11507         * configure.in: Use it for both main tree and add-ons.
11508         * configure: Regenerated.
11509
11510 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11511
11512         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
11513
11514 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11515
11516         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
11517         in comment.
11518
11519         [BZ #13851]
11520         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
11521         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
11522         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11523         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
11524         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
11525         infinite argument.
11526         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
11527         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
11528         != 0 for prec == 2.
11529         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
11530         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
11531         * sysdeps/i386/fpu/s_cosl.S: Likewise.
11532         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
11533         * sysdeps/i386/fpu/s_sinl.S: Likewise.
11534         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
11535         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
11536         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
11537         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
11538         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
11539         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
11540         * math/libm-test.inc (cos_test): Add more tests and enable more
11541         tests for long double.
11542         (sin_test): Likewise.
11543         (sincos_test): Likewise.
11544         * sysdeps/i386/fpu/libm-test-ulps: Update.
11545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11546
11547 2012-03-16  David S. Miller  <davem@davemloft.net>
11548
11549         * sysdeps/sparc/fpu/math_private.h: New file.
11550
11551 2012-03-15  David S. Miller  <davem@davemloft.net>
11552
11553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
11554         file.
11555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
11556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
11557         file.
11558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
11559         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
11560         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
11561         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
11562         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
11563         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
11564         sysdep routines.
11565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11566
11567         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
11568         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
11569
11570         * sysdeps/sparc/sparc-ifunc.h: New file.
11571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
11572         sparc-ifunc.h
11573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
11574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
11575         Likewise.
11576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
11577         Likewise.
11578         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
11579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
11580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
11581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
11582         Likewise.
11583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
11584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
11585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
11586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
11587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
11588         Likewise.
11589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
11590         Likewise.
11591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
11592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
11593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
11594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
11595         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
11596         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
11597         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
11598         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
11599         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
11600         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
11601         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
11602         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
11603         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
11604         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
11605         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
11606         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
11607         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
11608         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
11609         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
11610         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
11611         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
11612         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
11613         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
11614         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
11615
11616 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11617
11618         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
11619         scaling.
11620         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11621
11622 2012-03-15  Andreas Jaeger  <aj@suse.de>
11623
11624         [BZ #13852]
11625         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
11626         ieee754/flt-32 implementation for sin, cos and sincos.
11627         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
11628         * sysdeps/i386/fpu/s_cosf.S: Likewise.
11629         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
11630         * sysdeps/i386/fpu/s_sinf.S: Likewise.
11631         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
11632         ieee754/flt-32 implementation for tan.
11633
11634         * math/libm-test.inc (cos_test): Enable some large input tests for
11635         float as well
11636         (sin_test): Likewise.
11637         (sincos_test): Likewise.
11638         (tan_test): Add tests for large input.
11639
11640         * sysdeps/i386/fpu/libm-test-ulps: Update.
11641
11642 2012-03-15  Andreas Jaeger  <aj@suse.de>
11643
11644         [BZ #13658]
11645         * math/libm-test.inc (cos_test): Add more test cases.
11646         (sin_test): Likewise.
11647         (sincos_test): Likewise.
11648
11649 2012-03-15  Andreas Jaeger  <aj@suse.de>
11650
11651         [BZ #13837]
11652         * math/libm-test.inc (cos_test): Add a test case for large input
11653         value.
11654         (sin_test): Likewise.
11655         (sincos_test): Likewise.
11656
11657 2012-03-15  Andreas Jaeger  <aj@suse.de>,
11658         Joseph Myers  <joseph@codesourcery.com>
11659
11660         [BZ #13658]
11661         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
11662         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
11663         * sysdeps/i386/fpu/branred.c: Likewise.
11664         * sysdeps/i386/fpu/dosincos.c: Likewise.
11665         * sysdeps/i386/fpu/mpa.c: Likewise.
11666         * sysdeps/i386/fpu/s_cos.S: Likewise.
11667         * sysdeps/i386/fpu/s_sin.S: Likewise.
11668         * sysdeps/i386/fpu/s_sincos.S: Likewise.
11669         * sysdeps/i386/fpu/sincos32.c: Likewise.
11670
11671         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
11672         Define.
11673         (libc_feupdateenv_53bit): Define.
11674         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
11675         Define.
11676         (libc_feupdateenv_53bit): Define.
11677
11678         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
11679         53 bit (without extend i386 double precision).
11680
11681         * math/libm-test.inc (sincos_test): Add tests for large input.
11682         (sin): Likewise.
11683         (cos): Likewise.
11684
11685         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11686
11687 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11688
11689         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11690
11691 2012-03-15  David S. Miller  <davem@davemloft.net>
11692
11693         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11694         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11695         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11696         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11697         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11698         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11699         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11700         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11701         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11702         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11703         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11704         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11705         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11706         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11707         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11708         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11709         file.
11710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11712         file.
11713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11715         file.
11716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11718         file.
11719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11720         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11721         fmin/fmax sysdep routines.
11722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11723
11724 2012-03-14  David S. Miller  <davem@davemloft.net>
11725
11726         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11727         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11728         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11729         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11730         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11731         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11732         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11733         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11734         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11735         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11736         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11737         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11738         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11739         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11740         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11741         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11742         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11743         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11744         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11745         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11746         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11747         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11748         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11749         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11750         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11751         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11752         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11753         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11754         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11755         routines.
11756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11757         file.
11758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11760         file.
11761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11763         file.
11764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11766         file.
11767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11769         file.
11770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11772         file.
11773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11774         file.
11775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11776         file.
11777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11778         file.
11779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11780         New file.
11781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11782         file.
11783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11784         file.
11785         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11787         file.
11788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11789         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11790         file.
11791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11793         file.
11794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11796         VIS3 routines.
11797
11798         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11799         New file.
11800
11801         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11802
11803         * sysdeps/sparc/configure.in: New file.
11804         * sysdeps/sparc/configure: Generate.
11805         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11806         * configure: Regenerate.
11807         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11808         * config.make.in (have-as-vis3): New.
11809         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11810         available use -Av9d instead of -Av9a.
11811         * sysdeps/sparc/sparc64/Makefile: Likewise.
11812         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11814         New file.
11815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11816         file.
11817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11818         New file.
11819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11820         file.
11821         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11822         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11823         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11824         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11825         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11826
11827         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11828         fzeros/fnegs to load 0x80000000 into a float register instead of
11829         using the stack.
11830         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11831
11832 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11833
11834         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11835         bits/syscall.h.
11836         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11837         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11838         ($(inst_includedir)/bits/syscall.h): Remove rule.
11839         ($(objpfx)bits/syscall.d): Include instead of
11840         $(objpfx)syscall-list.d.
11841         (generated): Change syscall-list.h and syscall-list.d to
11842         bits/syscall.h and bits/syscall.d.
11843
11844 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11845
11846         [BZ #13846]
11847         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11848
11849 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11850
11851         [BZ #13841]
11852         * math/s_csqrt.c: Include <float.h>.
11853         (__csqrt): Scale large or subnormal inputs.
11854         * math/s_csqrtf.c: Likewise.
11855         * math/s_csqrtl.c: Likewise.
11856         * math/libm-test.inc (csqrt_test): Add more tests.
11857         * sysdeps/i386/fpu/libm-test-ulps: Update.
11858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11859
11860         [BZ #13840]
11861         * math/libm-test.inc (hypot_test): Add more tests.
11862
11863 2012-03-13  David S. Miller  <davem@davemloft.net>
11864
11865         [BZ #13840]
11866         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11867         double-precision for the calculation instead of scaling.
11868
11869 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11870
11871         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11872         manipulate bits before adding and subtracting TWO52[sx].
11873         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11874         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11875         Likewise.
11876         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11877
11878 2012-03-13  David S. Miller  <davem@davemloft.net>
11879
11880         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11881         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11882         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11883         rtld-global-offsets.h
11884         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11885
11886         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11887         large parameters.
11888
11889         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11890
11891         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11892         'err' in the ifdef scope in which it is actually used.
11893
11894         * nss/nss_db/db-init.c: Include string.h
11895
11896 2012-03-12  David S. Miller  <davem@davemloft.net>
11897
11898         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11899         masking out of the most significant byte of random value used.
11900         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11901         Fix coding style in previous change.
11902
11903         * sysdeps/unix/sysv/linux/kernel-features.h
11904         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11905         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11906         expression.
11907         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11908         later.
11909
11910 2012-03-11  David S. Miller  <davem@davemloft.net>
11911
11912         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11913         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11914         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11915         for 'resultvar' otherwise things get truncated on 64-bit.
11916
11917         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11918         Fix masking out of the most significant byte of random value used.
11919
11920         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11921
11922 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11923
11924         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11925
11926 2012-03-09  David S. Miller  <davem@davemloft.net>
11927
11928         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11929         variables with appropriate CPP guards.
11930         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11931         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11932         on resulting framesize and the management of the outregs buffer for pltexit.
11933         Preserve floating point return values across _dl_call_pltexit call.
11934         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11935         framesize and the management of the outregs buffer for pltexit.
11936         Preserve floating point return values across _dl_call_pltexit
11937         call.
11938         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11939         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11940         (print_exit): Fix format string for return register value.
11941
11942 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11943
11944         * sunrpc/Makefile (others): Add rpcgen.
11945         ($(objpfx)rpcgen): Remove special build rule and dependency on
11946         libc.
11947         * sunrpc/rpcgen.c: New file.
11948
11949 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11950
11951         [BZ #13673]
11952         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11953         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11954         * sysdeps/i386/crti.S: Likewise.
11955         * sysdeps/i386/crtn.S: Likewise.
11956         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11957         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11958         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11959         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11960         * sysdeps/sh/crti.S: Likewise.
11961         * sysdeps/sh/crtn.S: Likewise.
11962         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11963
11964         [BZ #13673]
11965         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11966         with URL.
11967         * locale/programs/locfile-kw.gperf: Likewise.
11968         * locale/programs/charmap-kw.h: Regenerated.
11969         * locale/programs/locfile-kw.h: Likewise.
11970
11971         [BZ #13673]
11972         * intl/plural.y: Replace FSF snail mail address with URL.
11973         * intl/plural.c: Regenerated.
11974
11975 2012-03-09  Richard Henderson  <rth@twiddle.net>
11976
11977         * include/math_private.h: Remove file.
11978         * math/math_private.h: Move file ...
11979         * sysdeps/generic/math_private.h: ... here.
11980
11981         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11982         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11983         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11984
11985         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11986         and <math_private.h>.
11987         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11988         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11989         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11990         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11991         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11992         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11993         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11994         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11995         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11996         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11997         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11998         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11999         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12000         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12001         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12002         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12003         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12004         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12005         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12006         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12007         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12008         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12009         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12010         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12011         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12012         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12013         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12014         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12015         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12016         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12017         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12018         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12019         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12020         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12021         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12022         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12023         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12024         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12025         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12026         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12027         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12028         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12029         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12030         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12031         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12032         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12033         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12034         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12035         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12036         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12037         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12038         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12039         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12040         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12041         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12042         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12043         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12044         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12045         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12046         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12047         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12048         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12049         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12050         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12051         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12052         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12053         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12054         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12055         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12056         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12057         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12058         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12059         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12060         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12061         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12062         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12063         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12064         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12065         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12066         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12067         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12068         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12069         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12070         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12071         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12072         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12073         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12074         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12075         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12076         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12077         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12078         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12079         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12080         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12081         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12082         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12083         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12084         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12085         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12086         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12087         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12088         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12089         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12090         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12091         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12092         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12093         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12094         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12095         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12096         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12097         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12098         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12099         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12100         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12101         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12102         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12103         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12104         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12105         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12106         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12107         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12108         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12109         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12110         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12111         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12112         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12113         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12114         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12115         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12116         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12117         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12118         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12119         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12120         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12121         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12122         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12123         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12124         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12125         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12126         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12127         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12128         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12129         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12130         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12131         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12132         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12133         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12134         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12135         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12136         * sysdeps/ieee754/k_standard.c: Likewise.
12137         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12138         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12139         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12140         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12141         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12142         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12143         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12144         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12145         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12146         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12147         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12148         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12149         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12150         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12151         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12152         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12153         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12154         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12155         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12156         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12157         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12158         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12159         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12160         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12161         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12162         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12163         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12164         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12165         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12166         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12167         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12168         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12169         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12170         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12171         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12172         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12173         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12174         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12175         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12176         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12177         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12178         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12179         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12180         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12181         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12182         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12183         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12184         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12185         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12186         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12187         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12188         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12189         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12190         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12191         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12192         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12193         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12194         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12195         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12196         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12197         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12198         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12199         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12200         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12201         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12202         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12203         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12204         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12205         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12206         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12207         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12208         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12209         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12210         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12211         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12212         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12213         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12214         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12215         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12216         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12217         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12218         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12219         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12220         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12221         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12222         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12223         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12224         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12225         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12226         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12227         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12228         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12229         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12230         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12231         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12232         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12233         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12234         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12235         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12236         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12237         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12238         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12239         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12240         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12241         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12242         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12243         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12244         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12245         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12246         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12247         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12248         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12249         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12250         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12251         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12252         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12253         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12254         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12255         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12256         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12257         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12258         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12259         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12260         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12261         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12262         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12263         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12264         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12265         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12266         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12267         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12268         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12269         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12270         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12271         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12272         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12273         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12274         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12275         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12276         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12277         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12278         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12279         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12280         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12281         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12282         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12283         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12284         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12285         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12286         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12287         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12288         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12289         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12290         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12291         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12292         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12293         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12294         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12295         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12296         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12297         * sysdeps/ieee754/s_lib_version.c: Likewise.
12298         * sysdeps/ieee754/s_matherr.c: Likewise.
12299         * sysdeps/ieee754/s_signgam.c: Likewise.
12300         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12301         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12302         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12303         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12304         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12305         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12306         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
12307         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
12308         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
12309         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12310         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12311         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12312         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12313         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12314         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
12315         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
12316         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
12317         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
12318         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
12319         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12320         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12321
12322 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12323
12324         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
12325         * sunrpc/rpc_main.c: Likewise.
12326         * sunrpc/rpc_svcout.c: Likewise.
12327
12328 2012-03-09  David S. Miller  <davem@davemloft.net>
12329
12330         * include/math_private.h: New file.
12331
12332 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12333
12334         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
12335         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
12336         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
12337         from <bits/socket_type.h>.
12338         (enum __socket_type): Don't define here.
12339         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
12340         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12341         bits/socket_type.h.
12342
12343         [BZ #13566]
12344         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
12345         checking __USE_GNU.
12346
12347         * Makerules ($(inst_includedir)/%.h): New rule.
12348         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
12349         (install-others): Remove variable setting.
12350         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
12351
12352 2012-03-08  Richard Henderson  <rth@twiddle.net>
12353
12354         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
12355         from macro to inline function; merge with the
12356         !__LIBC_INTERNAL_MATH_INLINES version.
12357         (__ieee754_sqrtf): Likewise.
12358
12359         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
12360         to inline function.
12361         (__rintf, __floor, __floorf): Likewise.
12362
12363         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
12364         macro to inline function.
12365         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
12366
12367         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
12368         not <math/math_private.h>.
12369
12370 2012-03-08  David S. Miller  <davem@davemloft.net>
12371
12372         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
12373         copyright year.
12374         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12375
12376 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
12377
12378         * resolv/gai_misc.c (handle_requests): Fix struct timespec
12379         normalization.
12380         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
12381         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
12382
12383 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
12384
12385         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
12386         be defined individually, they must be defined as a block.  Define
12387         S for printing a string instead of hidint the different by using a
12388         macro for adding the 'l'.
12389         * stdio-common/tst-fphex-wide.c: Adjust.
12390
12391 2012-03-07  Marek Polacek  <polacek@redhat.com>
12392
12393         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
12394
12395 2012-03-08  Marek Polacek  <polacek@redhat.com>
12396
12397         [BZ #13806]
12398         * stdio-common/Makefile (tests): Add tst-fphex-wide.
12399         * stdio-common/tst-fphex.c: Define a few macros to make the
12400         test reusable.  Use them.
12401         * stdio-common/tst-fphex-wide.c: New file.
12402
12403 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
12404
12405         [BZ #6911]
12406         * manual/macros.texi (gnusystems): New macro.
12407         (nongnusystems): Likewise.
12408         (gnulinuxhurdsystems): Likewise.
12409         (gnuhurdsystems): Likewise..
12410         (gnulinuxsystems): Likewise.
12411         * manual/charset.texi: Use new macros or @theglibc{} to refer to
12412         variants of the GNU system, not "GNU system".
12413         * manual/conf.texi: Likewise.
12414         * manual/errno.texi: Likewise.  Update example of errno macro
12415         expansion.
12416         * manual/filesys.texi: Likewise.
12417         (getumask): Document as specific to GNU/Hurd.
12418         * manual/install.texi: Likewise.  Reword some references to
12419         GNU/Linux.
12420         * manual/intro.texi: Likewise.
12421         * manual/io.texi: Likewise.
12422         (File Name Portability): Detail which constraints are inapplicable
12423         to all GNU systems and which are only inapplicable to GNU/Hurd.
12424         * manual/job.texi: Likewise.
12425         * manual/llio.texi: Likewise.
12426         (O_NOCTTY): Document as present on GNU/Linux.
12427         * manual/maint.texi: Likewise.
12428         * manual/memory.texi: Likewise.
12429         * manual/pattern.texi: Likewise.
12430         * manual/pipe.texi: Likewise.
12431         * manual/process.texi: Likewise.
12432         * manual/resource.texi: Likewise.
12433         (RUSAGE_CHILDREN): Remove statement about specifying a particular
12434         child on GNU/Hurd.
12435         * manual/setjmp.texi: Likewise.
12436         * manual/signal.texi: Likewise.
12437         * manual/startup.texi: Likewise.
12438         * manual/stdio.texi: Likewise.
12439         * manual/terminal.texi: Likewise.
12440         (ONLCR): Document as POSIX.
12441         (OXTABS): Document availability on GNU/Linux as XTABS.
12442         (ONOEOT): Document availability separately from other bits.
12443         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
12444         * manual/time.texi: Likewise.
12445         * manual/users.texi: Likewise.
12446         * INSTALL: Regenerated.
12447         * sysdeps/gnu/errlist.c: Regenerated.
12448
12449         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
12450         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
12451         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
12452         puts.
12453         * configure: Regenerated.
12454
12455 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
12456
12457         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
12458         default includes instead of AC_HEADER_CHECK.
12459         * sysdeps/i386/configure: Regenerated.
12460
12461         [BZ #10716]
12462         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
12463         * math/s_cacoshf.c (__cacoshf): Likewise.
12464         * math/s_cacoshl.c (__cacoshl): Likewise.
12465         * math/s_casinh.c (__casinh): Set signs of result from argument.
12466         * math/s_casinhf.c (__casinhf): Likewise.
12467         * math/s_casinhl.c (__casinhl): Likewise.
12468         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
12469         (casinh_test): Add more tests.
12470         * sysdeps/i386/fpu/libm-test-ulps: Update.
12471         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12472
12473 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
12474
12475         * po/zh_TW.po: Update from translation team.
12476
12477         * login/Makefile (distribute): Remove variable.
12478         * catgets/Makefile: Likewise.
12479         * mach/Makefile: Likewise.
12480         * malloc/Makefile: Likewise.
12481         * misc/Makefile: Likewise.
12482         * iconv/Makefile: Likewise.
12483         * nscd/Makefile: Likewise.
12484         * hurd/Makefile: Likewise.
12485         * manual/Makefile: Likewise.
12486         * locale/Makefile: Likewise.
12487         * intl/Makefile: Likewise.
12488         * conform/Makefile: Likewise.
12489         * nss/Makefile: Likewise.
12490         * time/Makefile: Likewise.
12491         * soft-fp/Makefile: Likewise.
12492         * dirent/Makefile: Likewise.
12493         * gmon/Makefile: Likewise.
12494         * po/Makefile: Likewise.
12495         * rt/Makefile: Likewise.
12496         * socket/Makefile: Likewise.
12497         * math/Makefile: Likewise.
12498         * signal/Makefile: Likewise.
12499         * debug/Makefile: Likewise.
12500         * elf/Makefile: Likewise.
12501         * timezone/Makefile: Likewise.
12502         * stdlib/Makefile: Likewise.
12503         * iconvdata/Makefile: Likewise.
12504         * sunrpc/Makefile: Likewise.
12505         * io/Makefile: Likewise.
12506         * argp/Makefile: Likewise.
12507         * inet/Makefile: Likewise.
12508         * hesiod/Makefile: Likewise.
12509         * grp/Makefile: Likewise.
12510         * csu/Makefile: Likewise.
12511         * wctype/Makefile: Likewise.
12512         * crypt/Makefile: Likewise.
12513         * libio/Makefile: Likewise.
12514         * string/Makefile: Likewise.
12515         * nis/Makefile: Likewise.
12516         * resolv/Makefile: Likewise.
12517         * stdio-common/Makefile: Likewise.
12518         * wcsmbs/Makefile: Likewise.
12519         * dlfcn/Makefile: Likewise.
12520         * posix/Makefile: Likewise.
12521
12522         [BZ #6959]
12523         * timezone/Makefile: Don't install timezone files, just the programs
12524         and scripts.
12525
12526 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
12527
12528         * nss/databases.def: Add missing gshadow entry.
12529
12530         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
12531
12532 2012-03-06  Marek Polacek  <polacek@redhat.com>
12533
12534         [BZ #13726]
12535         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
12536         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
12537         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
12538         * stdio-common/tst-long-dbl-fphex.c: New file.
12539
12540 2012-03-06  David S. Miller  <davem@davemloft.net>
12541
12542         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12543         (set_obp_int): New function.
12544         (get_obp_int): New function.
12545         (__get_clockfreq_via_dev_openprom): Likewise.
12546         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
12547         Avoid unused variable warnings on 'val' and use builtin_expect.
12548         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
12549         __builtin_expect.
12550         (INLINE_CLONE_SYSCALL): Likewise.
12551
12552 2012-03-05  David S. Miller  <davem@davemloft.net>
12553
12554         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12555
12556 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
12557
12558         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12559
12560         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
12561         only for |x| >= 40.
12562         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12563
12564 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12565
12566         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
12567         Replace gettimeofday with __vdso_gettimeofday.
12568
12569         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12570         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
12571         __vdso_clock_gettime and __vdso_getcpu.
12572
12573         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
12574         time with __vdso_time.
12575
12576 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12577
12578         * manual/lang.texi (size_t): Note types to which size_t may be
12579         equivalent with the GNU C Library, but do not describe when
12580         differences between them are significant.
12581
12582 2012-03-05  Andreas Jaeger  <aj@suse.de>
12583
12584         * sysdeps/i386/fpu/libm-test-ulps: Update.
12585
12586 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12587
12588         [BZ #3976]
12589         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
12590         (__ieee754_pow): Save and restore rounding mode and use
12591         round-to-nearest for main computations.
12592         * math/libm-test.inc (pow_test_tonearest): New function.
12593         (pow_test_towardzero): Likewise.
12594         (pow_test_downward): Likewise.
12595         (pow_test_upward): Likewise.
12596         (main): Call the new functions.
12597         * sysdeps/i386/fpu/libm-test-ulps: Update.
12598         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12599
12600         [BZ #3976]
12601         * math/libm-test.inc (cosh_test_tonearest): New function.
12602         (cosh_test_towardzero): Likewise.
12603         (cosh_test_downward): Likewise.
12604         (cosh_test_upward): Likewise.
12605         (sinh_test_tonearest): Likewise.
12606         (sinh_test_towardzero): Likewise.
12607         (sinh_test_downward): Likewise.
12608         (sinh_test_upward): Likewise.
12609         (main): Call the new functions.
12610         * sysdeps/i386/fpu/libm-test-ulps: Update.
12611         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12612
12613 2012-03-05  Tom de Vries  <tom@codesourcery.com>
12614
12615         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
12616         default stack guard is set in last bytes.
12617         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
12618
12619 2012-03-05  Kees Cook  <keescook@chromium.org>
12620
12621         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
12622
12623         [BZ #13656]
12624         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
12625         possibly allocate from heap instead of stack.
12626         * stdio-common/bug-vfprintf-nargs.c: New file.
12627         * stdio-common/Makefile (tests): Add nargs overflow test.
12628
12629 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
12630
12631         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12632
12633 2012-03-03  Marek Polacek  <polacek@redhat.com>
12634
12635         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
12636         * math/math_private.h: Likewise.
12637         * stdlib/tst-strtod.c: Likewise.
12638         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12639         * sysdeps/x86_64/bits/atomic.h: Likewise.
12640
12641 2012-03-02  David S. Miller  <davem@davemloft.net>
12642
12643         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
12644         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
12645         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
12646         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
12647         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
12648         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
12649         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
12650         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
12651
12652 2012-03-02  Roland McGrath  <roland@hack.frob.com>
12653
12654         [BZ #13792]
12655         * manual/examples/README: New file, says the example source files
12656         can be used under GPL>=2.
12657         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
12658         line containing just "*/".
12659         * manual/examples/add.c: Add copyright header (GPL>=2).
12660         * manual/examples/argp-ex1.c: Likewise.
12661         * manual/examples/argp-ex2.c: Likewise.
12662         * manual/examples/argp-ex3.c: Likewise.
12663         * manual/examples/argp-ex4.c: Likewise.
12664         * manual/examples/atexit.c: Likewise.
12665         * manual/examples/db.c: Likewise.
12666         * manual/examples/dir.c: Likewise.
12667         * manual/examples/dir2.c: Likewise.
12668         * manual/examples/execinfo.c: Likewise.
12669         * manual/examples/filecli.c: Likewise.
12670         * manual/examples/filesrv.c: Likewise.
12671         * manual/examples/fmtmsgexpl.c: Likewise.
12672         * manual/examples/genpass.c: Likewise.
12673         * manual/examples/inetcli.c: Likewise.
12674         * manual/examples/inetsrv.c: Likewise.
12675         * manual/examples/isockad.c: Likewise.
12676         * manual/examples/longopt.c: Likewise.
12677         * manual/examples/memopen.c: Likewise.
12678         * manual/examples/memstrm.c: Likewise.
12679         * manual/examples/mkfsock.c: Likewise.
12680         * manual/examples/mkisock.c: Likewise.
12681         * manual/examples/mygetpass.c: Likewise.
12682         * manual/examples/pipe.c: Likewise.
12683         * manual/examples/popen.c: Likewise.
12684         * manual/examples/rprintf.c: Likewise.
12685         * manual/examples/search.c: Likewise.
12686         * manual/examples/select.c: Likewise.
12687         * manual/examples/setjmp.c: Likewise.
12688         * manual/examples/sigh1.c: Likewise.
12689         * manual/examples/sigusr.c: Likewise.
12690         * manual/examples/stpcpy.c: Likewise.
12691         * manual/examples/strdupa.c: Likewise.
12692         * manual/examples/strftim.c: Likewise.
12693         * manual/examples/strncat.c: Likewise.
12694         * manual/examples/subopt.c: Likewise.
12695         * manual/examples/swapcontext.c: Likewise.
12696         * manual/examples/termios.c: Likewise.
12697         * manual/examples/testopt.c: Likewise.
12698         * manual/examples/testpass.c: Likewise.
12699         * manual/examples/timeval_subtract.c: Likewise.
12700
12701         [BZ #13792]
12702         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12703         function to ...
12704         * manual/timeval_subtract.c.texi: ... here, new file.
12705
12706 2012-03-02  David S. Miller  <davem@davemloft.net>
12707
12708         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12709
12710 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12711
12712         [BZ #3976]
12713         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12714         (__sin): Save and restore rounding mode and use round-to-nearest
12715         for all computations.
12716         (__cos): Save and restore rounding mode and use round-to-nearest
12717         for all computations.
12718         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12719         <fenv.h>.
12720         (tan): Save and restore rounding mode and use round-to-nearest for
12721         all computations.
12722         * math/libm-test.inc (cos_test_tonearest): New function.
12723         (cos_test_towardzero): Likewise.
12724         (cos_test_downward): Likewise.
12725         (cos_test_upward): Likewise.
12726         (sin_test_tonearest): Likewise.
12727         (sin_test_towardzero): Likewise.
12728         (sin_test_downward): Likewise.
12729         (sin_test_upward): Likewise.
12730         (tan_test_tonearest): Likewise.
12731         (tan_test_towardzero): Likewise.
12732         (tan_test_downward): Likewise.
12733         (tan_test_upward): Likewise.
12734         (main): Call the new functions.
12735         * sysdeps/i386/fpu/libm-test-ulps: Update.
12736         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12737
12738         [BZ #10135]
12739         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12740         small n, then large n, before computing and testing k+n.
12741         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12742         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12743         Likewise.
12744         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12745         Likewise.
12746         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12747         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12748         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12749         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12750         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12751         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12752         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12753         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12754         * math/libm-test.inc (scalbn_test): Add more tests.
12755         (scalbln_test): Likewise.
12756
12757         * manual/filesys.texi (mode_t): Describe constraints on size and
12758         signedness, not exact equivalence to a particular type.
12759         (ino_t): Likewise.
12760         (ino64_t): Likewise.
12761         (dev_t): Likewise.
12762         (nlink_t): Likewise.
12763         (blkcnt_t): Likewise.
12764         (blkcnt64_t): Likewise.
12765         * manual/llio.texi (off_t): Likewise.
12766
12767         [BZ #3976]
12768         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12769         (__ieee754_exp): Save and restore rounding mode and use
12770         round-to-nearest for all computations.
12771         * math/libm-test.inc (exp_test_tonearest): New function.
12772         (exp_test_towardzero): Likewise.
12773         (exp_test_downward): Likewise.
12774         (exp_test_upward): Likewise.
12775         (main): Call the new functions.
12776         * sysdeps/i386/fpu/libm-test-ulps: Update.
12777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12778
12779 2012-03-01  Chris Demetriou  <cgd@google.com>
12780
12781         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12782         have predictable order.
12783
12784 2012-03-01  David S. Miller  <davem@davemloft.net>
12785
12786         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12787
12788         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12789         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12790         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12791         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12792
12793         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12794         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12795         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12796         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12797         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12798         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12799         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12800         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12801         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12802
12803         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12804
12805         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12806         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12807         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12808
12809         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12810         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12811         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12812         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12813         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12814         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12815         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12816         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12817         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12818         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12819         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12820         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12821         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12822         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12823         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12824         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12825         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12826         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12827         * sysdeps/sparc/elf/configure: Regenerated.
12828
12829 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12830
12831         * configure.in (AS, LD): Require binutils 2.20 or later.
12832         * configure: Regenerated.
12833         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12834         as required minimum version.
12835         * INSTALL: Regenerated.
12836
12837         [BZ #2541]
12838         [BZ #4108]
12839         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12840         before squaring exponent.
12841         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12842         bottom long double and 27 bits of top long double before squaring
12843         exponent.
12844         * math/libm-test.inc (erfc_test): Add more tests.
12845         * sysdeps/i386/fpu/libm-test-ulps: Update.
12846         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12848
12849 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12850
12851         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12852         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12853         containing bit-fields.
12854         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12855         * soft-fp/single.h (_FP_UNION_S): Likewise.
12856         * soft-fp/double.h (_FP_UNION_D): Likewise.
12857
12858 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12859
12860         [BZ #13786]
12861         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12862         not include ../strcmp.S.
12863         [USE_AS_STRNCASECMP_L]: Likewise.
12864         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12865         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12866         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12867         (__strncasecmp_l_ia32): Define as alias to
12868         __strncasecmp_l_nonascii.
12869
12870         [BZ #5794]
12871         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12872         * sysdeps/i386/fpu/libm-test-ulps: Update.
12873         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12874
12875         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12876         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12877
12878 2012-02-29  Jeff Law  <law@redhat.com>
12879
12880         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12881         out of bounds read.
12882
12883 2012-02-29  Marek Polacek  <polacek@redhat.com>
12884
12885         [BZ #13706]
12886         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12887         * elf/Makefile: Add rules to run tst-unused-dep.out.
12888
12889 2012-02-28  David S. Miller  <davem@davemloft.net>
12890
12891         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12892         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12893         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12894         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12895         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12896         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12897
12898 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12899
12900         * math/libm-test.inc (llround_test): Move one test from
12901         lround_test.  Use TEST_f_L in moved test.
12902         (lround_test): Move misplaced test to llround_test.  Add testcase
12903         from bug 2561.
12904
12905 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12906
12907         * sysdeps/x86_64/fpu/e_expf.S: New file.
12908         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12909
12910 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12911
12912         [BZ #13637]
12913         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12914         of remain_len that may cause incomplete multi-byte character and
12915         false match.
12916         * posix/bug-regex33.c: New file.
12917         * posix/Makefile (tests): Add bug-regex33.
12918
12919 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12920
12921         * manual/macros.texi: New file.
12922         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12923         * manual/libc.texinfo: Include macros.texi.
12924         * manual/creatute.texi: Likewise.
12925         * manual/install.texi: Likewise.
12926         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12927         @glibcadj{} in references to the GNU C Library.
12928         * manual/charset.texi: Likewise.
12929         * manual/conf.texi: Likewise.
12930         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12931         when not using those macros.
12932         * manual/creature.texi: Likewise.
12933         * manual/crypt.texi: Likewise.
12934         * manual/errno.texi: Likewise.
12935         * manual/filesys.texi: Likewise.
12936         * manual/header.texi: Likewise.
12937         * manual/install.texi: Likewise.
12938         * manual/intro.texi: Likewise.
12939         * manual/io.texi: Likewise.
12940         * manual/job.texi: Likewise.
12941         * manual/lang.texi: Likewise.
12942         * manual/libc.texiinfo: Likewise.
12943         * manual/llio.texi: Likewise.
12944         * manual/locale.texi: Likewise.
12945         * manual/maint.texi: Likewise.
12946         * manual/math.texi: Likewise.
12947         * manual/memory.texi: Likewise.
12948         * manual/message.texi: Likewise.
12949         * manual/nss.texi: Likewise.
12950         * manual/pattern.texi: Likewise.
12951         * manual/process.texi: Likewise.
12952         * manual/resource.texi: Likewise.
12953         * manual/search.texi: Likewise.
12954         * manual/setjmp.texi: Likewise.
12955         * manual/signal.texi: Likewise.
12956         * manual/socket.texi: Likewise.
12957         * manual/startup.texi: Likewise.
12958         * manual/stdio.texi: Likewise.
12959         * manual/string.texi: Likewise.
12960         * manual/sysinfo.texi: Likewise.
12961         * manual/syslog.texi: Likewise.
12962         * manual/terminal.texi: Likewise.
12963         * manual/time.texi: Likewise.
12964         * manual/users.texi: Likewise.
12965         * INSTALL: Regenerated.
12966         * NOTES: Regenerated.
12967         * sysdeps/gnu/errlist.c: Regenerated.
12968
12969 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12970
12971         * include/dirent.h: Include <dirstream.h> before
12972         <dirent/dirent.h>.
12973
12974 2012-02-28  David S. Miller  <davem@davemloft.net>
12975
12976         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12977         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12978         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12979         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12980
12981 2012-02-27  David S. Miller  <davem@davemloft.net>
12982
12983         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12984         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12985         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12986         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12987
12988         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12989         frame pointer instead of stack pointer relative arg slot.
12990         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12991         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12992         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12993
12994 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12995
12996         [BZ #3992]
12997         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12998
12999 2012-02-27  David S. Miller  <davem@davemloft.net>
13000
13001         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13002         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13003         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13004         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13005         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13006         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13007         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13008         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13009
13010 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13011
13012         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13013         later.  Allow versions 5-9.
13014         * configure: Regenerated.
13015         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13016         required minimum version and 4.6 as recommended version.  Do not
13017         mention bugs in GCC 2.7 and 2.8.
13018         * INSTALL: Regenerated.
13019
13020 2012-02-27  David S. Miller  <davem@davemloft.net>
13021
13022         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13023         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13024         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13025         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13026         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13027         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13028         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13029         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13030
13031         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13032         manipulate bits before adding and subtracting TWO112[sx].
13033         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13034
13035 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13036
13037         [BZ #13775]
13038         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13039         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13040         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13041         being in POSIX, because they are in 1003.1-2008.
13042
13043         * rt/tst-aio.c: Include <fcntl.h>.
13044         * rt/tst-aio7.c: Likewise.
13045         * rt/tst-aio64.c: Likewise.
13046
13047         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13048
13049 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13050
13051         * manual/install.texi (--with-headers): Describe headers as
13052         interface headers, not private headers.
13053         (Specific advice for GNU/Linux systems): Describe use of headers
13054         from "make headers_install", not private headers from older
13055         kernels.
13056         * INSTALL: Regenerated.
13057         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13058         Change to 2.6.19.
13059         * sysdeps/unix/sysv/linux/configure: Regenerated.
13060
13061         * manual/llio.texi (fclean): Remove documentation.
13062
13063         * manual/Makefile (libc-texi-generated): New variable.  Include
13064         version.texi.
13065         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13066         $(libc-texi-generated), not duplicated list of files.
13067         (version.texi, stamp-version): New rules.
13068         (realclean): Remove $(libc-texi-generated), not individual files
13069         from that list.  Do not remove dir-add.texinfo.
13070         * manual/libc.texinfo: Comment out uses of edition numbers and
13071         references to printed manual.  Remove last-updated dates.
13072         (EDITION): Comment out.
13073         (ISBN): Likewise.
13074         (VERSION, UPDATED): Remove.
13075         (version.texi): Include.
13076
13077 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13078
13079         * sysdeps/posix/spawni.c: Include <signal.h>.
13080         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13081         * sysdeps/pthread/aio_fsync.c: Likewise.
13082
13083 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13084
13085         * conform/Makefile (tests): Run only when not cross-compiling and
13086         when fast-check is not defined.
13087
13088         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13089         * conform/data/limits.h-data: Fixes for POSIX2008.
13090         * conform/run-conformtest.sh: Run all tests.
13091         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13092         headers.
13093         * include/bits/dlfcn.h: Likewise.
13094         * include/langinfo.h: Likewise.
13095         * include/monetary.h: Likewise.
13096         * include/sys/poll.h: Likewise.
13097
13098         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13099         for __USE_GNU.
13100         * posix/spawn.h: Define __need_sigset_t.
13101         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13102         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13103         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13104         to get sigevent_t only.
13105         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13106         only for __USE_GNU.
13107         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13108         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13109         process_vm_writev only for __USE_GNU.
13110         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13111
13112         * conform/Makefile: For now ignore errors from run-conformtest.
13113         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13114         POSIX to avoid namespace pollution.  Don't prepend headers.
13115         * conform/data/aio.h-data: Fixes for POSIX testing.
13116         * conform/data/fcntl.h-data: Likewise.
13117         * conform/data/glob.h-data: Likewise.
13118         * conform/data/grp.h-data: Likewise.
13119         * conform/data/pthread.h-data: Likewise.
13120         * conform/data/pwd.h-data: Likewise.
13121         * conform/data/signal.h-data: Likewise.
13122         * conform/data/spawn.h-data: Likewise.
13123         * conform/data/stdio.h-data: Likewise.
13124         * conform/data/stdlib.h-data: Likewise.
13125         * conform/data/stropts.h-data: Likewise.
13126         * conform/data/sys/mman.h-data: Likewise.
13127         * conform/data/sys/stat.h-data: Likewise.
13128         * conform/data/sys/types.h-data: Likewise.
13129         * conform/data/sys/wait.h-data: Likewise.
13130         * conform/data/time.h-data: Likewise.
13131         * conform/data/unistd.h-data: Likewise.
13132         * conform/data/utime.h-data: Likewise.
13133
13134         * io/sys/stat.h: fchmod was always in POSIX.
13135         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13136         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13137         * rt/aio.h: Define __need_timespec before including <time.h>.
13138         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13139         struct.  Add forward declaration of pthread_attr_t and use it in
13140         sigevent.
13141         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13142         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13143         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13144         always remove CLK_TCK definition.
13145
13146 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13147
13148         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13149
13150 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13151
13152         * conform/run-conformtest.sh: New file.
13153         * conform/Makefile: Run run-conformtest for tests.
13154         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13155         support.
13156
13157         * conform/data/uchar.h-data: New file.
13158         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13159         * conform/data/arpa/inet.h-data: Likewise.
13160         * conform/data/assert.h-data: Likewise.
13161         * conform/data/complex.h-data: Likewise.
13162         * conform/data/cpio.h-data: Likewise.
13163         * conform/data/ctype.h-data: Likewise.
13164         * conform/data/dirent.h-data: Likewise.
13165         * conform/data/dlfcn.h-data: Likewise.
13166         * conform/data/errno.h-data: Likewise.
13167         * conform/data/fcntl.h-data: Likewise.
13168         * conform/data/float.h-data: Likewise.
13169         * conform/data/fmtmsg.h-data: Likewise.
13170         * conform/data/fnmatch.h-data: Likewise.
13171         * conform/data/ftw.h-data: Likewise.
13172         * conform/data/glob.h-data: Likewise.
13173         * conform/data/grp.h-data: Likewise.
13174         * conform/data/iconv.h-data: Likewise.
13175         * conform/data/inttypes.h-data: Likewise.
13176         * conform/data/langinfo.h-data: Likewise.
13177         * conform/data/libgen.h-data: Likewise.
13178         * conform/data/limits.h-data: Likewise.
13179         * conform/data/locale.h-data: Likewise.
13180         * conform/data/math.h-data: Likewise.
13181         * conform/data/monetary.h-data: Likewise.
13182         * conform/data/mqueue.h-data: Likewise.
13183         * conform/data/ndbm.h-data: Likewise.
13184         * conform/data/net/if.h-data: Likewise.
13185         * conform/data/netdb.h-data: Likewise.
13186         * conform/data/netinet/in.h-data: Likewise.
13187         * conform/data/nl_types.h-data: Likewise.
13188         * conform/data/poll.h-data: Likewise.
13189         * conform/data/pthread.h-data: Likewise.
13190         * conform/data/pwd.h-data: Likewise.
13191         * conform/data/regex.h-data: Likewise.
13192         * conform/data/sched.h-data: Likewise.
13193         * conform/data/search.h-data: Likewise.
13194         * conform/data/semaphore.h-data: Likewise.
13195         * conform/data/setjmp.h-data: Likewise.
13196         * conform/data/signal.h-data: Likewise.
13197         * conform/data/spawn.h-data: Likewise.
13198         * conform/data/stdarg.h-data: Likewise.
13199         * conform/data/stdio.h-data: Likewise.
13200         * conform/data/stdlib.h-data: Likewise.
13201         * conform/data/string.h-data: Likewise.
13202         * conform/data/strings.h-data: Likewise.
13203         * conform/data/stropts.h-data: Likewise.
13204         * conform/data/sys/ipc.h-data: Likewise.
13205         * conform/data/sys/mman.h-data: Likewise.
13206         * conform/data/sys/msg.h-data: Likewise.
13207         * conform/data/sys/resource.h-data: Likewise.
13208         * conform/data/sys/select.h-data: Likewise.
13209         * conform/data/sys/sem.h-data: Likewise.
13210         * conform/data/sys/shm.h-data: Likewise.
13211         * conform/data/sys/socket.h-data: Likewise.
13212         * conform/data/sys/stat.h-data: Likewise.
13213         * conform/data/sys/statvfs.h-data: Likewise.
13214         * conform/data/sys/time.h-data: Likewise.
13215         * conform/data/sys/timeb.h-data: Likewise.
13216         * conform/data/sys/times.h-data: Likewise.
13217         * conform/data/sys/types.h-data: Likewise.
13218         * conform/data/sys/uio.h-data: Likewise.
13219         * conform/data/sys/un.h-data: Likewise.
13220         * conform/data/sys/utsname.h-data: Likewise.
13221         * conform/data/sys/wait.h-data: Likewise.
13222         * conform/data/syslog.h-data: Likewise.
13223         * conform/data/tar.h-data: Likewise.
13224         * conform/data/termios.h-data: Likewise.
13225         * conform/data/utime.h-data: Likewise.
13226         * conform/data/utmpx.h-data: Likewise.
13227         * conform/data/varargs.h-data: Likewise.
13228         * conform/data/wchar.h-data: Likewise.
13229         * conform/data/wctype.h-data: Likewise.
13230         * conform/data/wordexp.h-data: Likewise.
13231
13232         * include/stropts.h: New file.
13233         * include/uchar.h: New file.
13234         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13235         * include/assert.h: Likewise.
13236         * include/ctype.h: Likewise.
13237         * include/dirent.h: Likewise.
13238         * include/dlfcn.h: Likewise.
13239         * include/fcntl.h: Likewise.
13240         * include/fnmatch.h: Likewise.
13241         * include/glob.h: Likewise.
13242         * include/grp.h: Likewise.
13243         * include/libio.h: Likewise.
13244         * include/locale.h: Likewise.
13245         * include/math.h: Likewise.
13246         * include/net/if.h: Likewise.
13247         * include/netdb.h: Likewise.
13248         * include/netinet/in.h: Likewise.
13249         * include/pthread.h: Likewise.
13250         * include/pwd.h: Likewise.
13251         * include/regex.h: Likewise.
13252         * include/sched.h: Likewise.
13253         * include/search.h: Likewise.
13254         * include/setjmp.h: Likewise.
13255         * include/signal.h: Likewise.
13256         * include/stdio.h: Likewise.
13257         * include/stdlib.h: Likewise.
13258         * include/string.h: Likewise.
13259         * include/sys/cdefs.h: Likewise.
13260         * include/sys/mman.h: Likewise.
13261         * include/sys/msg.h: Likewise.
13262         * include/sys/resource.h: Likewise.
13263         * include/sys/select.h: Likewise.
13264         * include/sys/socket.h: Likewise.
13265         * include/sys/stat.h: Likewise.
13266         * include/sys/statvfs.h: Likewise.
13267         * include/sys/time.h: Likewise.
13268         * include/sys/times.h: Likewise.
13269         * include/sys/uio.h: Likewise.
13270         * include/sys/utsname.h: Likewise.
13271         * include/sys/wait.h: Likewise.
13272         * include/termios.h: Likewise.
13273         * include/time.h: Likewise.
13274         * include/ulimit.h: Likewise.
13275         * include/unistd.h: Likewise.
13276         * include/utime.h: Likewise.
13277         * include/wchar.h: Likewise.
13278         * include/wctype.h: Likewise.
13279         * include/wordexp.h: Likewise.
13280
13281         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13282
13283         * time/time.h: TIME_UTC must be a macro.
13284         Make timespec_get available for ISO C11 only as well.
13285
13286 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13287
13288         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13289         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13290
13291 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13292
13293         * configure.in: Use -o not -a in test for unsupported multi-arch.
13294
13295 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13296
13297         * manual/texinfo.tex: Update to version 2012-01-19.16.
13298
13299 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13300
13301         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
13302
13303 2012-02-24  Roland McGrath  <roland@hack.frob.com>
13304
13305         [BZ #13738]
13306         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
13307         * manual/fdl-1.3.texi: New file.
13308         * manual/fdl-1.1.texi: File removed.
13309
13310         [BZ #13738]
13311         * manual/libc.texinfo (FDL_VERSION): New @set.
13312         Use it for mention of FDL in cover text.
13313         (Documentation License): Use it in @include file name.
13314
13315 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13316             Roland McGrath  <roland@hack.frob.com>
13317
13318         [BZ #5461]
13319         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
13320         not LONG_LONG_MAX and LONG_LONG_MIN.
13321         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
13322         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
13323         name.
13324         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
13325
13326 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13327
13328         [BZ #2547]
13329         [BZ #11365]
13330         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
13331         manipulate bits before adding and subtracting TWO23[sx].
13332         * math/libm-test.inc (nearbyint_test): Add more tests.
13333
13334 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13335
13336         [BZ #2548]
13337         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
13338         bits before adding and subtracting TWO23[sx].
13339         * math/libm-test.inc (rint_test): Add more tests.
13340         (rint_test_tonearest): Likewise.
13341         (rint_test_towardzero): Likewise.
13342         (rint_test_downward): Likewise.
13343         (rint_test_upward: Likewise.
13344
13345 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13346
13347         [BZ #10110]
13348         * include/stdc-predef.h: New file.  Extracted from features.h.
13349         * include/features.h: Include stdc-predef.h.
13350         * Makefile (headers): Add stdc-predef.h.
13351         * CONFORMANCE (Compiler limitations): Update.
13352
13353 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13354
13355         * manual/libc.texinfo (VERSION, UPDATED): Revert.
13356
13357 2012-02-21  David S. Miller  <davem@davemloft.net>
13358
13359         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
13360         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13361
13362 2012-02-20  David S. Miller  <davem@davemloft.net>
13363
13364         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
13365         using a normal save/restore sequence, rather than allocating a
13366         dummy stack frame just to store a frame pointer and restore.
13367         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13368
13369 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13370
13371         * manual/install.texi: Fix stray word in line-wrapped comment.
13372
13373 2012-02-20  David S. Miller  <davem@davemloft.net>
13374
13375         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
13376         both binutils and gcc support GOTDATA.
13377
13378         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
13379         "rd %pc" in the PIC register setup sequences.
13380
13381         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
13382         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
13383         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13384         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
13385         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13386         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13387         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13388         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13389         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
13390         (SYSCALL_ERROR_HANDLER): Likewise.
13391         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13392         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13393         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
13394         (SYSCALL_ERROR_HANDLER): Likewise.
13395
13396         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
13397         (HAVE_GCC_GOTDATA): New.
13398         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
13399         relocation support in both binutils and gcc.
13400         * sysdeps/sparc/elf/configure: Regenerate.
13401
13402         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
13403         * sysdeps/sparc/sparc32/elf/configure: Delete.
13404         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
13405         * sysdeps/sparc/sparc64/elf/configure: Delete.
13406         * sysdeps/sparc/elf/configure.in: New file.
13407         * sysdeps/sparc/elf/configure: Generate.
13408
13409         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
13410         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
13411         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13412         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
13413         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
13414
13415 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13416
13417         * manual/install.texi: Do not mention specific glibc version
13418         numbers.
13419         * manual/libc.texinfo (VERSION, UPDATED): Update.
13420         (@copying): Use @copyright{} and range of years.
13421
13422 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13423
13424         [BZ #13695]
13425         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
13426         [crti.S not in sysdirs] (generated): Do not append.
13427         [crti.S not in sysdirs] (omit-deps): Likewise.
13428         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
13429         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
13430         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
13431         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
13432         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
13433         Likewise.
13434         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
13435         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
13436         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
13437         * csu/defs.awk: Remove file.
13438         * sysdeps/generic/initfini.c: Likewise.
13439         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
13440         variable.
13441         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
13442         Likewise.
13443
13444 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13445
13446         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
13447         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
13448         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
13449         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
13450         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13451         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
13452         <bits/epoll.h>.
13453         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
13454         (__EPOLL_PACKED): Define to empty if not defined by
13455         <bits/epoll.h>.
13456         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
13457         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13458         bits/epoll.h.
13459
13460 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13461
13462         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
13463         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
13464         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
13465         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
13466         <bits/timerfd.h>.
13467         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
13468         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13469         bits/timerfd.h.
13470
13471 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13472
13473         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
13474         in C locale.
13475         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13476         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
13477         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
13478         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13479
13480 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
13481
13482         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13483         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13484
13485 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
13486
13487         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
13488         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
13489         defined.
13490         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
13491         Likewise.
13492         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
13493         entry for 2.16.
13494
13495 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
13496
13497         * math/w_acos.c: Use non-signaling floating-point comparisons.
13498         * math/w_acosf.c: Likewise.
13499         * math/w_acosh.c: Likewise.
13500         * math/w_acoshf.c: Likewise.
13501         * math/w_acoshl.c: Likewise.
13502         * math/w_acosl.c: Likewise.
13503         * math/w_asin.c: Likewise.
13504         * math/w_asinf.c: Likewise.
13505         * math/w_asinl.c: Likewise.
13506         * math/w_atanh.c: Likewise.
13507         * math/w_atanhf.c: Likewise.
13508         * math/w_atanhl.c: Likewise.
13509         * math/w_exp2.c: Likewise.
13510         * math/w_exp2f.c: Likewise.
13511         * math/w_exp2l.c: Likewise.
13512         * math/w_j0.c: Likewise.
13513         * math/w_j0f.c: Likewise.
13514         * math/w_j0l.c: Likewise.
13515         * math/w_j1.c: Likewise.
13516         * math/w_j1f.c: Likewise.
13517         * math/w_j1l.c: Likewise.
13518         * math/w_jn.c: Likewise.
13519         * math/w_jnf.c: Likewise.
13520         * math/w_log.c: Likewise.
13521         * math/w_log10.c: Likewise.
13522         * math/w_log10f.c: Likewise.
13523         * math/w_log10l.c: Likewise.
13524         * math/w_log2.c: Likewise.
13525         * math/w_log2f.c: Likewise.
13526         * math/w_log2l.c: Likewise.
13527         * math/w_logf.c: Likewise.
13528         * math/w_logl.c: Likewise.
13529         * math/w_sqrt.c: Likewise.
13530         * math/w_sqrtf.c: Likewise.
13531         * math/w_sqrtl.c: Likewise.
13532         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13533         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
13534         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13535         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13536         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13537
13538 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13539
13540         [BZ #9739]
13541         * manual/string.texi (strnlen): Use correct parameter name in
13542         equivalent expression.
13543
13544 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13545
13546         [BZ #11174]
13547         * manual/users.texi (seteuid): Consistently use neweuid for
13548         argument name.
13549
13550 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13551
13552         [BZ #13704]
13553         * manual/nss.texi (Services in the NSS configuration): Correct
13554         list of services in example configuration file.
13555
13556 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
13557
13558         [BZ #11322]
13559         * manual/arith.texi: Remove statements about negative zero
13560         behaving identically to zero.
13561
13562 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13563
13564         [BZ #5993]
13565         * manual/install.texi: Do not document upgrading from libc5.
13566
13567 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13568
13569         [BZ #4596]
13570         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
13571
13572 2012-02-18  David S. Miller  <davem@davemloft.net>
13573
13574         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
13575         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
13576         %o7 across the call.
13577         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
13578         instead.
13579         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
13580         SETUP_PIC_REG_LEAF.
13581         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13582         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
13583         * sysdeps/sparc/crtn.S: Likewise.
13584
13585 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
13586
13587         * aout/Makefile: Remove.
13588
13589 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
13590
13591         [BZ #13058]
13592         * manual/examples/argp-ex1.c (main): Format definition in GNU
13593         style.
13594         * manual/examples/argp-ex2.c (main): Likewise.
13595         * manual/examples/argp-ex3.c (main): Likewise.
13596         * manual/examples/argp-ex4.c (main): Likewise.
13597         * manual/examples/longopt.c (main): Use new-style prototype
13598         definition.
13599         * manual/examples/strncat.c (main): Specify return type and use
13600         (void) for arguments.
13601         * manual/examples/subopt.c (main): Use char **argv argument.
13602
13603 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13604
13605         [BZ #5077]
13606         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
13607         rounding modes.
13608
13609 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
13610
13611         [BZ #6907]
13612         * manual/string.texi (strchr): Change when strchrnul is
13613         recommended.
13614
13615 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
13616
13617         [BZ #174]
13618         * manual/locale.texi (setlocale): Document LOCPATH.
13619
13620 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13621
13622         [BZ #10210]
13623         * manual/process.texi (execle): Move @dots{} before last argument.
13624
13625 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
13626
13627         [BZ #12047]
13628         * manual/charset.texi (Generic Charset Conversion): Fix typo
13629         (LC_TYPE -> LC_CTYPE).
13630
13631 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
13632
13633         [BZ #5805]
13634         * manual/arith.texi (scalbn): Use @var{} on parameter names.
13635         (scalbnf): Likewise.
13636         (scalbnl): Likewise.
13637         (scalbln): Likewise.
13638         (scalblnf): Likewise.
13639         (scalblnl): Likewise.
13640         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
13641         (vwarnx): Likewise.
13642         (verr): Likewise.
13643         (verrx): Likewise.
13644         * manual/filesys.texi (telldir): Use braces around return type.
13645         * manual/llio.texi (mmap): Add space after comma.
13646         (mmap64): Likewise.
13647         * manual/math.texi (jn): Use @var{} on parameter names.
13648         (jnf): Likewise.
13649         (jnl): Likewise.
13650         (yn): Likewise.
13651         (ynf): Likewise.
13652         (ynl): Likewise.
13653         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
13654         line.
13655         * manual/resource.texi (ulimit): Use @dots{} instead of literal
13656         "...".
13657         (sched_get_priority_min): Remove semicolon on @deftypefun line.
13658         (sched_get_priority_max): Likewise.
13659         * manual/signal.texi (sigvec): Add space after comma.
13660         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
13661         names.
13662         (if_indextoname): Likewise.
13663         (if_freenameindex): Likewise.
13664         (sendto): Use ',' instead of '.' in prototype.
13665         * manual/startup.texi (syscall): Use @dots{} instead of literal
13666         "...".
13667         * manual/stdio.texi (__fpending): Separate initial words of
13668         paragraph from @deftypefun line.
13669         * manual/syslog.texi (syslog): Use @dots{} instead of literal
13670         "...".
13671         (vsyslog): Use @var{} on parameter names.
13672         * manual/terminal.texi (stty): Use @var{} on parameter names.
13673         * manual/users.texi (getutmp): Use @var{} on parameter names.
13674         (getutmpx): Likewise.
13675
13676 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13677
13678         [BZ #6884]
13679         * manual/stdio.texi (fopen): Fix typos in description of
13680         ",ccs=STRING".
13681
13682 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
13683
13684         [BZ #4026]
13685         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13686         get clock_id definition.
13687
13688 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13689
13690         [BZ #4822]
13691         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13692         (madvise): Cast every argument to void on its own.
13693
13694 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13695
13696         [BZ #9902]
13697         * manual/startup.texi (Exit Status): Fix typo.
13698
13699 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13700
13701         [BZ #10140]
13702         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13703         * manual/examples/argp-ex2.c: Likewise.
13704         * manual/examples/argp-ex3.c: Likewise.
13705
13706 2012-02-16  Richard Henderson  <rth@redhat.com>
13707
13708         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13709         * sysdeps/s390/s390-32/initfini.c: Remove.
13710         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13711         * sysdeps/s390/s390-64/initfini.c: Remove.
13712
13713 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13714
13715         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13716         compiler output for sysdeps/generic/initfini.c.
13717         * sysdeps/sh/elf/initfini.c: Remove file.
13718
13719 2012-02-16  David S. Miller  <davem@davemloft.net>
13720
13721         [BZ #11494]
13722         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13723
13724         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13725         * sysdeps/sparc/crti.S: New file.
13726         * sysdeps/sparc/crtn.S: New file.
13727         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13728         * sysdeps/sparc/sparc64/Makefile: Likewise.
13729
13730 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13731
13732         [BZ #3335]
13733         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13734
13735 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13736
13737         [BZ #4822]
13738         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13739
13740         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13741         (write, read, close): Likewise.
13742         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13743
13744 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13745
13746         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13747         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13748         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13749         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13750         <bits/signalfd.h>.
13751         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13752         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13753         bits/signalfd.h.
13754
13755 2012-02-14  Marek Polacek  <polacek@redhat.com>
13756
13757         * sysdeps/x86_64/crti.S: New file.
13758         * sysdeps/x86_64/crtn.S: New file.
13759         * sysdeps/x86_64/elf/initfini.c: Remove file.
13760
13761 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13762
13763         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13764         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13765         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13766         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13767         <bits/inotify.h>.
13768         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13769         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13770         bits/inotify.h.
13771
13772 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13773
13774         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13775         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13776         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13777         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13778         <bits/eventfd.h>.
13779         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13780         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13781         bits/eventfd.h.
13782
13783 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13784
13785         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13786         __feraiseexcept instead of feraiseexcept.
13787
13788         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13789         nanosleep invocations.
13790         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13791         strings, and add error checking for a nanosleep invocations.
13792
13793 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13794
13795         Replace FSF snail mail address with URLs, as per GNU coding standards.
13796         Most of the snail mail addresses were wrong anyway, and omitting
13797         them makes the source code easier to maintain.  Almost all of the
13798         changes are to license notices and to locale LC_IDENTIFICATION
13799         addresses, except for this one:
13800         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13801         not its snail mail address.
13802
13803 2012-02-09  Richard Henderson  <rth@twiddle.net>
13804
13805         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13806         of kernel-features.h.
13807
13808         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13809
13810 2012-02-08  Marek Polacek  <polacek@redhat.com>
13811
13812         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13813         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13814         * sysdeps/gnu/_G_config.h: Likewise.
13815         * sysdeps/generic/_G_config.h: Likewise.
13816
13817 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13818
13819         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13820         tests.
13821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13822
13823         * sysdeps/powerpc/powerpc32/crti.S: New file.
13824         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13825         * sysdeps/powerpc/powerpc64/crti.S: New file.
13826         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13827
13828         * Makeconfig (have-initfini): Don't set.
13829         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13830         * configure.in (nopic_initfini): Don't substitute.
13831         * config.h.in (HAVE_INITFINI): Don't #undef.
13832         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13833         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13834
13835 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13836
13837         Support crti.S and crtn.S provided directly by architectures.
13838         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13839         [crti.S in sysdirs] (omit-deps): Likewise.
13840         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13841         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13842         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13843         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13844         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13845         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13846         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13847         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13848         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13849         compiler output for sysdeps/generic/initfini.c.
13850         * sysdeps/i386/elf/Makefile: Remove file.
13851         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13852
13853 2012-02-07  Marek Polacek  <polacek@redhat.com>
13854
13855         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13856         * sysdeps/gnu/_G_config.h: Likewise.
13857         * sysdeps/mach/hurd/_G_config.h: Likewise.
13858
13859 2012-02-07  Marek Polacek  <polacek@redhat.com>
13860
13861         * math/Makefile (tests): Add tst-CMPLX2.
13862         * math/tst-CMPLX2.c: New file.
13863
13864 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13865
13866         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13867
13868         * math/libm-test.inc (jn_test): Add missing L suffix.
13869
13870 2012-02-06  Marek Polacek  <polacek@redhat.com>
13871
13872         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13873         * sysdeps/i386/fpu/e_powf.S: Likewise.
13874         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13875         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13876         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13877         * sysdeps/i386/fpu/e_pow.S: Likewise.
13878         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13879         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13880         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13881         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13882         * sysdeps/i386/fpu/e_log2.S: Likewise.
13883         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13884         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13885         * sysdeps/i386/fpu/e_powl.S: Likewise.
13886         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13887         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13888         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13889         * sysdeps/i386/fpu/e_logl.S: Likewise.
13890         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13891         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13892         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13893         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13894         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13895         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13896         * sysdeps/i386/fpu/e_log.S: Likewise.
13897         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13898         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13899         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13900         * sysdeps/i386/fpu/e_logf.S: Likewise.
13901         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13902         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13903         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13904         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13905         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13906         * sysdeps/i386/fpu/e_log10.S: Likewise.
13907         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13908         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13909         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13910         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13911         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13912         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13913         * sysdeps/i386/asm-syntax.h: Likewise.
13914         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13915         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13916         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13917         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13918         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13919         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13920         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13921         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13922         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13923         * sysdeps/powerpc/sysdep.h: Likewise.
13924         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13925         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13926
13927 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13928
13929         [BZ #411]
13930         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13931
13932 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13933
13934         * sysdeps/i386/sysdep.h: Include <features.h>.
13935         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13936         version.
13937
13938 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13939
13940         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13941         Define.
13942         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13943         LOAD_PIC_REG_STR.
13944
13945 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13946
13947         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13948         (SETUP_PIC_REG): Use GET_PC_THUNK.
13949         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13950         macro.
13951
13952 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13953
13954         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13955         for non-PIC compilation.
13956         (SETUP_PIC_REG): Add .p2align directive.
13957         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13958         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13959         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13960         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13961         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13962         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13963         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13964         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13965         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13966         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13967         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13968         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13969         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13970         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13971         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13972         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13973         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13974         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13975         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13976         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13977         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13978         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13979         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13980         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13981         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13982         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13983         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13984         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13985         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13986         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13987         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13988         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13989         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13990         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13991         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13992         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13993         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13994         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13995         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13996         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13997         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13998
13999 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14000
14001         * math/tst-CMPLX.c: Include <stdio.h>.
14002
14003 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14004
14005         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14006         float.
14007         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14008         * sysdeps/sparc/bits/mathdef.h: Likewise.
14009
14010 2012-01-31  Marek Polacek  <polacek@redhat.com>
14011
14012         * libio/libio.h: Don't define _PARAMS.
14013         * locale/programs/config.h: Don't define PARAMS.
14014         * stdlib/strtol_l.c: Likewise.
14015         (__strtol_l): Remove PARAMS from the prototype.
14016
14017 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14018
14019         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14020         names.  Just use the correct names.  Remove unnecessary wrapper
14021         functions.
14022         * malloc/arena.c: Likewise.
14023         * malloc/hooks.c: Likewise.
14024
14025         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14026         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14027         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14028
14029 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14030
14031         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14032         into tail calls.
14033         (update_get_addr): New function.
14034         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14035         GET_ADDR_MODULE parameter.
14036
14037 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14038
14039         * crypt/cert.c: Remove __STDC__ conditionals.
14040         * crypt/crypt-entry.c: Likewise.
14041         * crypt/crypt_util.c: Likewise.
14042         * libio/filedoalloc.c: Likewise.
14043         * libio/fileops.c: Likewise.
14044         * libio/genops.c: Likewise.
14045         * libio/iofclose.c: Likewise.
14046         * libio/iofdopen.c: Likewise.
14047         * libio/iofopen.c: Likewise.
14048         * libio/iofopen64.c: Likewise.
14049         * libio/iogetdelim.c: Likewise.
14050         * libio/iopopen.c: Likewise.
14051         * libio/obprintf.c: Likewise.
14052         * libio/oldfileops.c: Likewise.
14053         * libio/oldiofclose.c: Likewise.
14054         * libio/oldiofdopen.c: Likewise.
14055         * libio/oldiofopen.c: Likewise.
14056         * libio/oldiopopen.c: Likewise.
14057         * libio/wfiledoalloc.c: Likewise.
14058         * libio/wgenops.c: Likewise.
14059         * locale/programs/xmalloc.c: Likewise.
14060         * misc/syslog.c: Likewise.
14061         * stdio-common/xbug.c: Likewise.
14062         * string/memchr.c: Likewise.
14063         * string/memcmp.c: Likewise.
14064         * string/memrchr.c: Likewise.
14065         * string/rawmemchr.c: Likewise.
14066         * sysdeps/posix/getcwd.c: Likewise.
14067         * time/strftime_l.c: Likewise.
14068
14069 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14070
14071         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14072         * config.make.in (config-cflags-sse2avx): Define.
14073         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14074         Fix typo.
14075
14076 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14077
14078         * scripts/config.guess: Update from upstream config git repository.
14079         * scripts/config.sub: Likewise.
14080
14081 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14082
14083         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14084         (EM_NUM): Update.
14085         (R_TILEPRO_*, R_TILEGX_*): New macros.
14086
14087         * scripts/firstversions.awk: Fix bug in version range handling.
14088
14089         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14090
14091         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14092
14093         * include/sys/epoll.h: New file.
14094         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14095         libc_hidden_def.
14096
14097 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14098
14099         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14100         Avoid unnecessary __WORDSIZE == 64 test.
14101         (fmaxf): Use VEX format if possible.
14102         (fmax): Likewise.
14103         (fminf): Likewise.
14104         (fmin): Likewise.
14105
14106         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14107         * math/math_private.h: Remove libc_fegetround* and
14108         libc_fesetround*.
14109         * sysdeps/i386/configure.in: Check for -msse2avx.
14110         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14111         also if SSE2AVX is defined.
14112         Remove libc_fegetround* and libc_fesetround*.
14113         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14114         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14115         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14116         of HAS_YMM_USABLE.
14117         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14118         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14119         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14120         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14121         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14122
14123         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14124
14125 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14126
14127         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14128         size is not set.
14129         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14130
14131 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14132
14133         [BZ #13618]
14134         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14135         relocation.
14136         * Makeconfig (libm): Define.
14137         * elf/Makefile: Add rules to build and run tst-relsort1.
14138         * elf/tst-relsort1.c: New file.
14139         * elf/tst-relsort1mod1.c: New file.
14140         * elf/tst-relsort1mod2.c: New file.
14141
14142 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14143
14144         * math/s_ldexp.c: Remove __STDC__ conditionals.
14145         * math/s_ldexpf.c: Likewise.
14146         * math/s_ldexpl.c: Likewise.
14147         * math/s_nextafter.c: Likewise.
14148         * math/s_nexttowardf.c: Likewise.
14149         * math/s_significand.c: Likewise.
14150         * math/s_significandf.c: Likewise.
14151         * math/s_significandl.c: Likewise.
14152         * math/w_jnl.c: Likewise.
14153         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14154         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14155         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14156         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14157         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14158         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14159         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14160         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14161         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14162         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14163         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14164         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14165         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14166         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14167         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14168         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14169         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14170         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14171         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14172         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14173         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14174         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14175         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14176         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14177         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14178         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14179         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14180         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14181         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14182         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14183         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14184         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14185         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14186         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14187         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14188         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14189         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14190         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14191         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14192         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14193         * sysdeps/ieee754/k_standard.c: Likewise.
14194         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14195         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14196         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14197         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14198         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14199         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14200         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14201         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14202         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14203         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14204         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14205         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14206         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14207         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14208         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14209         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14210         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14211         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14212         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14213         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14214         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14215         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14216         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14217         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14218         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14219         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14220         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14221         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14222         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14223         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14224         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14225         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14226         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14227         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14228         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14229         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14230         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14231         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14232         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14233         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14234         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14235         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14236         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14237         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14238         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14239         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14240         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14241         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14242         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14243         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14244         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14245         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14246         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14247         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14248         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14249         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14250         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14251         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14252         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14253         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14254         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14255         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14256         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14257         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14258         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14259         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14260         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14261         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14262         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14263         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14264         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14265         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14266         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14267         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14268         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14269         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14270         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14271         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14272         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14273         * sysdeps/ieee754/s_matherr.c: Likewise.
14274         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14275         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14276         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14277         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14278
14279 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14280
14281         * crypt/md5.h: Remove __STDC__ conditionals.
14282         * libio/libioP.h: Likewise.
14283         * locale/programs/config.h: Likewise.
14284         * sysdeps/generic/sysdep.h: Likewise.
14285         * sysdeps/i386/asm-syntax.h: Likewise.
14286         * sysdeps/s390/asm-syntax.h: Likewise.
14287         * sysdeps/unix/sysdep.h: Likewise.
14288         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14290
14291 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14292
14293         * libio/libio.h: Remove __STDC__ conditionals.
14294         * malloc/obstack.h: Likewise.
14295         * math/complex.h: Likewise.
14296         * math/math.h: Likewise.
14297         * sysdeps/generic/_G_config.h: Likewise.
14298         * sysdeps/gnu/_G_config.h: Likewise.
14299         * sysdeps/mach/hurd/_G_config.h: Likewise.
14300         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14301         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14302         * sysdeps/sparc/bits/mathdef.h: Likewise.
14303
14304 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
14305
14306         [BZ #13583]
14307         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
14308         Clean up HAS_* macros.
14309         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
14310         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
14311         possible.
14312         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
14313         HAS_AVX.
14314         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14315         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14316         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14317         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14318         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14319
14320 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
14321
14322         * elf/tst-unique3.cc (gets): Remove declaration.
14323         * elf/tst-unique3lib.cc (gets): Likewise.
14324         * elf/tst-unique3lib2.cc (gets): Likewise.
14325         * elf/tst-unique4.cc (gets): Likewise.
14326
14327 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
14328
14329         * include/stdio.h: Add C++ protection.  Add gets declarations and
14330         definitions.
14331         * debug/tst-chk1.c: Don't declare gets here.
14332         * stdio-common/tst-gets.c: Likewise.
14333
14334 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14335
14336         * posix/glob: Remove directory.
14337
14338 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14339
14340         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
14341
14342 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
14343
14344         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
14345         of the non-standard EPFNOSUPPORT.
14346
14347 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14348
14349         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
14350         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
14351         ANYWHERE set to 1 only on KERN_NO_SPACE error.
14352
14353 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
14354
14355         * wcsmbs/uchar.h: Test __STDC_VERSION__.
14356
14357 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
14358
14359         * nscd/aicache.c (addhstaiX): Do not cache negative results of
14360         transient errors.
14361         * nscd/grpcache.c (cache_addgr): Likewise.
14362         * nscd/hstcache.c (cache_addhst): Likewise.
14363         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14364         * nscd/pwdcache.c (cache_addpw): Likewise.
14365         * nscd/servicescache.c (cache_addserv): Likewise.
14366
14367 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
14368
14369         * malloc/malloc.c: Various cleanups.
14370         * malloc/hooks.c: Likewise.
14371
14372         * stdlib/Makefile (tests): Add bug-fmtmsg1.
14373         * stdlib/bug-fmtmsg1.c: New file.
14374
14375         * stdlib/fmtmsg.c (init): Add missing unlock.
14376         Patch by Peng Haitao <penght@cn.fujitsu.com>.
14377
14378 2012-01-12  Marek Polacek  <polacek@redhat.com>
14379
14380         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
14381         and _GNU_SOURCE.
14382
14383 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14384
14385         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
14386         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
14387         macro to ensure uniqueness of label name.
14388         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14389         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14390
14391 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
14392
14393         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
14394
14395         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
14396         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
14397         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
14398         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
14399
14400 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
14401
14402         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
14403
14404         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
14405         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
14406         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
14407
14408         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
14409
14410         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
14411         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
14412         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
14413         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
14414
14415         * math/bits/math-finite.h: Add ldexp support.
14416
14417 2012-01-10  Marek Polacek  <polacek@redhat.com>
14418
14419         * locale/programs/localedef.h (show_archive_content): Add noreturn
14420         attribute.
14421
14422 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
14423
14424         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
14425
14426 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14427
14428         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
14429
14430         * io/Makefile (headers): Add bits/poll2.h.
14431
14432 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
14433
14434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
14435         typo #include statement.
14436
14437 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14438
14439         * include/sys/cdefs.h: Define __attribute_alloc_size.
14440         * catgets/gencat.c: Add alloc_size attribute and apply consistently
14441         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
14442         * elf/pldd.c: Likewise.
14443         * iconv/iconv_charmap.c: Likewise.
14444         * iconv/iconvconfig.c: Likewise.
14445         * iconv/strtab.c: Likewise.
14446         * locale/programs/locale.c: Likewise.
14447         * locale/programs/localedef.h: Likewise.
14448         * locale/programs/simple-hash.c: Likewise.
14449         * nscd/nscd.h: Likewise.
14450         * nss/makedb.c: Likewise.
14451         * sysdeps/generic/ldconfig.h: Likewise.
14452         * locale/programs/localedef.c: Remove xmalloc prototype.
14453         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
14454
14455 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14456
14457         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
14458         appropriate.
14459
14460 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14461
14462         * math/Makefile (tests): Add tst-CMPLX.
14463         * math/tst-CMPLX.c: New file.
14464
14465         * math/complex.h (CMPLXL): Fix typo.
14466
14467         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
14468         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
14469         GLIBC_2.16.
14470         * debug/tst-chk1.c: Add poll and ppoll tests.
14471         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
14472         * include/sys/poll.h: Add hidden proto for ppoll.
14473         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
14474         * sysdeps/mach/hurd/ppoll.c: Likewise.
14475         * io/ppoll.c: Likewise.
14476         * debug/poll_chk.c: New file.
14477         * debug/ppoll_chk.c: New file.
14478         * include/bits/poll2.h: New file.
14479         * io/bits/poll2.h: New file.
14480
14481         [BZ #1350]
14482         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
14483
14484         * configure.in: static is always set to yes.  Remove.
14485         * config.make.in: Don't set build-static.
14486         * Makeconfig: Remove use of build-static.
14487         * dlfcn/Makefile: Likewise.
14488         * elf/Makefile: Likewise.
14489         * math/Makefile: Likewise.
14490         * misc/Makefile: Likewise.
14491         * nptl/Makefile: Likewise.
14492         * sysdeps/mach/hurd/Makefile: Likewise.
14493
14494         * configure.in: PWD_P is not used anymore.
14495         * config.make.in: Remove PWD_P entry.
14496
14497         * configure.in: Remove last remnants of RANLIB.
14498         No need to check for signed size_t anymore.
14499         Don't set libc_commonpagesize and libc_relro_required here for Alpha
14500         and IA-64.
14501         Remove __builtin_expect test because we require at least gcc 3.4.
14502         * aclocal.m4: Likewise.
14503
14504         * wcsmbs/mbrtoc16.c: Implement using towc function.
14505         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
14506         * wcsmbs/wcsmbsload.c: Likewise.
14507         * iconv/gconv_simple.c: Likewise.
14508         * iconv/gconv_int.h: Likewise.
14509         * iconv/gconv_builtin.h: Likewise.
14510         * iconv/iconv_prog.c: Remove CHAR16 handling.
14511
14512         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
14513
14514         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
14515
14516         * configure.in: Remove --with-elf and --enable-bounded options.
14517         Dont set base_machine for ia64.  More non-ELF conditions removed.
14518         Remove testing and setting of leading underscore information.
14519         * config.make.in (build-bounded): Set to no.
14520         * config.h.in: Remove NO_UNDERSCORES entry.
14521         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
14522         them.
14523         * csu/start.c: Remove !NO_UNDERSCORE code.
14524         * locale/localeinfo.h: Likewise.
14525         * sysdeps/generic/machine-gmon.h: Likewise.
14526         * sysdeps/generic/sysdep.h: Likewise.
14527         * sysdeps/i386/sysdep.h: Likewise.
14528         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14529         * sysdeps/mach/sysdep.h: Likewise.
14530         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14531         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14532         * sysdeps/sh/sysdep.h: Likewise.
14533         * sysdeps/sparc/sparc32/alloca.S: Likewise.
14534         * sysdeps/unix/i386/sysdep.S: Likewise.
14535         * sysdeps/unix/sparc/start.c: Likewise.
14536         * sysdeps/unix/sparc/sysdep.S: Likewise.
14537         * sysdeps/unix/sparc/sysdep.h: Likewise.
14538         * sysdeps/unix/start.c: Likewise.
14539         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14540         * sysdeps/x86_64/sysdep.h: Likewise.
14541
14542 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
14543
14544         [BZ #13553]
14545         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
14546         for non-gcc.
14547         * argp/argp-fmtstream.h: Use const instead __const.
14548         * argp/argp.h: Likewise.
14549         * assert/assert.h: Likewise.
14550         * bits/fenv.h: Likewise.
14551         * bits/sched.h: Likewise.
14552         * bits/sigset.h: Likewise.
14553         * bits/sigthread.h: Likewise.
14554         * catgets/nl_types.h: Likewise.
14555         * conform/data/pthread.h-data: Likewise.
14556         * crypt/crypt-private.h: Likewise.
14557         * crypt/crypt.h: Likewise.
14558         * crypt/crypt_util.c: Likewise.
14559         * ctype/ctype.h: Likewise.
14560         * debug/execinfo.h: Likewise.
14561         * debug/mbsnrtowcs_chk.c: Likewise.
14562         * debug/mbsrtowcs_chk.c: Likewise.
14563         * debug/wcsnrtombs_chk.c: Likewise.
14564         * debug/wcsrtombs_chk.c: Likewise.
14565         * debug/wcstombs_chk.c: Likewise.
14566         * dirent/dirent.h: Likewise.
14567         * dlfcn/dlfcn.h: Likewise.
14568         * elf/neededtest4.c: Likewise.
14569         * grp/grp.h: Likewise.
14570         * gshadow/gshadow.h: Likewise.
14571         * iconv/gconv.h: Likewise.
14572         * iconv/gconv_int.h: Likewise.
14573         * iconv/gconv_simple.c: Likewise.
14574         * iconv/iconv.h: Likewise.
14575         * iconv/loop.c: Likewise.
14576         * iconv/skeleton.c: Likewise.
14577         * include/aio.h: Likewise.
14578         * include/aliases.h: Likewise.
14579         * include/argz.h: Likewise.
14580         * include/arpa/inet.h: Likewise.
14581         * include/assert.h: Likewise.
14582         * include/dirent.h: Likewise.
14583         * include/dlfcn.h: Likewise.
14584         * include/execinfo.h: Likewise.
14585         * include/fcntl.h: Likewise.
14586         * include/fenv.h: Likewise.
14587         * include/glob.h: Likewise.
14588         * include/grp.h: Likewise.
14589         * include/libintl.h: Likewise.
14590         * include/mntent.h: Likewise.
14591         * include/netdb.h: Likewise.
14592         * include/pwd.h: Likewise.
14593         * include/rpc/netdb.h: Likewise.
14594         * include/sched.h: Likewise.
14595         * include/search.h: Likewise.
14596         * include/shadow.h: Likewise.
14597         * include/signal.h: Likewise.
14598         * include/stdio.h: Likewise.
14599         * include/stdlib.h: Likewise.
14600         * include/string.h: Likewise.
14601         * include/sys/socket.h: Likewise.
14602         * include/sys/stat.h: Likewise.
14603         * include/sys/statfs.h: Likewise.
14604         * include/sys/statvfs.h: Likewise.
14605         * include/sys/syslog.h: Likewise.
14606         * include/sys/time.h: Likewise.
14607         * include/sys/uio.h: Likewise.
14608         * include/time.h: Likewise.
14609         * include/unistd.h: Likewise.
14610         * include/utmp.h: Likewise.
14611         * include/wchar.h: Likewise.
14612         * include/wctype.h: Likewise.
14613         * inet/aliases.h: Likewise.
14614         * inet/arpa/inet.h: Likewise.
14615         * inet/netinet/ether.h: Likewise.
14616         * inet/netinet/in.h: Likewise.
14617         * intl/libintl.h: Likewise.
14618         * io/bits/fcntl2.h: Likewise.
14619         * io/fcntl.h: Likewise.
14620         * io/ftw.h: Likewise.
14621         * io/sys/poll.h: Likewise.
14622         * io/sys/stat.h: Likewise.
14623         * io/sys/statfs.h: Likewise.
14624         * io/sys/statvfs.h: Likewise.
14625         * io/utime.h: Likewise.
14626         * libio/bits/stdio.h: Likewise.
14627         * libio/bits/stdio2.h: Likewise.
14628         * libio/libio.h: Likewise.
14629         * libio/libioP.h: Likewise.
14630         * libio/stdio.h: Likewise.
14631         * locale/lc-ctype.c: Likewise.
14632         * locale/locale.h: Likewise.
14633         * login/utmp.h: Likewise.
14634         * malloc/arena.c: Likewise.
14635         * malloc/malloc.c: Likewise.
14636         * malloc/malloc.h: Likewise.
14637         * malloc/mcheck.c: Likewise.
14638         * malloc/mtrace.c: Likewise.
14639         * math/bits/mathcalls.h: Likewise.
14640         * math/fenv.h: Likewise.
14641         * math/math_private.h: Likewise.
14642         * misc/bits/error.h: Likewise.
14643         * misc/bits/syslog.h: Likewise.
14644         * misc/err.h: Likewise.
14645         * misc/error.h: Likewise.
14646         * misc/fstab.h: Likewise.
14647         * misc/mntent.h: Likewise.
14648         * misc/regexp.h: Likewise.
14649         * misc/search.h: Likewise.
14650         * misc/sgtty.h: Likewise.
14651         * misc/sys/mman.h: Likewise.
14652         * misc/sys/syslog.h: Likewise.
14653         * misc/sys/uio.h: Likewise.
14654         * misc/sys/xattr.h: Likewise.
14655         * misc/ttyent.h: Likewise.
14656         * nis/rpcsvc/ypclnt.h: Likewise.
14657         * nss/nss.h: Likewise.
14658         * posix/bits/unistd.h: Likewise.
14659         * posix/fnmatch.h: Likewise.
14660         * posix/glob.h: Likewise.
14661         * posix/sched.h: Likewise.
14662         * posix/spawn.h: Likewise.
14663         * posix/sys/wait.h: Likewise.
14664         * posix/unistd.h: Likewise.
14665         * posix/wordexp.h: Likewise.
14666         * pwd/pwd.h: Likewise.
14667         * resolv/netdb.h: Likewise.
14668         * resource/sys/resource.h: Likewise.
14669         * rt/aio.h: Likewise.
14670         * rt/bits/mqueue2.h: Likewise.
14671         * rt/mqueue.h: Likewise.
14672         * shadow/shadow.h: Likewise.
14673         * signal/signal.h: Likewise.
14674         * socket/send.c: Likewise.
14675         * socket/sendto.c: Likewise.
14676         * socket/sys/socket.h: Likewise.
14677         * stdio-common/printf.h: Likewise.
14678         * stdlib/bits/stdlib.h: Likewise.
14679         * stdlib/fmtmsg.h: Likewise.
14680         * stdlib/monetary.h: Likewise.
14681         * stdlib/stdlib.h: Likewise.
14682         * stdlib/ucontext.h: Likewise.
14683         * streams/stropts.h: Likewise.
14684         * string/argz.h: Likewise.
14685         * string/bits/string2.h: Likewise.
14686         * string/string.h: Likewise.
14687         * string/strings.h: Likewise.
14688         * sunrpc/rpc/auth.h: Likewise.
14689         * sunrpc/rpc/auth_des.h: Likewise.
14690         * sunrpc/rpc/clnt.h: Likewise.
14691         * sunrpc/rpc/netdb.h: Likewise.
14692         * sunrpc/rpc/pmap_clnt.h: Likewise.
14693         * sunrpc/rpc/xdr.h: Likewise.
14694         * sysdeps/generic/inttypes.h: Likewise.
14695         * sysdeps/generic/net/if.h: Likewise.
14696         * sysdeps/generic/sys/swap.h: Likewise.
14697         * sysdeps/gnu/net/if.h: Likewise.
14698         * sysdeps/gnu/utmpx.h: Likewise.
14699         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14700         * sysdeps/i386/i486/bits/string.h: Likewise.
14701         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14702         * sysdeps/s390/bits/string.h: Likewise.
14703         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14704         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14705         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14706         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14707         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14708         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14709         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14710         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14711         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14712         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14713         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14714         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14715         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14716         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14717         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14718         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14719         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14720         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14721         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14722         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14723         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14724         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14725         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14726         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14727         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14728         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14729         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14730         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14731         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14732         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14733         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14734         * sysvipc/sys/ipc.h: Likewise.
14735         * sysvipc/sys/msg.h: Likewise.
14736         * sysvipc/sys/sem.h: Likewise.
14737         * sysvipc/sys/shm.h: Likewise.
14738         * termios/termios.h: Likewise.
14739         * time/sys/time.h: Likewise.
14740         * time/time.h: Likewise.
14741         * wcsmbs/bits/wchar2.h: Likewise.
14742         * wcsmbs/uchar.h: Likewise.
14743         * wcsmbs/wchar.h: Likewise.
14744         * wctype/wctype.h: Likewise.
14745
14746         [BZ #13551]
14747         * Makeconfig: Remove all but ELF support including AIX support.
14748         * Makerules: Likewise.
14749         * config.h.in: Likewise.
14750         * config.make.in: Likewise.
14751         * configure: Likewise.
14752         * configure.in: Likewise.
14753         * csu/Makefile: Likewise.
14754         * csu/version.c: Likewise.
14755         * debug/Makefile: Likewise.
14756         * dlfcn/Makefile: Likewise.
14757         * elf/Makefile: Likewise.
14758         * extra-lib.mk: Likewise.
14759         * iconv/Makefile: Likewise.
14760         * include/libc-symbols.h: Likewise.
14761         * include/shlib-compat.h: Likewise.
14762         * resolv/Makefile: Likewise.
14763         * resolv/res_libc.c: Likewise.
14764         * rt/Makefile: Likewise.
14765         * sysdeps/i386/asm-syntax.h: Likewise.
14766         * sysdeps/i386/sysdep.h: Likewise.
14767         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14768         * sysdeps/mach/sysdep.h: Likewise.
14769         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14770         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14771         * sysdeps/s390/asm-syntax.h: Likewise.
14772         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14773         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14774         * sysdeps/sh/sysdep.h: Likewise.
14775         * sysdeps/unix/sparc/sysdep.h: Likewise.
14776         * sysdeps/wordsize-32/divdi3.c: Likewise.
14777         * sysdeps/x86_64/sysdep.h: Likewise.
14778
14779         * argp/Versions: Remove _argp_unlock_xxx.
14780
14781         [BZ #13559]
14782         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14783         * abilist/libBrokenLocale.abilist: Likewise.
14784         * abilist/libanl.abilist: Likewise.
14785         * abilist/libc.abilist: Likewise.
14786         * abilist/libcrypt.abilist: Likewise.
14787         * abilist/libdl.abilist: Likewise.
14788         * abilist/libm.abilist: Likewise.
14789         * abilist/libnsl.abilist: Likewise.
14790         * abilist/libpthread.abilist: Likewise.
14791         * abilist/libresolv.abilist: Likewise.
14792         * abilist/librt.abilist: Likewise.
14793         * abilist/libthread_db.abilist: Likewise.
14794         * abilist/libutil.abilist: Likewise.
14795         * abilist/libnss_db.abilist: New file.
14796
14797         * scripts/abilist.awk: Add support for indirect functions.
14798
14799         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14800
14801         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14802
14803         * shlib-versions: Remove entries for ports architectures.
14804
14805         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14806         files in ports.
14807         * elf/stackguard-macros.h: Remove support for IA-64.
14808         * elf/tst-auditmod1.c: Likewise.
14809         * sysdeps/generic/ldsodefs.h: Likewise.
14810
14811         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14812         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14813         configure files.
14814
14815         [BZ #13552]
14816         * configure.in: Remove --enable-omitfp support.
14817         * FAQ.in: Adjust.
14818         * config.make.in: Likewise.
14819         * Makeconfig: Likewise.
14820         * manual/install.texi: Likewise.
14821
14822         In case anyone cares, the IA-64 architecture could move to ports.
14823         * sysdeps/ia64/*: Removed.
14824         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14825         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14826
14827         [BZ #13555]
14828         * configure.in: Remove entries for unsupported architectures.
14829
14830         [BZ #13533]
14831         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14832         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14833         routines.
14834         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14835         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14836         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14837         fall back to using wcrtomb.
14838         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14839         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14840         renaming.
14841         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14842         * wcsmbs/tst-c16c32-1.c: New file.
14843
14844         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14845         local variable.
14846
14847         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14848
14849         * elf/tst-unique3.cc: Add explicit declaration of gets.
14850         * elf/tst-unique3lib.cc: Likewise.
14851         * elf/tst-unique3lib2.cc: Likewise.
14852         * elf/tst-unique4.cc: Likewise.
14853
14854         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14855
14856 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14857
14858         [BZ #13566]
14859         * assert/assert.h (static_assert): Don't define for C++.
14860         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14861         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14862
14863 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14864
14865         * iconv/loop.c (single loop): Fix assertion in storing of
14866         remaining bytes.
14867
14868         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14869
14870 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14871
14872         * posix/getconf.c: Update copyright year.
14873         * nss/getent.c: Likewise.
14874         * nss/makedb.c: Likewise.
14875         * iconv/iconvconfig.c: Likewise.
14876         * iconv/iconv_prog.c: Likewise.
14877         * elf/ldconfig.c: Likewise.
14878         * elf/pldd.c: Likewise.
14879         * elf/sotruss.ksh: Likewise.
14880         * catgets/gencat.c: Likewise.
14881         * csu/version.c: Likewise.
14882         * elf/ldd.bash.in: Likewise.
14883         * elf/sprof.c (print_version): Likewise.
14884         * locale/programs/locale.c: Likewise.
14885         * locale/programs/localedef.c: Likewise.
14886         * login/programs/pt_chown.c: Likewise.
14887         * nscd/nscd.c (print_version): Likewise.
14888         * debug/xtrace.sh: Likewise.
14889         * malloc/memusage.sh: Likewise.
14890         * malloc/mtrace.pl: Likewise.
14891         * debug/catchsegv.sh: Likewise.
14892
14893 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14894
14895         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14896         pure attribute.
14897
14898 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14899
14900         [BZ #13533]
14901         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14902         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14903         transformations.
14904         * iconv/gconv_int.h: Likewise.
14905         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14906         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14907         from libc for GLIBC_2.16.
14908         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14909         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14910         * wcsmbs/uchar.h: Really define mbstate_t.
14911         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14912         * wcsmbs/c16rtomb.c: New file.
14913         * wcsmbs/mbrtoc16.c: New file.
14914         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14915         for C/POSIX locale.
14916         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14917         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14918
14919         * wcsmbs/wchar.h: Add missing __restrict.
14920
14921 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14922
14923         [BZ #13532]
14924         * time/Makefile (routines): Add timespec_get.
14925         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14926         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14927         timespec for ISO C11.
14928         * time/timespec_get.c: New file.
14929         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14930         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14931
14932         [BZ #13531]
14933         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14934         * stdlib/stdlib.h: Declare aligned_alloc.
14935         * Versions.def: Add GLIBC_2.16 for libc.
14936         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14937
14938         [BZ 13527]
14939         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14940         ISO C11.
14941
14942         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14943         code.
14944
14945         [BZ #13528]
14946         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14947
14948         [BZ #13529]
14949         * assert/assert.h (static_assert): Define.
14950
14951         * version.h: Update for 2.16 development version.
14952
14953         [BZ #13526]
14954         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14955         _ISOC11_SOURCE.
14956
14957         * version.h (RELEASE): Bump for 2.15 release.
14958         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14959
14960         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14961         Patch by Marek Polacek <mpolacek@redhat.com>.
14962
14963         * bits/byteswap.h: Protect long long constants with __extension__.
14964         * sysdeps/i386/bits/byteswap.h: Likewise.
14965         * sysdeps/ia64/bits/byteswap.h: Likewise.
14966         * sysdeps/s390/bits/byteswap.h: Likewise.
14967         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14968
14969 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14970
14971         [BZ #13540]
14972         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14973         destination buffer.
14974         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14975
14976 2011-12-23  Marek Polacek  <polacek@redhat.com>
14977
14978         * elf/dl-addr.c (determine_info): Add inline keyword.
14979         * elf/tst-auditmod4b.c (check_avx): Likewise.
14980         * elf/tst-auditmod6b.c (check_avx): Likewise.
14981         * elf/tst-auditmod6c.c (check_avx): Likewise.
14982         * elf/tst-auditmod7b.c (check_avx): Likewise.
14983
14984 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14985
14986         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14987         !__SSE_MATH__.
14988
14989 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14990
14991         [BZ #13540]
14992         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14993         processing for last bytes.
14994
14995 2011-08-06  Bruno Haible  <bruno@clisp.org>
14996
14997         [BZ #13061]
14998         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14999         U+0385, not to U+1FEE.
15000
15001         [BZ #13062]
15002         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15003         entry for U+00A5 U+0301.
15004
15005 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15006
15007         [BZ #13166]
15008         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15009         buffer for the output is too small.
15010
15011         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15012         optimization.
15013
15014         [BZ #13185]
15015         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15016         SSE flags if possible.
15017
15018 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15019
15020         [BZ #13540]
15021         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15022         processing for last bytes.
15023
15024 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15025
15026         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15027         (syscall-list-default-options, syscall-list-default-condition)
15028         (syscall-list-includes): Define.
15029         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15030         list of ABIs and options and #if conditions for each ABI.  Do not
15031         handle common syscalls between ABIs specially.
15032         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15033         Remove.
15034         (syscall-list-variants, syscall-list-32bit-options)
15035         (syscall-list-32bit-condition, syscall-list-64bit-options)
15036         (syscall-list-64bit-condition): Define.
15037         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15038         (syscall-list-variants, syscall-list-32bit-options)
15039         (syscall-list-32bit-condition, syscall-list-64bit-options)
15040         (syscall-list-64bit-condition): Define.
15041         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15042         Remove.
15043         (syscall-list-variants, syscall-list-32bit-options)
15044         (syscall-list-32bit-condition, syscall-list-64bit-options)
15045         (syscall-list-64bit-condition): Define.
15046         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15047         Remove.
15048         (syscall-list-variants, syscall-list-32bit-options)
15049         (syscall-list-32bit-condition, syscall-list-64bit-options)
15050         (syscall-list-64bit-condition): Define.
15051
15052 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15053
15054         * locale/iso-639.def: Add brx entry.
15055
15056         [BZ #13328]
15057         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15058         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15059
15060         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15061         __feraiseexcept_renamed.
15062
15063 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15064
15065         [BZ #13538]
15066         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15067         EPOLLET with unsigned values.
15068         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15069         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15070
15071         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15072         to large cancellation.
15073         * math/s_cacoshf.c: Likewise.
15074         * math/s_cacoshl.c: Likewise.
15075
15076 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15077
15078         [BZ #13305]
15079         [BZ #12786]
15080         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15081         * math/s_cacoshf.c: Likewise.
15082         * math/s_cacoshl.c: Likewise.
15083
15084 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15085
15086         [BZ #13439]
15087         * iconv/gconv.h: Define __GCONV_SWAP.
15088         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15089         * iconvdata/utf-16.c: Likewise.
15090         * iconvdata/utf-32.c: Likewise.
15091
15092 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15093
15094         [BZ #13524]
15095         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15096         numerator after shifting it by one limb.
15097
15098 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15099
15100         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15101         under [__USE_EXTERN_INLINES].
15102
15103 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15104
15105         [BZ #13446]
15106         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15107
15108 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15109
15110         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15111         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15112         optimized code.
15113         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15114         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15115         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15116         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15117         for strncasecmp/strncasecmp_l compilation.
15118         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15119         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15120
15121 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15122
15123         [BZ #13484]
15124         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15125         of __asm__.
15126
15127 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15128
15129         [BZ #13506]
15130         * time/tzfile.c (__tzfile_read): Check values from file header.
15131
15132 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15133
15134         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15135         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15136         * powerpc/powerpc32/dl-start.S: Likewise.
15137         * powerpc/powerpc32/elf/start.S: Likewise.
15138         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15139         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15140         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15141         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15142         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15143         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15144         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15145         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15146         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15147         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15148         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15149         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15150         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15151         * powerpc/powerpc32/memset.S: Likewise.
15152         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15153         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15154         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15155         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15156         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15157         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15158         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15159         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15160         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15161         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15162         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15163         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15164         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15165
15166 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15167
15168         * math/libm-test.inc: Added more nearbyint tests.
15169         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15170         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15171         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15172         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15173
15174 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15175
15176         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15177         FD_CLOEXEC.
15178
15179 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15180
15181         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15182         Add wcscpy-ssse3 wcscpy-c.
15183         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15184         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15185         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15186         * sysdeps/x86_64/wcschr.S: New file.
15187         * sysdeps/x86_64/wcsrchr.S: New file.
15188         * string/test-strcmp.c: Remove checking of wcscmp function for
15189         wrong alignments.
15190         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15191         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15192         wcsrchr-sse2 wcsrchr-c.
15193         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15194         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15195         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15196         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15197         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15198         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15199         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15200         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15201         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15202         * wcsmbc/wcschr.c (WCSCHR): New macro.
15203
15204 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15205
15206         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15207         * wcsmbs/test-wcsrchr.c: New file.
15208         * string/test-strrchr.c: Add wcsrchr support.
15209         (WIDE): New macro.
15210         * wcsmbs/test-wcscpy.c: New file.
15211         * string/test-strcpy.c: Add wcscpy support.
15212         (WIDE): New macro.
15213
15214 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15215
15216         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15217         the inner loop.
15218
15219 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15220
15221         [BZ #13472]
15222         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15223
15224 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15225
15226         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15227         Minor optimizations.
15228
15229         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15230         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15231         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15232
15233 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15234
15235         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15236         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15237         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15238         for gcc to avoid warnings.
15239         * inet/Makefile (tests): Add tst-checks.
15240         * inet/tst-checks.c: New file.
15241
15242         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15243         warning.
15244
15245         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15246         __wmemcmp_sse2.
15247
15248         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15249         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15250
15251         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15252
15253 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15254
15255         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15256         problem.
15257
15258         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15259
15260 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15261
15262         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15263         conditional on GCC version.
15264         (__arch_compare_and_exchange_val_8_acq)
15265         (__arch_compare_and_exchange_val_16_acq)
15266         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15267         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15268         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15269
15270 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15271
15272         * sysdeps/sh/backtrace.c: New file.
15273
15274 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15275
15276         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15277         parenthesis.
15278
15279 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15280
15281         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15282         falling back to utime.
15283
15284 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15285
15286         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15287         expectations for float.
15288
15289 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15290
15291         * locale/weight.h (findidx): Add parameter len.
15292         * locale/weightwc.h (findidx): Likewise.
15293         * posix/fnmatch_loop.c (FCT): Adjust caller.
15294         * posix/regcomp.c (build_equiv_class): Likewise.
15295         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15296         * posix/regexec.c (check_node_accept_bytes): Likewise.
15297         * string/strcoll_l.c (STRCOLL): Likewise.
15298         * string/strxfrm_l.c (STRXFRM): Likewise.
15299
15300 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
15301
15302         * Makefile.in: Remove CVSOPT handling.
15303         * configure.in: Remove use of AC_REVISION.
15304         * iconvdata/Makefile (distribute): No need to filter out CVS.
15305         * scripts/list-sources.sh: Remove CVS, subversion and monotone
15306         handling.
15307
15308 2011-11-16  Andreas Schwab  <schwab@redhat.com>
15309
15310         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
15311         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
15312         [USE_AS_STRNCASECMP_L]: Likewise.
15313         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
15314         NO_TLS_DIRECT_SEG_REFS.
15315         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
15316         Fix argument offsets for non-PIC.
15317         [USE_AS_STRNCASECMP_L]: Likewise.
15318         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
15319         NO_TLS_DIRECT_SEG_REFS.
15320
15321 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15322
15323         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
15324         O_CLOEXEC.
15325         * locale/loadlocale.c (_nl_load_locale): Likewise.
15326
15327 2011-11-15  Andreas Schwab  <schwab@redhat.com>
15328
15329         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
15330         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
15331         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
15332         (SYSCALL_GETTIME): Set errno on error.
15333
15334         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
15335         count references to noai6ai_cached.
15336
15337 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15338
15339         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
15340
15341         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
15342         FD_CLOEXEC for /proc/self/maps.
15343
15344         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
15345         FD_CLOEXEC for /proc/meminfo.
15346
15347         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
15348         gai.conf.
15349
15350         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
15351         FD_CLOEXEC for given file.
15352
15353         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
15354
15355         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
15356         FD_CLOEXEC for /etc/hosts.
15357         (_gethtent): Likewise.
15358
15359         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
15360
15361         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
15362         cancellation and set FD_CLOEXEC for /etc/netgroup.
15363
15364         * nss/nss_files/files-key.c (search): Don't allow cancellation when
15365         reading /etc/publickey.
15366
15367         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
15368         allow cancellation when reading /etc/group.
15369
15370         * nss/nss_files/files-alias.c (internal_setent): Don't allow
15371         cancellation.
15372         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
15373
15374         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
15375         when using data file.
15376
15377         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
15378
15379         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
15380         (write_nis_obj): Use "c" and "e" in fopen.
15381
15382         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
15383
15384         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
15385
15386         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
15387
15388         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
15389
15390         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
15391         locale.alias.
15392
15393         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
15394
15395         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
15396
15397         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
15398
15399         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
15400         file parsing and set FD_CLOEXEC.
15401
15402 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15403
15404         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
15405
15406 2011-11-14  Andreas Schwab  <schwab@redhat.com>
15407
15408         * malloc/arena.c (arena_get2): Don't call reused_arena when
15409         _int_new_arena failed.
15410
15411 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15412
15413         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
15414         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
15415         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
15416         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15417         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15418         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
15419         to compile strcasecmp and strncasecmp.
15420         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
15421         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
15422
15423         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
15424
15425 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
15426
15427         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
15428         locale-defines.sym to gen-as-const-headers.
15429         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
15430         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
15431         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
15432         to compile strcasecmp and strncasecmp.
15433         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
15434         strcasecmp_l and strncasecmp_l.
15435         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
15436         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
15437         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
15438         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
15439         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
15440         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
15441         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
15442         * sysdeps/i386/i686/multiarch/strncase.S: New file.
15443         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
15444         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
15445         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
15446
15447 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
15448
15449         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
15450         result of SYSDEP_GETTIME_CPU to retval.
15451         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
15452         parameter list to macro.  Remove trailing semicolon.  Adjust users.
15453
15454         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
15455         variable.
15456
15457         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
15458         mantissa words.
15459         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15460
15461         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
15462         from unused variable.
15463
15464         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
15465         DWARF definitions.
15466         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
15467         for assembling.
15468
15469         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
15470         over namespaces.
15471
15472         * sunrpc/rpc_prot.c (rejected): Fix case value.
15473
15474         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
15475         unsigned long long int to avoid warnings in shift.
15476
15477         * posix/regex_internal.c (re_string_reconstruct): Actually use result
15478         of use of trans.
15479         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
15480         variable tmp.
15481
15482         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
15483         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
15484         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
15485
15486         * nis/nis_table.c (nis_list): Use variable of correct type for
15487         result of __follow_path call.
15488
15489 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15490
15491         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
15492         of math functions ceil, trunc, floor, round, and sqrt, when
15493         avaliable on the platform.
15494         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
15495         name clash.
15496         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15497         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15498         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15499
15500 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
15501
15502         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
15503         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
15504
15505 2011-11-11  Roland McGrath  <roland@hack.frob.com>
15506
15507         * include/unistd.h: Fix __readlink return type.
15508         Reported by Chris Metcalf <cmetcalf@tilera.com>.
15509
15510 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
15511
15512         * stdlib/ucontext.h: Undo last change for makecontext.
15513
15514 2011-11-11  Andreas Schwab  <schwab@redhat.com>
15515
15516         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
15517
15518         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
15519         * setjmp/setjmp.h: Mark functions as non-leaf.
15520         * setjmp/bits/setjmp2.h: Likewise.
15521         * stdlib/ucontext.h: Likewise.
15522
15523 2011-11-10  Andreas Schwab  <schwab@redhat.com>
15524
15525         * malloc/arena.c (_int_new_arena): Don't increment narenas.
15526         (reused_arena): Don't check arena limit.
15527         (arena_get2): Atomically check arena limit.
15528
15529 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
15530
15531         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
15532         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
15533
15534         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
15535         instructions.
15536
15537 2011-11-07  Andreas Schwab  <schwab@redhat.com>
15538
15539         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
15540         handler when locking.
15541
15542         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15543         Fix size of allocated buffer.
15544
15545 2011-11-04  Andreas Schwab  <schwab@redhat.com>
15546
15547         [BZ #10103]
15548         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
15549         declarations for long double functions.
15550         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
15551
15552         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
15553
15554 2011-11-03  Andreas Schwab  <schwab@redhat.com>
15555
15556         * nscd/nscd.c (main): Don't start AVC thread until credentials are
15557         installed.
15558
15559         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
15560         is disabled.
15561
15562 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15563
15564         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
15565
15566 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
15567
15568         * include/alloca.h (stackinfo_alloca_round): Define.
15569         (extend_alloca): Use it.
15570         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
15571         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
15572         here.
15573
15574         * scripts/check-local-headers.sh: Ignore libaudit.h.
15575
15576         * nscd/Makefile (extra-objs): Make recursively expanded.
15577
15578 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
15579
15580         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
15581         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
15582
15583         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
15584         * posix/tst-rfc3484-2.c: Likewise.
15585         * posix/tst-rfc3484-3.c: Likewise.
15586
15587         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
15588         process_vm_writev.
15589         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
15590         process_vm_writev.
15591         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
15592         process_vm_writev from libc using GLIBC_2.15 version.
15593
15594         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
15595
15596 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
15597
15598         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
15599         stack usage.
15600
15601 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
15602
15603         [BZ #13367]
15604         * nss/getent.c (initgroups_keys): Show error message in case no group
15605         names are given.
15606
15607         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
15608         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
15609         __bump_nl_timestamp.
15610         * nscd/connections (nscd_init): When host database is served open
15611         netlink socket and request notification about configuration changes.
15612         (main_loop_poll): Track netlink file descriptor and bump timestamp
15613         in case data becomes available.
15614         (main_loop_epoll): Likewise.
15615         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
15616         (database_pers_head): Add extra_data fileds.
15617         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
15618         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
15619         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
15620         Adjust caller.
15621         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
15622         in6ai data, call __free_in6ai.
15623         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
15624         Add -DHAVE_NETLINK.
15625         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
15626         interface information.  Reuse previous data if netlink timestamp
15627         is not changed.
15628         (__bump_nl_timestamp): New function.
15629         (__free_in6ai): New function.
15630
15631 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
15632
15633         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
15634         close_not_cancel_no_status here.
15635         (__check_pf): Reorganize code a bit to not call close twice if OOM.
15636
15637 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15638
15639         [BZ #13276]
15640         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
15641         return value.
15642
15643         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
15644         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
15645         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
15646
15647 2011-07-03  Andreas Jaeger  <aj@suse.de>
15648
15649         [BZ #10709]
15650         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
15651         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
15652         * math/libm-test.inc (sin_test): Add test case.
15653
15654 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15655
15656         [BZ #13337]
15657         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
15658         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15659
15660         * elf/chroot_canon.c (chroot_canon): Cleanups.
15661
15662         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
15663
15664         [BZ #13335]
15665         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
15666         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15667
15668         * string/test-strchr.c: Make usable for strchrnul testing.
15669         * string/test-strchrnul.c: New file.
15670         * string/Makefile (strop-tests): Add strchrnul.
15671
15672         * po/it.po: Update from translation team.
15673         * po/es.po: Likewise.
15674
15675 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
15676
15677         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
15678         the three constants needed as parameters.  Drop the others.
15679         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
15680         __m128i_strloadu_tolower.
15681         Create and initialize variable zero and use it in all the places
15682         where _mm_setzero_si128 was used.
15683
15684         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
15685         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15686         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15687         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15688         anymore.
15689         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15690         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15691         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15692         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15693         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15694         __mpranred, __mptan.
15695         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15696         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15697         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15698         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15699         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15700         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15701         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15702         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15703         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15704
15705 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15706
15707         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15708         redefine if SHARED.
15709         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15710
15711         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15712         wide char related routines to wcsmbs subdir.
15713
15714 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15715
15716         [BZ #13344]
15717         * misc/sys/cdefs.h (__THROWNL): Define.
15718         * posix/unistd.h: Use __THREADNL instead of __THREAD
15719         for memory synchronization functions.
15720
15721 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15722
15723         [BZ #13349]
15724         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15725         doesn't exist.
15726         * manual/stdio.texi (Obstack Streams): Node removed.
15727
15728 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15729
15730         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15731         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15732         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15733
15734         * math/math_private.h (math_force_eval): Allow non-addressable
15735         arguments.
15736         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15737
15738 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15739
15740         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15741         file is not needed.
15742
15743         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15744         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15745         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15746         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15747         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15748         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15749         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15750         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15751         Add AVX variants.
15752         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15753         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15754         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15755         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15756         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15757         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15758         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15759         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15760         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15761         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15762         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15763         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15764         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15765         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15766         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15767         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15768         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15769         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15770         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15771
15772         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15773         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15774
15775         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15776         place.  Use VEX encoding when compiling for AVX.
15777
15778 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15779
15780         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15781         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15782
15783         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15784
15785 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15786
15787         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15788         useless if() expression.
15789         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15790         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15791         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15792         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15793         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15794         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15795         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15796         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15797         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15798         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15799         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15800         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15801         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15802         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15803         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15804         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15805         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15806         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15807         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15808
15809         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15810
15811 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15812
15813         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15814         condition.
15815         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15816
15817 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15818
15819         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15820         .text section.  Avoid duplicate constants.
15821         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15822         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15823         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15824         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15825         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15826         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15827         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15828         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15829         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15830         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15831         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15832         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15833         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15834         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15835         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15836         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15837         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15838         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15839         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15840         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15841         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15842         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15843         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15844         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15845         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15846         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15847         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15848         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15849         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15850         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15851         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15852         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15853         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15854         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15855         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15856         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15857         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15858         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15859         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15860         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15861         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15862         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15863         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15864         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15865         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15866
15867 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15868
15869         * sysdeps/x86_64/dla.h: Move to ...
15870         * sysdeps/x86_64/fpu/dla.h: ...here.
15871         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15872         situations.  Use __builtin_fma only for gcc 4.6 and up.
15873
15874         * config.make.in: Add have-mfma4 entry.
15875         * configure.in: Substitute libc_cv_cc_fma4.
15876         * math/Makefile (dbl-only-routines): Add sincostab.
15877         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15878         Use __sincostab not sincos.
15879         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15880         name is a macro.
15881         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15882         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15883         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15884         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15885         using __copysign.
15886         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15887         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15888         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15889         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15890         and __inv.
15891         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15892         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15893         __copysign.
15894         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15895         define aliases when function name is a macro.
15896         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15897         sysdeps/ieee754/dbl-64/sincos.tbl.
15898         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15899         fma4-enabled routines.
15900         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15901         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15902         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15903         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15904         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15905         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15906         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15907         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15908         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15909         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15910         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15911         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15912         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15913         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15914         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15915         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15916         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15917         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15918         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15919         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15920         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15921         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15922         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15923         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15924         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15925         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15926         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15927         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15928         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15929         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15930
15931         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15932         rename.
15933         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15934         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15935         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15936         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15937         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15938         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15939         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15940         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15941
15942 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15943
15944         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15945
15946 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15947
15948         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15949
15950         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15951         prediction.
15952         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15953
15954         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15955         Remove unused variable magic_bits.
15956         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15957
15958         * string/strnlen.c: Define and use STRNLEN macro.
15959         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15960         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15961         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15962         * wcsmbs/wcslen.c: Define and use WCSLEN.
15963         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15964         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15965         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15966         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15967         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15968         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15969         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15970
15971 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15972
15973         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15974         strnlen-sse2-no-bsf.
15975         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15976         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15977         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15978         Add strnlen support.
15979         (USE_AS_STRNLEN): New macro.
15980         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15981         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15982         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15983         * sysdeps/x86_64/wcslen.S: New file.
15984
15985 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15986
15987         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15988         XMM-moves are used for copying on small sizes.
15989
15990 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15991
15992         * wcsmbs/Makefile (strop-tests): Add wcschr.
15993         * wcsmbs/test-wcschr.c: New file.
15994         * string/test-strchr.c: Update.
15995         Add wcschr support.
15996         (WIDE): New macro.
15997
15998 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15999
16000         * wcsmbs/Makefile (strop-tests): Add wcslen.
16001         * wcsmbs/test-wcslen.c: New file.
16002         * string/test-strlen.c: Update.
16003         Add wcslen support.
16004         (WIDE): New macro.
16005
16006 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16007
16008         * po/it.po: Update from translation team.
16009
16010 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16011
16012         * sysdeps/x86_64/wcscmp.S: Update.
16013         Fix wrong comparison semantics.
16014         wcscmp shall use signed comparison not unsigned.
16015         Don't use substraction to avoid overflow bug.
16016         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16017         * wcsmbc/wcscmp.c: Likewise.
16018         * string/test-strcmp.c: Likewise.
16019         Add new tests to check cases with negative values.
16020
16021 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16022
16023         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16024         * sysdeps/x86_64/dla.h: ...here.  New file.
16025         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16026         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16027         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16028         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16029         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16030         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16031         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16032         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16033         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16034
16035 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16036
16037         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16038         __ynl_finite aliases.
16039
16040 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16041
16042         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16043
16044         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16045         define DLA_FMA.
16046         [DLA_FMA] (EMULV): Use DLA_FMA.
16047         [DLA_FMA] (MUL12): Use EMULV.
16048         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16049         that are not needed.
16050         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16051         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16052         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16053         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16054         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16055         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16056         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16057
16058 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16059
16060         * math/s_nan.c: Undef __nan.
16061         * math/s_nanf.c: Undef __nanf.
16062         * math/s_nanl.c: Undef __nanl.
16063         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16064         "math_private.h".
16065
16066 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16067
16068         * math/s_catan.c: Add branch predictions.
16069         * math/s_catanf.c: Likewise.
16070         * math/s_catanh.c: Likewise.
16071         * math/s_catanhf.c: Likewise.
16072         * math/s_catanhl.c: Likewise.
16073         * math/s_catanl.c: Likewise.
16074         * math/s_cexp.c: Likewise.
16075         * math/s_cexpf.c: Likewise.
16076         * math/s_cexpl.c: Likewise.
16077         * math/s_clog.c: Likewise.
16078         * math/s_clog10.c: Likewise.
16079         * math/s_clog10f.c: Likewise.
16080         * math/s_clog10l.c: Likewise.
16081         * math/s_clogf.c: Likewise.
16082         * math/s_clogl.c: Likewise.
16083         * math/s_csqrt.c: Likewise.
16084         * math/s_csqrtf.c: Likewise.
16085         * math/s_csqrtl.c: Likewise.
16086         * math/s_ctanf.c: Likewise.
16087         * math/s_ctanh.c: Likewise.
16088         * math/s_ctanhf.c: Likewise.
16089         * math/s_ctanhl.c: Likewise.
16090         * math/s_ctanl.c: Likewise.
16091
16092         * math/math_private.h: Define __nan, __nanf, __nanl.
16093         * math/s_cacosh.c: Include <math_private.h>.
16094         * math/s_cacoshl.c: Likewise.
16095         * math/s_casinh.c: Likewise.
16096         * math/s_casinhf.c: Likewise.
16097         * math/s_casinhl.c: Likewise.
16098         * math/s_ccos.c: Rely entire on ccosh.
16099         * math/s_ccosf.c: Rely entire on ccoshf.
16100         * math/s_ccosl.c: Rely entirely on ccoshl.
16101         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16102         Remove tests for FE_INVALID.
16103         * math/s_ccoshf.c: Likewise.
16104         * math/s_ccoshl.c: Likewise.
16105         * math/s_csin.c: Likewise.
16106         * math/s_csinf.c: Likewise.
16107         * math/s_csinh.c Likewise.
16108         * math/s_csinhf.c: Likewise.
16109         * math/s_csinhl.c: Likewise.
16110         * math/s_csinl.c: Likewise.
16111         * math/s_ctan.c: Likewise.
16112         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16113         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16114         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16115
16116 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16117
16118         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16119         compilation problems.
16120
16121         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16122         __builtin_expect.
16123
16124 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16125
16126         * sysdeps/i386/configure.in: Test for -mfma4 option.
16127         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16128         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16129         COMMON_CPUID_INDEX_80000001.
16130         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16131         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16132         use it if FMA3 is not supported.
16133         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16134
16135         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16136         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16137
16138 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16139
16140         [BZ #12892]
16141         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16142         it would create a cycle with a link time dependency.
16143
16144 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16145
16146         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16147         instruction.
16148         * string/Makefile (strop-tests): Add rawmemchr.
16149         * string/test-rawmemchr.c: New file.
16150
16151         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16152         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16153         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16154         when compiling str{,n}casecmp and when AVX is available.  Hook up
16155         new optimized code in initializers.
16156
16157 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16158
16159         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16160         __feraiseexcept instead of feraiseexcept.
16161
16162 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16163
16164         * math/math_private.h: Define defaults for libc_fetestexcept and
16165         libc_feupdateenv.
16166         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16167         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16168         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16169         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16170         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16171         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16172         libc_fetestexcept and libc_feupdateenv.
16173
16174         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16175         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16176         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16177         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16178         libc_feholdexcept_setround.
16179
16180         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16181         Add s_nearbyint-c and s_nearbyintf-c.
16182         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16183         nearbyintf inlines.
16184         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16185         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16186         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16187         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16188
16189         * math/math_private.h: Define defaults for libc_fegetround,
16190         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16191         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16192         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16193         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16194         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16195         standard functions.
16196         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16197         Remove comments and hacks for old compiler versions.
16198         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16199         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16200         libc_feholdexceptl.
16201
16202 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16203
16204         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16205         (__feraiseexcept_renamed): Add __NTH.
16206         (feraiseexcept): Add __NTH.  Rename local variables to fix
16207         namespace violations.
16208
16209 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16210
16211         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16212
16213         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16214
16215         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16216         recently added interfaces.
16217         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16218
16219         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16220         about macro parameter expansion.
16221
16222         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16223         __NO_MATH_INLINES is defined.  Cleanups.
16224
16225         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16226         and __floorf is target has SSE4.1.
16227         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16228         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16229         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16230         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16231
16232         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16233         name.
16234         (floorf): Likewise.
16235
16236         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16237
16238 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16239
16240         * misc/sys/cdefs.h: Fix last change.
16241
16242         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16243         database lookup.
16244
16245 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16246
16247         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16248
16249         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16250         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16251         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16252         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16253         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16254         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16255         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16256         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16257         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16258         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16259         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16260         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16261         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16262         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16263         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16264         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16265         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16266         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16267         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16268         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16269         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16270         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16271
16272         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16273         ceil, ceilf, floor, floorf.
16274
16275         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16276         Perform IRELATIVE relocations last.
16277
16278         * elf/do-rel.h: Add another parameter nrelative, replacing the
16279         local variable with the same name.  Change name of the function
16280         to end in Rel or Rela (uppercase).
16281         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16282         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16283         elf_dynamic_do_##reloc function.
16284
16285 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16286
16287         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16288         is sufficient, at least on modern CPUs.
16289
16290         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16291
16292         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16293         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16294
16295         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16296         __expl_finite.
16297         * math/bits/math-finite.h: Add entries for exp.
16298         * math/e_expl.c: Add __*_finite alias.
16299         * sysdeps/i386/fpu/e_exp.S: Likewise.
16300         * sysdeps/i386/fpu/e_expf.S: Likewise.
16301         * sysdeps/i386/fpu/e_expl.c: Likewise.
16302         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16303         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16304         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16305         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16306         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
16307         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16308         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16309
16310         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
16311         is sufficient, at least on modern CPUs.
16312
16313         * ctype/ctype-info.c (__ctype_init): Define.
16314         * include/ctype.h (__ctype_init): Declare.
16315         (__ctype_b_loc): The variable is always initialized.
16316         (__ctype_toupper_loc): Likewise.
16317         (__ctype_tolower_loc): Likewise.
16318         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
16319         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
16320
16321 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
16322
16323         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
16324
16325         * configure.in: Also look in $cxxmachine/include for C++ system
16326         headers.
16327
16328 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16329
16330         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
16331         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
16332         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
16333         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
16334         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
16335         (USE_AS_WMEMCMP): New macro.
16336         Fixing indents.
16337         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
16338         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
16339         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
16340         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
16341         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16342         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
16343         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
16344         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
16345         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
16346         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
16347         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
16348         (USE_AS_WMEMCMP): New macro.
16349         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
16350         * sysdeps/string/test-memcmp.c: Update.
16351         Fix simple_wmemcmp.
16352         Add new tests.
16353         * wcsmbs/wmemcmp.c: Update.
16354         (WMEMCMP): New macro.
16355         Fix overflow bug.
16356
16357 2011-10-12  Andreas Jaeger  <aj@suse.de>
16358
16359         [BZ #13268]
16360         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
16361
16362 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16363
16364         * libio/iofwide.c (do_length): Avoid warning.
16365
16366         * ctype/ctype.h (__isctype_f): Add missing __THROW.
16367
16368 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
16369
16370         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
16371
16372         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
16373         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
16374         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
16375         * sysdeps/i386/i686/fpu/e_log.S: New file.
16376         * sysdeps/i386/i686/fpu/e_logf.S: New file.
16377         * sysdeps/i386/i686/fpu/e_logl.S: New file.
16378
16379         * ctype/ctype.h: Add support for inlined isXXX functions when
16380         compiling C++ code.
16381
16382 2011-10-14  Andreas Schwab  <schwab@redhat.com>
16383
16384         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16385
16386         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
16387
16388 2011-10-13  Roland McGrath  <roland@hack.frob.com>
16389
16390         [BZ #13291]
16391         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
16392
16393 2011-10-13  Andreas Schwab  <schwab@redhat.com>
16394
16395         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
16396         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
16397         feraiseexcept.
16398
16399         * sysdeps/x86_64/memrchr.S: Check for zero size.
16400
16401         * string/stratcliff.c: Add memrchr tests.
16402
16403 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16404
16405         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16406         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
16407         rawmemchr-sse2 rawmemchr-sse2-bsf.
16408         * sysdeps/i386/i686/multiarch/memchr.S: New file.
16409         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
16410         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
16411         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
16412         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
16413         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
16414         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
16415         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
16416         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
16417         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
16418         * string/memrchr.c (MEMRCHR): New macro.
16419
16420 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
16421
16422         Add integration with gcc's -ffinite-math-only and optimize wrapper
16423         functions in libm.
16424         * Versions.def: Define GLIBC_2.15 version for libm.
16425         * math/Makefile (headers): Add bits/math-finite.h.
16426         * math/bits/math-finite.h: New file.
16427         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
16428         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
16429         * math/e_acoshl.c: Add __*_finite alias.
16430         * math/e_acosl.c: Likewise.
16431         * math/e_asinl.c: Likewise.
16432         * math/e_atan2l.c: Likewise.
16433         * math/e_atanhl.c: Likewise.
16434         * math/e_coshl.c: Likewise.
16435         * math/e_exp10.c: Likewise.
16436         * math/e_exp10f.c: Likewise.
16437         * math/e_exp10l.c: Likewise.
16438         * math/e_exp2l.c: Likewise.
16439         * math/e_fmodl.c: Likewise.
16440         * math/e_gammal_r.c: Likewise.
16441         * math/e_hypotl.c: Likewise.
16442         * math/e_j0l.c: Likewise.
16443         * math/e_j1l.c: Likewise.
16444         * math/e_jnl.c: Likewise.
16445         * math/e_lgammal_r.c: Likewise.
16446         * math/e_log10l.c: Likewise.
16447         * math/e_log2l.c: Likewise.
16448         * math/e_logl.c: Likewise.
16449         * math/e_powl.c: Likewise.
16450         * math/e_sinhl.c: Likewise.
16451         * math/e_sqrtl.c: Likewise.
16452         * math/e_scalb.c: Completely rewritten and optimized.
16453         * math/e_scalbf.c: Likewise.
16454         * math/e_scalbl.c: Likewise.
16455         * math/w_acos.c: Likewise.
16456         * math/w_acosf.c: Likewise.
16457         * math/w_acosl.c: Likewise.
16458         * math/w_acosh.c: Likewise.
16459         * math/w_acoshf.c: Likewise.
16460         * math/w_acoshl.c: Likewise.
16461         * math/w_asin.c: Likewise.
16462         * math/w_asinf.c: Likewise.
16463         * math/w_asinl.c: Likewise.
16464         * math/w_atan2.c: Likewise.
16465         * math/w_atan2f.c: Likewise.
16466         * math/w_atan2l.c: Likewise.
16467         * math/w_atanh.c: Likewise.
16468         * math/w_atanhf.c: Likewise.
16469         * math/w_atanhl.c: Likewise.
16470         * math/w_exp10.c: Likewise.
16471         * math/w_exp10f.c: Likewise.
16472         * math/w_exp10l.c: Likewise.
16473         * math/w_fmod.c: Likewise.
16474         * math/w_fmodf.c: Likewise.
16475         * math/w_fmodl.c: Likewise.
16476         * math/w_j0.c: Likewise.
16477         * math/w_j0f.c: Likewise.
16478         * math/w_j0l.c: Likewise.
16479         * math/w_j1.c: Likewise.
16480         * math/w_j1f.c: Likewise.
16481         * math/w_j1l.c: Likewise.
16482         * math/w_jn.c: Likewise.
16483         * math/w_jnf.c: Likewise.
16484         * math/w_log.c: Likewise.
16485         * math/w_logf.c: Likewise.
16486         * math/w_logl.c: Likewise.
16487         * math/w_log10.c: Likewise.
16488         * math/w_log10f.c: Likewise.
16489         * math/w_log10l.c: Likewise.
16490         * math/w_log2.c: Likewise.
16491         * math/w_log2f.c: Likewise.
16492         * math/w_log2l.c: Likewise.
16493         * math/w_pow.c: Likewise.
16494         * math/w_powf.c: Likewise.
16495         * math/w_powl.c: Likewise.
16496         * math/w_remainder.c: Likewise.
16497         * math/w_remainderf.c: Likewise.
16498         * math/w_remainderl.c: Likewise.
16499         * math/w_scalb.c: Likewise.
16500         * math/w_scalbf.c: Likewise.
16501         * math/w_scalbl.c: Likewise.
16502         * math/w_sqrt.c: Likewise.
16503         * math/w_sqrtf.c: Likewise.
16504         * math/w_sqrtl.c: Likewise.
16505         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
16506         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
16507         used.
16508         * math/math_private.h: Declare __kernel_standard_f.
16509         * math/w_cosh.c: Remove cruft and optimize a bit.
16510         * math/w_coshf.c: Likewise.
16511         * math/w_coshl.c: Likewise.
16512         * math/w_exp2.c: Likewise.
16513         * math/w_exp2f.c: Likewise.
16514         * math/w_exp2l.c: Likewise.
16515         * math/w_hypot.c: Likewise.
16516         * math/w_hypotf.c: Likewise.
16517         * math/w_hypotl.c: Likewise.
16518         * math/w_lgamma.c: Likewise.
16519         * math/w_lgamma_r.c: Likewise.
16520         * math/w_lgammaf.c: Likewise.
16521         * math/w_lgammaf_r.c: Likewise.
16522         * math/w_lgammal.c: Likewise.
16523         * math/w_lgammal_r.c: Likewise.
16524         * math/w_sinh.c: Likewise.
16525         * math/w_sinhf.c: Likewise.
16526         * math/w_sinhl.c: Likewise.
16527         * math/w_tgamma.c: Likewise.
16528         * math/w_tgammaf.c: Likewise.
16529         * math/w_tgammal.c: Likewise.
16530         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16531         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16532         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
16533         Minor optimizations.  Pretty printing.  Remove cruft.
16534         * sysdeps/i386/fpu/e_acosf.S: Likewise.
16535         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16536         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16537         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16538         * sysdeps/i386/fpu/e_acosl.c: Likewise.
16539         * sysdeps/i386/fpu/e_asin.S: Likewise.
16540         * sysdeps/i386/fpu/e_asinf.S: Likewise.
16541         * sysdeps/i386/fpu/e_atan2.S: Likewise.
16542         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
16543         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
16544         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16545         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16546         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16547         * sysdeps/i386/fpu/e_exp10.S: Likewise.
16548         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
16549         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
16550         * sysdeps/i386/fpu/e_exp2.S: Likewise.
16551         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
16552         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
16553         * sysdeps/i386/fpu/e_fmod.S: Likewise.
16554         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
16555         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
16556         * sysdeps/i386/fpu/e_hypot.S: Likewise.
16557         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
16558         * sysdeps/i386/fpu/e_log.S: Likewise.
16559         * sysdeps/i386/fpu/e_log10.S: Likewise.
16560         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16561         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16562         * sysdeps/i386/fpu/e_log2.S: Likewise.
16563         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16564         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16565         * sysdeps/i386/fpu/e_logf.S: Likewise.
16566         * sysdeps/i386/fpu/e_logl.S: Likewise.
16567         * sysdeps/i386/fpu/e_pow.S: Likewise.
16568         * sysdeps/i386/fpu/e_powf.S: Likewise.
16569         * sysdeps/i386/fpu/e_powl.S: Likewise.
16570         * sysdeps/i386/fpu/e_remainder.S: Likewise.
16571         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
16572         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
16573         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16574         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16575         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16576         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
16577         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
16578         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
16579         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
16580         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16581         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16582         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16583         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16584         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
16585         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16586         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16587         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16588         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16589         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16590         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16591         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16592         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
16593         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
16594         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16595         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16596         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16597         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16598         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16599         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16600         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16601         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16602         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16603         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16604         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16605         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16606         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16607         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16608         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16609         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16610         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16611         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16612         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16613         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16614         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16615         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16616         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16617         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16618         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16619         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16620         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16621         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16622         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16623         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16624         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16625         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16626         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16627         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16628         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16629         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16630         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16631         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16632         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16633         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16634         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16635         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16636         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16637         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16638         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16639         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16640         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16641         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16642         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16643         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16644         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16645         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16646         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16647         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
16648         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16649         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16650         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16651         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16652         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16653         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16654         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16655         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
16656         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16657         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16658         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16659         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16660         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16661         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
16662         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16663         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16664         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16665         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16666         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16667         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16668         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16669         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16670         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16671         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16672         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
16673         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16674         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16675         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16676         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
16677         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
16678         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
16679         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
16680         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
16681         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
16682         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
16683         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16684         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16685         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16686         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16687         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16688         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16689         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16690         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16691         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16692         (__isnanf): Likewise.
16693         (__isinf_ns): Likewise.
16694         (__isinf_nsf): Likewise.
16695         (__finite): Likewise.
16696         (__finitef): Likewise.
16697         (__ieee754_sqrt): Define as macro.
16698         (__ieee754_sqrtf): Define as macro.
16699         (__ieee754_sqrtl): Define as macro.
16700         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16701         inlined copy.
16702         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16703         __FINITE_MATH_ONLY__ consistent.
16704         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16705
16706 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16707
16708         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16709         of rawmemchr.
16710
16711         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16712
16713 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16714
16715         * po/ja.po: Update from translation team.
16716
16717 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16718
16719         * locale/programs/locarchive.c (prepare_address_space): New function.
16720         (create_archive, enlarge_archive, open_archive): Use it.
16721
16722         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16723         inside [SHARED], where it is used.
16724
16725         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16726
16727         * nss/getent.c (netgroup_keys): Remove unused variable.
16728         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16729
16730 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16731
16732         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16733         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16734         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16735         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16736         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16737         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16738         * math/Makefile (libm-calls): Add s_isinf_ns.
16739         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16740         * math/multc3.c: Likewise.
16741         * math/s_casin.c: Likewise.
16742         * math/s_casinf.c: Likewise.
16743         * math/s_casinl.c: Likewise.
16744         * math/s_ccos.c: Likewise.
16745         * math/s_ccosf.c: Likewise.
16746         * math/s_ccosl.c: Likewise.
16747         * math/s_ctan.c: Likewise.
16748         * math/s_ctanf.c: Likewise.
16749         * math/s_ctanh.c: Likewise.
16750         * math/s_ctanhf.c: Likewise.
16751         * math/s_ctanhl.c: Likewise.
16752         * math/s_ctanl.c: Likewise.
16753         * math/w_fmod.c: Likewise.
16754         * math/w_fmodf.c: Likewise.
16755         * math/w_fmodl.c: Likewise.
16756         * math/w_remainder.c: Likewise.
16757         * math/w_remainderf.c: Likewise.
16758         * math/w_remainderl.c: Likewise.
16759         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16760         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16761         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16762         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16763         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16764         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16765         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16766         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16767
16768         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16769         of the number.
16770         * stdio-common/printf_fphex.c: Likewise.
16771         * stdio-common/printf_size.c: Likewise.
16772
16773         * math/e_exp10.c: Include math_private.h using <...> not "...".
16774         * math/e_exp10f.c: Likewise.
16775         * math/e_exp10l.c: Likewise.
16776         * math/e_exp2l.c: Likewise.
16777         * math/e_j0l.c: Likewise.
16778         * math/e_j1l.c: Likewise.
16779         * math/e_jnl.c: Likewise.
16780         * math/e_lgammal_r.c: Likewise.
16781         * math/e_rem_pio2l.c: Likewise.
16782         * math/e_scalb.c: Likewise.
16783         * math/e_scalbf.c: Likewise.
16784         * math/e_scalbl.c: Likewise.
16785         * math/k_cosl.c: Likewise.
16786         * math/k_sinl.c: Likewise.
16787         * math/k_tanl.c: Likewise.
16788         * math/s_cacoshf.c: Likewise.
16789         * math/s_catan.c: Likewise.
16790         * math/s_catanf.c: Likewise.
16791         * math/s_catanh.c: Likewise.
16792         * math/s_catanhf.c: Likewise.
16793         * math/s_catanhl.c: Likewise.
16794         * math/s_catanl.c: Likewise.
16795         * math/s_ccosh.c: Likewise.
16796         * math/s_ccoshf.c: Likewise.
16797         * math/s_ccoshl.c: Likewise.
16798         * math/s_cexp.c: Likewise.
16799         * math/s_cexpf.c: Likewise.
16800         * math/s_cexpl.c: Likewise.
16801         * math/s_clog.c: Likewise.
16802         * math/s_clog10.c: Likewise.
16803         * math/s_clog10f.c: Likewise.
16804         * math/s_clog10l.c: Likewise.
16805         * math/s_clogf.c: Likewise.
16806         * math/s_clogl.c: Likewise.
16807         * math/s_csin.c: Likewise.
16808         * math/s_csinf.c: Likewise.
16809         * math/s_csinh.c: Likewise.
16810         * math/s_csinhf.c: Likewise.
16811         * math/s_csinhl.c: Likewise.
16812         * math/s_csinl.c: Likewise.
16813         * math/s_csqrt.c: Likewise.
16814         * math/s_csqrtf.c: Likewise.
16815         * math/s_csqrtl.c: Likewise.
16816         * math/s_ctan.c: Likewise.
16817         * math/s_ctanf.c: Likewise.
16818         * math/s_ctanh.c: Likewise.
16819         * math/s_ctanhf.c: Likewise.
16820         * math/s_ctanhl.c: Likewise.
16821         * math/s_ctanl.c: Likewise.
16822         * math/s_ldexp.c: Likewise.
16823         * math/s_ldexpf.c: Likewise.
16824         * math/s_ldexpl.c: Likewise.
16825         * math/s_significand.c: Likewise.
16826         * math/s_significandf.c: Likewise.
16827         * math/s_significandl.c: Likewise.
16828         * math/w_acos.c: Likewise.
16829         * math/w_acosf.c: Likewise.
16830         * math/w_acosh.c: Likewise.
16831         * math/w_acoshf.c: Likewise.
16832         * math/w_acoshl.c: Likewise.
16833         * math/w_acosl.c: Likewise.
16834         * math/w_asin.c: Likewise.
16835         * math/w_asinf.c: Likewise.
16836         * math/w_asinl.c: Likewise.
16837         * math/w_atan2.c: Likewise.
16838         * math/w_atan2f.c: Likewise.
16839         * math/w_atan2l.c: Likewise.
16840         * math/w_atanh.c: Likewise.
16841         * math/w_atanhf.c: Likewise.
16842         * math/w_atanhl.c: Likewise.
16843         * math/w_cosh.c: Likewise.
16844         * math/w_coshf.c: Likewise.
16845         * math/w_coshl.c: Likewise.
16846         * math/w_dremf.c: Likewise.
16847         * math/w_exp10.c: Likewise.
16848         * math/w_exp10f.c: Likewise.
16849         * math/w_exp10l.c: Likewise.
16850         * math/w_exp2.c: Likewise.
16851         * math/w_exp2f.c: Likewise.
16852         * math/w_fmod.c: Likewise.
16853         * math/w_fmodf.c: Likewise.
16854         * math/w_fmodl.c: Likewise.
16855         * math/w_hypot.c: Likewise.
16856         * math/w_hypotf.c: Likewise.
16857         * math/w_hypotl.c: Likewise.
16858         * math/w_j0.c: Likewise.
16859         * math/w_j0f.c: Likewise.
16860         * math/w_j0l.c: Likewise.
16861         * math/w_j1.c: Likewise.
16862         * math/w_j1f.c: Likewise.
16863         * math/w_j1l.c: Likewise.
16864         * math/w_jn.c: Likewise.
16865         * math/w_jnf.c: Likewise.
16866         * math/w_jnl.c: Likewise.
16867         * math/w_lgamma.c: Likewise.
16868         * math/w_lgamma_r.c: Likewise.
16869         * math/w_lgammaf.c: Likewise.
16870         * math/w_lgammaf_r.c: Likewise.
16871         * math/w_lgammal.c: Likewise.
16872         * math/w_lgammal_r.c: Likewise.
16873         * math/w_log.c: Likewise.
16874         * math/w_log10.c: Likewise.
16875         * math/w_log10f.c: Likewise.
16876         * math/w_log10l.c: Likewise.
16877         * math/w_log2.c: Likewise.
16878         * math/w_log2f.c: Likewise.
16879         * math/w_log2l.c: Likewise.
16880         * math/w_logf.c: Likewise.
16881         * math/w_logl.c: Likewise.
16882         * math/w_pow.c: Likewise.
16883         * math/w_powf.c: Likewise.
16884         * math/w_powl.c: Likewise.
16885         * math/w_remainder.c: Likewise.
16886         * math/w_remainderf.c: Likewise.
16887         * math/w_remainderl.c: Likewise.
16888         * math/w_scalb.c: Likewise.
16889         * math/w_scalbf.c: Likewise.
16890         * math/w_scalbl.c: Likewise.
16891         * math/w_sinh.c: Likewise.
16892         * math/w_sinhf.c: Likewise.
16893         * math/w_sinhl.c: Likewise.
16894         * math/w_sqrt.c: Likewise.
16895         * math/w_sqrtf.c: Likewise.
16896         * math/w_sqrtl.c: Likewise.
16897         * math/w_tgamma.c: Likewise.
16898         * math/w_tgammaf.c: Likewise.
16899         * math/w_tgammal.c: Likewise.
16900
16901         * po/ja.po: Update from translation team.
16902
16903 2011-09-29  Andreas Jaeger  <aj@suse.de>
16904
16905         [BZ #13179]
16906         * sunrpc/netname.c (netname2host): Fix logic.
16907
16908         [BZ #6779]
16909         [BZ #6783]
16910         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16911         correctly.
16912         * math/w_remainder.c (__remainder): Likewise.
16913         * math/w_remainderf.c (__remainderf): Likewise.
16914         * math/libm-test.inc (remainder_test): Add test cases.
16915
16916 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16917
16918         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16919         sdiv_qrnnd.
16920
16921 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16922
16923         * string/test-memcmp.c: Avoid unncessary #defines.
16924         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16925
16926 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16927
16928         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16929         Use new sse2 version for core i3 - i7 as it's faster
16930         than sse42 version.
16931         (bit_Prefer_PMINUB_for_stringop): New.
16932         * sysdeps/x86_64/rawmemchr.S: Update.
16933         Replace with faster SSE2 version.
16934         * sysdeps/x86_64/memrchr.S: New file.
16935         * sysdeps/x86_64/memchr.S: Update.
16936         Replace with faster SSE2 version.
16937
16938 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16939
16940         * elf/dl-load.c (lose): Add cast to avoid warning.
16941
16942 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16943
16944         * po/ca.po: Update from translation team.
16945
16946         * inet/getnetgrent_r.c: Hook up nscd.
16947         * nscd/Makefile (routines): Add nscd_netgroup.
16948         (nscd-modules): Add netgroupcache.
16949         (CFLAGS-netgroupcache.c): Define.
16950         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16951         (cache_search): Add const to second parameter.
16952         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16953         INNETGR.
16954         (dbs): Add netgrdb entry.
16955         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16956         (verify_persistent_db): Handle netgrdb.
16957         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16958         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16959         GETFDNETGR.
16960         (netgroup_response_header): Define.
16961         (innetgroup_response_header): Define.
16962         (datahead): Add netgroup_response_header and innetgroup_response_header
16963         elements.
16964         * nscd/nscd.conf: Add entries for netgroup cache.
16965         * nscd/nscd.h (dbtype): Add netgrdb.
16966         (_PATH_NSCD_NETGROUP_DB): Define.
16967         (netgroup_iov_disabled): Declare.
16968         (xmalloc, xcalloc, xrealloc): Move declarations here.
16969         (cache_search): Adjust prototype.
16970         Add netgroup-related prototypes.
16971         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16972         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16973         (__nscd_innetgr): Declare.
16974         * nscd/selinux.c (perms): Use access_vector_t as element type and
16975         add netgroup-related initializers.
16976         * nscd/netgroupcache.c: New file.
16977         * nscd/nscd_netgroup.c: New file.
16978         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16979         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16980         For four parameters use innetgr.
16981         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16982         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16983         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16984         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16985
16986         * nscd/connections.c (register_traced_file): Don't register file
16987         for disabled databases.
16988
16989 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16990
16991         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16992
16993         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16994         from tree and freeing node.
16995
16996 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16997
16998         * nss/nsswitch.c (__nss_database_lookup): Handle
16999         nss_parse_service_list out of memory case.
17000
17001 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17002
17003         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17004         out of memory case.
17005
17006 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17007
17008         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17009         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17010         pass it down.
17011         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17012         elf_machine_rela, elf_machine_lazy_rel.
17013         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17014         (ELF_DYNAMIC_DO_REL): Likewise.
17015         (ELF_DYNAMIC_DO_RELA): Likewise.
17016         (ELF_DYNAMIC_RELOCATE): Likewise.
17017         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17018         to ELF_DYNAMIC_DO_REL.
17019         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17020         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17021         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17022         elf_machine_rela.
17023         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17024         skip_ifunc, don't call ifunc function if non-zero.
17025         (elf_machine_rela): Likewise.
17026         (elf_machine_lazy_rel): Likewise.
17027         (elf_machine_lazy_rela): Likewise.
17028         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17029         (elf_machine_lazy_rel): Likewise.
17030         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17031         Likewise.
17032         (elf_machine_lazy_rel): Likewise.
17033         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17034         Likewise.
17035         (elf_machine_lazy_rel): Likewise.
17036         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17037         (elf_machine_lazy_rel): Likewise.
17038         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17039         (elf_machine_lazy_rel): Likewise.
17040         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17041         (elf_machine_lazy_rel): Likewise.
17042         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17043         (elf_machine_lazy_rel): Likewise.
17044         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17045         (elf_machine_lazy_rel): Likewise.
17046         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17047         (elf_machine_lazy_rel): Likewise.
17048
17049 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17050
17051         * nss/nss_files/files-init.c (_nss_files_init): Use static
17052         initialization for all the *_traced_file variables.
17053
17054 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17055
17056         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17057
17058 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17059
17060         [BZ #13226]
17061         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17062
17063 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17064
17065         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17066         Reread the line before reparsing it.
17067
17068 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17069
17070         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17071
17072 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17073             Maxim Kuvyrkov  <maxim@codesourcery.com>
17074             Joseph Myers  <joseph@codesourcery.com>
17075
17076         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17077         if needed for __stack_chk_guard.
17078
17079 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17080
17081         * sysdeps/posix/spawni.c (script_execute): Always define it.
17082         It will be optimized away if unused.
17083         (maybe_script_execute): New function.
17084         (__spawni): Call it.
17085
17086         * Makerules: Don't include tls.make.
17087         (config-tls): Always set to thread.
17088         * tls.make.c: File removed.
17089
17090 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17091
17092         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17093         * config.make.in (CPPFLAGS-config): New substituted variable.
17094
17095 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17096
17097         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17098
17099         [BZ #13192]
17100         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17101         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17102
17103 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17104
17105         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17106         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17107         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17108         (CALL_FAIL): Likewise.
17109         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17110         (CALL_FAIL): Macro removed.
17111         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17112
17113 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17114
17115         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17116         for __FINITE_MATH_ONLY__ == 1.
17117
17118 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17119
17120         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17121         __ieee754_sqrt instead of sqrt.
17122         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17123         __ieee754_sqrtf instead of sqrtf.
17124         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17125         __floorf instead of floorf.
17126         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17127         __floorf, __truncf instead of floorf, truncf.
17128
17129 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17130
17131         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17132
17133         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17134         __extern_always_inline.
17135         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17136         32-bit.
17137
17138 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17139
17140         * elf/rtld.c (dl_main): Also relocate in dependency order when
17141         doing symbol dependency testing.
17142
17143 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17144
17145         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17146         Always define `refsym'.
17147
17148 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17149
17150         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17151         (__FD_ELT): Renamed from __FDELT.
17152         * misc/bits/select2.h (__FD_ELT): Likewise.
17153         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17154         __FD_MASK instead of __FDELT, __FDMASK.
17155         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17156         Likewise.
17157         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17158         Likewise.
17159
17160         * elf/Makefile (gen-ldd): Fix pattern.
17161
17162         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17163         (init_tls): Likewise.
17164
17165 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17166
17167         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17168
17169 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17170
17171         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17172         `struct cmsghdr *' instead of `void *'.
17173         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17174         Likewise.
17175
17176 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17177
17178         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17179         if non-absolute.
17180         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17181         ldd_rewrite_script.
17182
17183 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17184
17185         * configure.in: Remove --with-tls option.
17186         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17187         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17188         out in case it is missing.
17189         * sysdeps/ia64/elf/configure.in: Likewise.
17190         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17191         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17192         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17193         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17194         * sysdeps/sh/elf/configure.in: Likewise.
17195         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17196         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17197         * sysdeps/x86_64/elf/configure.in: Likewise.
17198         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17199         * sysdeps/mach/hurd/tls.h: Likewise.
17200
17201         [BZ #13067]
17202         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17203
17204         [BZ #13090]
17205         * configure.in: Fix use of AC_INIT.
17206
17207         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17208
17209 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17210
17211         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17212         __set_errno.
17213         * malloc/hooks.c: Likewise.
17214
17215         [BZ #11929]
17216         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17217         variables statically.
17218         (narenas): Initialize.
17219         (list_lock): Initialize.
17220         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17221         initializtion of main_arena and list_lock.  Small cleanups.
17222         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17223         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17224         Add initializers to main_arena and mp_.
17225         (malloc_state): Remove pagesize member.  Change all users to use
17226         GLRO(dl_pagesize).
17227
17228         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17229         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17230         is always initialized.
17231
17232         * malloc/malloc.c: Removed unused configurations and dead code.
17233         * malloc/arena.c: Likewise.
17234         * malloc/hooks.c: Likewise.
17235         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17236
17237         * include/tls.h: Removed.  USE___THREAD must always be defined.
17238         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17239         * elf/dl-libc.c: Likewise.
17240         * elf/dl-tsd.c: Likewise.
17241         * include/errno.h: Likewise.
17242         * include/netdb.h: Likewise.
17243         * include/resolv.h: Likewise.
17244         * inet/herrno-loc.c: Likewise.
17245         * inet/herrno.c: Likewise.
17246         * malloc/arena.c: Likewise.
17247         * malloc/hooks.c: Likewise.
17248         * malloc/malloc.c: Likewise.
17249         * resolv/res-state.c: Likewise.
17250         * resolv/res_libc.c: Likewise.
17251         * sysdeps/i386/dl-machine.h: Likewise.
17252         * sysdeps/ia64/dl-machine.h: Likewise.
17253         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17254         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17255         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17256         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17257         * sysdeps/sh/dl-machine.h: Likewise.
17258         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17259         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17260         * sysdeps/unix/i386/sysdep.S: Likewise.
17261         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17262         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17263         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17264         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17265         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17266         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17267         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17268         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17269         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17270         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17271         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17272         * sysdeps/x86_64/dl-machine.h: Likewise.
17273         * tls.make.c: Likewise.
17274
17275         * configure.in: Remove --with-__thread option.  Make tests for
17276         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17277         tls_model attribute fail if no support is available.  Remove
17278         USE_IN_LIBIO.
17279         * Makeconfig: Adjust for dropped configure option.  All features are
17280         now mandatory.
17281         * Makerules: Likewise.
17282         * Versions.def: Likewise.
17283         * argp/argp-fmtstream.c: Likewise.
17284         * argp/argp-fmtstream.h: Likewise.
17285         * argp/argp-help.c: Likewise.
17286         * assert/assert.c: Likewise.
17287         * config.h.in: Likewise.
17288         * config.make.in: Likewise.
17289         * configure: Likewise.
17290         * configure.in: Likewise.
17291         * csu/Versions: Likewise.
17292         * csu/init.c: Likewise.
17293         * elf/tst-audit2.c: Likewise.
17294         * elf/tst-tls10.c: Likewise.
17295         * elf/tst-tls10.h: Likewise.
17296         * elf/tst-tls11.c: Likewise.
17297         * elf/tst-tls12.c: Likewise.
17298         * elf/tst-tls14.c: Likewise.
17299         * elf/tst-tlsmod11.c: Likewise.
17300         * elf/tst-tlsmod12.c: Likewise.
17301         * elf/tst-tlsmod13.c: Likewise.
17302         * elf/tst-tlsmod13a.c: Likewise.
17303         * elf/tst-tlsmod14a.c: Likewise.
17304         * elf/tst-tlsmod15b.c: Likewise.
17305         * elf/tst-tlsmod16a.c: Likewise.
17306         * elf/tst-tlsmod16b.c: Likewise.
17307         * elf/tst-tlsmod7.c: Likewise.
17308         * elf/tst-tlsmod8.c: Likewise.
17309         * elf/tst-tlsmod9.c: Likewise.
17310         * gmon/gmon.c: Likewise.
17311         * grp/fgetgrent_r.c: Likewise.
17312         * grp/putgrent.c: Likewise.
17313         * hurd/fopenport.c: Likewise.
17314         * include/libc-symbols.h: Likewise.
17315         * include/tls.h: Likewise.
17316         * intl/gettextP.h: Likewise.
17317         * intl/loadinfo.h: Likewise.
17318         * locale/global-locale.c: Likewise.
17319         * locale/localeinfo.h: Likewise.
17320         * mach/devstream.c: Likewise.
17321         * malloc/arena.c: Likewise.
17322         * malloc/set-freeres.c: Likewise.
17323         * misc/err.c: Likewise.
17324         * misc/getttyent.c: Likewise.
17325         * misc/mntent_r.c: Likewise.
17326         * posix/getopt.c: Likewise.
17327         * posix/wordexp.c: Likewise.
17328         * pwd/fgetpwent_r.c: Likewise.
17329         * resolv/Versions: Likewise.
17330         * resolv/res_hconf.c: Likewise.
17331         * shadow/fgetspent_r.c: Likewise.
17332         * shadow/putspent.c: Likewise.
17333         * stdio-common/printf_fphex.c: Likewise.
17334         * stdio-common/tmpfile.c: Likewise.
17335         * stdlib/abort.c: Likewise.
17336         * stdlib/fmtmsg.c: Likewise.
17337         * sunrpc/auth_unix.c: Likewise.
17338         * sunrpc/clnt_perr.c: Likewise.
17339         * sunrpc/clnt_tcp.c: Likewise.
17340         * sunrpc/clnt_udp.c: Likewise.
17341         * sunrpc/clnt_unix.c: Likewise.
17342         * sunrpc/openchild.c: Likewise.
17343         * sunrpc/svc_simple.c: Likewise.
17344         * sunrpc/svc_tcp.c: Likewise.
17345         * sunrpc/svc_udp.c: Likewise.
17346         * sunrpc/svc_unix.c: Likewise.
17347         * sunrpc/xdr.c: Likewise.
17348         * sunrpc/xdr_array.c: Likewise.
17349         * sunrpc/xdr_rec.c: Likewise.
17350         * sunrpc/xdr_ref.c: Likewise.
17351         * sunrpc/xdr_stdio.c: Likewise.
17352
17353 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17354
17355         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17356
17357 2011-07-03  Andreas Jaeger  <aj@suse.de>
17358
17359         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
17360         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
17361         regenerate with gen-libm-tests.pl.
17362
17363 2010-05-12  Petr Baudis  <pasky@suse.cz>
17364
17365         [BZ #11589]
17366         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
17367         around j0() zero points by switching to j1().
17368         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17369         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17370         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17371         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17372
17373 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17374
17375         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
17376         instead of 0.
17377         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
17378         instead of 0.                              .
17379         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17380         Patch in part by Pavel Roskin <proski@gnu.org>.
17381
17382         [BZ #13138]
17383         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
17384         realloc.
17385         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
17386         Free memory block if necessary.
17387
17388         [BZ #12847]
17389         * libio/genops.c (INTDEF): For string streams the _lock pointer can
17390         be NULL.  Don't lock in this case.
17391
17392 2011-09-09  Roland McGrath  <roland@hack.frob.com>
17393
17394         * elf/elf.h (ELFOSABI_GNU): New macro.
17395         (ELFOSABI_LINUX): Define to that.
17396
17397 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
17398
17399         * string/strncat.c (strncat): Undef the symbol in case it has been
17400         defined in bits/string.h.
17401
17402 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17403
17404         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
17405
17406         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
17407         link map.
17408
17409 2011-08-17  Andreas Jaeger  <aj@suse.de>
17410
17411         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
17412
17413 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
17414             Ian Lance Taylor  <iant@google.com>
17415
17416         * math/libm-test.inc (lround_test): New testcase.
17417         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
17418
17419 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
17420
17421         * Makefile: Remove support for automatic cvs check-ins.
17422         * Makerules: Likewise.
17423         * config.make.in: Likewise.
17424         * configure.in: Likewise.
17425         * intl/Makefile: Likewise.
17426         * locale/Makefile: Likewise.
17427         * po/Makefile: Likewise.
17428         * posix/Makefile: Likewise.
17429         * sysdeps/gnu/Makefile: Likewise.
17430         * sysdeps/mach/hurd/Makefile: Likewise.
17431         * sysdeps/sparc/sparc32/Makefile: Likewise.
17432
17433         [BZ #13118]
17434         * posix/Makefile (bug-regex32-ENV): Define.
17435         Patch by John Stanley <jpsinthemix@verizon.net>.
17436
17437         * misc/Makefile (headers): Add bits/select2.h.
17438         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
17439         * misc/bits/select2.h: New file.
17440         * include/bits/select2.h: New file.
17441         * debug/Makefile (routines): Add fdelt_chk.
17442         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
17443         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
17444         FD_ISSET.
17445         * debug/fdelt_chk.c: New file.
17446
17447         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
17448         * wcsmbs/test-wmemcmp.c: Likewise.
17449         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
17450         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
17451
17452 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17453
17454         * string/Makefile (strop-tests): Add memcmp.
17455         * string/test-wmemcmp.c: New file.
17456         * string/test-memcmp.c: Add wmemcmp support.
17457
17458 2011-09-08  Roland McGrath  <roland@hack.frob.com>
17459
17460         [BZ #13153]
17461         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
17462         2011-07-19 change.
17463
17464         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
17465         garbage value in a __mach_port_mod_refs call in the cases of the
17466         task-self and thread-self ports.
17467
17468 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17469
17470         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
17471
17472 2011-09-08  Andreas Schwab  <schwab@redhat.com>
17473
17474         * elf/dl-load.c (lose): Check for non-null L.
17475
17476 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17477
17478         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
17479
17480         * elf/dl-libc.c (dlerror_run): Pass back error code from
17481         dl_catch_error.
17482
17483         [BZ #13123]
17484         * elf/dl-load.c (lose): Free l_origin if it is valid.
17485
17486         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
17487         names.
17488         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
17489         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17490         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17491         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17492         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
17493         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
17494
17495 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17496
17497         * sysdeps/powerpc/fpu/e_hypot.c: New file.
17498         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
17499         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
17500         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
17501         * sysdeps/powerpc/fpu/k_cosf.c: New file.
17502         * sysdeps/powerpc/fpu/k_sinf.c: New file.
17503         * sysdeps/powerpc/fpu/s_cosf.c: New file.
17504         * sysdeps/powerpc/fpu/s_sinf.c: New file.
17505         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
17506         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
17507
17508 2011-08-15  Alan Modra  <amodra@gmail.com>
17509
17510         [BZ #13092]
17511         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
17512         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
17513         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
17514         ppc_mcount to static-only-routines.
17515         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
17516         __mcount_internal.
17517         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
17518         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
17519
17520 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
17521
17522         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
17523         for finite and infinity parameters.
17524
17525 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
17526
17527         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
17528         and add nop instructions for throughput optimization.
17529         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17530
17531 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
17532
17533         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
17534         aligned copy for power7 with vector-scalar instructions.
17535         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
17536
17537 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
17538
17539         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
17540         AVX check.
17541
17542 2011-09-07  Andreas Schwab  <schwab@redhat.com>
17543
17544         [BZ #13144]
17545         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
17546         last change.
17547
17548 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17549
17550         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17551         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
17552         syscall wrapper around clock_gettime in __vdso_clock_gettime.
17553         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
17554         clock_gettime.
17555
17556 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17557
17558         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
17559         Forgot to demangle the pointer.
17560
17561         * sysdeps/i386/sysdep.h: Define atom_text_section.
17562         * sysdeps/x86_64/sysdep.h: Likewise.
17563         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
17564         section with atom_text_section.
17565         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17566         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17567         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
17568         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17569         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
17570
17571         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
17572         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
17573         already be defined.  Change to take two parameters and don't assign
17574         result to variable.  Adjust all users.
17575         Define INTERNAL_GETTIME if not already defined.
17576         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
17577         call.
17578         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
17579         HAVE_CLOCK_GETTIME_VSYSCALL.
17580         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
17581
17582         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
17583         gettimeofday vsyscall, just use time.
17584
17585 2011-09-06  Andreas Schwab  <schwab@redhat.com>
17586
17587         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
17588         <errno.h>.
17589
17590 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17591
17592         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
17593         syscall on x86-64.
17594         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
17595         syscall.
17596         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17597         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
17598         syscall if possible.
17599
17600 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17601
17602         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
17603         e_ident.  Don't pass to find_mapsXX.
17604         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
17605
17606 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17607
17608         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17609         strchr-sse2-no-bsf strrchr-sse2-no-bsf
17610         * sysdeps/x86_64/multiarch/strchr.S: Update.
17611         Check bit_slow_BSF bit.
17612         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17613         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
17614         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
17615
17616 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17617
17618         [BZ #13134]
17619         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
17620         before glibc 2.15.
17621         (tryshell): Define.
17622         (__spawni): Change last parameter to be flag.  Test
17623         SPAWN_XFLAGS_USE_PATH flag to use path or not.
17624         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
17625         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
17626         * posix/spawni.c: Likewise.
17627         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
17628         * posix/spawnp.c: Likewise.  Change normal version to use
17629         SPAWN_XFLAGS_USE_PATH.
17630         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
17631         SPAWN_XFLAGS_TRY_SHELL.
17632
17633         [BZ #13150]
17634         * posix/glob.h: Remove gcc 1.x support.
17635
17636         [BZ #13068]
17637         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
17638
17639 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17640
17641         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17642         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
17643         strrchr-sse2-bsf
17644         * sysdeps/i386/i686/multiarch/strchr.S: New file.
17645         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
17646         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
17647         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
17648         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
17649         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
17650
17651 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17652
17653         * sysdeps/x86_64/wcscmp.S: New file.
17654
17655         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
17656         wcscmp-c wcscmp-sse2
17657         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
17658         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
17659         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
17660         * wcsmbs/wcscmp.c: Allow renaming.
17661
17662 2011-09-05  David S. Miller  <davem@davemloft.net>
17663
17664         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
17665         stack slot, rather than the struct return pointer slot.
17666         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
17667         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
17668         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
17669         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
17670
17671 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17672
17673         * po/ja.po: Update from translation team.
17674
17675         [BZ #13144]
17676         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
17677         kernel in 64-bit binaries.
17678
17679 2011-09-01  David S. Miller  <davem@davemloft.net>
17680
17681         * elf/elf.h (HWCAP_SPARC_*): Move to..
17682         * sysdeps/sparc/sysdep.h: this new file and add new values.
17683         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
17684         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
17685         _DL_HWCAP_COUNT to 24.
17686         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17687         entries.
17688         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17689         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17690         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17691         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17692         instead of magic constants.
17693         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17694
17695 2011-08-31  David S. Miller  <davem@davemloft.net>
17696
17697         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17698         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17699         Reimplement to do errno handling inline.
17700         (SYSCALL_ERROR_HANDLER): New macro.
17701         (__SYSCALL_STRING): Do not do errno handling in asm.
17702         (__CLONE_SYSCALL_STRING): Delete.
17703         (__INTERNAL_SYSCALL_STRING): Delete.
17704         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17705         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17706         (PSEUDO): Reimplement to do errno handling inline.
17707         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17708         (SYSCALL_ERROR_HANDLER): New macro.
17709         (__SYSCALL_STRING): Do not do errno handling in asm.
17710         (__CLONE_SYSCALL_STRING): Delete.
17711         (__INTERNAL_SYSCALL_STRING): Delete.
17712         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17713         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17714         i386.
17715         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17716         (inline_syscall*): Add 'err' argument.
17717         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17718         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17719         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17720         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17721
17722         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17723         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17724
17725 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17726
17727         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17728
17729 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17730
17731         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17732         directive.
17733
17734 2011-08-24  David S. Miller  <davem@davemloft.net>
17735
17736         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17737
17738 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17739
17740         * elf/Makefile: Add rules to build and run unload8 test.
17741         * elf/unload8.c: New file.
17742         * elf/unload8mod1.c: New file.
17743         * elf/unload8mod1x.c: New file.
17744         * elf/unload8mod2.c: New file.
17745         * elf/unload8mod3.c: New file.
17746
17747         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17748         it wasn't used.
17749
17750 2011-08-23  David S. Miller  <davem@davemloft.net>
17751
17752         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17753         subtract stack bias.
17754         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17755         %sp not %fp in calculations.
17756         (_JMPBUF_UNWINDS_ADJ): Likewise.
17757
17758         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17759         (aio_suspend): Call it to force an exception region around the
17760         AIO_MISC_WAIT() invocation.
17761
17762 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17763
17764         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17765         backslash.
17766
17767 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17768
17769         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17770         protection macro.
17771         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17772         and <dl-machine.h>.
17773         (Elf64_FuncDesc): Remove.
17774
17775 2011-08-22  David S. Miller  <davem@davemloft.net>
17776
17777         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17778         sigaltstack check, add missing cfi directives.
17779         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17780         missing cfi directives, and sigaltstack handling.
17781
17782 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17783
17784         [BZ #11724]
17785         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17786         object is seen twice.
17787         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17788
17789         * elf/Makefile (distribute): Add tst-initorder2.c.
17790         (tests): Add tst-initorder2.
17791         (modules-names): Add tst-initorder2a tst-initorder2b
17792         tst-initorder2c tst-initorder2d.  Add rules to build them.
17793         ($(objpfx)tst-initorder2.out): New rule.
17794         * elf/tst-initorder2.c: New file.
17795         * elf/tst-initorder2.exp: New file.
17796
17797 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17798
17799         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17800
17801         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17802         dependencies back to end of function.
17803
17804         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17805         $(elfobjdir)/ld.so.
17806
17807 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17808
17809         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17810         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17811         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17812         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17813         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17814         of __vdso_gettimeofday.
17815         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17816         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17817         attribute_hidden.
17818         (_libc_vdso_platform_setup): Remove initialization of
17819         __vdso_gettimeofday and __vdso_time.
17820
17821 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17822
17823         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17824         and fgetc_unlocked.
17825         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17826         getc_unlocked.
17827
17828         * elf/dl-open.c (add_to_global): Report additions to the global scope
17829         for LD_DEBUG=scopes.
17830         (dl_open_worker): Also print scope of newly loaded dependencies.
17831         (_dl_show_scope): Indicate if there is no scope.
17832
17833         [BZ #13114]
17834         * stdio-common/Makefile (tests): Add bug24.
17835         * stdio-common/bug24.c: New file.
17836
17837 2011-08-19  Andreas Jaeger  <aj@suse.de>
17838
17839         [BZ #13114]
17840         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17841         non-existant file when using close-on-exec mode.
17842
17843 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17844
17845         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17846         the very first instruction.
17847
17848         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17849         the CFI state in the end.
17850         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17851         inclusion of dl-trampoline.h.
17852         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17853
17854 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17855
17856         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17857         expectations for long double.
17858
17859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17860         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17861
17862 2011-08-14  David S. Miller  <davem@davemloft.net>
17863
17864         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17865         artificual limit depends upon the system page size.
17866
17867 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17868
17869         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17870         * resolv/Makefile: Define CFLAGS-libresolv.
17871
17872 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17873
17874         * nss/makedb.c (compute_tables): Make variables used in nested
17875         function static.
17876
17877 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17878
17879         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17880         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17881         if buffer was too small.
17882
17883         * elf/pldd.c (main): Attach to all threads in the process.
17884         Rewrite /proc handling to use *at functions.
17885
17886 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17887
17888         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17889         specifies first scope to show.
17890         (dl_open_worker): Update callers.  Move printing scope of new
17891         object to before the relocation.
17892         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17893         * sysdeps/generic/ldsodefs.h: Update declaration.
17894
17895         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17896         string for the scope number.
17897
17898 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17899
17900         * nscd/servicescache.c (cache_addserv): Make sure written is always
17901         initialized.
17902
17903 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17904
17905         * sysdeps/i386/i486/bits/atomic.h
17906         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17907         statement expression, so as to suppress "set but not used" warning.
17908         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17909
17910         * string/strncat.c (STRNCAT): Use prototype definition.
17911
17912         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17913         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17914         -Iprograms here.
17915         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17916         (localedef-modules): Add localedef.
17917         (locale-modules): Add locale.
17918
17919         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17920         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17921         to avoid a warning.
17922
17923 2011-08-14  David S. Miller  <davem@davemloft.net>
17924
17925         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17926         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17927
17928 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17929
17930         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17931         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17932         * elf/rtld.c (dl_main): Set l_name of vDSO.
17933         Call _dl_show_scope when DL_DEBUG_SCOPES.
17934         (process_dl_debug): Recognize scopes flag and also set it for all.
17935         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17936         Declare _dl_show_scope.
17937
17938         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17939         (do_dlopen): Pass caller_dlopen to dl_open.
17940         (__libc_dlopen_mode): Initialize caller_dlopen.
17941
17942         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17943         of libc.  Make tolower call locale-independent.  Optimize a bit by
17944         using isdigit instead of isalnum.
17945         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17946
17947 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17948
17949         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17950         was a dependency or dynamically loaded.
17951
17952 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17953
17954         * intl/l10nflist.c: Allow architecture-specific pop function.
17955         * sysdeps/x86_64/l10nflist.c: New file.
17956
17957         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17958         classification.
17959
17960 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17961
17962         * include/dirent.h: Add libc_hidden_proto for scandirat and
17963         scandirat64.  Don't declare __scandirat64.
17964         * dirent/scandirat.c: Add libc_hidden_def.
17965         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17966         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17967
17968 2011-08-10  David S. Miller  <davem@davemloft.net>
17969
17970         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17971         enum.
17972         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17973         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17974         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17975
17976 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17977
17978         * Versions.def [libc]: Add GLIBC_2.15.
17979         * dirent/Makefile (routines): Add scandirat and scandirat64.
17980         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17981         GLIBC_2.15.
17982         * dirent/dirent.h: Declare scandirat and scandirat64.
17983         * dirent/scandirat.c: New file.
17984         * dirent/scandirat64.c: New file.
17985         * sysdeps/wordsize-64/scandirat.c: New file.
17986         * sysdeps/wordsize-64/scandirat64.c: New file.
17987         * dirent/opendir.c: Define opendirat.
17988         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17989         using scandirat.
17990         * dirent/scandir64.c: Adjust for scandir.c change.
17991         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17992         __scandirat64, and __scandir_cancel_handler.
17993         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17994         additional parameter and use openat instead of open (outside of ld.so).
17995         Add new __opendir as wrapper around __opendirat.
17996         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17997         here without requiring old scandirat implementation.
17998
17999 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18000
18001         * dirent/scandir.c (cancel_handler): Renamed to
18002         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18003         defined.  Adjust users.
18004         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18005         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18006
18007 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18008
18009         * string/test-string.h (IMPL): Use __STRING to expand name and then
18010         stringify it.
18011
18012         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18013         of cleanups.
18014
18015 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18016
18017         * string/Makefile: Update.
18018         (strop-tests): Append strncat.
18019         * string/test-wcscmp.c: New file.
18020         New comprehensive test for wcscmp.
18021         * string/test-strcmp.c: Update.
18022         (WIDE): New define.
18023
18024 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18025
18026         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18027         line.
18028
18029 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18030
18031         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18032         encoding to ACE if AI_IDN.
18033
18034 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18035
18036         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18037         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18038
18039 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18040
18041         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18042         Fix overflow bug in strncat.
18043         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18044
18045         * string/test-strncat.c: Update.
18046         Add new tests for checking overflow bugs.
18047
18048 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18049
18050         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18051         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18052         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18053         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18054         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18055         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18056         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18057         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18058         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18059
18060         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18061         (USE_AS_STRCAT): Define.
18062         Add strcat and strncat support.
18063         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18064
18065 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18066
18067         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18068         __n bigger than INT_MAX+1.
18069         (__strncmp_g): Likewise.
18070
18071 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18072
18073         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18074         * libio/stido.h: Likewise.
18075
18076         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18077         (AF_NFC): Define.
18078         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18079         (AF_NFC): Define.
18080
18081         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18082         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18083         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18084         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18085         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18086
18087         [BZ #13021]
18088         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18089         installed.
18090
18091         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18092         typo.
18093         (_dl_x86_64_save_sse): Likewise.
18094
18095 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18096
18097         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18098         OSXSAVE.
18099         (_dl_x86_64_save_sse): Likewise.
18100
18101         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18102
18103         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18104
18105 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18106
18107         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18108         change.
18109         (_dl_x86_64_save_sse): Use correct AVX check.
18110
18111 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18112
18113         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18114         bug in strncpy/strncat.
18115         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18116
18117 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18118
18119         * string/tester.c (test_strcat): Add tests for different alignments
18120         of source and destination.
18121         (test_strncat): Likewise.
18122
18123 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18124
18125         [BZ #12852]
18126         * posix/glob.c (glob): Check passed in values before using them in
18127         expressions to avoid some overflows.
18128         (glob_in_dir): Likewise.
18129
18130         [BZ #13007]
18131         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18132         check for AVX enablement so that we don't crash with old kernels and
18133         new hardware.
18134         * elf/tst-audit4.c: Add same checks here.
18135         * elf/tst-audit6.c: Likewise.
18136
18137         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18138
18139 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18140
18141         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18142
18143 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18144
18145         * po/cs.po: Update from translation team.
18146         * po/bg.po: Likewise.
18147
18148 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18149
18150         * misc/sys/cdefs.h: Add support for const attribute.
18151         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18152         to gnu_dev_{major,minor,makedev} functions.
18153
18154 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18155
18156         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18157
18158 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18159
18160         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18161         strlen results.
18162
18163 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18164
18165         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18166         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18167         register in order to avoid conflicts with the soft frame pointer
18168         being held in r11 when necessary.
18169         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18170         (INTERNAL_VSYSCALL_NCS): Likewise.
18171
18172 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18173
18174         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18175         * elf/dl-fini.c (_dl_fini): Adjust caller.
18176         * elf/dl-close.c (_dl_close_worker): Likewise.
18177         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18178
18179 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18180
18181         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18182         "aux_cache->nlibs < 0".
18183
18184         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18185         in the reload-count case.
18186
18187 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18188
18189         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18190         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18191         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18192         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18193         * sysdeps/x86_64/multiarch/strcat.S: New file.
18194         * sysdeps/x86_64/multiarch/strncat.S: New file.
18195         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18196         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18197         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18198         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18199         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18200         (USE_AS_STRCAT): Define.
18201         Add strcat and strncat support.
18202         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18203         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18204         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18205         * string/strncat.c: Update.
18206         (USE_AS_STRNCAT): Define.
18207         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18208         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18209         and i7.
18210         * sysdeps/x86_64/multiarch/init-arch.h
18211         (bit_Prefer_PMINUB_for_stringop): New.
18212         (index_Prefer_PMINUB_for_stringop): Likewise.
18213         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18214         bit_Prefer_PMINUB_for_stringop.
18215
18216 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18217
18218         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18219         buffer64.
18220         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18221         of casting of buffer.
18222         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18223         buffer32 and buffer64.
18224         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18225         writes instead of casting of buffer.
18226         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18227         buffer32.
18228         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18229         casting of buffer.
18230
18231 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18232
18233         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18234
18235 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18236
18237         * nscd/nscd.c (termination_handler): Don't do anything for a database
18238         if it has not yet been initialized.
18239
18240 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18241
18242         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18243
18244 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18245
18246         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18247
18248 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18249
18250         * po/nl.po: Update from translation team.
18251         * po/sv.po: Likewise.
18252
18253 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18254
18255         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18256         now disallowed by GCC.
18257
18258         * configure.in (use-default-link): Default to yes if a test -shared
18259         link meets our qualifications.
18260         * configure: Regenerated.
18261
18262         * config.make.in (output-format): New variable.
18263         * configure.in: Check for ld --print-output-format support.
18264         * configure: Regenerated.
18265         * Makerules ($(common-objpfx)format.lds)
18266         [$(output-format) != unknown]: Just use $(output-format),
18267         instead of the linker-script munging.
18268
18269 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18270
18271         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18272         of $(common-objpfx)shlib.lds.
18273         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18274
18275         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18276         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18277
18278         * configure.in (-z relro check): Adjust test code to add a large
18279         writable data section after it.
18280         * configure: Regenerated.
18281
18282 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18283
18284         * configure.in (-z relro check): Fix test code to make the variable
18285         truly const.
18286         * configure: Regenerated.
18287
18288 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18289
18290         * nscd/nscd.h (struct traced_file): Define.
18291         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18292         elements.  Add traced_files.
18293         (inotify_fd): Declare.
18294         (register_traced_file): Declare.
18295         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18296         (inotify_fd): Export.
18297         (resolv_conf_descr): Remove.
18298         (nscd_init): Move inotify descriptor creation to main.
18299         Don't register files for notification here.
18300         (register_traced_file): New function.
18301         (invalidate_cache): Don't use reset_res to determine whether to call
18302         res_init, go through the list of registered files.
18303         (main_loop_poll): The inotify descriptors are now stored in the
18304         structures for the traced files.
18305         (main_loop_epoll): Likewise
18306         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
18307         to __nss_disable_nscd.
18308         * nscd/cache.c (prune_cache): There is no single inotify descriptor
18309         for a database anymore.  Check the records for all the registered
18310         files instead.
18311         * nss/Makefile (libnss_files-routines): Add files-init.
18312         (libnss_db-routines): Add db-init.
18313         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
18314         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
18315         * nss/nss_db/db-init.c: New file.
18316         * nss/nss_files/files-init.c: New file.
18317         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
18318         __nss_lookup_function.
18319         (__nss_lookup_function): Call nss_load_library.
18320         (nss_load_all_libraries): New function.
18321         (__nss_disable_nscd): Take parameter with callback function for files
18322         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
18323         used for the cached services.
18324         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
18325         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
18326         options for features to all the files in nscd.
18327
18328         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
18329
18330 2011-07-10  Roland McGrath  <roland@hack.frob.com>
18331
18332         * csu/elf-init.c (__libc_csu_init): Comment typo.
18333
18334 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
18335
18336         * po/pl.po: Update from translation team.
18337         * po/ja.po: Likewise.
18338         * po/ru.po: Likewise.
18339         * po/ko.po: Likewise.
18340         * po/fr.po: Likewise.
18341
18342 2011-07-09  Roland McGrath  <roland@hack.frob.com>
18343
18344         * configure.in (.ctors/.dtors header and trailer check):
18345         Use an empirical test on a built program.
18346         * configure: Regenerated.
18347
18348         * configure.in (-z relro check): Use an empirical test on a built DSO.
18349         Detect, but do not require, on ia64.
18350         * configure: Regenerated.
18351
18352         * configure.in (READELF): Find it with AC_CHECK_TOOL.
18353         Update tests that use readelf to use $READELF instead.
18354         * configure: Regenerated.
18355
18356 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
18357
18358         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
18359         if the result is not used.
18360
18361 2011-07-05  Andreas Jaeger  <aj@suse.de>
18362
18363         [BZ#9696]
18364         * stdlib/tst-strtod.c: Add testcase.
18365
18366 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
18367
18368         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
18369         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
18370         The latter has a higher limit.  Take additional parameter to pass to
18371         the new function.
18372         (__pathconf): Pass file to __statfs_link_max.
18373         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
18374         __statfs_link_max.
18375         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
18376         __statfs_link_max.
18377
18378         [BZ #12868]
18379         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
18380         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18381         Handle Lustre.
18382         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
18383         (__statfs_filesize_max): Likewise.
18384         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
18385
18386 2011-07-05  Andreas Jaeger  <aj@suse.de>
18387
18388         * resolv/res_comp.c (dn_skipname): Remove unused variable.
18389
18390 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
18391
18392         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
18393         `status' variable.
18394         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
18395         Likewise.
18396
18397 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
18398
18399         * Makefile (strop-tests): Add strncat.
18400         * string/test-strncat.c: New file.
18401
18402 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
18403
18404         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
18405
18406 2011-06-21  Andreas Jaeger  <aj@suse.de>
18407
18408         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
18409         Copy rule from iconvdata/Makefile.
18410
18411 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18412
18413         [BZ #12922]
18414         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
18415         but no long options are defined, just return 'W'.
18416
18417 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
18418
18419         [BZ #9696]
18420         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
18421
18422 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18423
18424         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
18425         netgroups to read.
18426         (innetgr): Likewise.
18427
18428 2011-07-05  Roland McGrath  <roland@hack.frob.com>
18429
18430         * config.make.in (install_root): Default to $(DESTDIR).
18431
18432 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
18433
18434         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
18435
18436 2011-07-02  Roland McGrath  <roland@hack.frob.com>
18437
18438         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
18439
18440         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
18441         containing directory rather than embedding absolute directory names.
18442
18443         * scripts/check-local-headers.sh: Rewritten using awk.
18444         Match by word, not by line.  Print error messages for matches.
18445         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
18446
18447         * Makerules [shlib-lds-flags empty]:
18448         ($(common-objpfx)libc_pic.opts): New target.
18449         ($(common-objpfx)libc_pic.os.clean): New target.
18450         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
18451
18452         * config.make.in (OBJCOPY): New variable.
18453         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
18454         * configure: Regenerated.
18455
18456         * config.make.in (use-default-link): New variable.
18457         * configure.in (use_default_link): Grok --with-default-link to set it.
18458         * configure: Regenerated.
18459         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
18460         (shlib-lds, shlib-lds-flags): Define to empty.
18461
18462         * Makerules (shlib-lds): New variable.
18463         (shlib-lds-flags): New variable.
18464         (build-shlib, build-moduile, build-module-asneeded): Use it.
18465         ($(common-objpfx)libc.so): Use $(shlib-lds).
18466         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
18467         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
18468
18469         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
18470         DT_FLAGS/DT_FLAGS_1 with zero flags.
18471
18472         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
18473         linker script munging.
18474
18475 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
18476
18477         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
18478         as 128-bit value.
18479         * crypt/sha512.c (sha512_process_block): Perform total addition using
18480         128-bit if possible.
18481         (__sha512_finish_ctx): Likewise.
18482         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
18483         as 64-bit value.
18484         * crypt/sha256.c (SWAP64): Define.
18485         (sha256_process_block): Perform total addition using 64-bit if
18486         possible.
18487         (__sha256_finish_ctx): Likewise.
18488
18489 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
18490
18491         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
18492         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18493         * nscd/hstcache.c (cache_addhst): Likewise.
18494         * nscd/grpcache.c (cache_addgr): Likewise.
18495         * nscd/aicache.c (addhstaiX): Likewise
18496         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
18497
18498 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
18499
18500         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
18501         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18502         * nscd/hstcache.c (cache_addhst): Likewise.
18503         * nscd/grpcache.c (cache_addgr): Likewise.
18504         * nscd/aicache.c (addhstaiX): Likewise
18505
18506 2011-07-01  Andreas Schwab  <schwab@redhat.com>
18507
18508         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
18509         domain only when needed.
18510
18511 2011-06-30  Andreas Schwab  <schwab@redhat.com>
18512
18513         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
18514         is always restored.
18515
18516 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
18517
18518         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
18519         are re-adding the entry.
18520         * nscd/servicescache.c (cache_addserv): Likewise.
18521
18522 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
18523
18524         * sysdeps/generic/dl-irel.h: fix protection against multiple
18525         inclusions.
18526         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
18527
18528 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
18529
18530         [BZ #12935]
18531         * malloc/memusage.sh: Fix quoting in message.
18532         * debug/xtrace.sh: Likewise.
18533
18534         * configure.in: Remove support for --experimental-malloc option, make
18535         it the default.
18536         * config.make.in: Likewise.
18537         * malloc/Makefile: Likewise.
18538
18539 2011-06-27  Andreas Schwab  <schwab@redhat.com>
18540
18541         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
18542         two-byte characters.
18543
18544 2011-06-27  Roland McGrath  <roland@hack.frob.com>
18545
18546         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
18547         AC_CACHE_CHECK invocation.
18548         * configure: Regenerated.
18549
18550         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
18551
18552 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
18553
18554         [BZ #12350]
18555         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
18556         bit from old_res_options.
18557
18558         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
18559
18560         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
18561         value type for setfct.
18562
18563 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18564
18565         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18566         __gettimeofday instead of gettimeofday.
18567
18568 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
18569
18570         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
18571
18572 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18573
18574         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
18575
18576         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
18577         info.
18578
18579 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18580
18581         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18582         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18583         strcpy-sse2-unaligned strncpy-sse2-unaligned
18584         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
18585         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
18586         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
18587         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
18588         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
18589         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
18590         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
18591         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
18592         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
18593         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
18594         (STRCPY): Support SSE2 and SSSE3 versions.
18595
18596 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
18597
18598         [BZ #12874]
18599         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
18600         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
18601         kernels which artificially limit size of requests.
18602
18603 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18604
18605         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18606         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18607         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
18608         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
18609         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
18610         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
18611         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
18612         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
18613         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
18614         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
18615         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
18616         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
18617         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
18618         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
18619         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
18620         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18621         Enable unaligned load optimization for Intel Core i3, i5 and i7
18622         processors.
18623         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
18624         Define.
18625         (index_Fast_Unaligned_Load): Define.
18626         (HAS_FAST_UNALIGNED_LOAD): Define.
18627
18628 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
18629
18630         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
18631
18632 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18633
18634         [BZ #12907]
18635         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
18636         until it is clear that the information is realy needed.
18637         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
18638
18639 2011-06-22  Andreas Schwab  <schwab@redhat.com>
18640
18641         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
18642
18643 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18644
18645         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18646         /sys/devices/system/cpu/online if it is usable.
18647
18648         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
18649         reading the information from the /proc filesystem to once a second.
18650
18651 2011-06-21  Andreas Jaeger  <aj@suse.de>
18652
18653         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
18654         NULL after inclusion of kernel headers.
18655
18656 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
18657
18658         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
18659         calls to internal_setent.
18660
18661         [BZ #12885]
18662         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
18663         addresses using gethostbyname4_r ignore IPv4 addresses.
18664
18665         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
18666         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
18667
18668         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
18669
18670 2011-06-20  David S. Miller  <davem@davemloft.net>
18671
18672         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
18673         inclusions.
18674         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
18675
18676         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
18677         (elf_irel): Use it.
18678         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
18679         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
18680         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
18681         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
18682         * sysdeps/x86_64/dl-irel.h: Likewise.
18683
18684         * elf/dl-runtime.c: Use elf_ifunc_invoke.
18685         * elf/dl-sym.c: Likewise.
18686
18687 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18688
18689         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18690         need to dereference resplen2.
18691
18692 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18693
18694         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18695
18696 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18697
18698         * Makeconfig: Define vardbdir and inst_vardbdir.
18699         * nss/Makefile: Add rules to install db-Makefile.
18700
18701         * nss/nss_db/db-XXX.c: Cleanup.
18702
18703         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18704         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18705         GLIBC_PRIVATE.
18706         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18707         * nss/makedb.c: Implement -g option to specify that value strings
18708         are generated and should not be added to table iterated over for
18709         get*ent calls.
18710         * nss/nss_db/db-initgroups.c: New file.
18711
18712         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18713         interface.
18714
18715         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18716         (internal_getgrouplist): Adjust to name change.
18717         Update use_initgroups_entry if this is not the first call.
18718         * nss/databases.def: Add initgroups entry.
18719
18720         * nss/makedb.c (compute_tables): Check result of multiple hash table
18721         sizes to minimize maximum chain length.
18722
18723 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18724
18725         * Versions.def: Add entry for libnss_db.
18726         * shlib-versions: Likewise.
18727         * nss/Makefile: Add rules to build libnss_db.
18728         * nss/Versions: Add libnss_db information.  Organize libnss_files
18729         entries better.
18730         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18731         makedb progra.  Some minor improvements to generate smaller files.
18732         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18733         here from...
18734         * nss/makedb.c: ...here.
18735         Improve database format to be smaller and require less memory at
18736         runtime.
18737         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18738         db anymore.
18739         * nss/nss_db/db-netgrp.c: Likewise.
18740         * nss/nss_db/db-open.c: Likewise.
18741         * nss/nss_files/flies-XXX.x: Adjust comments.
18742         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18743         * nss/nss_files/files-grp.c: Likewise.
18744         * nss/nss_files/files-hosts.c: Likewise.
18745         * nss/nss_files/files-network.c: Likewise.
18746         * nss/nss_files/files-proto.c: Likewise.
18747         * nss/nss_files/files-pwd.c: Likewise.
18748         * nss/nss_files/files-rpc.c: Likewise.
18749         * nss/nss_files/files-service.c: Likewise.
18750         * nss/nss_files/files-sgrp.c: Likewise.
18751         * nss/nss_files/files-spwd.c: Likewise.
18752         * nss/nss_db/db-alias.c: Removed.
18753         * nss/nss_db/dummy-db.h: Removed.
18754
18755 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18756
18757         * nss/makedb.c: Rewritten to not use database library.
18758         * nss/Makefile: Update to build new makedb program.
18759
18760 2011-06-14  Andreas Jaeger  <aj@suse.de>
18761
18762         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18763         memset declaration.
18764
18765 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18766
18767         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18768         tmpbuf.
18769
18770 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18771
18772         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18773         * elf/Makefile ($(objpfx)ld.so): Likewise.
18774
18775         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18776         Don't list ld.so twice in dependencies.
18777
18778         * posix/bug-regex31.c: Include <stdlib.h>.
18779
18780         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18781
18782         * nis/nss_compat/compat-spwd.c
18783         (getspent_next_nss_netgr): Remove unused variable.
18784         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18785
18786         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18787         nonmembers" output to use the right array.
18788
18789         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18790
18791         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18792
18793         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18794         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18795         * catgets/gencat.c (read_input_file): Likewise.
18796         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18797
18798         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18799         variable definition inside #if's controlling its use.
18800
18801         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18802
18803         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18804
18805         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18806
18807         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18808         unreachable code.
18809
18810         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18811
18812         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18813         * configure: Regenerated.
18814
18815         * Makerules: Revert last change.
18816         * elf/Makefile: Likewise.
18817
18818 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18819
18820         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18821         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18822         (reloc-link): Likewise.
18823
18824 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18825
18826         * elf/Makefile: Add rules to build pldd.
18827         * elf/pldd.c: New file.
18828         * elf/pldd-xx.c: New file.
18829
18830 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18831
18832         * version.h: Update for 2.15 development version.
18833
18834 2011-06-07  David S. Miller  <davem@davemloft.net>
18835
18836         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18837         ifuncs.
18838         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18839         elf_machine_lazy_rel): Likewise.
18840         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18841         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18842         elf_machine_lazy_rel): Likewise.
18843         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18844         dl_hwcap via passed in argument.
18845         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18846         Likewise.
18847
18848 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18849
18850         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18851
18852 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18853
18854         [BZ #12849]
18855         * manual/fdl-1.1.texi: New file, verbatim from:
18856         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18857         * manual/lgpl-2.1.texi: New file, verbatim from:
18858         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18859         * manual/Makefile (licenses): New variable, list those new file names.
18860         (texis): Use it.
18861         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18862
18863         * manual/fdl.texi: File removed.
18864         * manual/lesser.texi: File removed.
18865         * manual/libc.texinfo (Copying, Documentation License):
18866         Use new @include file names, put @appendix directive before @include.
18867
18868 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18869
18870         [BZ #12841]
18871         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18872         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18873         (mq_open): Add __NTH.
18874
18875 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18876
18877         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18878         Assume Intel Core i3/i5/i7 processor if AVX is available.
18879
18880 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18881
18882         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18883         typo.
18884
18885 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18886
18887         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18888         memory.  Use alloca_account.  Fix memory leak when retrying.
18889
18890 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18891
18892         * version.h (RELEASE): Bump for 2.14 release.
18893         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18894
18895         * config.make.in (RANLIB): Remove entry.
18896
18897 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18898
18899         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18900         (libc.pot): Work around missing support for .ksh extension in xgettext.
18901
18902         [BZ #12684]
18903         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18904         if both request failed.
18905         (send_dg): In case of server errors clear resplen or *resplen2.
18906
18907         [BZ #12454]
18908         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18909         when there are multiple maps.
18910         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18911         (_dl_fini): Remove test here.
18912
18913         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18914
18915 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18916
18917         [BZ #12350]
18918         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18919         bit from old_res_options.
18920         (gaih_inet): Likewise.
18921
18922         [BZ #11099]
18923         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18924         as signed.
18925
18926         * resolv/res_init.c (res_setoptions): Make the code more compact.
18927
18928         [BZ #11558]
18929         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18930         set RES_USEVC.
18931
18932         [BZ #11634]
18933         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18934
18935         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18936
18937         [BZ #11781]
18938         * malloc/malloc.h: Declare malloc hook variables as volatile.
18939
18940         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18941         in last patch.
18942
18943         [BZ #11799]
18944         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18945         raise in the comment.
18946         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18947         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18948         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18949
18950 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18951
18952         [BZ #12811]
18953         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18954         grow the buffers more if it already has to be sufficient.
18955         (build_wcs_upper_buffer): Likewise.
18956         * posix/regexec.c (check_matching): Likewise.
18957         (clean_state_log_if_needed): Likewise.
18958         (extend_buffers): Don't enlarge buffers beyond size of the input
18959         buffer.
18960         Patches mostly by Emil Wojak <emil@wojak.eu>.
18961         * posix/bug-regex32.c: New file.
18962         * posix/Makefile (tests): Add bug-regex32.
18963
18964         * locale/findlocale.c (_nl_find_locale): Return right away if
18965         _nl_explode_name failed.
18966         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18967
18968         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18969
18970         * debug/xtrace.sh: Unify messages.
18971         * malloc/memusage.sh: Likewise.
18972
18973         [BZ #12813]
18974         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18975         time symbol from vDSO.  Substitute with vsyscall if not available.
18976         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18977         __vdso_time.
18978
18979         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18980         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18981         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18982         Add sendmmsg and internal_sendmmsg.
18983         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18984         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18985         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18986
18987         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18988         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18989         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18990
18991 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18992
18993         [BZ #12813]
18994         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18995         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18996         available.
18997         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18998         __vdso_getcpu.
18999
19000         [BZ #12814]
19001         * iconvdata/Makefile (tests): Add bug-iconv9.
19002         * iconvdata/bug-iconv9.c: New file.
19003
19004 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19005
19006         [BZ #12814]
19007         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19008
19009 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19010
19011         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19012         (struct user_regs_struct): Change intcs field back to cs.
19013
19014 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19015
19016         * po/ja.po: Update from translation team.
19017
19018 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19019
19020         [BZ #12795]
19021         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19022         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19023
19024 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19025
19026         * stdlib/longlong.h: Update from GCC.
19027
19028 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19029
19030         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19031         parameter name.
19032         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19033         Add parameter name.
19034         (__sysconf): Pass it down.
19035
19036 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19037
19038         [BZ #12671]
19039         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19040         some situations.
19041         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19042         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19043         add in in __libc_use_alloca calls.  Adjust callers.
19044         (glob): Use malloc in some situations.
19045
19046         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19047         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19048         pltexit.
19049
19050 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19051
19052         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19053         and CLOCK_BOOTTIME_ALARM.
19054
19055         [BZ #12782]
19056         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19057         is returned.
19058
19059         * string/_strerror.c (__strerror_r): Print negative errors as signed
19060         numbers.
19061
19062         [BZ #12777]
19063         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19064         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19065         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19066
19067         * configure.in: Fix typo in redirection and correct removal of test
19068         files in two cases.
19069
19070         [BZ #12788]
19071         * locale/setlocale.c (new_composite_name): Fix test to check for
19072         identical name of all categories.
19073
19074         [BZ #12792]
19075         * libio/filedoalloc.c (local_isatty): New function.
19076         (_IO_file_doallocate): Use local_isatty.
19077         * stdio-common/perror.c (perror): In case a new stream is used
19078         forward the stream error.
19079         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19080         error flag.
19081
19082 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19083
19084         [BZ #11869]
19085         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19086         alloca.
19087         * include/alloca.h (extend_alloca_account): Define.
19088
19089         [BZ #11857]
19090         * posix/regex.h: Fix comments with documentation of user-accessible
19091         fields after compilation and describe correct free'ing of pattern
19092         after re_compile_pattern.
19093         Patch by Reuben Thomas <rrt@sc3d.org>.
19094
19095 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19096
19097         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19098         and -mno-altivec to prevent the compiler from using Altivec and/or
19099         VSX instructions when the corresponding registers are not available.
19100
19101 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19102
19103         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19104
19105 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19106
19107         * libio/freopen.c (freopen): Use __dup2, not dup2.
19108         * libio/freopen64.c (freopen64): Likewise.
19109
19110 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19111
19112         [BZ #12775]
19113         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19114         * math/Makefile (tests): Add test-powl.
19115         (CFLAGS-test-powl.c): Define.
19116         * math/test-powl.c: New file.
19117
19118 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19119
19120         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19121
19122 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19123
19124         [BZ #11837]
19125         * iconvdata/gb18030.c: Update to GB18020-2005.
19126
19127 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19128
19129         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19130         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19131         Patch by Aharon Robbins <arnold@skeeve.com>.
19132
19133         [BZ #11892]
19134         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19135         on the stack.
19136
19137         [BZ #11895]
19138         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19139         through underflows.
19140
19141         [BZ #12766]
19142         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19143         point to strings before performing equality test for error_one_per_line
19144         mode.
19145
19146         [BZ #11697]
19147         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19148
19149         [BZ #11820]
19150         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19151         (struct user_fpregs_struct): Avoid __uint*_t types.
19152
19153         [BZ #6420]
19154         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19155         symbol info.  Use it instead of calling _dl_addr locally.
19156         (lock_and_info): New function.
19157         (tr_freehook): Call lock_and_info and pass symbol info as additional
19158         parameter to tr_where.
19159         (tr_mallochook): Likewise.
19160         (tr_reallochook): Likewise.
19161         (tr_memalignhook): Likewise.
19162
19163         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19164         used and couldn't be at all thread-safe.
19165
19166 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19167
19168         * libio/freopen.c (freopen): Don't close old file descriptor
19169         before the new one is opened.  Instead dup the new file descriptor
19170         to the old one after the new stream is created.
19171         * libio/freopen64.c (freopen64): Likewise.
19172         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19173         * libio/fileops.c (_IO_new_file_close_it): Handle new
19174         _IO_FLAGS2_NOCLOSE flag.
19175         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19176         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19177         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19178         _IO_FLAGS2_NOCLOSE flag.
19179         * include/unistd.h: Add hidden_proto for dup3.
19180         Define __have_dup3.
19181         * io/dup3.c: Define hidden symbol.
19182         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19183
19184         [BZ #7101]
19185         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19186         when an incomplete long option is used.
19187         * posix/tst-getopt_long1.c: New file.
19188         * posix/Makefile (tests): Add tst-getopt_long1.
19189
19190         [BZ #10138]
19191         * scripts/config.guess: Update from autoconf-2.68.
19192         * scripts/config.sub: Likewise.
19193
19194         [BZ #10157]
19195         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19196         tests into ...
19197         (has_cpuclock): ...this.  New function.
19198         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19199         macro here based on has_cpuclock code.
19200
19201         [BZ #10149]
19202         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19203         First byte (not low byte) is now always NUL.
19204         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19205
19206         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19207         Use non-cancelable interfaces.
19208
19209         [BZ #9809]
19210         * locale/iso-639.def: Add entry for Sorani.
19211
19212         [BZ #11901]
19213         * include/stdlib.h: Move include protection to the right place.
19214         Define abort_msg_s.  Declare __abort_msg with it.
19215         * stdlib/abort.c (__abort_msg): Adjust type.
19216         * assert/assert.c (__assert_fail_base): New function.  Majority
19217         of code from __assert_fail.  Allocate memory for __abort_msg with
19218         mmap.
19219         (__assert_fail): Now call __assert_fail_base.
19220         * assert/assert-perr.c: Remove bulk of implementation.  Use
19221         __assert_fail_base.
19222         * include/assert.hL Declare __assert_fail_base.
19223         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19224         mmap.
19225         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19226
19227 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19228
19229         [BZ #11952]
19230         [BZ #12453]
19231         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19232         until all modules are registered in the DTV.
19233         * elf/Makefile: Add rules to build and run tst-tls19.
19234         * elf/tst-tls19.c: New file.
19235         * elf/tst-tls19mod1.c: New file.
19236         * elf/tst-tls19mod2.c: New file.
19237         * elf/tst-tls19mod3.c: New file.
19238         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19239
19240         [BZ #12083]
19241         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19242         correctly.
19243
19244         [BZ #12601]
19245         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19246         two-byte sequence errors.
19247         * iconvdata/Makefile (tests): Add bug-iconv8.
19248         * iconvdata/bug-iconv8.c: New file.
19249
19250         [BZ #12626]
19251         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19252         buf2 definition.
19253
19254         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19255
19256         [BZ #12432]
19257         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19258         (dummy_getcfa): New function.
19259         (init): Get _Unwind_GetCFA address, use dummy if not found.
19260         (backtrace_helper): In recursion check, also check whether CFA changes.
19261         (__backtrace): Completely initialize arg.
19262
19263         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19264         storing incomplete byte sequence in state object.  Avoid testing for
19265         guaranteed too small input if we know there is enough data available.
19266
19267 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19268
19269         * Makeconfig (+link-pie): Indent.
19270         * Rules (binaries-pie): Define if $(have-fpie) and
19271         $(build-shared).
19272         (binaries-shared): Also filter out $(binaries-pie).
19273         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19274         * nscd/Makefile (others-pie): Add nscd.
19275         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19276         ($(objpfx)nscd): Remove command override.
19277         * login/Makefile (others-pie): Add pt_chown.
19278         ($(objpfx)pt_chown): Remove command override.
19279         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19280         remove command overrides.
19281
19282 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19283
19284         * libio/tst_putwc.c: Fix error messages.
19285
19286         [BZ #12724]
19287         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19288         currently writing and seek to current position when not.
19289         * libio/Makefile (tests): Add bug-fclose1.
19290         * libio/bug-fclose1.c: New file.
19291
19292 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19293
19294         [BZ #12511]
19295         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19296         don't set DF_1_NODELETE here.
19297         (do_lookup_x): When entering new entry test for copy relocation
19298         and if necessary set DF_1_NODELETE flag.
19299         * elf/tst-unique4.cc: New file.
19300         * elf/tst-unique4.h: New file.
19301         * elf/tst-unique4lib.cc: New file.
19302         * elf/Makefile: Add rules to build and run tst-unique4.
19303         Patch by Piotr Bury <pbury@goahead.com>.
19304
19305 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19306
19307         [BZ #12052]
19308         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
19309
19310         [BZ #12625]
19311         * misc/mntent_r.c (addmntent): Flush the stream after the output
19312
19313         [BZ #12393]
19314         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
19315         (is_trusted_path_normalize): Skip initial colon.  Append slash
19316         to empty buffer.  Duplicate is_trusted_path code but allow
19317         constructed patch to be prefix.
19318         (is_dst): Allow $ORIGIN followed by /.
19319         (_dl_dst_substitute): Correct clearing of check_for_trusted.
19320         Correct testing of result of is_trusted_path_normalize
19321         (decompose_rpath): Fix warning.
19322
19323 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
19324
19325         [BZ #11257]
19326         * grp/initgroups.c (internal_getgrouplist): When we found the service
19327         list through the initgroups entry in nsswitch.conf do not always
19328         continue on a successful lookup.  Don't always use the
19329         __nss_group_database value if it is set.
19330         * nss/nsswitch.conf (initgroups): Change action for successful db
19331         lookup to continue for compatibility.
19332
19333 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
19334
19335         [BZ #11532]
19336         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
19337         and CP774 modules.
19338         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
19339         and CP774 modules.
19340         * iconvdata/tst-tables.sh: Likewise.
19341         * iconvdata/cp770.c: New file.
19342         * iconvdata/cp771.c: New file.
19343         * iconvdata/cp772.c: New file.
19344         * iconvdata/cp773.c: New file.
19345         * iconvdata/cp774.c: New file.
19346         * iconvdata/testdata/CP770: New file.
19347         * iconvdata/testdata/CP770..UTF8: New file.
19348         * iconvdata/testdata/CP771: New file.
19349         * iconvdata/testdata/CP771..UTF8: New file.
19350         * iconvdata/testdata/CP772: New file.
19351         * iconvdata/testdata/CP772..UTF8: New file.
19352         * iconvdata/testdata/CP773: New file.
19353         * iconvdata/testdata/CP773..UTF8: New file.
19354         * iconvdata/testdata/CP774: New file.
19355         * iconvdata/testdata/CP774..UTF8: New file.
19356
19357         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
19358         END CHARMAP line.
19359         * iconvdata/gen-8bit-gap.sh: Likewise.
19360         * iconvdata/gen-8bit.sh: Likewise.
19361
19362         * locale/iso-639.def: Add ary entry.
19363
19364         [BZ #11258]
19365         * locale/C-translit.h.in: Add U20A1 transliteration.
19366
19367         [BZ #12178]
19368         * locale/iso-639.def: Add wae entry.
19369         Patch by Kevin Bortis <bortis@translate-wae.ch>.
19370
19371         [BZ #12545]
19372         * locale/programs/localedef.c (construct_output_path): Use ssize_t
19373         for n.
19374
19375         [BZ #12711]
19376         * locale/C-translit.h.in: Add entry for U20B9.
19377         Patch by pravin.d.s@gmail.com.
19378
19379 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
19380
19381         [BZ #12713]
19382         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
19383         ENAMETOOLONG use generic getcwd.
19384         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
19385         in rtld.  Use *stat64.
19386         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
19387         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
19388         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
19389         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
19390         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
19391         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
19392         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
19393         __fstatat64 macros.
19394         * include/dirent.h: Add libc_hidden_proto for rewinddir.
19395         * dirent/rewinddir.c: Add libc_hidden_def.
19396         * sysdeps/mach/hurd/rewinddir.c: Likewise.
19397         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
19398
19399         * include/dirent.h (__alloc_dir): Add flags parameter.
19400         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
19401         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
19402         __alloc_dir.
19403         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
19404         from fdopendir if O_CLOEXEC is already set.
19405
19406 2011-03-15  Alan Modra  <amodra@gmail.com>
19407
19408         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
19409         l_tls_firstbyte_offset non-zero.  Save padding offset in
19410         l_tls_firstbyte_offset for later use.
19411         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
19412         freeing static tls block.
19413
19414 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
19415
19416         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
19417         where #ifdef was intended.  The intent is to prevent ARG_MAX from
19418         being defined by the kernel headers.
19419
19420 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
19421
19422         [BZ #12734]
19423         * resolv/resolv.h: Define RES_NOTLDQUERY.
19424         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
19425         no-tld-query and set RES_NOTLDQUERY.
19426         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
19427         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
19428         modern BIND to search name as TLD unless forbidden.
19429
19430 2011-05-07  Petr Baudis  <pasky@suse.cz>
19431             Ulrich Drepper  <drepper@gmail.com>
19432
19433         [BZ #12393]
19434         * elf/dl-load.c (fillin_rpath): Move trusted path check...
19435         (is_trusted_path): ...to here.
19436         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
19437         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
19438         using is_trusted_path_normalize() in setuid scripts.
19439
19440 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19441
19442         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
19443         __BEGIN/__END_DECLS.
19444
19445 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
19446
19447         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
19448         NSS_STATUS_NOTFOUND if no record was found.
19449
19450 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19451
19452         * sunrpc/Makefile (headers): Add rpc/netdb.h.
19453         (headers-not-in-tirpc): Remove rpc/netdb.h
19454         * resolv/netdb.h: Revert last change.
19455
19456 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19457
19458         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
19459         circular dependency between libgcc.a and libc.a.
19460
19461 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19462
19463         * resolv/netdb.h: Don't include <rpc/netdb.h>.
19464         * nis/Makefile: Don't install rpcsvc/*.
19465         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
19466         instead of <rpc/types.h>.
19467         (MAXHOSTNAMELEN): Define.
19468
19469 2011-05-03  Andreas Schwab  <schwab@redhat.com>
19470
19471         * elf/ldconfig.c (add_dir): Don't crash on empty path.
19472
19473 2011-04-28  Maciej Babinski  <mbabinski@google.com>
19474
19475         [BZ #12714]
19476         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
19477         gethostbyname4_r when IPv6 results are possible.
19478
19479 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
19480
19481         [BZ #12723]
19482         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
19483         _PC_PIPE_BUF handling.
19484
19485 2011-04-30  Bruno Haible  <bruno@clisp.org>
19486
19487         [BZ #12717]
19488         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
19489         * resolv/netdb.h (getnameinfo): Change type of flags parameter
19490         to 'int'.
19491         * inet/getnameinfo.c (getnameinfo): Likewise.
19492
19493 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
19494
19495         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
19496         to groups setting in database lookup.
19497         * nss/nsswitch.conf: Add initgroups entry.
19498
19499 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
19500
19501         [BZ #12685]
19502         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
19503         mode string.
19504         Patch by Eric Blake <eblake@redhat.com>.
19505
19506 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
19507
19508         * sunrpc/Makefile (need-export-routines): Add svc_run.
19509         (routines): Remove svc_run.
19510         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
19511         * sunrpc/clnt_perr.c (clnt_perrno): Export.
19512         * sunrpc/svc_run.c (svc_run): Likewise.
19513         * sunrpc/svc_udp.c (svcudp_create): Likewise.
19514
19515 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
19516
19517         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
19518         problem in reallocation in last patch.
19519
19520 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
19521
19522         * sunrpc/Makefile: Move inclusion of Rules.
19523
19524 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19525
19526         * nss/nss_files/files-initgroups.c: New file.
19527         * nss/Makefile (libnss_files-routines): Add files-initgroups.
19528         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
19529         _nss_files_initgroups_dyn.
19530
19531 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
19532
19533         * elf/elf.h (R_ARM_IRELATIVE): Define.
19534
19535 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19536
19537         * po/ru.po: Update from translation team.
19538
19539 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19540
19541         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
19542         dependencies.
19543
19544 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
19545
19546         [BZ #12653]
19547         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
19548         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
19549         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19550         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
19551         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
19552
19553 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
19554
19555         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
19556         differing bytes.
19557         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
19558         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
19559         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
19560
19561 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19562
19563         [BZ #12420]
19564         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
19565         storing it.
19566         * stdlib/bug-getcontext.c: New file.
19567         * stdlib/Makefile: Add rules to build and run bug-getcontext.
19568
19569 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19570
19571         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
19572         instructions into .machine "z9-109".
19573         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
19574         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
19575
19576 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19577
19578         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
19579         between environment variables and auxiliary vector.
19580
19581 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
19582
19583         * Makefile: Add rules to build linkobj/libc.so.
19584         * include/libc-symbols.h: Define libc_hidden_nolink.
19585         * include/rpc/auth.h: Mark functions which are to be hidden.
19586         * include/rpc/auth_des.h: Likewise.
19587         * include/rpc/auth_unix.h: Likewise.
19588         * include/rpc/clnt.h: Likewise.
19589         * include/rpc/des_crypt.h: Likewise.
19590         * include/rpc/key_prot.h: Likewise.
19591         * include/rpc/pmap_clnt.h: Likewise.
19592         * include/rpc/pmap_prot.h: Likewise.
19593         * include/rpc/pmap_rmt.h: Likewise.
19594         * include/rpc/rpc_msg.h: Likewise.
19595         * include/rpc/svc.h: Likewise.
19596         * include/rpc/svc_auth.h: Likewise.
19597         * include/rpc/xdr.h: Likewise.
19598         * nis/Makefile: Link all DSOs against linkobj/libc.so.
19599         * nss/Makefile: Likewise.
19600         * sunrpc/Makefile: Don't install headers.  Build library with normal
19601         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
19602         * sunrpc/auth_des.c: Hide exported symbols by default, export some
19603         for the compat linking library.  Remove use of INTDEF/INTUSE.
19604         * sunrpc/auth_none.c: Likewise.
19605         * sunrpc/auth_unix.c: Likewise.
19606         * sunrpc/authdes_prot.c: Likewise.
19607         * sunrpc/authuxprot.c: Likewise.
19608         * sunrpc/clnt_gen.c: Likewise.
19609         * sunrpc/clnt_perr.c: Likewise.
19610         * sunrpc/clnt_raw.c: Likewise.
19611         * sunrpc/clnt_simp.c: Likewise.
19612         * sunrpc/clnt_tcp.c: Likewise.
19613         * sunrpc/clnt_udp.c: Likewise.
19614         * sunrpc/clnt_unix.c: Likewise.
19615         * sunrpc/des_crypt.c: Likewise.
19616         * sunrpc/des_soft.c: Likewise.
19617         * sunrpc/get_myaddr.c: Likewise.
19618         * sunrpc/key_call.c: Likewise.
19619         * sunrpc/key_prot.c: Likewise.
19620         * sunrpc/netname.c: Likewise.
19621         * sunrpc/pm_getmaps.c: Likewise.
19622         * sunrpc/pm_getport.c: Likewise.
19623         * sunrpc/pmap_clnt.c: Likewise.
19624         * sunrpc/pmap_prot.c: Likewise.
19625         * sunrpc/pmap_prot2.c: Likewise.
19626         * sunrpc/pmap_rmt.c: Likewise.
19627         * sunrpc/publickey.c: Likewise.
19628         * sunrpc/rpc_cmsg.c: Likewise.
19629         * sunrpc/rpc_common.c: Likewise.
19630         * sunrpc/rpc_dtable.c: Likewise.
19631         * sunrpc/rpc_prot.c: Likewise.
19632         * sunrpc/rpc_thread.c: Likewise.
19633         * sunrpc/rtime.c: Likewise.
19634         * sunrpc/svc.c: Likewise.
19635         * sunrpc/svc_auth.c: Likewise.
19636         * sunrpc/svc_authux.c: Likewise.
19637         * sunrpc/svc_raw.c: Likewise.
19638         * sunrpc/svc_run.c: Likewise.
19639         * sunrpc/svc_simple.c: Likewise.
19640         * sunrpc/svc_tcp.c: Likewise.
19641         * sunrpc/svc_udp.c: Likewise.
19642         * sunrpc/svc_unix.c: Likewise.
19643         * sunrpc/svcauth_des.c: Likewise.
19644         * sunrpc/xcrypt.c: Likewise.
19645         * sunrpc/xdr.c: Likewise.
19646         * sunrpc/xdr_array.c: Likewise.
19647         * sunrpc/xdr_float.c: Likewise.
19648         * sunrpc/xdr_intXX_t.c: Likewise.
19649         * sunrpc/xdr_mem.c: Likewise.
19650         * sunrpc/xdr_rec.c: Likewise.
19651         * sunrpc/xdr_ref.c: Likewise.
19652         * sunrpc/xdr_sizeof.c: Likewise.
19653         * sunrpc/xdr_stdio.c: Likewise.
19654
19655 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
19656
19657         [BZ #12650]
19658         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
19659         * sysdeps/ia64/dl-tls.h: Likewise.
19660         * sysdeps/powerpc/dl-tls.h: Likewise.
19661         * sysdeps/s390/dl-tls.h: Likewise.
19662         * sysdeps/sh/dl-tls.h: Likewise.
19663         * sysdeps/sparc/dl-tls.h: Likewise.
19664         * sysdeps/x86_64/dl-tls.h: Likewise.
19665         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
19666
19667 2011-03-14  Andreas Schwab  <schwab@redhat.com>
19668
19669         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
19670         rpath element also skip the following colon.
19671         (expand_dynamic_string_token): Add is_path parameter and pass
19672         down to DL_DST_REQUIRED and _dl_dst_substitute.
19673         (decompose_rpath): Call expand_dynamic_string_token with
19674         non-zero is_path.  Ignore empty rpaths.
19675         (_dl_map_object_from_fd): Call expand_dynamic_string_token
19676         with zero is_path.
19677
19678 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
19679
19680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
19681         Make cancelable.
19682
19683 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
19684
19685         [BZ #12655]
19686         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19687         Patch by Filipe David Manana <fdmanana@apache.org>.
19688
19689 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19690
19691         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19692         Maintain aligned stack.
19693         (CHECK_RSP): Remove unused macro.
19694
19695 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19696
19697         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19698         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19699
19700 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19701
19702         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19703
19704         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19705
19706 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19707
19708         [BZ #12518]
19709         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19710         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19711         * sysdeps/x86_64/memmove.c: New file.
19712         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19713         (memcpy): Renamed to ...
19714         (__new_memcpy): This.
19715         (memcpy): Provide GLIBC_2_14 memcpy.
19716         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19717         (memcpy): Provide GLIBC_2_2_5 memcpy.
19718
19719 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19720
19721         [BZ #12631]
19722         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19723
19724 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19725
19726         * misc/syncfs.c: New file.
19727         * misc/Makefile (routines): Add syncfs.
19728         * posix/unistd.h: Declare syncfs.
19729         * sysdeps/unix/syscalls.list: Add syncfs.
19730
19731 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19732
19733         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19734         open_by_handle_at.
19735         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19736         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19737         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19738         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19739         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19740         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19741         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19742
19743 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19744
19745         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19746         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19747         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19748         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19749         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19750         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19751         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19752
19753         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19754         sync_file_range.c with -fexceptions.
19755         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19756         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19757         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19758         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19759         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19760         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19761         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19762         sync_file_range as cancellation point
19763         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19764         now a wrapper around __call_sync_file_range with cancellation handling.
19765         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19766         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19767         function name to __call_sync_file_range.
19768         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19769         Add call_sync_file_range.
19770
19771 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19772
19773         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19774         bits/timex.h.
19775
19776 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19777
19778         * iconv/iconv.h: Fix typo in comment.
19779         * io/fcntl.h: Likewise.
19780         * libio/stdio.h: Likewise.
19781         * posix/spawn.h: Likewise.
19782         * posix/unistd.h: Likewise.
19783         * stdlib/stdlib.h: Likewise.
19784         * time/time.h: Likewise.
19785         * wcsmbs/wchar.h: Likewise.
19786
19787         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19788         open_by_handle): Add.
19789         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19790         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19791         Augment a few comments.
19792         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19793         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19794         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19795         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19796         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19797         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19798         open_by_handle.
19799
19800         * io/fcntl.h (AT_EMPTY_PATH): Define.
19801
19802 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19803
19804         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19805         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19806         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19807         to...
19808         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19809         * Versions.def: Add GLIBC_2.14.
19810         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19811         Export.
19812
19813 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19814
19815         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19816         round counter.
19817         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19818
19819 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19820
19821         [BZ #12597]
19822         * string/test-strncmp.c (do_page_test): New function.
19823         (check2): Likewise.
19824         (test_main): Call check2.
19825         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19826
19827 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19828
19829         [BZ #12587]
19830         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19831         Handle cache information in CPU leaf 4.
19832         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19833
19834 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19835
19836         [BZ #12583]
19837         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19838         character representation.
19839         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19840
19841 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19842
19843         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19844         END(__isnan) to END(__isnanf) to match function entry point/label
19845         EALIGN(__isnanf,...).
19846
19847 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19848
19849         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19850
19851 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19852
19853         [BZ #12510]
19854         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19855         copy from the symbol referenced in the relocation to initialize the
19856         used variable.
19857         Patch by Piotr Bury <pbury@goahead.com>.
19858         * elf/Makefile: Add rules to build and tst-unique3.
19859         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19860         * elf/tst-unique3.cc: New file.
19861         * elf/tst-unique3.h: New file.
19862         * elf/tst-unique3lib.cc: New file.
19863         * elf/tst-unique3lib2.cc: New file.
19864
19865         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19866
19867 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19868
19869         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19870         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19871         to _start.
19872
19873 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19874
19875         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19876         to-be-loaded object along a path to loader is ld.so.
19877
19878 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19879             Ulrich Drepper  <drepper@gmail.com>
19880
19881         * sysdeps/x86_64/memset.S: After aligning destination, code
19882         branches to different locations depending on the value of
19883         misalignment, when multiarch is enabled. Fix this.
19884
19885 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19886
19887         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19888         Set _x86_64_preferred_memory_instruction for AMD processsors.
19889         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19890         Set bit_Prefer_SSE_for_memop for AMD processors.
19891
19892 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19893
19894         * libio/fmemopen.c (fmemopen): Optimize a bit.
19895
19896 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19897
19898         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19899
19900 2011-03-03  Roland McGrath  <roland@redhat.com>
19901
19902         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19903
19904 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19905
19906         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19907         __bzero_ultra1 instead of __memset_ultra1.
19908
19909 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19910             Ulrich Drepper  <drepper@gmail.com>
19911
19912         [BZ #12509]
19913         * include/link.h (struct link_map): Add l_orig_initfini.
19914         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19915         returning unsuccessfully.
19916         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19917         close of a file loaded at startup, restore the original l_initfini
19918         list.
19919         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19920         list, store the pointer.
19921         * elf/Makefile ($(objpfx)noload-mem): New rule.
19922         (noload-ENV): Define.
19923         (tests): Add $(objpfx)noload-mem.
19924         * elf/noload.c: Include <memcheck.h>.
19925         (main): Call mtrace.  Close all opened handles.
19926
19927 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19928
19929         [BZ #12454]
19930         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19931         dependencies are missing.
19932
19933 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19934
19935         Fix __if_freereq crash: Unlike the generic version which uses free,
19936         Hurd needs munmap.
19937         * sysdeps/mach/hurd/ifreq.h: New file.
19938
19939 2011-01-27  Petr Baudis  <pasky@suse.cz>
19940             Ulrich Drepper  <drepper@gmail.com>
19941
19942         [BZ 12445]#
19943         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19944         to extend_alloca().
19945         * stdio-common/bug23.c: New file.
19946         * stdio-common/Makefile (tests): Add bug23.
19947
19948 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19949             Ulrich Drepper  <drepper@gmail.com>
19950
19951         [BZ #12489]
19952         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19953         before performing relro protection.  At old place add assertion
19954         to make sure nothing changed.
19955
19956 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19957             Glauber de Oliveira Costa  <glommer@gmail.com>
19958
19959         * elf/elf.h: Add new ARM TLS relocs.
19960
19961 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19962
19963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19964         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19965         cast from r3.
19966         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19967         'tests' variable.
19968         * sysdeps/wordsize-64/tst-writev.c: New file.
19969
19970 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19971
19972         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19973         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19974         insns in _dl_start to prevent a TOC reference before relocs are
19975         resolved.
19976
19977 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19978
19979         [BZ #12469]
19980         * Makeconfig: Remove RANLIB definition.
19981         * Makerules: Don't use RANLIB.
19982         * aclocal.m4: Remove ranlib test.
19983         * configure.in: No need to check for ranlib.
19984         * elf/rtld-Rules: Don't use RANLIB.
19985
19986 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19987
19988         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19989         protection macro.
19990         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19991         inclusion protection macro.
19992
19993         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19994         SIGRTMIN and SIGRTMAX and print information in that case only when
19995         SIGRTMIN is defined.
19996
19997 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19998
19999         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20000         arginfo fn returning -1.
20001
20002         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20003         and thousands string is zero terminated.
20004
20005 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20006
20007         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20008         sysdeps/unix/sysv/linux/bits/socket.h.
20009
20010 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20011
20012         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20013         (__CPU_COUNT): Remove old macros.
20014         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20015         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20016         (__CPU_ALLOC, __CPU_FREE): Add macros.
20017         (__sched_cpualloc, __sched_cpufree): Add declarations.
20018
20019 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20020
20021         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20022         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20023         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20024         (readdhstai): Return value of addhstaiX call.
20025         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20026         (addgrbyX): Return value returned by cache_addgr.
20027         (readdgrbyname): Return value returned by addgrbyX.
20028         (readdgrbygid): Likewise.
20029         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20030         (addpwbyX): Return value returned by cache_addpw.
20031         (readdpwbyname): Return value returned by addhstbyX.
20032         (readdpwbyuid): Likewise.
20033         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20034         (addservbyX): Return value returned by cache_addserv.
20035         (readdservbyname): Return value returned by addservbyX:
20036         (readdservbyport): Likewise.
20037         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20038         (addhstbyX): Return value returned by cache_addhst.
20039         (readdhstbyname): Return value returned by addhstbyX.
20040         (readdhstbyaddr): Likewise.
20041         (readdhstbynamev6): Likewise.
20042         (readdhstbyaddrv6): Likewise.
20043         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20044         (readdinitgroups): Return value returned by addinitgroupsX.
20045         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20046         (prune_cache): Keep track of timeout value of re-added entries.
20047         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20048         * nscd/nscd.h: Adjust prototypes of readd* functions.
20049
20050 2011-02-04  Roland McGrath  <roland@redhat.com>
20051
20052         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20053         (nis_stats): Likewise.
20054         * nis/nis_modify.c (nis_modify): Likewise.
20055         * nis/nis_remove.c (nis_remove): Likewise.
20056         * nis/nis_add.c (nis_add): Likewise.
20057
20058         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20059
20060         * posix/fnmatch_loop.c: Add some consts.
20061
20062         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20063
20064 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20065
20066         [BZ #12460]
20067         * config.make.in (config-cflags-novzeroupper): Define.
20068         * configure.in: Substitute libc_cv_cc_novzeroupper.
20069         * elf/Makefile (AVX-CFLAGS): Define.
20070         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20071         (CFLAGS-tst-auditmod4a.c): Likewise.
20072         (CFLAGS-tst-auditmod4b.c): Likewise.
20073         (CFLAGS-tst-auditmod6b.c): Likewise.
20074         (CFLAGS-tst-auditmod6c.c): Likewise.
20075         (CFLAGS-tst-auditmod7b.c): Likewise.
20076         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20077
20078 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20079
20080         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20081         function to the callback.
20082         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20083
20084 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20085
20086         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20087         of errno.
20088
20089 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20090
20091         [BZ #11724]
20092         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20093         of constructors.
20094         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20095         of destructors.
20096         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20097
20098         [BZ #11724]
20099         * elf/Makefile: Add rules to build and run new test.
20100         * elf/tst-initorder.c: New file.
20101         * elf/tst-initorder.exp: New file.
20102         * elf/tst-initordera1.c: New file.
20103         * elf/tst-initordera2.c: New file.
20104         * elf/tst-initordera3.c: New file.
20105         * elf/tst-initordera4.c: New file.
20106         * elf/tst-initorderb1.c: New file.
20107         * elf/tst-initorderb2.c: New file.
20108         * elf/tst-order-a1.c: New file.
20109         * elf/tst-order-a2.c: New file.
20110         * elf/tst-order-a3.c: New file.
20111         * elf/tst-order-a4.c: New file.
20112         * elf/tst-order-b1.c: New file.
20113         * elf/tst-order-b2.c: New file.
20114         * elf/tst-order-main.c: New file.
20115         New test case by George Gensure <werkt0@gmail.com>.
20116
20117 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20118
20119         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20120         decoding ACE if AI_CANONIDN.
20121
20122 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20123
20124         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20125
20126 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20127
20128         * version.h (RELEASE): Bump for 2.13 release.
20129         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20130
20131         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20132
20133         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20134         MADV_NOHUGEPAGE.
20135         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20136         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20137         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20138         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20139         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20140         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20141
20142         * posix/getconf.c: Update copyright year.
20143         * catgets/gencat.c: Likewise.
20144         * csu/version.c: Likewise.
20145         * debug/catchsegv.sh: Likewise.
20146         * debug/xtrace.sh: Likewise.
20147         * elf/ldconfig.c: Likewise.
20148         * elf/ldd.bash.in: Likewise.
20149         * elf/sprof.c (print_version): Likewise.
20150         * iconv/iconv_prog.c: Likewise.
20151         * iconv/iconvconfig.c: Likewise.
20152         * locale/programs/locale.c: Likewise.
20153         * locale/programs/localedef.c: Likewise.
20154         * malloc/memusage.sh: Likewise.
20155         * malloc/mtrace.pl: Likewise.
20156         * nscd/nscd.c (print_version): Likewise.
20157         * nss/getent.c: Likewise.
20158
20159         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20160         PF_CAIF, and PF_ALG.
20161         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20162
20163 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20164
20165         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20166         (modules-names): Use them.
20167         (ifunc-test-modules, ifunc-pie-tests): Define.
20168         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20169         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20170         (test-extras): Likewise.
20171         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20172         $(compile-command.c).
20173         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20174         (all-built-dso): Define.
20175         (check-textrel.out, check-execstack.out): Depend on it.
20176
20177         * configure.in: Don't override --enable-multi-arch.
20178
20179 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20180
20181         [BZ #6812]
20182         * nscd/hstcache.c (tryagain): Define.
20183         (cache_addhst): Return tryagain not notfound for temporary errors.
20184         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20185         failed.
20186
20187 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20188
20189         [BZ #10563]
20190         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20191         to make the syscall.
20192         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20193
20194         [BZ #12378]
20195         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20196         and fall back to matching as normal character if the string ends before
20197         the matching ']' is found.  This is what POSIX requires.
20198         * posix/testfnm.c: Adjust test result.
20199         * posix/globtest.sh: Adjust test result.  Add new test.
20200         * posix/tst-fnmatch.input: Likewise.
20201         * posix/tst-fnmatch2.c: Add new test.
20202
20203 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20204
20205         * elf/Makefile (check-execstack): Revert last change.  Depend on
20206         check-execstack.h.
20207         (check-execstack.h): New target.
20208         (generated): Add check-execstack.h.
20209         * elf/check-execstack.c: Include "check-execstack.h".
20210         (main): Revert last change.
20211         (handle_file): Return zero if GNU_STACK is absent and
20212         DEFAULT_STACK_PERMS doesn't include PF_X.
20213
20214 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20215
20216         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20217         in child fails because the descriptor is already closed.
20218         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20219         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20220         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20221
20222         [BZ #12397]
20223         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20224         syscall.
20225
20226         [BZ #10484]
20227         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20228         temporary buffer used to handle multi lookups locally.
20229         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20230
20231 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20232
20233         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20234         loader is ld.so.
20235
20236 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20237
20238         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20239         alignment for SSE2.
20240
20241 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20242
20243         [BZ #12394]
20244         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20245         characters.  When rounding increased number of integer digits recompute
20246         number of groups.
20247         * stdio-common/tst-grouping.c: New file.
20248         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20249
20250 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20251
20252         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20253         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20254
20255         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20256         void.
20257         * bits/select.h: Likewise.
20258
20259 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20260
20261         * po/ja.po: Update from translation team.
20262
20263 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20264
20265         [BZ #11155]
20266         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20267         implementation just like for lxstat, fxstatat, et al.
20268
20269 2010-12-27  Jim Meyering  <meyering@redhat.com>
20270
20271         [BZ #12348]
20272         * posix/regexec.c (build_trtable): Return failure indication upon
20273         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20274
20275 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20276
20277         [BZ #12201]
20278         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20279         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20280         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20281         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20282
20283         [BZ #12207]
20284         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20285
20286         [BZ #12204]
20287         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20288         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20289
20290 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20291
20292         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20293         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20294         script has SORT_BY_INIT_PRIORITY.
20295         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20296         NO_CTORS_DTORS_SECTIONS is defined.
20297         * elf/soinit.c: Likewise.
20298         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20299         NO_CTORS_DTORS_SECTIONS is defined.
20300         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
20301         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
20302         * sysdeps/sh/init-first.c: Likewise.
20303         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
20304
20305 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
20306
20307         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
20308         always use the slow path.
20309
20310 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
20311
20312         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
20313         similar rule which adds the sysdep directories to the header search in
20314         order to pick up the correct platform stackinfo.h.
20315         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
20316         perform test if it is, otherwise return successfully without testing.
20317         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
20318         DEFAULT_STACK_PERMS define in stackinfo.h.
20319         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
20320         defined in stackinfo.h.
20321         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
20322         DEFAULT_STACK_PERMS defined in stackinfo.h.
20323         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
20324         * sysdeps/ia64/stackinfo.h: Likewise.
20325         * sysdeps/s390/stackinfo.h: Likewise.
20326         * sysdeps/sh/stackinfo.h: Likewise.
20327         * sysdeps/sparc/stackinfo.h: Likewise.
20328         * sysdeps/x86_64/stackinfo.h: Likewise.
20329         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
20330         PF_X for powerpc64.  Retain PF_X for powerpc32.
20331
20332 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
20333
20334         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
20335         accurately.
20336         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
20337         GETDENTS_64BIT_ALIGNED.
20338
20339 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
20340
20341         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
20342
20343 2010-12-10  Andreas Schwab  <schwab@redhat.com>
20344
20345         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
20346         _GNU_SOURCE.
20347
20348         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
20349         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
20350         Remove __restrict.
20351         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
20352         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
20353
20354 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
20355
20356         [BZ #11655]
20357         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
20358         are initialized.
20359
20360 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
20361
20362         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
20363
20364 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
20365
20366         * po/it.po: Update from translation team.
20367
20368 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20369
20370         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
20371         unused codes.
20372
20373 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
20374
20375         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
20376
20377 2010-11-24  Andreas Schwab  <schwab@redhat.com>
20378
20379         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
20380         specially.
20381         (gaih_getanswer_slice): Likewise.
20382
20383 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
20384
20385         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
20386
20387 2010-05-31  Petr Baudis  <pasky@suse.cz>
20388
20389         [BZ #11149]
20390         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
20391         silently even in the chroot mode.
20392
20393 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
20394
20395         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
20396         last patch a bit.  Pretty printing
20397
20398 2010-05-31  Petr Baudis <pasky@suse.cz>
20399
20400         [BZ #10085]
20401         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
20402         initialization of skip_initgroups_dyn.
20403
20404 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
20405
20406         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
20407         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20408
20409 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
20410
20411         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
20412
20413 2010-11-11  Andreas Schwab  <schwab@redhat.com>
20414
20415         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
20416         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
20417         (tst-fnmatch-ENV): Set MALLOC_TRACE.
20418         ($(objpfx)tst-fnmatch-mem): New rule.
20419         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
20420         * posix/tst-fnmatch.c (main): Call mtrace.
20421
20422 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
20423
20424         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20425         Support Intel processor model 6 and model 0x2c.
20426
20427 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
20428
20429         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
20430           signed comparison.
20431
20432 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
20433
20434         [BZ #12205]
20435         * string/test-strncasecmp.c (check_result): New function.
20436         (do_one_test): Use it.
20437         (check1): New function.
20438         (test_main): Use it.
20439         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
20440         Support strcasecmp and strncasecmp.
20441
20442 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
20443
20444         [BZ #12194]
20445         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
20446         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20447
20448 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20449
20450         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
20451         IFUNC support.
20452         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20453         memset-x86-64.
20454         * sysdeps/x86_64/multiarch/bzero.S: New file.
20455         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
20456         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
20457         * sysdeps/x86_64/multiarch/memset.S: New file.
20458         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
20459         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20460         Set bit_Prefer_SSE_for_memop for Intel processors.
20461         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
20462         Define.
20463         (index_Prefer_SSE_for_memop): Define.
20464         (HAS_PREFER_SSE_FOR_MEMOP): Define.
20465
20466 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
20467
20468         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
20469         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
20470
20471 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
20472
20473         [BZ #12191]
20474         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20475         (__x86_64_raw_data_cache_size_half): Likewise.
20476         (__x86_64_raw_shared_cache_size): Likewise.
20477         (__x86_64_raw_shared_cache_size_half): Likewise.
20478
20479         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20480         (__x86_64_raw_data_cache_size_half): Likewise.
20481         (__x86_64_raw_shared_cache_size): Likewise.
20482         (__x86_64_raw_shared_cache_size_half): Likewise.
20483         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
20484         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
20485         and __x86_64_raw_shared_cache_size_half.  Round
20486         __x86_64_data_cache_size_half, __x86_64_data_cache_size
20487         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
20488         to multiple of 256 bytes.
20489
20490 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
20491
20492         [BZ #12167]
20493         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
20494         of inacessible symlinks.  Verify result of symlink before returning it.
20495         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
20496         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
20497
20498 2010-10-28  Erich Ritz  <erichritz@gmail.com>
20499
20500         * math/math.h (isinf): Fix typo in comment.
20501
20502 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
20503
20504         * po/da.po: Update from translation team.
20505
20506 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
20507
20508         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
20509         is added to the list.
20510
20511 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20512             Ulrich Drepper  <drepper@gmail.com>
20513
20514         * elf/dl-object.c (_dl_new_object): Don't append the new object to
20515         the global list here.  Move code to...
20516         (_dl_add_to_namespace_list): ...here.  New function.
20517         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
20518         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
20519         * elf/dl-load.c (lose): Don't remove the element from the list.
20520         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
20521         (_dl_map_object): Likewise.
20522
20523 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
20524
20525         [BZ #12159]
20526         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
20527         into all bytes of SSE register.
20528         Patch by Richard Li <richardpku@gmail.com>.
20529
20530 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
20531
20532         [BZ #12140]
20533         * malloc/malloc.c (_int_free): Fill correct number of bytes when
20534         perturbing.
20535
20536 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
20537
20538         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
20539         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
20540         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
20541         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
20543         submachine.
20544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
20545
20546 2010-10-22  Andreas Schwab  <schwab@redhat.com>
20547
20548         * include/dlfcn.h (__RTLD_SECURE): Define.
20549         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
20550         mode & __RTLD_SECURE instead.
20551         (open_path): Rename preloaded parameter to secure.
20552         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
20553         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
20554         * elf/dl-deps.c (openaux): Likewise.
20555         * elf/rtld.c (struct map_args): Remove is_preloaded.
20556         (map_doit): Don't use it.
20557         (dl_main): Likewise.
20558         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
20559         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
20560
20561 2010-09-09  Andreas Schwab  <schwab@redhat.com>
20562
20563         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
20564         (sysd-rules-targets): Remove duplicates.
20565         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
20566         rtld-%.$o dependency.
20567
20568 2010-10-18  Andreas Schwab  <schwab@redhat.com>
20569
20570         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
20571         _dl_map_object do it.
20572
20573 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
20574
20575         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
20576         fast fma builtins, define the macros in the C99 standard.
20577         (FP_FAST_FMAF): Likewise.
20578         (FP_FAST_FMAL): Likewise.
20579         * sysdeps/x86_64/bits/mathdef.h: Likewise.
20580
20581         * bits/mathdef.h: Update copyright year.
20582         * sysdeps/powerpc/bits/mathdef.h: Likewise.
20583
20584 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20585
20586         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
20587         builtins, define the macros in the C99 standard.
20588         (FP_FAST_FMAF): Likewise.
20589         (FP_FAST_FMAL): Likewise.
20590         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
20591         multiply/add.
20592         (FP_FAST_FMAF): Likewise.
20593
20594 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
20595
20596         [BZ #3268]
20597         * math/libm-test.inc (fma_test): Some new testcases.
20598         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
20599         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
20600         y and infinite z.  Do multiplication by C already in long double.
20601         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
20602         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
20603         y and infinite z.  Do bitwise or of inexact bit into u.d.
20604         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
20605         * sysdeps/i386/fpu/s_fmaf.S: Removed.
20606         * sysdeps/i386/fpu/s_fma.S: Removed.
20607         * sysdeps/i386/fpu/s_fmal.S: Removed.
20608
20609 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
20610
20611         [BZ #3268]
20612         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
20613         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
20614         computation is not scheduled after fetestexcept.  Fix value
20615         of minimum denormal long double.
20616
20617 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
20618
20619         [BZ #3268]
20620         * math/libm-test.inc (fma_test): Add some more tests.
20621         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
20622         correctly.
20623
20624 2010-10-15  Andreas Schwab  <schwab@redhat.com>
20625
20626         * scripts/data/localplt-s390-linux-gnu.data: New file.
20627         * scripts/data/localplt-s390x-linux-gnu.data: New file.
20628
20629 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
20630
20631         [BZ #3268]
20632         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
20633         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
20634         instead of dbl-64.
20635         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
20636         inlines.
20637         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
20638         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
20639         if one of x and y is very large and the other is subnormal.
20640         * sysdeps/s390/fpu/s_fmaf.c: New file.
20641         * sysdeps/s390/fpu/s_fma.c: New file.
20642         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
20643         * sysdeps/powerpc/fpu/s_fma.S: New file.
20644         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
20645         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
20646         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
20647
20648 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
20649
20650         [BZ #3268]
20651         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
20652         fma tests.
20653         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
20654         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
20655         * sysdeps/i386/i686/multiarch/s_fma.c: Include
20656         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
20657         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
20658         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
20659         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
20660
20661 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
20662
20663         [BZ #12078]
20664         * posix/regcomp.c (parse_branch): One more memory leak plugged.
20665         * posix/bug-regex31.input: Add test case.
20666
20667 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20668
20669         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
20670         * posix/bug-regex31.input: New file.
20671
20672         [BZ #12078]
20673         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
20674         (parse_sub_exp): Fix last change, use postorder.
20675
20676         * posix/bug-regex31.c: New file.
20677         * posix/Makefile: Add rules to build and run bug-regex31.
20678
20679         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
20680
20681         [BZ #12078]
20682         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
20683
20684         [BZ #12108]
20685         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20686         to have entries in sys_siglist.
20687
20688         [BZ #12093]
20689         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20690         be NULL.
20691
20692 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20693
20694         [BZ #3268]
20695         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20696         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20697         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20698         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20699         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20700         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20701         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20702         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20703         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20704         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20705         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20706         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20707         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20708         * math/ftestexcept.c (fetestexcept): Likewise.
20709         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20710         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20711         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20712         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20713         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20714         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20715         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20716
20717 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20718
20719         [BZ #12107]
20720         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20721         newline.
20722
20723 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20724
20725         * string/bug-strstr1.c: New file.
20726         * string/Makefile: Add rules to build and run bug-strstr1.
20727
20728 2010-10-05  Eric Blake  <eblake@redhat.com>
20729
20730         [BZ #12092]
20731         * string/str-two-way.h (two_way_long_needle): Always clear memory
20732         when skipping input due to the shift table.
20733
20734 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20735
20736         [BZ #12005]
20737         * malloc/mcheck.c: Handle large requests.
20738
20739         [BZ #12077]
20740         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20741         for strncmp and strncasecmp.
20742         * string/stratcliff.c: Add tests for strcmp and strncmp.
20743         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20744
20745 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20746
20747         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20748         __set_fpscr.
20749
20750 2010-09-30  Andreas Jaeger  <aj@suse.de>
20751
20752         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20753         (CGROUP_SUPER_MAGIC): Define.
20754         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20755         Handle btrfs and cgroup file systems.
20756         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20757         Likewise.
20758
20759 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20760
20761         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20762         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20763
20764 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20765
20766         [BZ #12067]
20767         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20768         trying to locate the ELF header.
20769
20770 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20771
20772         [BZ #11611]
20773         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20774         Mask out sign-bit copies when constructing f_fsid.
20775
20776 2010-09-24  Petr Baudis <pasky@suse.cz>
20777
20778         * debug/stack_chk_fail_local.c: Add missing licence exception.
20779         * debug/warning-nop.c: Likewise.
20780
20781 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20782
20783         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20784         implementing getdents64 using getdents syscall, set d_type if
20785         __ASSUME_GETDENTS32_D_TYPE.
20786
20787 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20788
20789         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20790         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20791
20792 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20793
20794         [BZ #12037]
20795         * posix/unistd.h: Undo change of feature selection for ftruncate from
20796         2010-01-11.
20797
20798 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20799
20800         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20801         detection.
20802
20803 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20804
20805         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20806         fanotify_mark.
20807         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20808
20809 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20810
20811         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20812         variables after CHECK_SP call.
20813         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20814
20815 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20816             Ulrich Drepper  <drepper@redhat.com>
20817
20818         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20819         re-relocationg ld.so.
20820         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20821         _dl_init_paths call.
20822         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20823         here anymore.
20824
20825 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20826
20827         * resolv/res_init.c (__res_vinit): Count the default server we added.
20828
20829 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20830             Ulrich Drepper  <drepper@redhat.com>
20831
20832         [BZ #11968]
20833         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20834         (____longjmp_chk): Use %ebx for saving value across system call.
20835         Add unwind info.
20836
20837 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20838
20839         * manual/Makefile: Don't mix pattern rules with normal rules.
20840
20841 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20842
20843         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20844         operation.
20845         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20846         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20847         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20848         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20849         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20850         Likewise.
20851
20852 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20853
20854         [BZ #11979]
20855         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20856         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20857
20858 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20859
20860         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20861         * sysdeps/x86_64/addmul_1.S: Likewise.
20862         * sysdeps/x86_64/lshift.S: Likewise.
20863         * sysdeps/x86_64/mul_1.S: Likewise.
20864         * sysdeps/x86_64/rshift.S: Likewise.
20865         * sysdeps/x86_64/sub_n.S: Likewise.
20866         * sysdeps/x86_64/submul_1.S: Likewise.
20867
20868 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20869
20870         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20871         Define __sched_param instead of SCHED_* and sched_param when
20872         <bits/sched.h> is included with __need_schedparam defined.
20873         * bits/sched.h [__need_schedparam]
20874         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20875         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20876         (__defined_schedparam): Define to 1.
20877         (__sched_param): New structure, identical to sched_param.
20878         (__need_schedparam): Undefine.
20879
20880 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20881
20882         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20883         (epoll_create1): Declare.
20884
20885         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20886
20887 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20888
20889         [BZ #7066]
20890         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20891         shifting retval into place.
20892
20893 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20894
20895         * nis/rpcsvc/nis.h: Update copyright notice.
20896         * nis/rpcsvc/nis.x: Likewise.
20897         * nis/rpcsvc/nis_callback.h: Likewise.
20898         * nis/rpcsvc/nis_callback.x: Likewise.
20899         * nis/rpcsvc/nis_object.x: Likewise.
20900         * nis/rpcsvc/nis_tags.h: Likewise.
20901         * nis/rpcsvc/yp.h: Likewise.
20902         * nis/rpcsvc/yp.x: Likewise.
20903         * nis/rpcsvc/ypupd.h: Likewise.
20904         * nis/yp_xdr.c: Likewise.
20905         * nis/ypupdate_xdr.c: Likewise.
20906
20907         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20908         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20909         (pmap_getport): Use __libc_rpc_getport.
20910         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20911         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20912         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20913
20914 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20915
20916         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20917         fanotify_mark.
20918
20919 2010-08-27  Roland McGrath  <roland@redhat.com>
20920
20921         * sysdeps/i386/i686/multiarch/Makefile
20922         (CFLAGS-varshift.c): New variable.
20923
20924 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20925
20926         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20927         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20928
20929         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20930
20931         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20932
20933 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20934
20935         * sysdeps/x86_64/strlen.S: Unroll the loop.
20936         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20937         strlen-sse2 strlen-sse2-bsf.
20938         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20939         __strlen_no_bsf if bit_Slow_BSF is set.
20940         (__strlen_sse42): Removed.
20941         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20942         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20943
20944 2010-08-25  Roland McGrath  <roland@redhat.com>
20945
20946         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20947         * sysdeps/x86_64/multiarch/varshift.c: New file.
20948         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20949         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20950         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20951         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20952
20953 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20954
20955         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20956         strlen-sse2 strlen-sse2-bsf.
20957         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20958         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20959         (__strlen_sse2): Removed.
20960         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20961         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20962         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20963         bit_Slow_BSF for Atom.
20964         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20965         (index_Slow_BSF): Define.
20966         (HAS_SLOW_BSF): Define.
20967
20968 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20969
20970         [BZ #10851]
20971         * resolv/res_init.c (__res_vinit): When no server address at all
20972         is given default to loopback.
20973
20974 2010-08-24  Roland McGrath  <roland@redhat.com>
20975
20976         * configure.in: Remove config-name.h generation.
20977         * configure: Regenerated.
20978         * config-name.in: File removed.
20979         * scripts/config-uname.sh: New file.
20980         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20981         ($(objdir)config-name.h): New target.
20982
20983         * sunrpc/rpc_parse.h: Avoid nested comment.
20984
20985 2010-08-24  Richard Henderson  <rth@redhat.com>
20986             Ulrich Drepper  <drepper@redhat.com>
20987             H.J. Lu  <hongjiu.lu@intel.com>
20988
20989         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20990         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20991         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20992         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20993         _mm_alignr_epi8 with _mm_loadu_si128.
20994         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20995         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20996         (__m128i_shift_right): Removed.
20997         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20998         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20999         * sysdeps/x86_64/multiarch/varshift.h: New file.
21000         * sysdeps/x86_64/multiarch/varshift.S: New file.
21001
21002 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21003
21004         * configure.in: Move assembler checks to before sysdep dir checking.
21005
21006 2010-08-20  Petr Baudis  <pasky@suse.cz>
21007
21008         * LICENSES: Sync the sunrpc license.
21009
21010 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21011
21012         * sunrpc/auth_des.c: Update copyright notice once again.
21013         * sunrpc/auth_none.c: Likewise.
21014         * sunrpc/auth_unix.c: Likewise.
21015         * sunrpc/authdes_prot.c: Likewise.
21016         * sunrpc/authuxprot.c: Likewise.
21017         * sunrpc/bindrsvprt.c: Likewise.
21018         * sunrpc/clnt_gen.c: Likewise.
21019         * sunrpc/clnt_perr.c: Likewise.
21020         * sunrpc/clnt_raw.c: Likewise.
21021         * sunrpc/clnt_simp.c: Likewise.
21022         * sunrpc/clnt_tcp.c: Likewise.
21023         * sunrpc/clnt_udp.c: Likewise.
21024         * sunrpc/clnt_unix.c: Likewise.
21025         * sunrpc/des_crypt.c: Likewise.
21026         * sunrpc/des_soft.c: Likewise.
21027         * sunrpc/get_myaddr.c: Likewise.
21028         * sunrpc/getrpcport.c: Likewise.
21029         * sunrpc/key_call.c: Likewise.
21030         * sunrpc/key_prot.c: Likewise.
21031         * sunrpc/openchild.c: Likewise.
21032         * sunrpc/pm_getmaps.c: Likewise.
21033         * sunrpc/pm_getport.c: Likewise.
21034         * sunrpc/pmap_clnt.c: Likewise.
21035         * sunrpc/pmap_prot.c: Likewise.
21036         * sunrpc/pmap_prot2.c: Likewise.
21037         * sunrpc/pmap_rmt.c: Likewise.
21038         * sunrpc/rpc/auth.h: Likewise.
21039         * sunrpc/rpc/auth_unix.h: Likewise.
21040         * sunrpc/rpc/clnt.h: Likewise.
21041         * sunrpc/rpc/des_crypt.h: Likewise.
21042         * sunrpc/rpc/key_prot.h: Likewise.
21043         * sunrpc/rpc/netdb.h: Likewise.
21044         * sunrpc/rpc/pmap_clnt.h: Likewise.
21045         * sunrpc/rpc/pmap_prot.h: Likewise.
21046         * sunrpc/rpc/pmap_rmt.h: Likewise.
21047         * sunrpc/rpc/rpc.h: Likewise.
21048         * sunrpc/rpc/rpc_des.h: Likewise.
21049         * sunrpc/rpc/rpc_msg.h: Likewise.
21050         * sunrpc/rpc/svc.h: Likewise.
21051         * sunrpc/rpc/svc_auth.h: Likewise.
21052         * sunrpc/rpc/types.h: Likewise.
21053         * sunrpc/rpc/xdr.h: Likewise.
21054         * sunrpc/rpc_clntout.c: Likewise.
21055         * sunrpc/rpc_cmsg.c: Likewise.
21056         * sunrpc/rpc_common.c: Likewise.
21057         * sunrpc/rpc_cout.c: Likewise.
21058         * sunrpc/rpc_dtable.c: Likewise.
21059         * sunrpc/rpc_hout.c: Likewise.
21060         * sunrpc/rpc_main.c: Likewise.
21061         * sunrpc/rpc_parse.c: Likewise.
21062         * sunrpc/rpc_parse.h: Likewise.
21063         * sunrpc/rpc_prot.c: Likewise.
21064         * sunrpc/rpc_sample.c: Likewise.
21065         * sunrpc/rpc_scan.c: Likewise.
21066         * sunrpc/rpc_scan.h: Likewise.
21067         * sunrpc/rpc_svcout.c: Likewise.
21068         * sunrpc/rpc_tblout.c: Likewise.
21069         * sunrpc/rpc_util.c: Likewise.
21070         * sunrpc/rpc_util.h: Likewise.
21071         * sunrpc/rpcinfo.c: Likewise.
21072         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21073         * sunrpc/rpcsvc/key_prot.x: Likewise.
21074         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21075         * sunrpc/rpcsvc/mount.x: Likewise.
21076         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21077         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21078         * sunrpc/rpcsvc/rex.x: Likewise.
21079         * sunrpc/rpcsvc/rstat.x: Likewise.
21080         * sunrpc/rpcsvc/rusers.x: Likewise.
21081         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21082         * sunrpc/rpcsvc/spray.x: Likewise.
21083         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21084         * sunrpc/rtime.c: Likewise.
21085         * sunrpc/svc.c: Likewise.
21086         * sunrpc/svc_auth.c: Likewise.
21087         * sunrpc/svc_authux.c: Likewise.
21088         * sunrpc/svc_raw.c: Likewise.
21089         * sunrpc/svc_run.c: Likewise.
21090         * sunrpc/svc_simple.c: Likewise.
21091         * sunrpc/svc_tcp.c: Likewise.
21092         * sunrpc/svc_udp.c: Likewise.
21093         * sunrpc/svc_unix.c: Likewise.
21094         * sunrpc/svcauth_des.c: Likewise.
21095         * sunrpc/xcrypt.c: Likewise.
21096         * sunrpc/xdr.c: Likewise.
21097         * sunrpc/xdr_array.c: Likewise.
21098         * sunrpc/xdr_float.c: Likewise.
21099         * sunrpc/xdr_mem.c: Likewise.
21100         * sunrpc/xdr_rec.c: Likewise.
21101         * sunrpc/xdr_ref.c: Likewise.
21102         * sunrpc/xdr_sizeof.c: Likewise.
21103         * sunrpc/xdr_stdio.c: Likewise.
21104
21105         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21106         handling.
21107
21108 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21109
21110         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21111
21112 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21113
21114         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21115         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21116         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21117         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21118         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21119         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21120         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21121         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21122         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21123         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21124         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21125         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21126         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21127         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21128
21129 2010-07-26  Anton Blanchard  <anton@samba.org>
21130
21131         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21132         * malloc/arena.c (heap_trim): Likewise.
21133
21134 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21135
21136         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21137         here.  Not...
21138         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21139         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21140
21141 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21142
21143         * sysdeps/i386/elf/Makefile: New file.
21144
21145 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21146
21147         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21148         from fanotify_init.
21149         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21150         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21151
21152 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21153
21154         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21155         of strncasecmp_l.
21156         * sysdeps/multiarch/strcmp.S: Likewise.
21157
21158 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21159
21160         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21161         strncase_l-nonascii.
21162         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21163         Add strncase_l-ssse3.
21164         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21165         * sysdeps/x86_64/strcmp.S: Likewise.
21166         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21167         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21168         * sysdeps/x86_64/strncase.S: New file.
21169         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21170         * sysdeps/x86_64/strncase_l.S: New file.
21171         * string/Makefile (strop-tests): Add strncasecmp.
21172         * string/test-strncasecmp.c: New file.
21173
21174         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21175         warning.
21176
21177         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21178         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21179
21180 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21181
21182         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21183
21184 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21185
21186         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21187         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21188         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21189
21190 2010-05-01  Alan Modra  <amodra@gmail.com>
21191
21192         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21193         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21194         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21195         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21196         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21197         tidying.  Don't tail-call __sigjmp_save for static lib.
21198         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21199         save location.
21200         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21201         (CALL_MCOUNT): Add eh info, and nop after bl.
21202         (TAIL_CALL_SYSCALL_ERROR): New macro.
21203         (PSEUDO_RET): Use it.
21204         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21205         Correct save location of integer regs and cr.
21206         (_dl_profile_resolve): Correct cr save location.  Delete nops
21207         after bl when SHARED.  Reduce cfi size a little by better
21208         placement of cfi directives.
21209         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21210         make a stack frame.  Instead use parm save area as a temp.
21211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21212         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21214         Don't make a stack frame for parent, use parm save area.
21215         Increase child stack frame to 112 bytes.  Don't save unused reg,
21216         and adjust reg usage.  Set up cfi on error recovery and
21217         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21219         (__makecontext): Add dummy nop after jump to exit.
21220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21221         Use correct parm save area and cr save, reduce stack frame.
21222         Correct cfi for possible PSEUDO_RET frame setup.
21223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21224         Branch to local label emitted by PSEUDO_RET rather than
21225         __syscall_error.
21226
21227 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21228
21229         [BZ #11904]
21230         * locale/programs/locale.c (print_assignment): New function.
21231         (show_locale_vars): Use it.
21232
21233 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21234
21235         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21236         field.
21237         (struct statfs64): Likewise.
21238         (_STATFS_F_FLAGS): Define.
21239         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21240         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21241         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21242         (ST_VALID): Define locally.
21243         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21244         __statvfs_getflags, use the provided value.
21245         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21246         __ASSUME_STATFS_F_FLAGS.
21247
21248         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21249
21250         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21251         Add sys/fanotify.h.
21252         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21253         fanotify_mask for GLIBC_2.13.
21254         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21255         fanotify_init and fanotify_mark.
21256         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21257         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21258
21259         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21260         Add prlimit.
21261         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21262         prlimit64 for GLIBC_2.13.
21263         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21264         prlimit64.
21265         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21266         syscall.
21267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21268         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21269         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21270         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21271         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21272         add prlimit alias.
21273         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21274
21275         [BZ #11903]
21276         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21277         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21278
21279         * nss/Makefile: Add rules to build and run tst-nss-test1.
21280         * shlib-versions: Add entry for libnss_test1.
21281         * nss/nss_test1.c: New file.
21282         * nss/tst-nss-test1.c: New file.
21283
21284         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21285         (__nss_configure_lookup): Set appropriate entry in
21286         __nss_configure_lookup to true.
21287         * nss/nsswitch.h: Define enum with indeces of databases in
21288         databases and __nss_database_custom arrays.  Declare
21289         __nss_database_custom.
21290         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21291         to avoid using nscd when custom rules are installed.
21292         * nss/getXXbyYY_r.c: Likewise.
21293         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21294
21295         * nss/nss_files/files-parse.c: Whitespace fixes.
21296
21297 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21298
21299         [BZ #11883]
21300         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
21301         * posix/fnmatch_loop.c: Likewise.
21302
21303 2010-07-17  Andi Kleen  <ak@linux.intel.com>
21304
21305         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
21306         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
21307         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
21308         * Versions.def [GLIBC_2.13]: Add.
21309
21310 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
21311
21312         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21313         Also fail if tpwd after pwuid call is NULL.
21314
21315 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21316
21317         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
21318         when converting to ms.
21319
21320 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21321
21322         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
21323         EOPNOTSUPP errors with ENOTTY.
21324         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
21325         EOPNOTSUPP errors with ENOTTY.
21326
21327 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
21328
21329         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21330         Add strcasecmp_l-ssse3.
21331         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
21332         strcasecmp.
21333         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
21334         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
21335         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
21336
21337 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
21338
21339         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
21340
21341         * string/Makefile (strop-tests): Add strcasecmp.
21342         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21343         strcasecmp_l-nonascii.
21344         (gen-as-const-headers): Add locale-defines.sym.
21345         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
21346         * sysdeps/x86_64/strcasecmp.S: New file.
21347         * sysdeps/x86_64/strcasecmp_l.S: New file.
21348         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
21349         * sysdeps/x86_64/locale-defines.sym: New file.
21350         * string/test-strcasecmp.c: New file.
21351
21352         * string/test-strcasestr.c: Test both ends of the range of characters.
21353         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
21354
21355 2010-07-29  Roland McGrath  <roland@redhat.com>
21356
21357         [BZ #11856]
21358         * manual/locale.texi (Yes-or-No Questions): Fix example code.
21359
21360 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
21361
21362         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
21363         for ld.so.
21364
21365 2010-07-27  Andreas Schwab  <schwab@redhat.com>
21366
21367         * manual/memory.texi (Malloc Tunable Parameters): Document
21368         M_PERTURB.
21369
21370 2010-07-26  Roland McGrath  <roland@redhat.com>
21371
21372         [BZ #11840]
21373         * configure.in (-fgnu89-inline check): Set and substitute
21374         gnu89_inline, not libc_cv_gnu89_inline.
21375         * configure: Regenerated.
21376         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
21377
21378 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
21379
21380         * string/test-strnlen.c: New file.
21381         * string/Makefile (strop-tests): Add strnlen.
21382         * string/tester.c (test_strnlen): Add a few more test cases.
21383         * string/tst-strlen.c: Better error reporting.
21384
21385         * sysdeps/x86_64/strnlen.S: New file.
21386
21387 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
21388
21389         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
21390         lower-latency instructions.
21391
21392 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
21393
21394         * string/test-strcasestr.c: New file.
21395         * string/test-strstr.c: New file.
21396         * string/Makefile (strop-tests): Add strstr and strcasestr.
21397         * string/str-two-way.h: Don't undefine MAX.
21398         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
21399
21400 2010-07-21  Andreas Schwab  <schwab@redhat.com>
21401
21402         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21403         strcasestr-nonascii.
21404         (CFLAGS-strcasestr-nonascii.c): Define.
21405         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
21406         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
21407         Remove unused attribute.
21408
21409 2010-07-20  Roland McGrath  <roland@redhat.com>
21410
21411         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
21412         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
21413         ld.so.cache was broken.  With it, there is no way to disable dsocaps
21414         like LD_HWCAP_MASK can disable hwcaps.
21415
21416 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21417
21418         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
21419
21420 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
21421
21422         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
21423         call in strcasestr.
21424         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
21425         __strcasestr_sse42_nonascii.
21426         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
21427         strcasestr-nonascii.c.
21428         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
21429
21430 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
21431
21432         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
21433         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
21434         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
21435         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
21436
21437 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
21438
21439         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
21440         fcntl.
21441
21442 2010-07-06  Andreas Schwab  <schwab@redhat.com>
21443
21444         [BZ #11577]
21445         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
21446         dl_signal_cerror.
21447
21448 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
21449
21450         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
21451         _PC_PIPE_BUF using F_GETPIPE_SZ.
21452
21453 2010-07-05  Roland McGrath  <roland@redhat.com>
21454
21455         * manual/arith.texi (Rounding Functions): Fix rint description
21456         implicit in round description.
21457
21458 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
21459
21460         * elf/Makefile: Fix linking for a few tests to make recent linker
21461         happy.
21462
21463 2010-06-30  Andreas Schwab  <schwab@redhat.com>
21464
21465         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
21466         $(common-objpfx)libc_nonshared.a.
21467
21468 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
21469
21470         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
21471         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
21472         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21473         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21474         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
21475         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
21476         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21477         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
21479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
21480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
21481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
21483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
21485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
21486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
21487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
21488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
21490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
21492         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
21493         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
21494         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
21495         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
21496         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
21497         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
21498         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
21499         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
21500         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
21501         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
21502         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
21503         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
21504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
21505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
21506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
21507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
21508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
21509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
21510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
21511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
21512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
21513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
21514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
21515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
21516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
21517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
21518
21519 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21520
21521         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
21522         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
21523         * string/memmove.c (memmove): Renamed to ...
21524         (MEMMOVE): ...this.  Default to memmove.
21525         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
21526         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
21527         (END_CHK): Define.
21528         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21529         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
21530         mempcpy-ssse3-back memmove-ssse3-back.
21531         * sysdeps/x86_64/multiarch/bcopy.S: New file .
21532         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
21533         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
21534         * sysdeps/x86_64/multiarch/memcpy.S: New file.
21535         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
21536         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
21537         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
21538         * sysdeps/x86_64/multiarch/memmove.c: New file.
21539         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
21540         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
21541         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
21542         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
21543         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
21544         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
21545         Define.
21546         (index_Fast_Copy_Backward): Define.
21547         (HAS_ARCH_FEATURE): Define.
21548         (HAS_FAST_REP_STRING): Define.
21549         (HAS_FAST_COPY_BACKWARD): Define.
21550
21551 2010-06-21  Andreas Schwab  <schwab@redhat.com>
21552
21553         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21554         Restore proper fallback handling.
21555
21556 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
21557
21558         [BZ #11701]
21559         * posix/group_member.c (__group_member): Correct checking loop.
21560
21561         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
21562         OOM in getpwuid_r correctly.  Return error number when the caller
21563         should return, otherwise -1.
21564         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
21565         call returning > 0 value.
21566         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
21567
21568 2010-06-07  Andreas Schwab  <schwab@redhat.com>
21569
21570         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
21571         libc_nonshared.a from targets in modules-names.
21572
21573 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
21574
21575         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
21576         requires it.
21577
21578 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
21579
21580         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
21581         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
21582         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
21583         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
21584
21585 2010-06-02  Andreas Schwab  <schwab@redhat.com>
21586
21587         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
21588
21589 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
21590
21591         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
21592         and F_GETPIPE_SZ.
21593         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
21594         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21595         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21596         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21597         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21598         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
21599
21600 2010-06-14  Roland McGrath  <roland@redhat.com>
21601
21602         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
21603
21604 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
21605
21606         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
21607         __REDIRECT followed by __THROW.
21608         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
21609         * posix/getopt.h (getopt): Likewise.
21610
21611 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21612
21613         * hurd/lookup-at.c (__file_name_lookup_at): Accept
21614         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
21615         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
21616         in AT_FLAGS.
21617         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
21618         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
21619
21620 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
21621
21622         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
21623
21624 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
21625
21626         [BZ #11640]
21627         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21628         Properly check family and model.
21629
21630 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
21631
21632         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
21633
21634 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
21635
21636         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
21637
21638 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
21639
21640         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
21641         symbol reference.
21642
21643 2010-05-19  Andreas Schwab  <schwab@redhat.com>
21644
21645         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
21646         symbol reference.
21647
21648 2010-05-21  Andreas Schwab  <schwab@redhat.com>
21649
21650         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
21651         and internal_recvmmsg.
21652         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
21653         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
21654         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
21655         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
21656
21657         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
21658         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
21659         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
21660
21661 2010-05-20  Andreas Schwab  <schwab@redhat.com>
21662
21663         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
21664
21665 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
21666
21667         POWER7 optimizations.
21668         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
21669         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
21670
21671 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
21672
21673         * version.h: Update for 2.13 development version.
21674
21675 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
21676
21677         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
21678         exceptions.  Return 0.
21679
21680 2010-05-07  Roland McGrath  <roland@redhat.com>
21681
21682         * elf/ldconfig.c (main): Add a const.
21683
21684 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
21685
21686         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21687         (args_options): Add no-idn option.
21688         (ahosts_keys_int): Add idn_flags to ai_flags.
21689         (parse_option): Handle 'i' option to clear idn_flags.
21690
21691         * malloc/malloc.c (_int_free): Possible race in the most recently
21692         added check.  Only act on the data if no current modification
21693         happened.
21694
21695 See ChangeLog.17 for earlier changes.