Adding AArch64 support to elf/elf.h
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2
3         * elf/elf.h (EM_AARCH64): New macro.
4         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
5         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
6         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
7         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
8         (R_AARCH64_TLSDESC): Likewise.
9         (NT_ARM_TLS): Likewise.
10         (NT_ARM_HW_BREAK): Likewise.
11         (NT_ARM_HW_WATCH): Likewise.
12
13 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
14
15         [BZ #14811]
16         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
17         (__ieee754_powl): Saturate nonzero exponents with absolute value
18         below 0x1p-79 to +/- 0x1p-79.
19         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
20         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
21         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
22         nonzero exponents with absolute value below 0x1p-32 to +/-
23         0x1p-32.
24         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
25         (__ieee754_powl): Saturate nonzero exponents with absolute value
26         below 0x1p-79 to +/- 0x1p-79.
27         * math/libm-test.inc (pow_test): Add more tests.
28
29 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30
31         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
32         _dl_s390_cap_flags with kernel. Increase string length.
33         (_dl_s390_platforms): Add z196 and zEC12.
34
35 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
36
37         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
38         Change XOPEN21K to XOPEN2K.
39
40 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
41
42         * string/memmove.c: Use memcpy when possible.
43
44 2012-11-06  Andreas Jaeger  <aj@suse.de>
45
46         * po/eo.po: Update from translation team.
47
48 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
49
50         [BZ #14793]
51         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
52         exponent and small x and y exponents, scale x or y up.  Increase
53         by 2 the exponent used in scaling up.
54         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56         * math/libm-test.inc (fma_test): Add more tests.
57         (fma_test_towardzero): Likewise.
58         (fma_test_downward): Likewise.
59         (fma_test_upward): Likewise.
60
61 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
62
63         [BZ #14805]
64         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
65         fenv_t *.
66
67         [BZ #14801]
68         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
69         namespace for names of struct fields.
70         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
71         fenv_t fields.
72         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
73         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
74
75 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76
77         [BZ #3665]
78         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
79
80 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
81
82         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
83         PTR_DEMANGLE.
84
85         [BZ #5246]
86         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
87         PTR_DEMANGLE.
88
89 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
90
91         [BZ #14797]
92         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
93         definitely overflow as x * y not x * y + z.
94         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
95         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
96         * math/libm-test.inc (fma_test): Add more tests.
97         (fma_test_towardzero): Likewise.
98         (fma_test_downward): Likewise.
99         (fma_test_upward): Likewise.
100
101 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
102
103         [BZ #157]
104
105         * include/stub-tag.h: Remove file.
106         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
107         '#include' of it.
108         * manual/maint.texi (Porting): Don't reference it.
109         * Makerules ($(objpfx)stubs): Likewise.
110         * dirent/closedir.c: Don't include <stub-tag.h>.
111         * dirent/dirfd.c: Likewise.
112         * dirent/fdopendir.c: Likewise.
113         * dirent/getdents.c: Likewise.
114         * dirent/getdents64.c: Likewise.
115         * dirent/opendir.c: Likewise.
116         * dirent/readdir.c: Likewise.
117         * dirent/readdir64.c: Likewise.
118         * dirent/readdir64_r.c: Likewise.
119         * dirent/readdir_r.c: Likewise.
120         * dirent/rewinddir.c: Likewise.
121         * dirent/seekdir.c: Likewise.
122         * dirent/telldir.c: Likewise.
123         * gmon/profil.c: Likewise.
124         * grp/setgroups.c: Likewise.
125         * inet/if_index.c: Likewise.
126         * io/access.c: Likewise.
127         * io/chdir.c: Likewise.
128         * io/chmod.c: Likewise.
129         * io/chown.c: Likewise.
130         * io/close.c: Likewise.
131         * io/dup.c: Likewise.
132         * io/dup2.c: Likewise.
133         * io/dup3.c: Likewise.
134         * io/euidaccess.c: Likewise.
135         * io/faccessat.c: Likewise.
136         * io/fchdir.c: Likewise.
137         * io/fchmod.c: Likewise.
138         * io/fchmodat.c: Likewise.
139         * io/fchown.c: Likewise.
140         * io/fchownat.c: Likewise.
141         * io/fcntl.c: Likewise.
142         * io/flock.c: Likewise.
143         * io/fstatfs.c: Likewise.
144         * io/fstatfs64.c: Likewise.
145         * io/fstatvfs.c: Likewise.
146         * io/fstatvfs64.c: Likewise.
147         * io/futimens.c: Likewise.
148         * io/fxstat.c: Likewise.
149         * io/fxstat64.c: Likewise.
150         * io/fxstatat.c: Likewise.
151         * io/fxstatat64.c: Likewise.
152         * io/getcwd.c: Likewise.
153         * io/isatty.c: Likewise.
154         * io/lchmod.c: Likewise.
155         * io/lchown.c: Likewise.
156         * io/link.c: Likewise.
157         * io/linkat.c: Likewise.
158         * io/lseek.c: Likewise.
159         * io/lseek64.c: Likewise.
160         * io/lxstat64.c: Likewise.
161         * io/mkdir.c: Likewise.
162         * io/mkdirat.c: Likewise.
163         * io/mkfifo.c: Likewise.
164         * io/mkfifoat.c: Likewise.
165         * io/open.c: Likewise.
166         * io/open64.c: Likewise.
167         * io/openat.c: Likewise.
168         * io/openat64.c: Likewise.
169         * io/pipe.c: Likewise.
170         * io/pipe2.c: Likewise.
171         * io/poll.c: Likewise.
172         * io/posix_fadvise.c: Likewise.
173         * io/posix_fadvise64.c: Likewise.
174         * io/posix_fallocate.c: Likewise.
175         * io/posix_fallocate64.c: Likewise.
176         * io/read.c: Likewise.
177         * io/readlink.c: Likewise.
178         * io/readlinkat.c: Likewise.
179         * io/rmdir.c: Likewise.
180         * io/sendfile.c: Likewise.
181         * io/sendfile64.c: Likewise.
182         * io/statfs.c: Likewise.
183         * io/statfs64.c: Likewise.
184         * io/statvfs.c: Likewise.
185         * io/statvfs64.c: Likewise.
186         * io/symlink.c: Likewise.
187         * io/symlinkat.c: Likewise.
188         * io/ttyname.c: Likewise.
189         * io/ttyname_r.c: Likewise.
190         * io/umask.c: Likewise.
191         * io/unlink.c: Likewise.
192         * io/unlinkat.c: Likewise.
193         * io/utime.c: Likewise.
194         * io/utimensat.c: Likewise.
195         * io/write.c: Likewise.
196         * io/xmknod.c: Likewise.
197         * io/xmknodat.c: Likewise.
198         * io/xstat.c: Likewise.
199         * io/xstat64.c: Likewise.
200         * login/getpt.c: Likewise.
201         * login/grantpt.c: Likewise.
202         * login/unlockpt.c: Likewise.
203         * math/e_acoshl.c: Likewise.
204         * math/e_acosl.c: Likewise.
205         * math/e_asinl.c: Likewise.
206         * math/e_atan2l.c: Likewise.
207         * math/e_atanhl.c: Likewise.
208         * math/e_coshl.c: Likewise.
209         * math/e_expl.c: Likewise.
210         * math/e_fmodl.c: Likewise.
211         * math/e_gammal_r.c: Likewise.
212         * math/e_hypotl.c: Likewise.
213         * math/e_j0l.c: Likewise.
214         * math/e_j1l.c: Likewise.
215         * math/e_jnl.c: Likewise.
216         * math/e_lgammal_r.c: Likewise.
217         * math/e_log10l.c: Likewise.
218         * math/e_log2l.c: Likewise.
219         * math/e_logl.c: Likewise.
220         * math/e_powl.c: Likewise.
221         * math/e_rem_pio2l.c: Likewise.
222         * math/e_sinhl.c: Likewise.
223         * math/e_sqrtl.c: Likewise.
224         * math/fclrexcpt.c: Likewise.
225         * math/fedisblxcpt.c: Likewise.
226         * math/feenablxcpt.c: Likewise.
227         * math/fegetenv.c: Likewise.
228         * math/fegetexcept.c: Likewise.
229         * math/fegetround.c: Likewise.
230         * math/feholdexcpt.c: Likewise.
231         * math/fesetenv.c: Likewise.
232         * math/fesetround.c: Likewise.
233         * math/feupdateenv.c: Likewise.
234         * math/fgetexcptflg.c: Likewise.
235         * math/fraiseexcpt.c: Likewise.
236         * math/fsetexcptflg.c: Likewise.
237         * math/ftestexcept.c: Likewise.
238         * math/k_cosl.c: Likewise.
239         * math/k_rem_pio2l.c: Likewise.
240         * math/k_sinl.c: Likewise.
241         * math/k_tanl.c: Likewise.
242         * math/s_asinhl.c: Likewise.
243         * math/s_atanl.c: Likewise.
244         * math/s_cbrtl.c: Likewise.
245         * math/s_erfl.c: Likewise.
246         * math/s_expm1l.c: Likewise.
247         * math/s_log1pl.c: Likewise.
248         * math/s_tanhl.c: Likewise.
249         * misc/acct.c: Likewise.
250         * misc/brk.c: Likewise.
251         * misc/chflags.c: Likewise.
252         * misc/chroot.c: Likewise.
253         * misc/fchflags.c: Likewise.
254         * misc/fgetxattr.c: Likewise.
255         * misc/flistxattr.c: Likewise.
256         * misc/fremovexattr.c: Likewise.
257         * misc/fsetxattr.c: Likewise.
258         * misc/fsync.c: Likewise.
259         * misc/ftruncate.c: Likewise.
260         * misc/futimes.c: Likewise.
261         * misc/futimesat.c: Likewise.
262         * misc/getdomain.c: Likewise.
263         * misc/getdtsz.c: Likewise.
264         * misc/gethostid.c: Likewise.
265         * misc/gethostname.c: Likewise.
266         * misc/getloadavg.c: Likewise.
267         * misc/getpagesize.c: Likewise.
268         * misc/getsysstats.c: Likewise.
269         * misc/getxattr.c: Likewise.
270         * misc/gtty.c: Likewise.
271         * misc/ioctl.c: Likewise.
272         * misc/lgetxattr.c: Likewise.
273         * misc/listxattr.c: Likewise.
274         * misc/llistxattr.c: Likewise.
275         * misc/lremovexattr.c: Likewise.
276         * misc/lsetxattr.c: Likewise.
277         * misc/lutimes.c: Likewise.
278         * misc/madvise.c: Likewise.
279         * misc/mincore.c: Likewise.
280         * misc/mlock.c: Likewise.
281         * misc/mlockall.c: Likewise.
282         * misc/mmap.c: Likewise.
283         * misc/mprotect.c: Likewise.
284         * misc/msync.c: Likewise.
285         * misc/munlock.c: Likewise.
286         * misc/munlockall.c: Likewise.
287         * misc/munmap.c: Likewise.
288         * misc/preadv.c: Likewise.
289         * misc/preadv64.c: Likewise.
290         * misc/ptrace.c: Likewise.
291         * misc/pwritev.c: Likewise.
292         * misc/pwritev64.c: Likewise.
293         * misc/readv.c: Likewise.
294         * misc/reboot.c: Likewise.
295         * misc/remap_file_pages.c: Likewise.
296         * misc/removexattr.c: Likewise.
297         * misc/revoke.c: Likewise.
298         * misc/select.c: Likewise.
299         * misc/setdomain.c: Likewise.
300         * misc/setegid.c: Likewise.
301         * misc/seteuid.c: Likewise.
302         * misc/sethostid.c: Likewise.
303         * misc/sethostname.c: Likewise.
304         * misc/setregid.c: Likewise.
305         * misc/setreuid.c: Likewise.
306         * misc/setxattr.c: Likewise.
307         * misc/sstk.c: Likewise.
308         * misc/stty.c: Likewise.
309         * misc/swapoff.c: Likewise.
310         * misc/swapon.c: Likewise.
311         * misc/sync.c: Likewise.
312         * misc/syncfs.c: Likewise.
313         * misc/syscall.c: Likewise.
314         * misc/truncate.c: Likewise.
315         * misc/ualarm.c: Likewise.
316         * misc/usleep.c: Likewise.
317         * misc/ustat.c: Likewise.
318         * misc/utimes.c: Likewise.
319         * misc/vhangup.c: Likewise.
320         * misc/writev.c: Likewise.
321         * posix/_exit.c: Likewise.
322         * posix/alarm.c: Likewise.
323         * posix/execve.c: Likewise.
324         * posix/fexecve.c: Likewise.
325         * posix/fork.c: Likewise.
326         * posix/fpathconf.c: Likewise.
327         * posix/getaddrinfo.c: Likewise.
328         * posix/getegid.c: Likewise.
329         * posix/geteuid.c: Likewise.
330         * posix/getgid.c: Likewise.
331         * posix/getgroups.c: Likewise.
332         * posix/getlogin.c: Likewise.
333         * posix/getlogin_r.c: Likewise.
334         * posix/getpgid.c: Likewise.
335         * posix/getpid.c: Likewise.
336         * posix/getppid.c: Likewise.
337         * posix/getresgid.c: Likewise.
338         * posix/getresuid.c: Likewise.
339         * posix/getsid.c: Likewise.
340         * posix/getuid.c: Likewise.
341         * posix/glob64.c: Likewise.
342         * posix/nanosleep.c: Likewise.
343         * posix/pathconf.c: Likewise.
344         * posix/pause.c: Likewise.
345         * posix/posix_madvise.c: Likewise.
346         * posix/pread.c: Likewise.
347         * posix/pread64.c: Likewise.
348         * posix/pwrite.c: Likewise.
349         * posix/pwrite64.c: Likewise.
350         * posix/sched_getaffinity.c: Likewise.
351         * posix/sched_getp.c: Likewise.
352         * posix/sched_gets.c: Likewise.
353         * posix/sched_primax.c: Likewise.
354         * posix/sched_primin.c: Likewise.
355         * posix/sched_rr_gi.c: Likewise.
356         * posix/sched_setaffinity.c: Likewise.
357         * posix/sched_setp.c: Likewise.
358         * posix/sched_sets.c: Likewise.
359         * posix/sched_yield.c: Likewise.
360         * posix/setgid.c: Likewise.
361         * posix/setlogin.c: Likewise.
362         * posix/setpgid.c: Likewise.
363         * posix/setresgid.c: Likewise.
364         * posix/setresuid.c: Likewise.
365         * posix/setsid.c: Likewise.
366         * posix/setuid.c: Likewise.
367         * posix/sleep.c: Likewise.
368         * posix/spawni.c: Likewise.
369         * posix/sysconf.c: Likewise.
370         * posix/times.c: Likewise.
371         * posix/wait.c: Likewise.
372         * posix/wait3.c: Likewise.
373         * posix/wait4.c: Likewise.
374         * posix/waitpid.c: Likewise.
375         * resolv/gai_sigqueue.c: Likewise.
376         * resource/getpriority.c: Likewise.
377         * resource/getrlimit.c: Likewise.
378         * resource/getrusage.c: Likewise.
379         * resource/nice.c: Likewise.
380         * resource/setpriority.c: Likewise.
381         * resource/setrlimit.c: Likewise.
382         * resource/ulimit.c: Likewise.
383         * rt/aio_cancel.c: Likewise.
384         * rt/aio_fsync.c: Likewise.
385         * rt/aio_read.c: Likewise.
386         * rt/aio_sigqueue.c: Likewise.
387         * rt/aio_suspend.c: Likewise.
388         * rt/aio_write.c: Likewise.
389         * rt/clock_getres.c: Likewise.
390         * rt/clock_gettime.c: Likewise.
391         * rt/clock_nanosleep.c: Likewise.
392         * rt/clock_settime.c: Likewise.
393         * rt/lio_listio.c: Likewise.
394         * rt/mq_close.c: Likewise.
395         * rt/mq_getattr.c: Likewise.
396         * rt/mq_notify.c: Likewise.
397         * rt/mq_open.c: Likewise.
398         * rt/mq_receive.c: Likewise.
399         * rt/mq_send.c: Likewise.
400         * rt/mq_setattr.c: Likewise.
401         * rt/mq_timedreceive.c: Likewise.
402         * rt/mq_timedsend.c: Likewise.
403         * rt/mq_unlink.c: Likewise.
404         * rt/shm_open.c: Likewise.
405         * rt/shm_unlink.c: Likewise.
406         * rt/timer_create.c: Likewise.
407         * rt/timer_delete.c: Likewise.
408         * rt/timer_getoverr.c: Likewise.
409         * rt/timer_gettime.c: Likewise.
410         * rt/timer_settime.c: Likewise.
411         * setjmp/__longjmp.c: Likewise.
412         * setjmp/setjmp.c: Likewise.
413         * signal/kill.c: Likewise.
414         * signal/killpg.c: Likewise.
415         * signal/raise.c: Likewise.
416         * signal/sigaction.c: Likewise.
417         * signal/sigaltstack.c: Likewise.
418         * signal/sigblock.c: Likewise.
419         * signal/sigignore.c: Likewise.
420         * signal/sigintr.c: Likewise.
421         * signal/signal.c: Likewise.
422         * signal/sigpause.c: Likewise.
423         * signal/sigpending.c: Likewise.
424         * signal/sigqueue.c: Likewise.
425         * signal/sigreturn.c: Likewise.
426         * signal/sigset.c: Likewise.
427         * signal/sigsetmask.c: Likewise.
428         * signal/sigstack.c: Likewise.
429         * signal/sigsuspend.c: Likewise.
430         * signal/sigtimedwait.c: Likewise.
431         * signal/sigvec.c: Likewise.
432         * signal/sigwait.c: Likewise.
433         * signal/sigwaitinfo.c: Likewise.
434         * signal/sysv_signal.c: Likewise.
435         * socket/accept.c: Likewise.
436         * socket/accept4.c: Likewise.
437         * socket/bind.c: Likewise.
438         * socket/connect.c: Likewise.
439         * socket/getpeername.c: Likewise.
440         * socket/getsockname.c: Likewise.
441         * socket/getsockopt.c: Likewise.
442         * socket/isfdtype.c: Likewise.
443         * socket/listen.c: Likewise.
444         * socket/recv.c: Likewise.
445         * socket/recvfrom.c: Likewise.
446         * socket/recvmsg.c: Likewise.
447         * socket/send.c: Likewise.
448         * socket/sendmsg.c: Likewise.
449         * socket/sendto.c: Likewise.
450         * socket/setsockopt.c: Likewise.
451         * socket/shutdown.c: Likewise.
452         * socket/sockatmark.c: Likewise.
453         * socket/socket.c: Likewise.
454         * socket/socketpair.c: Likewise.
455         * stdio-common/ctermid.c: Likewise.
456         * stdio-common/cuserid.c: Likewise.
457         * stdio-common/remove.c: Likewise.
458         * stdio-common/rename.c: Likewise.
459         * stdio-common/renameat.c: Likewise.
460         * stdio-common/tempname.c: Likewise.
461         * stdlib/getcontext.c: Likewise.
462         * stdlib/makecontext.c: Likewise.
463         * stdlib/setcontext.c: Likewise.
464         * stdlib/swapcontext.c: Likewise.
465         * stdlib/system.c: Likewise.
466         * streams/fattach.c: Likewise.
467         * streams/fdetach.c: Likewise.
468         * streams/getmsg.c: Likewise.
469         * streams/getpmsg.c: Likewise.
470         * streams/putmsg.c: Likewise.
471         * streams/putpmsg.c: Likewise.
472         * sysdeps/unix/bsd/getpt.c: Likewise.
473         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
474         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
475         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
477         Likewise.
478         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
479         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
480         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
481         * sysvipc/msgctl.c: Likewise.
482         * sysvipc/msgget.c: Likewise.
483         * sysvipc/msgrcv.c: Likewise.
484         * sysvipc/msgsnd.c: Likewise.
485         * sysvipc/semctl.c: Likewise.
486         * sysvipc/semget.c: Likewise.
487         * sysvipc/semop.c: Likewise.
488         * sysvipc/semtimedop.c: Likewise.
489         * sysvipc/shmat.c: Likewise.
490         * sysvipc/shmctl.c: Likewise.
491         * sysvipc/shmdt.c: Likewise.
492         * sysvipc/shmget.c: Likewise.
493         * termios/tcdrain.c: Likewise.
494         * termios/tcflow.c: Likewise.
495         * termios/tcflush.c: Likewise.
496         * termios/tcgetattr.c: Likewise.
497         * termios/tcgetpgrp.c: Likewise.
498         * termios/tcsendbrk.c: Likewise.
499         * termios/tcsetattr.c: Likewise.
500         * termios/tcsetpgrp.c: Likewise.
501         * time/adjtime.c: Likewise.
502         * time/clock.c: Likewise.
503         * time/getitimer.c: Likewise.
504         * time/gettimeofday.c: Likewise.
505         * time/setitimer.c: Likewise.
506         * time/settimeofday.c: Likewise.
507         * time/stime.c: Likewise.
508         * time/time.c: Likewise.
509
510 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
511
512         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
513         /usr/old/bin.
514
515         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
516         instead of spaces.
517         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
518
519 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
520
521         [BZ #14796]
522         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
523         FE_TONEAREST before applying Dekker multiplication and Knuth
524         addition.  Clear inexact exceptions and check for exact zero
525         results afterwards.
526         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
527         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
528         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
529         * math/libm-test.inc (fma_test): Add more tests.
530         (fma_test_towardzero): Likewise.
531         (fma_test_downward): Likewise.
532         (fma_test_upward): Likewise.
533         * sysdeps/generic/math_private.h (default_libc_fesetround): New
534         function.
535         (libc_fesetround): New macro.
536         (libc_fesetroundf): Likewise.
537         (libc_fesetroundl): Likewise.
538         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
539         function.
540         (libc_fesetround_387): Likewise.
541         (libc_fesetroundf): New macro.
542         (libc_fesetround): Likewise.
543         (libc_fesetroundl): Likewise.
544         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
545         function.
546         (libc_fesetroundf): New macro.
547         (libc_fesetround): Likewise.
548         (libc_fesetroundl): Likewise.
549         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
550         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
551         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
552         libm_hidden_ver.
553         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
554         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
555         libm_hidden_def.
556         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
557         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
558         libm_hidden_ver.
559         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
560         libm_hidden_def.
561
562         [BZ #3439]
563         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
564         integer constant usable in #if and use that to give value to enum
565         constant.
566         (FE_DIVBYZERO): Likewise.
567         (FE_UNDERFLOW): Likewise.
568         (FE_OVERFLOW): Likewise.
569         (FE_INVALID): Likewise.
570         (FE_INVALID_SNAN): Likewise.
571         (FE_INVALID_ISI): Likewise.
572         (FE_INVALID_IDI): Likewise.
573         (FE_INVALID_ZDZ): Likewise.
574         (FE_INVALID_IMZ): Likewise.
575         (FE_INVALID_COMPARE): Likewise.
576         (FE_INVALID_SOFTWARE): Likewise.
577         (FE_INVALID_SQRT): Likewise.
578         (FE_INVALID_INTEGER_CONVERSION): Likewise.
579         (FE_TONEAREST): Likewise.
580         (FE_TOWARDZERO): Likewise.
581         (FE_UPWARD): Likewise.
582         (FE_DOWNWARD): Likewise.
583         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
584         (FE_DIVBYZERO): Likewise.
585         (FE_OVERFLOW): Likewise.
586         (FE_UNDERFLOW): Likewise.
587         (FE_INEXACT): Likewise.
588         (FE_TONEAREST): Likewise.
589         (FE_DOWNWARD): Likewise.
590         (FE_UPWARD): Likewise.
591         (FE_TOWARDZERO): Likewise.
592         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
593         (FE_UNDERFLOW): Likewise.
594         (FE_OVERFLOW): Likewise.
595         (FE_DIVBYZERO): Likewise.
596         (FE_INVALID): Likewise.
597         (FE_TONEAREST): Likewise.
598         (FE_TOWARDZERO): Likewise.
599         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
600         (FE_OVERFLOW): Likewise.
601         (FE_UNDERFLOW): Likewise.
602         (FE_DIVBYZERO): Likewise.
603         (FE_INEXACT): Likewise.
604         (FE_TONEAREST): Likewise.
605         (FE_TOWARDZERO): Likewise.
606         (FE_UPWARD): Likewise.
607         (FE_DOWNWARD): Likewise.
608         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
609         (FE_DIVBYZERO): Likewise.
610         (FE_OVERFLOW): Likewise.
611         (FE_UNDERFLOW): Likewise.
612         (FE_INEXACT): Likewise.
613         (FE_TONEAREST): Likewise.
614         (FE_DOWNWARD): Likewise.
615         (FE_UPWARD): Likewise.
616         (FE_TOWARDZERO): Likewise.
617
618 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
619
620         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
621
622 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
623
624         * scripts/cross-test-ssh.sh (command): Use newlines to separate
625         commands.  Quote $PWD.
626         (blacklist_exports): Don't use remove_newlines.  Replace "declare
627         -x" by "export".
628         (remove_newlines): Remove.
629
630 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
631
632         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
633         * stdlib/stdlib.h (atof): Moved to ...
634         * include/bits/stdlib-float.h: Here.  New file.
635         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
636         * stdlib/bits/stdlib-float.h: New file.
637         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
638         -mno-sse -mno-mmx.
639         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
640         <xmmintrin.h>.
641
642 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
643
644         * conform/conformtest.pl (@headers): Add fenv.h.
645         * conform/data/fenv.h-data: New file.
646         * include/fenv.h [_ISOMAC]: Disable all contents of file except
647         include of <math/fenv.h>.
648
649         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
650         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
651         && !UNIX98].  Enables tests for XOPEN2K8.
652         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
653         POSIX2008]: Likewise.
654
655         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
656         (struct rusage): Do not expect type or its members.
657
658         [BZ #3439]
659         * math/math.h (FP_NAN): Define macro to integer constant usable in
660         #if and use that to give value to enum constant.
661         (FP_INFINITE): Likewise.
662         (FP_ZERO): Likewise.
663         (FP_SUBNORMAL): Likewise.
664         (FP_NORMAL): Likewise.
665
666 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
667
668         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
669         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
670         arguments.
671
672 2012-11-02  Roland McGrath  <roland@hack.frob.com>
673
674         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
675         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
676         autoconf-time if not.
677         * configure.in: Remove AC_PREREQ.
678
679 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
680
681         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
682         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
683         of the internal implementation.
684
685 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
686
687         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
688         except include of <misc/sys/syslog.h>.
689
690 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
691
692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
693         function returns with a NULL context exit with zero.
694
695 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
696
697         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
698
699 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
700
701         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
702         (run_program_cmd): This.
703         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
704         (tst_langinfo): New variable.  Use it.
705
706 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
707
708         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
709         floating point opcodes.
710
711 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
712
713         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
714         variable.
715
716         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
717
718         * sysdeps/mach/hurd/powerpc: Remove directory.
719         * sysdeps/mach/powerpc: Likewise.
720
721 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
722
723         * scripts/check-local-headers.sh: Ignore c++ headers.
724
725 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
726
727         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
728         __libc_cleanup_region_start argument.
729
730 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
731
732         [BZ #14784]
733         [BZ #14785]
734         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
735         x * y using scaling, not as x * y + z.
736         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
737         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
738         * math/libm-test.inc (fma_test): Add more tests.
739         (fma_test_towardzero): Likewise.
740         (fma_test_downward): Likewise.
741         (fma_test_upward): Likewise.
742
743 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
744
745         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
746
747 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
748
749         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
750         New variable.
751
752 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
753
754         * rt/tst-shm.c (worker): Correct checking for mmap failure.
755
756 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
757
758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
759         Fix sort order.
760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
761         Likewise.
762
763 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
764
765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
766         Fix the order of the list for glibc 2.17.
767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
768         Likewise.
769
770 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
771
772         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
773
774 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
775
776         [BZ #14610]
777         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
778         for low part of x being zero before using __atanl (y).
779         * math/libm-test.inc (atan2_test): Add another test.
780
781         * manual/install.texi (Configuring and compiling): Document
782         general use of test-wrapper and test-wrapper-env.
783         * INSTALL: Regenerated.
784
785         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
786         (__fma): Do not extract and scale down low bits on after-rounding
787         systems when result rounded to normal precision would have normal
788         exponent.
789         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
790         (__fmal): Do not extract and scale down low bits on after-rounding
791         systems when result rounded to normal precision would have normal
792         exponent.
793         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
794         (__fmal): Do not extract and scale down low bits on after-rounding
795         systems when result rounded to normal precision would have normal
796         exponent.
797         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
798         macro.
799         (fma_test): Add more tests.
800         (fma_test_towardzero): Likewise.
801         (fma_test_downward): Likewise.
802         (fma_test_upward): Likewise.
803
804 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
805
806         * sysdeps/i386/tininess.h: Renamed to ...
807         * sysdeps/x86/tininess.h: This.
808         * sysdeps/x86_64/tininess.h: Removed.
809
810 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
811
812         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
813         input.  Use $(build-program-cmd).
814         ($(objpfx)tst-array1-static.out): Likewise.
815         ($(objpfx)tst-array2.out): Likewise.
816         ($(objpfx)tst-array3.out): Likewise.
817         ($(objpfx)tst-array4.out): Likewise.
818         ($(objpfx)tst-array5.out): Likewise.
819         ($(objpfx)tst-array5-static.out): Likewise.
820
821 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
822
823         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
824         if defined.
825
826         * nss/nsswitch.h (nss_interface_function): Provide new
827         macro for use with NSS functions.
828         * grp/initgroups.c: Use new macro.
829         * nss/getXXbyYY.c: Likewise.
830         * nss/getXXbyYY_r.c: Likewise.
831         * nss/getXXent.c: Likewise.
832         * nss/getXXent_r.c: Likewise.
833         * sysdeps/posix/getaddrinfo.c: Likewise.
834
835 2012-10-30  Andreas Jaeger  <aj@suse.de>
836
837         * po/ru.po: Update Russion translation from translation project.
838
839 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
840
841         [BZ #14152]
842         [BZ #14783]
843         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
844         result and shift together with sticky bit instead of replicating
845         round-to-nearest rounding.
846         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
847         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
848         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
849         missing underflow exceptions.
850         (fma_test_towardzero): Add more tests.
851         (fma_test_downward): Likewise.
852         (fma_test_upward): Likewise.
853
854         [BZ #14047]
855         * sysdeps/generic/tininess.h: New file.
856         * sysdeps/i386/tininess.h: Likewise.
857         * sysdeps/sh/tininess.h: Likewise.
858         * sysdeps/x86_64/tininess.h: Likewise.
859         * stdlib/tst-strtod-underflow.c: Likewise.
860         * stdlib/tst-tininess.c: Likewise.
861         * stdlib/strtod_l.c: Include <tininess.h>.
862         (round_and_return): Do not set errno for exact underflow cases.
863         Force an underflow exception when setting errno for underflow.
864         Determine underflow based on rounding to normal precision if
865         TININESS_AFTER_ROUNDING.
866         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
867         ERANGE for exact underflow cases.
868         * stdlib/Makefile (tests): Add tst-tininess and
869         tst-strtod-underflow.
870         ($(objpfx)tst-tininess): Use $(link-libm).
871         ($(objpfx)tst-strtod-underflow): Likewise.
872
873 2012-10-30  Andreas Jaeger  <aj@suse.de>
874
875         [BZ#14767]
876         * elf/Makefile (tests): Remove conditional for have-initfini-array
877         since this is now always required and the variable does not exist
878         anymore.
879         (tests-static): Likewise.
880         (modules-names): Likewise.
881
882         * po/eo.po: Add Esperanto translation from translation project.
883
884         * elf/tst-array1.c (fini_array): Make writeable so that it can be
885         merged with constructor/destructor.
886         (init_array): Likewise.
887         * elf/tst-array2dep.c (fini_array): Likewise.
888         (init_array): Likewise.
889
890 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
891
892         * manual/message.texi: Delete @cartouche tags.
893
894 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
895
896         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
897         EOPNOTSUPP.
898         * sysdeps/mach/hurd/fsync.c: Likewise.
899
900         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
901         [_POSIX_REALTIME_SIGNALS]: Change condition to
902         [_POSIX_REALTIME_SIGNALS > 0].
903
904 2012-10-27  Andreas Jaeger  <aj@suse.de>
905
906         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
907         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
908         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
909         [__WORDSIZE != 64]: Likewise.
910
911 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
912
913         *  iconvdata/tst-table.sh: Remove ${SHELL}.
914         *  iconvdata/tst-tables.sh: Likewise.
915
916 2012-10-25  David S. Miller  <davem@davemloft.net>
917
918         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
919         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
920         of strtoull.
921
922         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
923         ifunc-impl-list.c
924         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
925         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
926         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
927         file.
928
929 2012-10-25  Roland McGrath  <roland@hack.frob.com>
930
931         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
932         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
933         __getdirentries.
934
935 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
936             Jim Blandy  <jimb@codesourcery.com>
937
938         * scripts/cross-test-ssh.sh: New file.
939         * manual/install.texi (Configuring and compiling): Document use of
940         cross-test-ssh.sh.
941         * INSTALL: Regenerated.
942
943 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
944
945         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
946         EOPNOTSUPP.
947
948 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
949
950         * Makeconfig (run-program-prefix): Fix comment.
951
952 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
953             Jim Blandy  <jimb@codesourcery.com>
954
955         * Makeconfig (test-wrapper): New variable,
956         (test-wrapper-env): Likewise.
957         [$(cross-compiling) = yes && $(test-wrapper) != ""]
958         (run-built-tests): Define to yes.
959         (run-program-prefix): Use $(test-wrapper).
960         (built-program-cmd): Likewise.
961         * Rules (make-test-out): Use $(test-wrapper-env) and
962         $(host-built-program-cmd).
963         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
964         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
965         tst-pathopt.sh.
966         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
967         $(test-wrapper-env) to tst-rtld-load-self.sh.
968         ($(objpfx)order2.out): Use $(test-wrapper).
969         ($(objpfx)tst-initorder.out): Likewise.
970         ($(objpfx)tst-initorder2.out): Likewise.
971         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
972         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
973         (test_wrapper_env): New variable.  Use it to run ld.so.
974         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
975         Use it to run ld.so.
976         (test_wrapper_env): Likewise.
977         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
978         $(test-wrapper) to run-iconv-test.sh.
979         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
980         (ICONV): Use $test_wrapper.
981         * posix/Makefile ($(objpfx)globtest.out): Pass
982         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
983         globtest.sh, not $(run-program-prefix).
984         * posix/globtest.sh (run_via_rtld_prefix): New variable.
985         (test_wrapper): Likewise.
986         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
987         set together with run_via_rtld_prefix.
988         (run_program_prefix): Define in terms of test_wrapper and
989         run_via_rtld_prefix.
990
991 2012-10-24  Roland McGrath  <roland@hack.frob.com>
992
993         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
994         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
995         Targets removed.
996
997         [BZ #14743]
998         * include/time.h: Remove librt_hidden_proto (clock_gettime).
999         Declare __clock_getres, __clock_gettime, __clock_settime,
1000         __clock_nanosleep, and __clock_getcpuclockid.
1001         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1002         Remove librt_hidden_def (clock_gettime).
1003         * sysdeps/unix/clock_gettime.c: Likewise.
1004         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1005         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1006         * rt/clock_getres.c: Define __clock_getres as an alias.
1007         * sysdeps/posix/clock_getres.c: Likewise.
1008         * rt/clock_settime.c: Define __clock_settime as an alias.
1009         * sysdeps/unix/clock_settime.c: Likewise.
1010         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1011         * sysdeps/unix/clock_nanosleep.c: Likewise.
1012         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1013         * rt/clock-compat.c: New file.
1014         * rt/Makefile (librt-routines): Add clock-compat and move
1015         $(clock-routines) to ...
1016         (routines): ... here, new variable.
1017         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1018         Don't add get_clockfreq here.
1019         * rt/Versions (libc: GLIBC_2.17): New version set.
1020         Add clock_* symbols here.
1021         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1022         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1023         (GLIBC_2.17): Add clock_* symbols.
1024         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1025         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1026         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1028         Likewise.
1029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1030         Likewise.
1031         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1032         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1033         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1034         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1035         * NEWS: Mention the move.
1036
1037         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1038         Use __open, __read, __close rather than their public counterparts.
1039         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1040         (__get_clockfreq_via_cpuinfo): Likewise.
1041         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1042         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1043
1044         * config.h.in (HAVE_IFUNC): New #undef.
1045         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1046         was successful.
1047         * configure: Regenerated.
1048
1049 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1050
1051         * configure.in: Move READELF check to start of file.
1052         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1053         libc_cv_asm_gnu_indirect_function in the process.
1054         * configure: Regenerated.
1055
1056 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1057
1058         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1059         send the output to /dev/null.
1060         (libc_cv_cc_with_libunwind): Likewise.
1061         (libc_cv_as_noexecstack): Likewise.
1062         * configure: Regenerate.
1063
1064 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1065
1066         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1067
1068         * posix/globtest.sh (TMPDIR): Do not set.
1069         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1070         (testout): Likewise.
1071
1072 2012-10-24  Andreas Jaeger  <aj@suse.de>
1073
1074         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1075         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1076         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1077         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1078         posix_fadvise64, posix_fallocate64.
1079
1080         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1081         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1082         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1083         Likewise.
1084         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1085         Likewise.
1086         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1087
1088         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1089         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1090         <bits/fcntl-linux.h>.
1091         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1092
1093         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1094         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1095         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1096         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1097         [__WORDSIZE != 64]: Likewise.
1098
1099 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1100
1101         * Makeconfig (run-built-tests): New variable.
1102         * Rules [$(cross-compiling) = yes]: Change condition to
1103         [$(run-built-tests) = no].
1104         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1105         to [$(run-built-tests) = yes].
1106         * elf/Makefile [$(cross-compiling) = no]: Likewise
1107         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1108         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1109         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1110         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1111         * io/Makefile [$(cross-compiling) = no]: Likewise.
1112         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1113         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1114         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1115         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1116         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1117         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1118         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1119         * string/Makefile [$(cross-compiling) = no]: Likewise.
1120
1121         * posix/Makefile ($(objpfx)globtest.out): Pass
1122         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1123         $(rtld-installed-name).
1124         * posix/globtest.sh (elf_objpfx): Remove variable.
1125         (rtld_installed_name): Likewise.
1126         (library_path): Likewise.
1127         (run_program_prefix): New variable.  Use for running globtest
1128         binary.
1129
1130 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1131             Joseph Myers  <joseph@codesourcery.com>
1132
1133         * Makeconfig (host-built-program-cmd): New variable.
1134         * elf/Makefile (tst-stackguard1-ARGS): Use
1135         $(host-built-program-cmd).
1136         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1137         (tst-spawn-ARGS): Likewise.
1138         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1139
1140 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1141             Jim Blandy  <jimb@codesourcery.com>
1142
1143         * Makeconfig (run-via-rtld-prefix): New variable.
1144         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1145         (built-program-cmd): Likewise.
1146
1147 2012-10-22  Andreas Jaeger  <aj@suse.de>
1148
1149         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1150         __O_RSYNC if it exists, otherwise to O_SYNC.
1151
1152 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1153             Joseph Myers  <joseph@codesourcery.com>
1154
1155         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1156         /dev/null.
1157         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1158         from /dev/null
1159         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1160         /dev/null.
1161
1162 2012-10-22  Andreas Jaeger  <aj@suse.de>
1163
1164         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1165         Define always.
1166         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1167
1168         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1169         bits/fcntl-linux.h.
1170
1171         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1172         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1173
1174         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1175         to __O_LARGEFILE.
1176         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1177         to __O_LARGEFILE.
1178
1179 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1180             Joseph Myers  <joseph@codesourcery.com>
1181
1182         * config.make.in (NM): New variable.
1183
1184 2012-10-21  Andreas Jaeger  <aj@suse.de>
1185
1186         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1187         definitions and declarations that are provided by
1188         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1189
1190 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1191
1192         [BZ #14683]
1193         * elf/Makefile (tests-static): Add tst-leaks1-static.
1194         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1195         ($(objpfx)tst-leaks1-static): New rule.
1196         ($(objpfx)tst-leaks1-static-mem): Likewise.
1197         (tst-leaks1-static-ENV): New macro.
1198         * elf/dl-open.c (dl_open_worker): Check the main application
1199         only if SHARED is defined.
1200         * elf/tst-leaks1-static.c: New file.
1201
1202 2012-10-20  Andreas Jaeger  <aj@suse.de>
1203
1204         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1205         generic values for Linux.
1206         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1207         and declarations that are provided by <bits/fcntl-linux.h> and
1208         include <bits/fcntl-linux.h>.
1209         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1210         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1211
1212 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1213
1214         * io/fcntl.h: Move include of <bits/types.h> to the top and
1215         include it unconditionally.
1216
1217 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1218
1219         * wcsmbs/Makefile (tests-ifunc): New variable.
1220         (tests): Add $(tests-ifunc).
1221         * wcsmbs/test-wcschr-ifunc.c: New file.
1222         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1223         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1224         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1225         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1226         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1227
1228         * string/Makefile (tests-ifunc): New variable.
1229         (tests): Add $(tests-ifunc).
1230         * string/test-memccpy.c (TEST_NAME): New macro.
1231         * string/test-memchr.c (TEST_NAME): Likewise.
1232         * string/test-memcmp.c (TEST_NAME): Likewise.
1233         * string/test-memcpy.c (TEST_NAME): Likewise.
1234         * string/test-memmem.c (TEST_NAME): Likewise.
1235         * string/test-memmove.c (TEST_NAME): Likewise.
1236         * string/test-memset.c (TEST_NAME): Likewise.
1237         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1238         * string/test-stpcpy.c (TEST_NAME): Likewise.
1239         * string/test-stpncpy.c (TEST_NAME): Likewise.
1240         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1241         * string/test-strcasestr.c (TEST_NAME): Likewise.
1242         * string/test-strcat.c (TEST_NAME): Likewise.
1243         * string/test-strchr.c (TEST_NAME): Likewise.
1244         * string/test-strcmp.c(TEST_NAME): Likewise.
1245         * string/test-strcpy.c (TEST_NAME): Likewise.
1246         * string/test-strcspn.c (TEST_NAME): Likewise.
1247         * string/test-strlen.c (TEST_NAME): Likewise.
1248         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1249         * string/test-strncmp.c (TEST_NAME): Likewise.
1250         * string/test-strncpy.c (TEST_NAME): Likewise.
1251         * string/test-strnlen.c (TEST_NAME): Likewise.
1252         * string/test-strpbrk.c (TEST_NAME): Likewise.
1253         * string/test-strrchr.c (TEST_NAME): Likewise.
1254         * string/test-strspn.c (TEST_NAME): Likewise.
1255         * string/test-strstr.c (TEST_NAME): Likewise.
1256         * string/test-bcopy-ifunc.c: New file.
1257         * string/test-bzero-ifunc.c: Likewise.
1258         * string/test-memccpy-ifunc.c: Likewise.
1259         * string/test-memchr-ifunc.c: Likewise.
1260         * string/test-memcmp-ifunc.c: Likewise.
1261         * string/test-memcpy-ifunc.c: Likewise.
1262         * string/test-memmem-ifunc.c: Likewise.
1263         * string/test-memmove-ifunc.c: Likewise.
1264         * string/test-mempcpy-ifunc.c: Likewise.
1265         * string/test-memset-ifunc.c: Likewise.
1266         * string/test-rawmemchr-ifunc.c: Likewise.
1267         * string/test-stpcpy-ifunc.c: Likewise.
1268         * string/test-stpncpy-ifunc.c: Likewise.
1269         * string/test-strcasecmp-ifunc.c: Likewise.
1270         * string/test-strcasestr-ifunc.c: Likewise.
1271         * string/test-strcat-ifunc.c: Likewise.
1272         * string/test-strchr-ifunc.c: Likewise.
1273         * string/test-strchrnul-ifunc.c: Likewise.
1274         * string/test-strcmp-ifunc.c: Likewise.
1275         * string/test-strcpy-ifunc.c: Likewise.
1276         * string/test-strcspn-ifunc.c: Likewise.
1277         * string/test-strlen-ifunc.c: Likewise.
1278         * string/test-strncasecmp-ifunc.c: Likewise.
1279         * string/test-strncat-ifunc.c: Likewise.
1280         * string/test-strncmp-ifunc.c: Likewise.
1281         * string/test-strncpy-ifunc.c: Likewise.
1282         * string/test-strnlen-ifunc.c: Likewise.
1283         * string/test-strpbrk-ifunc.c: Likewise.
1284         * string/test-strrchr-ifunc.c: Likewise.
1285         * string/test-strspn-ifunc.c: Likewise.
1286         * string/test-strstr-ifunc.c: Likewise.
1287
1288         * debug/Makefile (tests-ifunc): New variable.
1289         (tests): Add $(tests-ifunc).
1290         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1291         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1292         * debug/test-stpcpy_chk-ifunc.c: New file.
1293         * debug/test-strcpy_chk-ifunc.c: Likewise.
1294
1295 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1296
1297         [BZ #13601]
1298         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1299         header is not read in.
1300
1301 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1302
1303         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1304         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1305         directly.  Pass built executable to script as
1306         $(built-program-cmd).
1307         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1308         $testprogram without using LD_LIBRARY_PATH and $ldso.
1309
1310         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1311         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1312         $(rtld-installed-name).
1313         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1314         (rtld_installed_name): Likewise.
1315         (library_path): Likewise.
1316         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1317         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1318         $(run-program-prefix) to tst-tables.sh.
1319         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1320         it to run tst-table-from and tst-table-to.
1321         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1322         Pass it to tst-table.sh.
1323         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1324         $(run-program-prefix) to tst-gettext.sh.
1325         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1326         tst-translit.sh.
1327         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1328         tst-gettext2.sh.
1329         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1330         to run tst-gettext.
1331         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1332         to run tst-gettext2.
1333         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1334         to run tst-translit.
1335         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
1336         $(run-program-prefix) to tst-mtrace.sh.
1337         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
1338         to run tst-mtrace.
1339         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
1340         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
1341         $(rtld-installed-name).
1342         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
1343         (rtld_installed_name): Likewise.
1344         (run_program_prefix): New variable.  Use it to run wordexp-test.
1345
1346         * Makeconfig (ARCH): Remove all definitions.
1347         (machine): Likewise.
1348         [ARCH]: Remove conditional code.
1349         [!objdir]: Give error.
1350         [!objdir] (objpfx): Remove.
1351         [!objdir] (common-objpfx): Likewise.
1352         [!objdir] (common-objdir): Likewise.
1353         * configure.in (config_makefile): Remove.  Hardcode Makefile in
1354         AC_CONFIG_FILES call.
1355         * configure: Regenerated.
1356
1357         [BZ #13888]
1358         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
1359         or TMPDIR.
1360         (testout): Likewise.
1361
1362         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
1363         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
1364         $(rtld-installed-name).
1365         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
1366         (rtld_installed_name): Likwise.
1367         (runit): Remove function.
1368         (run_getconf): New variable,  Use it for running getconf binary.
1369
1370 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
1371
1372         [BZ #14716]
1373         * string/test-memmem.c (check_result): New function.
1374         (do_one_test): Use it.
1375         (check1): New function.
1376         (test_main): Use it.
1377
1378 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1379
1380         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
1381
1382 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
1383
1384         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
1385         (_G_LSEEK64): Likewise.
1386         (_G_MMAP64): Likewise.
1387         (_G_FSTAT64): Likewise.
1388         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
1389         (_G_LSEEK64): Likewise.
1390         (_G_MMAP64): Likewise.
1391         (_G_FSTAT64): Likewise.
1392         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
1393         unconditional.  Call __mmap64 directly.
1394         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
1395         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
1396         __lseek64 directly.
1397         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
1398         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
1399         __mmap64 directly.
1400         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
1401         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1402         __lseek64 directly.
1403         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
1404         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1405         __lseek64 directly.
1406         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
1407         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
1408         __lseek64 directly.
1409         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
1410         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
1411         __fxstat64 directly.
1412         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
1413         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
1414         unconditional.
1415         (freopen64) [!_G_OPEN64]: Remove conditional code.
1416         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
1417         unconditional.
1418         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
1419         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
1420         unconditional.
1421         (ftello64) [!_G_LSEEK64]: Remove conditional code.
1422         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
1423         unconditional.
1424         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1425         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
1426         unconditional.
1427         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
1428         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
1429         unconditional.
1430         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1431         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
1432         unconditional.
1433         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1434         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
1435         unconditional.
1436         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1437
1438 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1439
1440         [BZ #12140]
1441         * manual/memory.texi (Malloc Tunable Parameters): Add note
1442         about free list pointers overwriting some perturb bytes.
1443         Wording suggested by Roland McGrath.
1444
1445 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
1446
1447         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
1448         (lgamma_test): Likewise.
1449         (tgamma_test): Likewise.
1450
1451 2012-10-16  Florian Weimer  <fweimer@redhat.com>
1452
1453         [BZ #14700]
1454         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
1455         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
1456
1457 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
1458
1459         * NEWS: Mention BZ #14716.
1460         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
1461         when removing AVAILABLE1_USES_J macro.
1462
1463 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1464
1465         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
1466         (__bswap_64): __uint64_t for unsigned 64-bit int.
1467
1468 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
1469
1470         * include/string.h (memmem): Declare libc hidden alias.
1471         * string/memmem.c (memmem): Define libc hidden alias.
1472         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
1473         __read, __close instead of open, read, close.
1474
1475 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1476
1477         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
1478         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
1479         global and hidden.
1480         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
1481         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
1482         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
1483         Likewise.
1484         (__rawmemchr_sse2): Likewise.
1485         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
1486         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
1487         (__strchr_sse2): Likewise.
1488         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
1489         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
1490         (__strcasecmp_sse2): Likewise.
1491         (__strncasecmp_sse2): Likewise.
1492         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
1493         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
1494         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
1495         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
1496         (__strrchr_sse2): Likewise.
1497         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
1498         ifunc-impl-list.c.
1499         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
1500         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
1501         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1502         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1503         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
1504         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
1505         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1506         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1507         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1508         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
1509         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
1510         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
1511         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
1512         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
1513         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1514         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1515         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1516         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1517         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1518         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
1519         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
1520         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
1521         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
1522         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1523         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
1524         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1525         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1526         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1527         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
1528         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
1529
1530         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
1531         global and hidden.
1532         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
1533         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
1534         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
1535         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
1536         Likewise.
1537         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
1538         Likewise.
1539         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
1540         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
1541         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
1542         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
1543         ifunc-impl-list.c.
1544         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
1545         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
1546         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
1547         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
1548         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
1549         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
1550         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
1551         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
1552         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
1553         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
1554         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
1555         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
1556         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
1557         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
1558         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
1559         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1560         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
1561         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
1562         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
1563         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
1564         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
1565         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
1566         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
1567         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1568         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1569         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
1570         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
1571         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
1572         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
1573         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
1574         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
1575         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
1576         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1577         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
1578         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
1579         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
1580         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
1581         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
1582         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
1583         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
1584         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
1585
1586         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
1587         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
1588         * include/ifunc-impl-list.h: New file.
1589         * misc/ifunc-impl-list.c: Likewise.
1590         * misc/Makefile (routines): Add ifunc-impl-list.
1591         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
1592         * string/test-string.h: Include <ifunc-impl-list.h>.
1593         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
1594         impl_array): New variables.
1595         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
1596         are defined.
1597         (test_init): Call __libc_ifunc_impl_list to initialize
1598         func_list if TEST_IFUNC and TEST_NAME are defined.
1599
1600         * string/Makefile (strop-tests): Add bcopy and bzero.
1601         * string/test-bcopy.c: New file.
1602         * string/test-bzero.c: Likewise.
1603         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
1604         defined.
1605         * string/test-memset.c: Support bzero test if TEST_BZERO is
1606         defined.
1607         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
1608         __libc_memmove.
1609         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
1610         __libc_memset.
1611         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
1612         of memset.
1613
1614 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
1615
1616         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
1617         * configure: Regenerated.
1618
1619         * Makeconfig (+link-static-before-libc): Don't include
1620         $(link-static-libc).
1621
1622         * libio/libio.h (_IO_pos_t): Remove.
1623
1624 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1625
1626         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
1627         McGrath.
1628
1629 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1630
1631         * crypt/crypt-entry.c: Include fips-private.h.
1632         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
1633         * crypt/md5c-test.c (main): Tolerate disabled MD5.
1634         * sysdeps/unix/sysv/linux/fips-private.h: New file.
1635         * sysdeps/generic/fips-private.h: New file, dummy fallback.
1636
1637 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1638
1639         * crypt/crypt-private.h: Include stdbool.h.
1640         (_ufc_setup_salt_r): Return bool.
1641         * crypt/crypt-entry.c: Include errno.h.
1642         (__crypt_r): Return NULL with EINVAL for bad salt.
1643         * crypt/crypt_util.c (bad_for_salt): New.
1644         (_ufc_setup_salt_r): Check that salt is long enough and within
1645         the specified alphabet.
1646         * crypt/badsalttest.c: New file.
1647         * crypt/Makefile (tests): Add it.
1648         ($(objpfx)badsalttest): New.
1649
1650 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1651
1652         * NEWS: Add entry for BZ #14602.
1653
1654 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1655
1656         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
1657         type-generic.
1658         * math/libm-test.inc: Update comment listing what functions and
1659         macros are tested.
1660         (isgreater_test): New function.
1661         (isgreaterequal_test): Likewise.
1662         (isless_test): Likewise.
1663         (islessequal_test): Likewise.
1664         (islessgreater_test): Likewise.
1665         (isunordered_test): Likewise.
1666         (main): Call the new functions.
1667
1668 2012-10-09  Roland McGrath  <roland@hack.frob.com>
1669
1670         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
1671         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
1672         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
1673         * sysdeps/i386/configure: Regenerated.
1674         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
1675         * sysdeps/mach/configure: Regenerated.
1676         * sysdeps/mach/hurd/configure: Regenerated.
1677         * sysdeps/powerpc/configure: Regenerated.
1678         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1679         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1680         * sysdeps/s390/s390-32/configure: Regenerated.
1681         * sysdeps/s390/s390-64/configure: Regenerated.
1682         * sysdeps/sh/configure: Regenerated.
1683         * sysdeps/sparc/configure: Regenerated.
1684         * sysdeps/unix/sysv/linux/configure: Regenerated.
1685         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
1686         * sysdeps/x86_64/configure: Regenerated.
1687
1688         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
1689         defined.  Don't check if MAP is NULL.
1690
1691 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1692
1693         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
1694         (_G_stat64): Likewise.
1695         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
1696         (_G_stat64): Likewise.
1697         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
1698         instead of struct _G_stat64.
1699         * libio/fileops.c (mmap_remap_check): Likewise.
1700         (decide_maybe_mmap): Likewise.
1701         (_IO_new_file_seekoff): Likewise.
1702         (_IO_file_stat): Likewise.
1703         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
1704         _G_off64_t.
1705         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
1706         instead of struct _G_stat64.
1707         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1708
1709 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
1710
1711         [BZ #14602]
1712         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1713         Replace with ...
1714         (CHECK_EOL): New macro.
1715         (two_way_short_needle): Check beginning of haystack for EOL.  Use
1716         CHECK_EOL.
1717         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1718         Replace with CHECK_EOL.
1719         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1720         Replace with CHECK_EOL.
1721
1722 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1723
1724         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1725         type-generic.
1726         * math/libm-test.inc: Update comment listing what functions and
1727         macros are tested.
1728         (finite_test): New function.
1729         (isinf_test): Likewise.
1730         (isnan_test): Likewise.
1731         (fpclassify_test): Test subnormal input.
1732         (isfinite_test): Likewise.
1733         (isnormal_test): Likewise.
1734         (main): Call the new functions.
1735
1736 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1737
1738         [BZ #14660]
1739         * Makerules (%.dynsym): Force C locale when running
1740         $(OBJDUMP) --dynamic-syms.
1741
1742 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1743
1744         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1745         <stdint.h>.
1746
1747 2012-10-06  David S. Miller  <davem@davemloft.net>
1748
1749         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1750         upper 32-bits of the length value in %o2 since we use branch-on-register
1751         tests which consider the entire 64-bit register.
1752
1753 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1754
1755         * string/test-strstr.c (check2): Add a test for page boundary.
1756
1757 2012-10-05  David S. Miller  <davem@davemloft.net>
1758
1759         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1760         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1761         file.
1762         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1763         sysdep_routines.
1764         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1765         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1766         and bzero when HWCAP_SPARC_CRYPTO is present.
1767
1768 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1769
1770         [BZ #14602]
1771         * string/test-strstr.c (check2): New function.
1772         (test_main): Call check2.
1773
1774         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1775         and bug-strchr1.
1776         * string/bug-strcasestr1.c (do_test): Moved to ...
1777         * string/test-strcasestr.c (check1): Here.  New function.
1778         (do_one_test): Break out result checking code into ...
1779         (check_result): This.  New function.
1780         (do_one_test): Call check_result.
1781         (test_main): Call check1.
1782         * string/bug-strchr1.c (do_test): Moved to ...
1783         * string/test-strchr.c (check1): Here.  New function.
1784         (do_one_test): Break out result checking code into ...
1785         (check_result): This.  New function.
1786         (do_one_test): Call check_result.
1787         (test_main): Call check1.
1788         * string/bug-strstr1.c (main): Moved to ...
1789         * string/test-strchr.c (check1): Here.  New function.
1790         (do_one_test): Break out result checking code into ...
1791         (check_result): This.  New function.
1792         (do_one_test): Call check_result.
1793         (test_main): Call check1.
1794         * string/bug-strcasestr1.c: Removed.
1795         * string/bug-strchr1.c: Likewise.
1796         * string/bug-strstr1.c: Likewise.
1797
1798         * elf/Makefile (dl-routines): Add hwcaps.
1799         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1800         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1801         (_dl_important_hwcaps): Moved to ...
1802         * elf/dl-hwcaps.c: Here.  New file.
1803         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1804
1805         [BZ #14557]
1806         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1807         if IS_IN_rtld isn't defined.
1808
1809         * elf/dl-support.c (_dl_sysinfo_map): New.
1810         Include "get-dynamic-info.h" and "setup-vdso.h".
1811         (_dl_non_dynamic_init): Call setup_vdso.
1812         * elf/dynamic-link.h: Don't include <assert.h>.
1813         (elf_get_dynamic_info): Moved to ...
1814         * elf/get-dynamic-info.h: Here.  New file.
1815         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1816         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1817         * elf/setup-vdso.h: Here.  New file.
1818         * elf/rtld.c: Include "setup-vdso.h".
1819         (dl_main): Call setup_vdso.
1820
1821 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1822
1823         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1824         creal in comment listing functions tested.  List finite, isinf,
1825         isnan, isless, islessequal, isgreater, isgreaterequal,
1826         islessgreater, isunordered, lgamma_r and pow10 as functions and
1827         macros not tested.  Mention which functions not tested are aliases
1828         for other functions.  Fix typo.  Note that signs of NaNs are not
1829         tested.
1830
1831         * scripts/config.guess: Update from config.git.
1832         * scripts/config.sub: Likewise.
1833
1834 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1835
1836         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1837         * misc/madvise.c (madvise): Renamed to __madvise.
1838         Make madvise a weak alias.
1839         * include/sys/mman.h: Declare __madvise.
1840         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1841         * sysdeps/unix/syscalls.list
1842         (madvise): Make __madvise the strong name, and madvise a weak alias.
1843         * sysdeps/unix/sysv/linux/syscalls.list
1844         (madvise, mmap): Remove redundant entries.
1845         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1846         * malloc/malloc.c (mtrim): Likewise.
1847         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1848
1849 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1850
1851         * sysdeps/mach/hurd/dl-cache.c: File removed.
1852         * config.h.in (USE_LDCONFIG): New #undef.
1853         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1854         * configure: Regenerated.
1855         * elf/Makefile (dl-routines): Add dl-cache only under
1856         [$(use-ldconfig) = yes].
1857         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1858         cache on [USE_LDCONFIG].
1859         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1860         [USE_LDCONFIG].
1861         * elf/rtld.c (dl_main): Likewise.
1862
1863 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1864
1865         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1866         _SC_LEVEL4_CACHE_LINESIZE.
1867
1868 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1869
1870         * sysdeps/unix/bsd/confstr.h: File removed.
1871
1872 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1873
1874         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1875         sys/sdt-config.h.
1876
1877 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1878
1879         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1880         Make 'mapoff' field ElfW(Off) rather than off_t.
1881
1882 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1883
1884         * nscd/Makefile: Remove nscd-cflags and all its users.
1885         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1886         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1887
1888         [BZ #10631]
1889         * malloc.c (malloc_printerr): Clarify error message.
1890
1891 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1892
1893         [BZ #14648]
1894         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1895         Set bit_FMA_Usable if FMA is supported.
1896         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1897         macro.
1898         (bit_FMA4_Usable): Updated.
1899         (index_FMA_Usable): New macro.
1900         (CPUID_FMA): Likewise
1901         (HAS_FMA): Defined with bit_FMA_Usable.
1902
1903 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1904
1905         * bits/types.h (__swblk_t): Type removed.
1906         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1907         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1908         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1909         (__SWBLK_T_TYPE): Likewise.
1910         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1911         (__SWBLK_T_TYPE): Likewise.
1912         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1913         (__SWBLK_T_TYPE): Likewise.
1914         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1915         (__SWBLK_T_TYPE): Likewise.
1916
1917 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1918             Honza Horak <hhorak@redhat.com>
1919
1920         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1921         (xdr_mapname): Use YPMAXMAP as maxsize.
1922         (xdr_peername): Use YPMAXPEER as maxsize.
1923         (xdr_keydat): Use YPAXRECORD as maxsize.
1924         (xdr_valdat): Use YPMAXRECORD as maxsize.
1925
1926 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1927
1928         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1929
1930         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1931         * csu/init-first.c: ... here.
1932         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1933         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1934         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1935         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1936         * sysdeps/i386/init-first.c: File removed.
1937         * sysdeps/sh/init-first.c: File removed.
1938
1939 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1940
1941         [BZ #14645]
1942         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1943         if x * y might underflow to zero and z is zero.
1944         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1945         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1946         * math/libm-test.inc (min_subnorm_value): New variable.
1947         (fma_test): Add more tests.
1948         (fma_test_towardzero): Likewise.
1949         (fma_test_downward): Likewise
1950         (fma_test_upward): Likewise.
1951         (initialize): Set min_subnorm_value.
1952
1953 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1954
1955         [BZ #14638]
1956         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1957         0 + 0.
1958         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1959         mode for addition resulting in exact zero.
1960         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1961         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1962         exact 0 + 0.
1963         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1964         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1965         * math/libm-test.inc (fma_test): Add more tests.
1966         (fma_test_towardzero): New function.
1967         (fma_test_downward): Likewise.
1968         (fma_test_upward): Likewise.
1969         (main): Call the new functions.
1970
1971 2012-09-28  David S. Miller  <davem@davemloft.net>
1972
1973         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1974
1975 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1976
1977         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1978         instead of SIGALRM.
1979
1980         * sysdeps/gnu/_G_config.h: Moved to ...
1981         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1982         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1983         * sysdeps/generic/_G_config.h: ... here.
1984
1985         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1986
1987         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1988
1989         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1990         Conditionalize target on [libnss_test1.so-version].
1991
1992         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1993
1994         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1995         (elfobjdir): Move out of conditionals.
1996
1997         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1998         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1999         (__nss_lookup_function): Conditionalize label remove_from_tree on
2000         [!DO_STATIC_NSS || SHARED], matching its only use.
2001
2002 2012-09-28  David S. Miller  <davem@davemloft.net>
2003
2004         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2005         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2006         file.
2007         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2008         sysdep_routines.
2009         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2010         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2011         when HWCAP_SPARC_CRYPTO is present.
2012
2013 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2014
2015         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2016
2017 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2018
2019         [BZ #6530]
2020         * stdio-common/vfprintf.c (process_string_arg): Revert
2021         2000-07-22 change.
2022
2023 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2024
2025         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2026         for testcase.
2027         * stdio-common/tst-sprintf.c: Include <locale.h>
2028         (main): Test sprintf's handling of incomplete multibyte
2029         characters.
2030
2031 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2032
2033         * elf/dl-runtime.c (VERSYMIDX): Removed.
2034         * elf/dl-version.c (VERSYMIDX): Likewise.
2035         * elf/do-rel.h (VERSYMIDX): Likewise.
2036         (VALIDX): Likewise.
2037         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2038         * elf/rtld.c (VALIDX): Likewise.
2039         (ADDRIDX): Likewise.
2040         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2041         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2042         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2043         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2044         (VALIDX): Likewise.
2045         (ADDRIDX): Likewise.
2046
2047 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2048
2049         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2050
2051 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2052
2053         [BZ #11438]
2054         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2055         to global scope.
2056         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2057         addresses are in the same scope as 192.0.2/24.
2058         * posix/gai.conf: Document new scope table defaults.
2059
2060 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2061
2062         [BZ #5298]
2063         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2064         for ftell.  Compute offsets from write pointers instead.
2065         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2066
2067 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2068
2069         [BZ #14543]
2070         * libio/Makefile (tests): New test case tst-fseek.
2071         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2072         combination works in wide mode.
2073         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2074         state when the external buffer state changes.
2075
2076 2012-09-27  David S. Miller  <davem@davemloft.net>
2077
2078         [BZ #14376]
2079         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2080         pass reloc->r_addend in as the 'high' argument to
2081         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2082
2083         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2084
2085 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2086
2087         * rt/tst-aio2.c: Include <pthread.h>.
2088         * rt/tst-aio3.c: Likewise.
2089
2090 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2091
2092         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2093
2094 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2095
2096         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2097         contents on [SHARED].
2098
2099 2012-09-26  Marek Polacek  <polacek@redhat.com>
2100
2101         [BZ #14530]
2102         [BZ #13741]
2103         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2104         for C++ and GCC <4.3 as well as for non GCC compilers.
2105
2106 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2107
2108         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2109
2110 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2111
2112         * Makefile.in (all, install): Declare with .PHONY.
2113         Reported by Michael Hope <michael.hope@linaro.org>.
2114
2115 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2116
2117         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2118         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2119         system header.
2120         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2121         Likewise.
2122         (sydep_routines): Add the new and the internal functions.
2123         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2124         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2126         (GLIBC_2.17): Add the new function.
2127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2128         (GLIBC_2.17): Likewise.
2129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2130         (GLIBC_2.17): Likewise.
2131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2132         (GLIBC_2.17): Likewise.
2133         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2134
2135 2012-09-25  Alan Modra  <amodra@gmail.com>
2136
2137         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2138         Add release barrier before setting once_control to say
2139         initialisation is done.  Add hints on lwarx.  Use macro in
2140         place of isync.
2141         (clear_once_control): Add release barrier.
2142
2143 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2144
2145         [BZ #13629]
2146         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2147         specially.
2148         * math/s_clog10.c (__clog10): Likewise.
2149         * math/s_clog10f.c (__clog10f): Likewise.
2150         * math/s_clog10l.c (__clog10l): Likewise.
2151         * math/s_clogf.c (__clogf): Likewise.
2152         * math/s_clogl.c (__clogl): Likewise.
2153         * math/Makefile (libm-calls): Add x2y2m1.
2154         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2155         (__x2y2m1): Likewise.
2156         (__x2y2m1l): Likewise.
2157         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2158         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2159         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2160         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2161         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2162         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2163         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2164         * sysdeps/i386/fpu/libm-test-ulps: Update.
2165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2166
2167         [BZ #14621]
2168         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2169         int as type of variable DEPTH.
2170         (glob): Use size_t instead of int as type of variables NEWCOUNT
2171         and OLD_PATHC.
2172
2173 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2174
2175         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2176         Add s_sincosf-sse2.
2177         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2178         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2179         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2180         macros for using routine as __sincosf_ia32.
2181         Use macro for function declaration and weak_alias.
2182         * sysdeps/i386/fpu/libm-test-ulps: Update.
2183
2184         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2185         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2186
2187         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2188         subnormal argument.
2189         * math/s_cexpf.c (__cexpf): Likewise.
2190         * math/s_csinf.c (__csinf): Likewise.
2191         * math/s_csinhf.c (__csinhf): Likewise.
2192         * math/s_ctanf.c (__ctanf): Likewise.
2193         * math/s_ctanhf.c (__ctanhf): Likewise.
2194         * math/s_ccosh.c (__ccoshf): Likewise.
2195         * math/s_cexp.c (__cexpl): Likewise.
2196         * math/s_csin.c (__csin): Likewise.
2197         * math/s_csinh.c (__csinh): Likewise.
2198         * math/s_ctan.c (__ctan): Likewise.
2199         * math/s_ctanh.c (ctanh): Likewise.
2200         * math/s_ccoshl.c (__ccoshl): Likewise.
2201         * math/s_cexpl.c (__cexpl): Likewise.
2202         * math/s_csinl.c (__csinl): Likewise.
2203         * math/s_csinhl.c (__csinhl): Likewise.
2204         * math/s_ctanl.c (__ctanl): Likewise.
2205         * math/s_ctanhl.c (__ctanhl): Likewise.
2206
2207 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2208
2209         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2210         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2211         (_IO_off_t): Define to __off_t, not _G_off_t.
2212         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2213         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2214         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2215         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2216         type of __dummy and __dummy2 fields.
2217         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2218         (_G_ssize_t): Likewise.
2219         (_G_off_t): Likewise.
2220         (_G_pid_t): Likewise.
2221         (_G_uid_t): Likewise.
2222         (_G_wchar_t): Likewise.
2223         (_G_wint_t): Likewise.
2224         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2225         (_G_ssize_t): Likewise.
2226         (_G_off_t): Likewise.
2227         (_G_pid_t): Likewise.
2228         (_G_uid_t): Likewise.
2229         (_G_wchar_t): Likewise.
2230         (_G_wint_t): Likewise.
2231         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2232         (_G_ssize_t): Likewise.
2233         (_G_off_t): Likewise.
2234         (_G_pid_t): Likewise.
2235         (_G_uid_t): Likewise.
2236         (_G_wchar_t): Likewise.
2237         (_G_wint_t): Likewise.
2238
2239 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2240
2241         * malloc/arena.c: Include malloc-sysdep.h.
2242         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2243         is sufficient to shrink the heap or an unmap is needed.
2244         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2245         new function check_may_shrink_heap.
2246         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2247         new function check_may_shrink_heap.
2248
2249 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2250
2251         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2252         comments.
2253
2254 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2255
2256         * catgets/test-gencat.sh: Add "set -e".
2257         * elf/tst-pathopt.sh: Likewise.
2258         * grp/tst_fgetgrent.sh: Likewise.
2259         * iconvdata/run-iconv-test.sh: Likewise.
2260         * intl/tst-gettext.sh: Likewise.
2261         * intl/tst-gettext2.sh: Likewise.
2262         * intl/tst-gettext4.sh: Likewise.
2263         * intl/tst-gettext6.sh: Likewise.
2264         * intl/tst-translit.sh: Likewise.
2265         * io/ftwtest-sh: Likewise.
2266         * libio/test-freopen.sh: Likewise.
2267         * malloc/tst-mtrace.sh: Likewise.
2268         * posix/globtest.sh: Likewise.
2269         * posix/tst-getconf.sh: Likewise.
2270         * posix/wordexp-tst.sh: Likewise.
2271         * stdio-common/tst-printf.sh: Likewise.
2272         * stdio-common/tst-unbputc.sh: Likewise.
2273         * stdlib/tst-fmtmsg.sh: Likewise.
2274         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2275         * catgets/Makefile: Do not specify -e option when running
2276         testsuite shell scripts.
2277         * elf/Makefile: Likewise.
2278         * grp/Makefile: Likewise.
2279         * iconvdata/Makefile: Likewise.
2280         * intl/Makefile: Likewise.
2281         * io/Makefile: Likewise.
2282         * libio/Makefile: Likewise.
2283         * malloc/Makefile: Likewise.
2284         * posix/Makefile: Likewise.
2285         * stdio-common/Makefile: Likewise.
2286         * stdlib/Makefile: Likewise.
2287         * sysdeps/x86_64/Makefile: Likewise.
2288
2289         * io/ftwtest-sh: Add copyright header.
2290         * posix/globtest.sh: Likewise.
2291         * posix/tst-getconf.sh: Likewise.
2292         * posix/wordexp-tst.sh: Likewise.
2293         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2294
2295 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2296
2297         [BZ #13679]
2298         * Makeconfig (+link): Defined as $(+link-static) if
2299         $(build-shared) isn't yes.
2300         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2301         isn't yes.
2302         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2303
2304         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2305
2306         [BZ #14562]
2307         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2308         new chunk size with MALLOC_ALIGN_MASK.
2309
2310 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2311
2312         [BZ #5044]
2313         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2314         <rounding-mode.h>.
2315         (__printf_fphex): Determine rounding using get_rounding_mode and
2316         round_away.
2317         * stdio-common/tst-printf-round.c (struct hex_test): New
2318         structure.
2319         (hex_tests): New variable.
2320         (test_hex_in_one_mode): New function.
2321         (do_test): Also run tests for hex float output.
2322
2323 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2324
2325         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2326         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2327         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2328         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2329         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2330         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2331         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2332         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2333
2334 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2335
2336         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
2337         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
2338         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
2339         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
2340
2341 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
2342
2343         [BZ #14579]
2344         * elf/rtld.c (dl_main): Limit the check for self loading to normal
2345         mode only.
2346         * elf/tst-rtld-load-self.sh: New test.
2347         * elf/Makefile: Run it.
2348
2349 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
2350
2351         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
2352         (tst-writev-ENV): Remove.
2353         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
2354
2355 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
2356
2357         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
2358
2359 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
2360
2361         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
2362         unconditional.
2363         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
2364         Likewise.
2365         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
2366         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
2367         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
2368         Likewise.
2369
2370 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2371
2372         [BZ #14587]
2373         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
2374         * config.make.in (have-cpp-asm-debuginfo): Removed.
2375         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
2376         * configure: Regenerated.
2377
2378 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2379
2380         [BZ #5044]
2381         * stdio-common/printf_fp.c: Include <stdbool.h> and
2382         <rounding-mode.h>.
2383         (___printf_fp): Determine rounding using get_rounding_mode and
2384         round_away.
2385         * stdio-common/tst-printf-round.c: New file.
2386         * stdio-common/Makefile (tests): Add tst-printf-round.
2387         (link-libm): New variable.
2388         ($(objpfx)tst-printf-round): Depend in $(link-libm).
2389
2390 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2391
2392         [BZ #14576]
2393         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
2394         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
2395         Likewise.
2396         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
2397         Likewise.
2398
2399 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
2400
2401         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
2402         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2403         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2404         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2405
2406 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
2407
2408         [BZ #14518]
2409         * include/rounding-mode.h: New file.
2410         * sysdeps/generic/get-rounding-mode.h: Likewise.
2411         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
2412         * stdlib/strtod_l.c: Include <rounding-mode.h>.
2413         (MAX_VALUE): New macro.
2414         (MIN_VALUE): Likewise.
2415         (overflow_value): New function.
2416         (underflow_value): Likewise.
2417         (round_and_return): Use overflow_value and underflow_value to
2418         determine return values in overflow and underflow cases.  Use
2419         round_away to determine rounding depending on rounding mode.
2420         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
2421         determine return values in overflow and underflow cases.
2422         * stdlib/tst-strtod-round.c: Include <fenv.h>.
2423         (struct test_results): New structure.
2424         (struct test): Use struct test_results to store expected results
2425         for all rounding modes.
2426         (TEST): Include expected results for all rounding modes.
2427         (test_in_one_mode): New function.
2428         (do_test): Use test_in_one_mode to compute and check results.
2429         Check results for all rounding modes.
2430         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
2431         $(link-libm).
2432
2433 2012-12-09  Allan McRae  <allan@archlinux.org>
2434
2435         * sysdeps/i386/fpu/libm-test-ulps: Update
2436
2437 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
2438
2439         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
2440         (_G_int32_t): Likewise.
2441         (_G_uint16_t): Likewise.
2442         (_G_uint32_t): Likewise.
2443         (_G_HAVE_BOOL): Likewise.
2444         (_G_HAVE_ATEXIT): Likewise.
2445         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2446         (_G_HAVE_IO_FILE_OPEN): Likewise.
2447         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
2448         (_G_int32_t): Likewise.
2449         (_G_uint16_t): Likewise.
2450         (_G_uint32_t): Likewise.
2451         (_G_HAVE_BOOL): Likewise.
2452         (_G_HAVE_ATEXIT): Likewise.
2453         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2454         (_G_HAVE_IO_FILE_OPEN): Likewise.
2455         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
2456         (_G_int32_t): Likewise.
2457         (_G_uint16_t): Likewise.
2458         (_G_uint32_t): Likewise.
2459         (_G_HAVE_BOOL): Likewise.
2460         (_G_HAVE_ATEXIT): Likewise.
2461         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2462         (_G_HAVE_IO_FILE_OPEN): Likewise.
2463
2464 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2465
2466         * csu/libc-tls.c: Update copyright years.
2467
2468 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
2469
2470         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
2471         [!_G_USING_THUNKS]: Remove conditional code.
2472         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
2473         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
2474
2475         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
2476         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
2477         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2478         (_G_VTABLE_LABEL_PREFIX): Likewise.
2479         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2480         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2481         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2482         (_G_VTABLE_LABEL_PREFIX): Likewise.
2483         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2484         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2485         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2486         (_G_VTABLE_LABEL_PREFIX): Likewise.
2487         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2488
2489 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2490
2491         * libio/Makefile: Include ../Makeconfig before tests.
2492         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
2493         only if $(build-shared) is yes.
2494
2495         * iconv/gconv_db.c: Update copyright years.
2496
2497 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2498
2499         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
2500         unwind info if defined PIC. Fix special cases description.
2501         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
2502
2503         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
2504         DP_HI_MASK entry.
2505         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
2506
2507 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2508
2509         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
2510
2511         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
2512         is NULL.
2513
2514         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
2515         (LDLIBS-tst-chk4): This.
2516         (LDFLAGS-tst-chk5): Renamed to ...
2517         (LDLIBS-tst-chk5): This.
2518         (LDFLAGS-tst-chk6): Renamed to ...
2519         (LDLIBS-tst-chk6): This.
2520         (LDFLAGS-tst-lfschk4): Renamed to ...
2521         (LDLIBS-tst-lfschk4): This.
2522         (LDFLAGS-tst-lfschk5): Renamed to ...
2523         (LDLIBS-tst-lfschk5): This.
2524         (LDFLAGS-tst-lfschk6): Renamed to ...
2525         (LDLIBS-tst-lfschk6): This.
2526
2527         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
2528         on $(common-objpfx)soversions.mk.
2529
2530 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
2531
2532         [BZ #10014]
2533         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
2534         example host name.
2535
2536 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2537
2538         * malloc/arena.c (arena_get_retry): New function that gets
2539         another arena for the caller to try its request on.
2540         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
2541         current arena cannot fulfill the request.
2542         (__libc_memalign): Likewise.
2543         (__libc_memalign): Likewise.
2544         (__libc_pvalloc): Likewise.
2545         (__libc_calloc): Likewise.
2546
2547 2012-09-05  John Tobey  <john.tobey@gmail.com>
2548
2549         [BZ #13542]
2550         * manual/arith.texi (Operations on Complex): Fix description
2551         of carg branch cut.
2552
2553 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2554
2555         [BZ #10014]
2556         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
2557         host name.
2558
2559         [BZ #10038]
2560         * manual/memory.texi (Memory): Make order of menu items match
2561         order of sections.
2562
2563 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2564
2565         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
2566         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
2567         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
2568
2569 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2570
2571         * csu/libc-tls.c (static_dtv): Renamed to ...
2572         (_dl_static_dtv): This.  Make it global.
2573         (_dl_initial_dtv): Removed.
2574         (__libc_setup_tls): Updated.
2575         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
2576         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
2577         DL_INITIAL_DTV.
2578
2579 2012-09-06  Petr Machata  <pmachata@redhat.com>
2580
2581         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
2582         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
2583         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
2584         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
2585
2586 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2587
2588         [BZ #14545]
2589         * csu/libc-tls.c (_dl_initial_dtv): New variable.
2590         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
2591         freeing dtv[-1].
2592
2593 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2594
2595         [BZ #14544]
2596         * Makeconfig (link-static-before-libc): Replace $(+prector)
2597         with $(+prectorT).
2598         (link-static-after-libc): Replace $(+postctor) with
2599         $(+postctorT).
2600         (link-bounded): Replace $(+prector)/$(+postctor) with
2601         $(+prectorT)/$(+postctorT).
2602         (+prectorT): New macro.
2603         (+postctorT): Likewise.
2604
2605 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2606
2607         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
2608         (round_str): Handle values above the maximum for IBM long double
2609         as inexact.
2610         * stdlib/tst-strtod-round.c (tests): Regenerated.
2611
2612 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2613
2614         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
2615         assembler flag.
2616         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
2617         zarch_nohighgprs around the zarch optimized routines.
2618         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
2619         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
2620         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
2621         for zarch.
2622
2623 2012-09-05  David S. Miller  <davem@davemloft.net>
2624
2625         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2626
2627         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
2628         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
2629         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
2630         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
2631         entries.
2632
2633 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2634
2635         * malloc/arena.c: Fold copyright years.
2636         * malloc/mcheck.c, malloc/memusage.c: Likewise.
2637
2638 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2639
2640         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
2641
2642 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2643
2644         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
2645
2646 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2647
2648         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
2649         change internal state upon failure.
2650
2651 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2652
2653         * malloc/mcheck.c (mcheck_check_all): Fix typo.
2654         * malloc/memusage.c (mmap): Likewise.
2655         (mmap64, mremap): Likewise.  Adjust name in comment.
2656
2657 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2658
2659         * libio/fileops.c: Fix typos in comments.
2660         * libio/oldfileops.c: Likewise.
2661         * libio/wfileops.c: Likewise.
2662
2663 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2664
2665         [BZ #1349]
2666         * malloc/Makefile (tests): Add tst-malloc-usable test case.
2667         (tst-malloc-usable-ENV): Set environment for test case.
2668         * malloc/hooks.c (malloc_check_get_size): New function to get
2669         requested size.
2670         * malloc/malloc.c (musable): Use malloc_check_get_size.
2671         * malloc/tst-malloc-usable.c: New test case.
2672
2673 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2674
2675         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
2676
2677 2012-09-05  Allan McRae  <allan@archlinux.org>
2678
2679         [BZ #13966]
2680         * configure.in (CXX_SYSINCLUDES): Use compiler output to
2681         determine header location.
2682         * configure: Regenerated.
2683
2684 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2685
2686         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
2687         float format.
2688         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
2689         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
2690         format.
2691         (test): Regenerate.
2692
2693 2012-09-04  David S. Miller  <davem@davemloft.net>
2694
2695         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
2696         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
2697         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
2698
2699 2012-09-04  Florian Weimer  <fweimer@redhat.com>
2700
2701         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
2702         failures.
2703
2704         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
2705
2706 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
2707
2708         [BZ #9914]
2709         * libio/iogetdelim.c: Include <limits.h>.
2710         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
2711         + len + 1 would overflow.
2712
2713 2012-09-03  Andreas Jaeger  <aj@suse.de>
2714
2715         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2716         * sysdeps/i386/fpu/libm-test-ulps: Update.
2717
2718 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2719
2720         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2721         Add s_sinf-sse2, s_conf-sse2.
2722
2723         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2724         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2725         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2726         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2727
2728         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2729         for using routine as __sinf_ia32.
2730         Use macro for function declaration and weak_alias.
2731         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2732         for using routine as __cosf_ia32.
2733         Use macro for function declaration and weak_alias.
2734
2735         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2736         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2737
2738         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2739         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2740         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2741
2742         * math/libm-test.inc (cos_test): Add more test cases.
2743         (sin_test): Likewise.
2744         (sincos_test): Likewise.
2745
2746 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2747
2748         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2749         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2750         hidden.
2751         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2752
2753 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2754
2755         [BZ #14538]
2756         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2757         first element of the GOT.
2758         (elf_machine_load_address): Return the difference between
2759         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2760
2761 2012-09-01  Allan McRae  <allan@archlinux.org>
2762
2763         [BZ #13412]
2764         * configure.in (AWK): Require gawk version 3.0 or later.
2765         * configure: Regenerated.
2766
2767 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2768
2769         * sysdeps/unix/sysv/linux/kernel-features.h
2770         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2771         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2772         [__NR_clock_getres]: Make code unconditional.
2773         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2774         (clock_getcpuclockid): Remove code left unreachable by removal of
2775         conditionals.
2776         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2777         code unconditional.
2778         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2779         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2780         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2781         Make code unconditional.
2782         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2783         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2784         * sysdeps/unix/sysv/linux/clock_settime.c
2785         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2786         conditional code.
2787         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2788         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2789
2790 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2791
2792         [BZ #14476]
2793         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2794         scripts/test-installation.pl.
2795
2796         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2797         and $ld_so_version if it is set.
2798
2799 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2800
2801         [BZ #14516]
2802         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2803         failure if reading from procfs failed.
2804         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2805
2806 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2807
2808         * sysdeps/unix/sysv/linux/kernel-features.h
2809         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2810         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2811         Remove conditional code.
2812         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2813         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2814         Remove conditional code.
2815         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2816         * sysdeps/unix/sysv/linux/i386/fxstat.c
2817         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2818         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2819         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2820         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2821         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2822         * sysdeps/unix/sysv/linux/i386/lxstat.c
2823         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2824         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2825         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2826         Remove conditional code.
2827         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2828         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2829         Remove conditional code.
2830         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2831         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2832         <kernel-features.h>.
2833         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2834         Remove.
2835         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2836         Remove conditional code.
2837         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2838         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2839         Remove conditional.
2840
2841 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2842
2843         [BZ #5400]
2844         * NEWS: Add fixed bug number.
2845
2846 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2847
2848         [BZ #14519]
2849         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2850         underflowing exponent in case of negative sign.
2851         * stdlib/tst-strtod-round-data: Add more tests.
2852         * stdlib/tst-strtod-round.c (tests): Regenerated.
2853
2854         [BZ #3479]
2855         * stdlib/strtod_l.c (NDIG): Remove.
2856         (HEXNDIG): Likewise.
2857         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2858         smallest representable value.
2859         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2860         lie within an exact representation of 1/2 ulp of the result.
2861         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2862         unconditionally.
2863         (TENS_P9_IDX): Define unconditionally.
2864         (TENS_P9_SIZE): Likewise.
2865         (TENS_P10_IDX): Likewise.
2866         (TENS_P10_SIZE): Likewise.
2867         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2868         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2869         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2870         entries for 10^2^13 and 10^2^14.
2871         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2872         (TENS_P13_IDX): Define.
2873         (TENS_P13_SIZE): Likewise.
2874         (TENS_P14_IDX): Likewise.
2875         (TENS_P14_SIZE): Likewise.
2876         (_fpioconst_pow10): Change array size to
2877         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2878         unconditional.
2879         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2880         1024]: Add entries for 10^2^13 and 10^2^14.
2881         [LAST_POW10 > _LAST_POW10]: Remove #error.
2882         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2883         (_fpioconst_pow10): Change array size to
2884         FPIOCONST_POW10_ARRAY_SIZE.
2885         * stdlib/gen-fpioconst.c: New file.
2886         * stdlib/gen-tst-strtod-round.c: Likewise.
2887         * stdlib/tst-strtod-round-data: Likewise.
2888         * stdlib/tst-strtod-round.c: Likewise.
2889         * stdlib/Makefile (tests): Add tst-strtod-round.
2890
2891         [BZ #14459]
2892         * stdlib/strtod_l.c: Include <stdint.h>.
2893         (NDEBUG): Do not define.
2894         (round_and_return): Change EXPONENT parameter to type intmax_t.
2895         Rearrange calculations to avoid internal overflow possibilities.
2896         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2897         Rearrange calculations to avoid internal overflow possibilities.
2898         Assert that number fits inside MPNSIZE limbs.
2899         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2900         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2901         calculations and add assertions to avoid internal overflow
2902         possibilities.  Add casts to avoid signed/unsigned operations.
2903         * stdlib/tst-strtod-overflow.c: New file.
2904         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2905
2906 2012-08-25  Marek Polacek  <polacek@redhat.com>
2907
2908         * time/time.h: Fix some typos in comments.
2909
2910 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2911
2912         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2913         * posix/tst-rfc3484-2.c: Likewise.
2914         * posix/tst-rfc3484-3.c: Likewise.
2915
2916 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2917
2918         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2919         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2920
2921 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2922
2923         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2924         #include of fxstatat64.c.
2925
2926 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2927
2928         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2929         * shadow/getspent_r.c: Likewise.
2930         * shadow/getspnam.c: Likewise.
2931         * shadow/getspnam_r.c: Likewise.
2932         * gshadow/getsgent.c: Likewise.
2933         * gshadow/getsgent_r.c: Likewise.
2934         * gshadow/getsgnam.c: Likewise.
2935         * gshadow/getsgnam_r.c: Likewise.
2936         * inet/getnetbyad.c: Likewise.
2937         * inet/getnetbyad_r.c: Likewise.
2938         * inet/getnetbynm.c: Likewise.
2939         * inet/getnetbynm_r.c: Likewise.
2940         * inet/getnetent.c: Likewise.
2941         * inet/getnetent_r.c: Likewise.
2942         * inet/getproto.c: Likewise.
2943         * inet/getproto_r.c: Likewise.
2944         * inet/getprtent.c: Likewise.
2945         * inet/getprtent_r.c: Likewise.
2946         * inet/getprtname.c: Likewise.
2947         * inet/getprtname_r.c: Likewise.
2948         * inet/getrpcbyname.c: Likewise.
2949         * inet/getrpcbyname_r.c: Likewise.
2950         * inet/getrpcbynumber.c: Likewise.
2951         * inet/getrpcbynumber_r.c: Likewise.
2952         * inet/getrpcent.c: Likewise.
2953         * inet/getrpcent_r.c: Likewise.
2954         * inet/getaliasent.c: Likewise.
2955         * inet/getaliasent_r.c: Likewise.
2956         * inet/getaliasname.c: Likewise.
2957         * inet/getaliasname_r.c: Likewise.
2958         * nscd/getgrgid_r.c: Likewise.
2959         * nscd/getgrnam_r.c: Likewise.
2960         * nscd/gethstbyad_r.c: Likewise.
2961         * nscd/gethstbynm3_r.c: Likewise.
2962         * nscd/getpwnam_r.c: Likewise.
2963         * nscd/getpwuid_r.c: Likewise.
2964         * nscd/getsrvbynm_r.c: Likewise.
2965         * nscd/getsrvbypt_r.c: Likewise.
2966         * nscd/gai.c: Likewise.
2967
2968         * configure.in (build_nscd): New substituted variable, set
2969         by --disable-build-nscd and defaults to $use_nscd.
2970         * configure: Regenerated.
2971         * config.make.in (build-nscd): New substituted variable.
2972         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2973         Change conditional to require [$(build-nscd) = yes] as well.
2974         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2975
2976         [BZ# 13696]
2977         * configure.in (use_nscd): New substituted variable, set by
2978         --disable-nscd.  If enabled, define USE_NSCD.
2979         * configure: Regenerated.
2980         * config.h.in: Add USE_NSCD.
2981         * config.make.in (use-nscd): New substituted variable.
2982         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2983         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2984         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2985         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2986         (CFLAGS-getgrnam_r.c): Likewise.
2987         (CFLAGS-initgroups.c): Likewise.
2988         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2989         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2990         Variables removed.
2991         * inet/getnetgrent_r.c
2992         (nscd_setnetgrent): New function, broken out of ...
2993         (setnetgrent): ... here.  Call it.
2994         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2995         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2996         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2997         * nscd/Makefile (routines, aux): Move definitions after include of
2998         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2999         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3000         Conditionalize on [USE_NSCD].
3001         (is_nscd, nscd_init_cb): Likewise.
3002         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3003         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3004         * nss/nss_db/db-init.c: Likewise.
3005         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3006         [USE_NSCD].
3007         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3008         (make_request): Use it.
3009         (cache_valid_p): New function.
3010         (__check_pf): Use it.
3011         * NEWS: Add item for --disable-nscd.
3012
3013 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3014
3015         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3016         to support sed >= 4.2.1-20-ga9bf076.
3017         * configure: Regenerated.
3018
3019 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3020
3021         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3022         Conditionalize whole body on [IREL].
3023
3024 2012-08-22  Jeff Law <law@redhat.com>
3025
3026         [BZ #14505]
3027         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3028         if the family is PF_UNSPEC.
3029
3030 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3031
3032         * Makerules (lib-version): Rename from V.
3033         (install-lib-nosubdir): Change V to lib-version.
3034
3035 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3036
3037         [BZ #14252]
3038         * powerpc32/power6/wcschr.c: New file.
3039         * powerpc32/power6/wcscpy.c: New file.
3040         * powerpc32/power6/wcsrchr.c: New file.
3041         * powerpc64/power6/wcschr.c: New file.
3042         * powerpc64/power6/wcscpy.c: New file.
3043         * powerpc64/power6/wcsrchr.c: New file.
3044
3045 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3046
3047         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3048         (two_way_short_needle): Use it.
3049         * string/strstr.c (AVAILABLE1_USES_J): Define.
3050         * string/strcasestr.c: Likewise.
3051
3052         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3053         array references.
3054         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3055
3056         [BZ #11607]
3057         * NEWS: Add an entry.
3058         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3059         define their defaults.
3060         (two_way_short_needle): Detect end-of-string on-the-fly.
3061         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3062         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3063         * string/bug-strcasestr1.c: New test.
3064         * string/Makefile: Run it.
3065
3066 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3067
3068         [BZ #11607]
3069         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3070         the first character.
3071
3072 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3073
3074         * csu/elf-init.c (__libc_csu_irel): Function removed.
3075         * csu/libc-start.c (apply_irel): New function.
3076         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3077
3078 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3079
3080         * sysdeps/unix/sysv/linux/kernel-features.h
3081         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3082         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3083         <kernel-features.h>.
3084         [__NR_fadvise64_64]: Make code unconditional.
3085         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3086         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3087         !__NR_fadvise64_64)]: Likewise.
3088         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3089         !__NR_fadvise64_64))]: Likewise.
3090         [__NR_fadvise64]: Make code unconditional.
3091         [!__NR_fadvise64]: Remove conditional code.
3092         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3093         <kernel-features.h>.
3094         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3095         unconditional.
3096         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3097         conditional code.
3098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3099         not include <kernel-features.h>.
3100         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3101         unconditional.
3102         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3103         conditional code.
3104         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3105         include <kernel-features.h>.
3106         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3107         unconditional.
3108         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3109         conditional code.
3110
3111 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3112
3113         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3114         slight instruction rearrangements per scrollpipe analysis.
3115         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3116
3117 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3118
3119         * manual/syslog.texi (syslog; vsyslog, closelog):
3120         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3121         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3122
3123         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3124         DSOCAPS to match condition on defining it.
3125
3126 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3127
3128         * sysdeps/unix/sysv/linux/kernel-features.h
3129         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3131         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3132         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3134         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3135         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3137         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3138         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3139
3140         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3141         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3142
3143         * sysdeps/unix/sysv/linux/kernel-features.h
3144         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3145         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3146         unconditional.
3147         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3148         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3149         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3150         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3151         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3152         Make code unconditional.
3153         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3154         (__mmap64) [!__NR_mmap2]: Likewise.
3155         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3156         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3157         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3158         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3159         [__NR_mmap2]: Make code unconditional.
3160         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3161         (__mmap64) [!__NR_mmap2]: Likewise.
3162
3163 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3164
3165         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3166
3167 2012-08-18  Andreas Jaeger  <aj@suse.de>
3168
3169         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3170
3171 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3172
3173         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3174         * include/unistd.h (__have_sock_cloexec): Likewise.
3175         (__have_pipe2): Likewise.
3176         (__have_dup3): Likewise.
3177
3178 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3179
3180         [BZ #9685]
3181         * include/unistd.h (__have_pipe2): Change define into an extern int.
3182         (__have_dup3): Likewise.
3183         * socket/have_sock_cloexec.c: Include fcntl.h.
3184         (__have_pipe2): New variable.
3185         (__have_dup3): Likewise.
3186
3187 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3188
3189         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3190
3191 2012-08-17  Marek Polacek  <polacek@redhat.com>
3192
3193         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3194         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3195
3196 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3197
3198         * configure.in: Add AC_SUBST for sysheaders.
3199         * configure: Regenerated.
3200         * config.make.in (sysheaders): New substituted variable.
3201
3202         * sysdeps/unix/mkfifo.c: Moved ...
3203         * sysdeps/posix/mkfifo.c: ... here.
3204         * sysdeps/unix/mkfifoat.c: Moved ...
3205         * sysdeps/posix/mkfifoat.c: ... here.
3206
3207         * sysdeps/unix/utime.c: Moved ...
3208         * sysdeps/posix/utime.c: ... here.
3209
3210         * sysdeps/unix/time.c: Moved ...
3211         * sysdeps/posix/time.c: ... here.
3212         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3213         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3214
3215         * sysdeps/unix/nice.c: Moved ...
3216         * sysdeps/posix/nice.c: ... here.
3217
3218         * sysdeps/unix/alarm.c: Moved ...
3219         * sysdeps/posix/alarm.c: ... here.
3220
3221         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3222
3223 2012-08-17  Jeff Law <law@redhat.com>
3224
3225         * intl/Makefile (codeset_mo): New variable.
3226         ($(codeset_mo)): New target.
3227         (tst-codeset.out): Depend on that.  Remove explicit rule.
3228         (tst-gettext3.out, tst-gettext5.out): Likewise.
3229         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3230         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3231         * intl/tst-codeset.sh: Remove.
3232         * intl/tst-gettext3.sh: Likewise.
3233         * intl/tst-gettext5.sh: Likewise.
3234
3235 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3236
3237         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3238         * sysdeps/unix/syscalls.list: ... here.
3239
3240         * sysdeps/posix/getaddrinfo.c
3241         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3242         (gaiconf_init, gaiconf_reload): Use them.
3243         [!_STATBUF_ST_NSEC]
3244         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3245         Define using time_t rather than struct timespec.
3246
3247         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3248         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3249         Macros removed.
3250         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3251         [!NO_THREADS].
3252         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3253         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3254         Likewise.
3255
3256         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3257         __libc_cleanup_push argument.
3258
3259         * bits/param.h: New file.
3260         * misc/sys/param.h: New file.
3261         * include/sys/param.h: New file.
3262         * misc/Makefile (headers): Add bits/param.h.
3263         * sysdeps/generic/sys/param.h: File removed.
3264         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3265         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3266         * sysdeps/mach/hurd/bits/param.h: New file.
3267         * sysdeps/mach/hurd/sys/param.h: File removed.
3268
3269         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3270         last change.
3271
3272         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3273         [_IO_MTSAFE_IO].
3274         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3275         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3276         New macros.
3277
3278         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3279         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3280         rather than -D_IO_MTSAFE_IO conditionally.
3281         * stdio-common/Makefile (CPPFLAGS): Likewise.
3282         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3283         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3284         Use $(libio-mtsafe).
3285         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3286         of -D_IO_MTSAFE_IO.
3287         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3288         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3289         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3290         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3291         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3292         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3293         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3294         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3295         (CFLAGS-fread_u_chk.c): Likewise.
3296         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3297         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3298         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3299         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3300         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3301         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3302         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3303         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3304         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3305
3306         * libio/Makefile: Test [$(libc-reentrant) = yes]
3307         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3308
3309         * Makeconfig
3310         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3311         * sysdeps/pthread/configure: File removed.
3312         * sysdeps/pthread/Makeconfig: New file.
3313         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3314         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3315
3316 2012-08-16  Gary Benson  <gbenson@redhat.com>
3317
3318         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3319         unmapping the first object in a namespace.
3320
3321 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3322
3323         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3324         (__internal_setnetgrent): ... this.  Add internal_function to
3325         definition.  Add libc_hidden_def.
3326         (setnetgrent): Update caller.
3327         (internal_endnetgrent): Renamed to ...
3328         (__internal_endnetgrent): ... this.  Add internal_function to
3329         definition.  Add libc_hidden_def.
3330         (endnetgrent): Update caller.
3331         (internal_getnetgrent_r): Renamed to ...
3332         (__internal_getnetgrent_r): ... this.  Add internal_function to
3333         definition.  Add libc_hidden_def.
3334         (__getnetgrent_r): Update caller.
3335         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
3336
3337 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3338
3339         * stdlib/longlong.h: Update from GCC.
3340
3341 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3342
3343         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
3344         on _QL, which is set by umul_ppmm but never used.
3345         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
3346         variables, which are set by GMP macros but never used.
3347         * stdio-common/_itowa.c (_itowa): Likewise.
3348         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
3349         * stdlib/mod_1.c (mpn_mod_1): Likewise.
3350
3351 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
3352
3353         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
3354         struct La_sh_regs is not constant.
3355         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
3356         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
3357         and struct La_sparc64_regs are not constant.
3358
3359 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3360
3361         * sysdeps/unix/sysv/linux/kernel-features.h
3362         (__ASSUME_POSIX_TIMERS): Remove.
3363         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3364         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3365         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
3366         Make code unconditional.
3367         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3368         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
3369         Make code unconditional.
3370         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3371         * sysdeps/unix/sysv/linux/clock_nanosleep.c
3372         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
3373         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3374         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
3375         Make code unconditional.
3376         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3377         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
3378         (__libc_missing_posix_timers): Remove.
3379
3380 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3381
3382         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
3383         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
3384
3385         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
3386
3387         * elf/dl-sym.c: Include <stdlib.h>.
3388
3389         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
3390         constants, which avoids warnings in 32-bit builds.
3391
3392         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
3393         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
3394
3395         * misc/lseek.c: File moved to ...
3396         * io/lseek.c: ... here.
3397
3398         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
3399
3400         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
3401         shifting LEN more than 31 bits at once.
3402
3403 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3404
3405         [BZ #14195]
3406         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
3407         segmentation fault for a case of two empty input strings.
3408         * string/test-strncasecmp.c (check1): Renamed to...
3409         (bz12205): ...this.
3410         (bz14195): Add new testcase for two empty input strings and N > 0.
3411         (test_main): Call new testcase, adapt for renamed function.
3412
3413 2012-08-15  Andreas Jaeger  <aj@suse.de>
3414
3415         [BZ #14090]
3416         * crypt/md5test2.c: New test, based on test supplied by Serge
3417         Belyshev <belyshev@depni.sinp.msu.ru>.
3418         * crypt/Makefile (xtests): Add md5test-giant..
3419         * crypt/Makefile ($(objpfx)md5test-giant): Add.
3420
3421 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3422
3423         [BZ #14090]
3424         * crypt/md5.c (md5_process_block): Don't assume the buffer
3425         length is less than 2**32.
3426         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
3427         length is less than 2**64.
3428
3429 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3430
3431         * string/str-two-way.h: Include <sys/param.h>.
3432         (MAX): Macro removed.
3433
3434         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
3435         Move #define and #undef of memmove to just before and after
3436         including <string.h>.
3437
3438         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
3439         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
3440         and after including <string.h>.  Move declarations of
3441         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
3442         to before #include "string/memmove.c".
3443
3444         * include/dirent.h: Declare __getdirentries.
3445
3446         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
3447         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
3448
3449 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3450
3451         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
3452         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
3453         * sysdeps/i386/configure: Regenerated.
3454         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
3455         STABS_CURRENT_FILE, and STABS_FUN.
3456         (END): Remove call to STABS_FUN_END.
3457         (STABS_CURRENT_FILE1): Delete.
3458         (STABS_CURRENT_FILE): Likewise.
3459         (STABS_FUN): Likewise.
3460         (STABS_FUN_END): Likewise.
3461         (STABS_FUN2): Likewise.
3462         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
3463         * sysdeps/x86_64/configure: Regenerated.
3464
3465 2012-08-14  Roland McGrath  <roland@hack.frob.com>
3466
3467         * elf/dl-open.c: Include <atomic.h>.
3468         * elf/dl-lookup.c: Likewise.
3469
3470 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
3471
3472         * sysdeps/unix/sysv/linux/kernel-features.h
3473         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
3474         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
3475         unconditionally.
3476         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
3477         unconditionally.
3478         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
3479         condition on __ASSUME_CLONE_THREAD_FLAGS.
3480
3481 2012-08-14  Andreas Jaeger  <aj@suse.de>
3482
3483         * sysdeps/i386/fpu/libm-test-ulps: Update.
3484
3485 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
3486
3487         * include/atomic.h (atomic_exchange_and_add): Split into ...
3488         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
3489         New atomic macros.
3490
3491 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
3492
3493         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3494
3495 2012-08-13  Jeff Law <law@redhat.com>
3496
3497         * manual/stdio.texi (snprintf): Clarify handling of the trailing
3498         null byte in the output string.
3499
3500 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
3501
3502         * sysdeps/unix/sysv/linux/kernel-features.h
3503         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
3504         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
3505         (__ASSUME_ARG_MAX_STACK_BASED): Define.
3506         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3507         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
3508         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
3509         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
3510
3511 2012-08-09  Jeff Law <law@redhat.com>
3512
3513         [BZ #13939]
3514         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
3515         When avoid_arena is set, don't retry in the that arena.  Pick the
3516         next one, whatever it might be.
3517         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
3518         (arena_lock): Pass in new parameter to arena_get2.
3519         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
3520         arena_get2.
3521         (__libc_malloc): Unify retrying after main arena failure with
3522         __libc_memalign version.
3523         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
3524
3525 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3526
3527         [BZ #14166]
3528         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
3529         to __redirect_strstr.
3530         (__strstr_sse42): Use typeof __redirect_strstr.
3531         (__strstr_ia32): Likewise.
3532         (__libc_strstr): New prototype.
3533         (strstr): Renamed to ...
3534         (__libc_strstr): This.
3535         (strstr): New strong alias of __libc_strstr.
3536         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
3537         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
3538         __redirect_time.
3539         Include <time.h>.
3540         (__libc_time): New prototype.
3541         (time_ifunc): Replace time with __libc_time.
3542         (time): New strong alias and hidden definition of __libc_time.
3543         (__GI_time): Remove strong alias.
3544         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
3545         Include <stddef.h>.
3546         (memmove): Redefined to __redirect_memmove.
3547         (__memmove_sse2): Use typeof __redirect_memmove.
3548         (__memmove_ssse3): Likewise.
3549         (__memmove_ssse3_back): Likewise.
3550         (__libc_memmove): New prototype.
3551         (memmove): Renamed to ...
3552         (__libc_memmove): This.
3553         (memmove): New strong alias of __libc_memmove.
3554
3555 2012-08-08  Mark Salter  <msalter@redhat.com>
3556
3557         * elf/elf.h
3558         (R_MN10300_TLS_GD): Define.
3559         (R_MN10300_TLS_LD): Likewise.
3560         (R_MN10300_TLS_LDO): Likewise.
3561         (R_MN10300_TLS_GOTIE): Likewise.
3562         (R_MN10300_TLS_IE): Likewise.
3563         (R_MN10300_TLS_LE): Likewise.
3564         (R_MN10300_TLS_DTPMOD): Likewise.
3565         (R_MN10300_TLS_DTPOFF): Likewise.
3566         (R_MN10300_TLS_TPOFF): Likewise.
3567         (R_MN10300_SYM_DIFF): Likewise.
3568         (R_MN10300_ALIGN): Likewise.
3569         (R_MN10300_NUM): Update.
3570
3571 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
3572
3573         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
3574         Remove.
3575
3576 2012-08-08  Roland McGrath  <roland@hack.frob.com>
3577
3578         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
3579
3580         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
3581         sysdeps/unix -> sysdeps/posix move.
3582         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3583
3584 2012-08-07      Allan McRae     <allan@archlinux.org>
3585
3586         [BZ #14303]
3587         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
3588         (SUNOS_CPP): Likewise.
3589         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
3590         not found.
3591         (open_input): Call CPP using execvp.
3592
3593 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3594
3595         * sysdeps/unix/sysv/linux/kernel-features.h
3596         (__ASSUME_PROT_GROWSUPDOWN): Remove.
3597         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3598         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3599         (__ASSUME_WAITID_SYSCALL): Likewise.
3600         * sysdeps/unix/sysv/linux/dl-execstack.c
3601         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
3602         code unconditional.
3603         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
3604         conditional code.
3605         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
3606         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
3607         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
3608         code.
3609         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
3610         unconditional.
3611         [__ASSUME_WAITID_SYSCALL]: Likewise.
3612         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
3613
3614 2012-08-07  Roland McGrath  <roland@hack.frob.com>
3615
3616         * sysdeps/unix/closedir.c: Renamed to ...
3617         * sysdeps/posix/closedir.c: ... here.
3618         * sysdeps/unix/dirfd.c: Renamed to ...
3619         * sysdeps/posix/dirfd.c: ... here.
3620         * sysdeps/unix/dirstream.h: Renamed to ...
3621         * sysdeps/posix/dirstream.h: ... here.
3622         * sysdeps/unix/fdopendir.c: Renamed to ...
3623         * sysdeps/posix/fdopendir.c: ... here.
3624         * sysdeps/unix/opendir.c: Renamed to ...
3625         * sysdeps/posix/opendir.c: ... here.
3626         * sysdeps/unix/readdir.c: Renamed to ...
3627         * sysdeps/posix/readdir.c: ... here.
3628         * sysdeps/unix/readdir_r.c: Renamed to ...
3629         * sysdeps/posix/readdir_r.c: ... here.
3630         * sysdeps/unix/rewinddir.c: Renamed to ...
3631         * sysdeps/posix/rewinddir.c: ... here.
3632         * sysdeps/unix/seekdir.c: Renamed to ...
3633         * sysdeps/posix/seekdir.c: ... here.
3634         * sysdeps/unix/telldir.c: Renamed to ...
3635         * sysdeps/posix/telldir.c: ... here.
3636         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
3637         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
3638         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3639         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
3640
3641         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
3642         * bits/fcntl.h: ... here.
3643
3644         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
3645         not 0.
3646         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
3647         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
3648         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
3649         (struct flock): Move l_start, l_len to the beginning.
3650         Use __pid_t for l_pid.
3651         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
3652         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
3653         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
3654         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
3655         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
3656         [__USE_LARGEFILE64] (struct flock64): New type.
3657         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
3658
3659         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
3660         * bits/dirent.h: ... here.
3661
3662         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
3663         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
3664
3665 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3666
3667         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3668         Change from 2.6.0 to 2.6.16.
3669         * sysdeps/unix/sysv/linux/configure: Regenerated.
3670         * sysdeps/unix/sysv/linux/kernel-features.h
3671         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
3672         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
3673         version.
3674         (__ASSUME_UTIMES): Likewise.
3675         (__ASSUME_CLONE_STOPPED): Remove.
3676         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
3677         architectures, not kernel version.
3678         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
3679         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3680         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3681         (__ASSUME_WAITID_SYSCALL): Likewise.
3682         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
3683         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
3684         * README: State 2.6.16 as minimum Linux kernel version.  Do not
3685         refer to older versions.
3686
3687 2012-08-06  Roland McGrath  <roland@hack.frob.com>
3688
3689         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
3690         Define alphasort64 as an alias.
3691         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
3692         Define versionsort64 as an alias.
3693         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
3694         Define scandir64 as an alias.
3695         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
3696         Define scandirat64 as an alias.
3697         * dirent/alphasort64.c (alphasort64):
3698         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
3699         * dirent/versionsort64.c: Likewise.
3700         * dirent/scandir64.c: Likewise.
3701         * dirent/scandirat64.c: Likewise.
3702         * sysdeps/wordsize-64/alphasort.c: File removed.
3703         * sysdeps/wordsize-64/alphasort64.c: File removed.
3704         * sysdeps/wordsize-64/scandir.c: File removed.
3705         * sysdeps/wordsize-64/scandir64.c: File removed.
3706         * sysdeps/wordsize-64/scandirat.c: File removed.
3707         * sysdeps/wordsize-64/scandirat64.c: File removed.
3708         * sysdeps/wordsize-64/versionsort.c: File removed.
3709         * sysdeps/wordsize-64/versionsort64.c: File removed.
3710         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
3711         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
3712         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
3713         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
3714         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
3715         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
3716         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
3717         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
3718
3719         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3720         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3721         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3722         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3723         [defined __arch64__ || defined __sparcv9]
3724         (__INO_T_MATCHES_INO64_T): New macro.
3725         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3726         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3727         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3728         * sysdeps/unix/sysv/linux/bits/dirent.h
3729         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3730         (_DIRENT_MATCHES_DIRENT64): New macro.
3731
3732         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3733         Define lockf64 as an alias.
3734         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3735         Define fseeko64 as an alias.
3736         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3737         Define ftello64 as an alias.
3738         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3739         Define _IO_fgetpos64 and fgetpos64 as aliases.
3740         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3741         Define _IO_fsetpos64 and fsetpos64 as aliases.
3742         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3743         Conditionalize body on this.
3744         * libio/fseeko64.c: Likewise.
3745         * libio/ftello64.c: Likewise.
3746         * libio/iofgetpos64.c: Likewise.
3747         * libio/iofsetpos64.c: Likewise.
3748         * sysdeps/wordsize-64/lockf.c: File removed.
3749         * sysdeps/wordsize-64/lockf64.c: File removed.
3750         * sysdeps/wordsize-64/fseeko.c: File removed.
3751         * sysdeps/wordsize-64/fseeko64.c: File removed.
3752         * sysdeps/wordsize-64/ftello.c: File removed.
3753         * sysdeps/wordsize-64/ftello64.c: File removed.
3754         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3755         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3756         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3757         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3758         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3759         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3760         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3761         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3762         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3763         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3764         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3765         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3766         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3767         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3768
3769         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3770         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3771         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3772         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3773         [defined __arch64__ || defined __sparcv9]
3774         (__OFF_T_MATCHES_OFF64_T): New macro.
3775         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3776         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3777         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3778         (__OFF_T_MATCHES_OFF64_T): New macro.
3779
3780 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3781
3782         * stdlib/secure-getenv.c (__secure_getenv): Replace
3783         GLIBC_2_16 with GLIBC_2_17.
3784
3785 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3786
3787         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3788         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3789
3790 2012-08-03  David S. Miller  <davem@davemloft.net>
3791
3792         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3793
3794 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3795
3796         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3797         Remove.
3798         (__ASSUME_CORRECT_SI_PID): Likewise.
3799         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3800         (__ASSUME_TMPFS_NAME): Likewise.
3801         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3802         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3803         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3804         (HAVE_AUX_SECURE): Make definition unconditional.
3805         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3806         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3807
3808 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3809
3810         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3811         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3812         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3813         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3814         __eloop_threshold instead of SYMLOOP_MAX.
3815
3816         * sysdeps/generic/eloop-threshold.h: New file.
3817         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3818         of MAXSYMLINKS.
3819         * elf/chroot_canon.c (chroot_canon): Likewise.
3820
3821 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3822
3823         [BZ #13717]
3824         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3825         Change to 2.6.0 everywhere.
3826         * sysdeps/unix/sysv/linux/configure: Regenerated.
3827         * sysdeps/unix/sysv/linux/kernel-features.h
3828         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3829         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3830         kernel versions.
3831         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3832         (__ASSUME_FUTEX_REQUEUE): Remove.
3833         (__ASSUME_STATFS64): Define unconditionally.
3834         (__ASSUME_AT_SECURE): Likewise.
3835         (__ASSUME_CORRECT_SI_PID): Likewise.
3836         (__ASSUME_TGKILL): Define without depending on kernel version for
3837         i386.
3838         (__ASSUME_UTIMES): Likewise.
3839         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3840         kernel version.
3841         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3842         (__ASSUME_TMPFS_NAME): Likewise.
3843         * README: Update reference to Linux kernel versions.
3844
3845 2012-08-02  Marek Polacek  <polacek@redhat.com>
3846
3847         [BZ# 14150]
3848         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3849         libc_cv_asm_type_prefix with %.
3850         * configure: Regenerated.
3851         * include/libc-symbols.h: Remove comment about
3852         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3853         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3854         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3855         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3856         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3857         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3858         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3859         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3860         * elf/tst-unique2mod1.c: Likewise.
3861         * elf/tst-unique1mod2.c: Likewise.
3862         * elf/tst-unique1mod1.c: Likewise.
3863         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3864         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3865         Replace ASM_TYPE_DIRECTIVE with .type.
3866         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3867         * sysdeps/i386/sysdep.h: Likewise.
3868         * sysdeps/x86_64/sysdep.h: Likewise.
3869         * sysdeps/sh/sysdep.h: Likewise.
3870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3871         Do not define ASM_TYPE_DIRECTIVE.
3872         * sysdeps/powerpc/sysdep.h: Likewise.
3873         * sysdeps/powerpc/powerpc32/sysdep.h:
3874         Replace ASM_TYPE_DIRECTIVE with .type.
3875         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3876         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3877         * sysdeps/i386/fpu/e_powf.S: Likewise.
3878         * sysdeps/i386/fpu/e_expl.S: Likewise.
3879         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3880         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3881         * sysdeps/i386/fpu/e_pow.S: Likewise.
3882         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3883         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3884         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3885         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3886         * sysdeps/i386/fpu/e_log2.S: Likewise.
3887         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3888         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3889         * sysdeps/i386/fpu/e_powl.S: Likewise.
3890         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3891         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3892         * sysdeps/i386/fpu/e_logl.S: Likewise.
3893         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3894         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3895         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3896         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3897         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3898         * sysdeps/i386/fpu/e_log.S: Likewise.
3899         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3900         * sysdeps/i386/fpu/e_logf.S: Likewise.
3901         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3902         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3903         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3904         * sysdeps/i386/fpu/e_log10.S: Likewise.
3905         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3906         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3907         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3908         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3909         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3910         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3911         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3912         * sysdeps/i386/i686/strtok.S: Likewise.
3913         * sysdeps/i386/i386-mcount.S: Likewise.
3914         * sysdeps/i386/strtok.S: Likewise.
3915         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3916         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3917         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3918         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3919         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3920         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3921         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3922         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3923         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3924         * sysdeps/x86_64/_mcount.S: Likewise.
3925         * sysdeps/x86_64/strtok.S: Likewise.
3926         * sysdeps/sh/_mcount.S: Likewise.
3927
3928 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3929
3930         * libio/iofopen.c: Include <fcntl.h>.
3931         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3932         (_IO_fopen64, fopen64): Define as aliases.
3933         * libio/iofopen64.c: Include <fcntl.h>.
3934         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3935         Conditionalize body on this.
3936         * sysdeps/wordsize-64/iofopen.c: File removed.
3937         * sysdeps/wordsize-64/iofopen64.c: File removed.
3938
3939 2012-08-01  Marek Polacek  <polacek@redhat.com>
3940
3941         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3942         Use dlfcn directly instead of a variable.
3943         (binfmt-subdir): Do not define.
3944         (dlfcn): Likewise.
3945
3946 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3947
3948         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3949         Remove all definitions.
3950         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3951         <kernel-features.h>.
3952         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3953         (miss_F_GETOWN_EX): Remove all definitions.
3954         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3955         macro definition.
3956         [!__ASSUME_FCNTL64]: Remove conditional code.
3957         [__ASSUME_FCNTL64]: Make code unconditional.
3958         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3959         <kernel-features.h>.
3960         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3961         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3962         (lockf64) [__NR_fcntl64]: Make code unconditional.
3963         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3964
3965         * sysdeps/unix/sysv/linux/kernel-features.h
3966         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3967         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3968         Make code unconditional.
3969         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3970         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3972         [__NR_vfork]: Make code unconditional.
3973         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3974         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3976         [__NR_vfork]: Make code unconditional.
3977         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3978         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3979
3980 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3981
3982         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3983         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3984
3985         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3986         Define mkstemp64 as an alias.
3987         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3988         Define mkstemps64 as an alias.
3989         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3990         Define mkostemp64 as an alias.
3991         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3992         Define mkostemps64 as an alias.
3993         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3994         Conditionalize body on this.
3995         * misc/mkostemp64.c: Likewise.
3996         * misc/mkostemps64.c: Likewise.
3997         * misc/mkstemps64.c: Likewise.
3998         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3999         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4000         * sysdeps/wordsize-64/mkostemp.c: File removed.
4001         * sysdeps/wordsize-64/mkstemp.c: File removed.
4002         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4003         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4004         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4005         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4006
4007         [BZ #14138]
4008         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4009         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4010         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4011         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4012
4013         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4014         compat_symbol macros from <shlib-compat.h> rather than the underlying
4015         default_symbol_version and symbol_version macros, so that DEFAULT
4016         lines in shlib-versions are respected.
4017         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4018
4019 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4020
4021         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4022         Declare with warn_unused_result.
4023         (setgid, setregid, setegid, setresgid): Likewise.
4024         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4025         Likewise.
4026         * WUR-REPORT: Remove set*id functions.
4027
4028 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4029
4030         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4031
4032 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4033
4034         * include/sys/socket.h (__libc_accept, __libc_accept4):
4035         Add attribute_hidden.
4036         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4037
4038         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4039         use of PTR_MANGLE.
4040         * inet/getnetgrent_r.c (setup): Likewise.
4041
4042         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4043
4044 2012-07-31  David S. Miller  <davem@davemloft.net>
4045
4046         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4047
4048 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4049
4050         [BZ #13629]
4051         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4052         value between 1.0 and 2.0 and smaller part has absolute value less
4053         than 1.0.
4054         * math/s_clog10.c (__clog10): Likewise.
4055         * math/s_clog10f.c (__clog10f): Likewise.
4056         * math/s_clog10l.c (__clog10l): Likewise.
4057         * math/s_clogf.c (__clogf): Likewise.
4058         * math/s_clogl.c (__clogl): Likewise.
4059         * math/libm-test.inc (clog_test): Add more tests.
4060         (clog10_test): Likewise.
4061         * sysdeps/i386/fpu/libm-test-ulps: Update.
4062         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4063
4064 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4065
4066         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4067         Exit with zero in case no suitable GID is found, and write a
4068         message to standard error.
4069
4070 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4071
4072         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4073         rather than to 1.
4074         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4075         (MAXPATHLEN): Removed.
4076         (NOGROUP, NODEV): New macros.
4077         (setbit, clrbit, isset, isclr): New macros.
4078         (howmany, roundup, powerof2): New macros.
4079         (DEV_BSIZE): New macro.
4080
4081         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4082         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4083
4084         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4085         definition on [!__NO_LONG_DOUBLE_MATH].
4086
4087         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4088         PTR_MANGLE and PTR_DEMANGLE.
4089
4090         * socket/accept4.c (accept4): Rename to __libc_accept4.
4091         Define accept4 as a weak alias.
4092
4093         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4094         on [_DIRENT_HAVE_D_TYPE].
4095         * io/ftw.c (ftw_dir): Likewise.
4096
4097         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4098
4099         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4100
4101         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4102         Use the BSD numbers rather than the arbitrary ones we had.
4103         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4104         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4105         (SIGXCPU, SIGXFSZ): New macros.
4106         (_NSIG): Now 32.
4107
4108         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4109         initializer on [_LIBC_REENTRANT].
4110
4111         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4112         definitions inside [_POSIX_MAPPED_FILES].
4113
4114         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4115
4116         * dirent/opendir.c: Include <fcntl.h>.
4117
4118         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4119         (__libc_getspecific): Likewise.
4120         (__libc_key_create): Likewise.
4121
4122         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4123         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4124         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4125         (tmpfile64): Define as alias.
4126         * sysdeps/wordsize-64/tmpfile.c: File removed.
4127         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4128         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4129         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4130
4131         * stdio-common/vfscanf.c: Include <stdbool.h>.
4132         * nss/makedb.c: Likewise.
4133         * stdio-common/_i18n_number.h: Likewise.
4134         * argp/argp-help.c: Likewise.
4135         * posix/wordexp.c: Likewise.
4136         * sysdeps/posix/spawni.c: Likewise.
4137         * nss/nss_files/files-initgroups.c: Likewise.
4138         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4139         * nss/nss_files/files-initgroups.c: Likewise.
4140         * nss/nss_db/db-netgrp.c: Likewise.
4141         * nss/nss_db/db-initgroups.c: Likewise.
4142         * io/fchmodat.c: Include <sys/stat.h>.
4143
4144         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4145         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4146
4147         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4148         [HAVE_MMAP].
4149
4150         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4151         Add multiple inclusion protection.
4152
4153 2012-07-27  David S. Miller  <davem@davemloft.net>
4154
4155         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4156
4157 2012-07-27  Gary Benson  <gbenson@redhat.com>
4158
4159         [BZ #14298]
4160         * elf/rtld.c: Include <stap-probe.h>.
4161         (dl_main): Added static probes "init_start" and "init_complete".
4162         * elf/dl-load.c: Include <stap-probe.h>.
4163         (lose): Take new parameter "nsid".
4164         Added static probe "map_failed".
4165         (_dl_map_object_from_fd): Pass namespace id to lose.
4166         Added static probe "map_start".
4167         (open_verify): Pass namespace id to lose.
4168         * elf/dl-open.c: Include <stap-probe.h>.
4169         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4170         and "reloc_complete".
4171         * elf/dl-close.c: Include <stap-probe.h>.
4172         (_dl_close_worker): Added static probes "unmap_start" and
4173         "unmap_complete".
4174         * elf/rtld-debugger-interface.txt: New file documenting the above.
4175
4176 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4177
4178         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4179         rather than a string variable.
4180         * sunrpc/rpc_main.c (h_output): Likewise.
4181         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4182
4183 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4184
4185         * inet/check_native.c: New file.
4186
4187 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4188
4189         [BZ #13629]
4190         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4191         if larger part has absolute value 1.0.
4192         * math/s_clog10.c (__clog10): Likewise.
4193         * math/s_clog10f.c (__clog10f): Likewise.
4194         * math/s_clog10l.c (__clog10l): Likewise.
4195         * math/s_clogf.c (__clogf): Likewise.
4196         * math/s_clogl.c (__clogl): Likewise.
4197         * math/libm-test.inc (clog_test): Add more tests.
4198         (clog10_test): Likewise.
4199         * sysdeps/i386/fpu/libm-test-ulps: Update.
4200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4201
4202         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4203         (pltexit): Likewise.
4204         (La_regs): Likewise.
4205         (La_retval): Likewise.
4206         (int_retval): Likewise.
4207         Update #error for removed macros to refer only to definitions in
4208         tst-audit.h.
4209         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4210         macro.
4211         (pltexit): Likewise.
4212         (La_regs): Likewise.
4213         (La_retval): Likewise.
4214         (int_retval): Likewise.
4215         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4216         macro.
4217         (pltexit): Likewise.
4218         (La_regs): Likewise.
4219         (La_retval): Likewise.
4220         (int_retval): Likewise.
4221         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4222         macro.
4223         (pltexit): Likewise.
4224         (La_regs): Likewise.
4225         (La_retval): Likewise.
4226         (int_retval): Likewise.
4227         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4228         macro.
4229         (pltexit): Likewise.
4230         (La_regs): Likewise.
4231         (La_retval): Likewise.
4232         (int_retval): Likewise.
4233         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4234         macro.
4235         (pltexit): Likewise.
4236         (La_regs): Likewise.
4237         (La_retval): Likewise.
4238         (int_retval): Likewise.
4239         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4240         macro.
4241         (pltexit): Likewise.
4242         (La_regs): Likewise.
4243         (La_retval): Likewise.
4244         (int_retval): Likewise.
4245         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4246         macro definitions in tst-audit.h.
4247         * sysdeps/i386/tst-audit.h: New file.
4248         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4249         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4250         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4251         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4252         * sysdeps/sh/tst-audit.h: Likewise.
4253         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4254         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4255         * sysdeps/x86_64/tst-audit.h: Likewise.
4256
4257 2012-07-26  Andreas Jaeger  <aj@suse.de>
4258
4259         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4260         ptrace.
4261
4262         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4263         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4264         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4265         PTRACE_O_MASK.
4266         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4267         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4268         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4269
4270         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4271         value.
4272
4273         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4274         _sigsys.
4275         (si_call_addr, si_syscall, si_arch): Define new macro.
4276         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4277         _sigsys.
4278         (si_call_addr, si_syscall, si_arch): Define new marcro.
4279         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4280         _sigsys.
4281         (si_call_addr, si_syscall, si_arch): Define new macro.
4282         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4283         _sigsys.
4284         (si_call_addr, si_syscall, si_arch): Define new macro.
4285
4286 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4287
4288         [BZ #13717]
4289         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4290         Change to 2.4.21 where previously 2.4.1.
4291         * sysdeps/unix/sysv/linux/configure: Regenerated.
4292         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4293         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4294         Linux kernel version.
4295         (__ASSUME_STD_AUXV): Remove.
4296         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4297         kernel version.
4298         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4299         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4300         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4301         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4302         (__ASSUME_NETLINK_SUPPORT): Likewise.
4303         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4304         (__no_netlink_support): Remove conditional definition.
4305         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4306         Remove.
4307         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4308         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4309         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4310         (if_nameindex_ioctl): Remove.
4311         (if_nameindex_netlink): Do not handle __no_netlink_support.
4312         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4313         code.
4314         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4315         Remove conditional code.
4316         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4317         code.
4318         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4319         unconditional.
4320         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4321         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4322         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4323         Remove.
4324         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4325         [!__ASSUME_STD_AUXV]: Remove conditional code.
4326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4327         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4328         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4330         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4331         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4332         code.
4333         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
4335         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
4336         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4337         conditional code.
4338         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
4340         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4341         code.
4342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
4343         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4344         conditional code.
4345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4346         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4347         code unconditional.
4348         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4349         conditional code.
4350         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4351         unconditional.
4352         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4353         conditional code.
4354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4355         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4356         unconditional.
4357         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4358         conditional code.
4359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4360         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4361         code unconditional.
4362         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4363         conditional code.
4364         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4365         unconditional.
4366         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4367         conditional code.
4368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4369         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4370         code unconditional.
4371         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4372         conditional code.
4373         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4374         unconditional.
4375         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4376         conditional code.
4377
4378 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
4379
4380         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
4381         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
4382         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4383         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
4384         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
4385         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4386         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4387         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
4388         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
4389         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4390         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
4391         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4392         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
4393         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4394         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4395         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
4396         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
4397         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
4398         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
4399         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
4400         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
4401         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4402         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4403
4404 2012-07-25  Florian Weimer  <fweimer@redhat.com>
4405
4406         * Versions.def: Add GLIBC_2.17.
4407         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
4408         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
4409         Introduce __libc_secure_getenv.
4410         * stdlib/Versions (2.17): Add secure_getenv
4411         (GLIBC_PRIVATE): Add __libc_secure_getenv.
4412         * stdlib/secure-getenv.c: Rename __secure_getenv to
4413         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
4414         symbol __secure_getenv for GLIBC_2.0.
4415         * stdlib/tst-secure-getenv.c: New.
4416         * stdlib/Makefile (tests): Add testcase.
4417         * manual/startup.texi (Environment Access): Document
4418         secure_getenv.
4419         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
4420         __libc_secure_getenv.
4421         * inet/ruserpass.c (ruserpass): Likewise.
4422         * malloc/mtrace.c (mtrace): Likewise.
4423         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
4424         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4425         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
4426         * sysdeps/posix/tempname.c: Likewise.  Evaluate
4427         HAVE_SECURE_GETENV.
4428         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
4429         __secure_getenv to __libc_secure_getenv.
4430         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
4431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4432         Likewise.
4433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4434         Likewise.
4435         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
4436         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
4437         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4438         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
4439         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
4440         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4441         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
4442
4443 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4444
4445         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
4446         (struct La_i86_retval): Likewise.
4447         (struct La_x86_64_regs): Likewise.
4448         (struct La_x86_64_retval): Likewise.
4449         (struct La_x32_regs): Likewise.
4450         (struct La_x32_retval): Likewise.
4451         (struct La_ppc32_regs): Likewise.
4452         (struct La_ppc32_retval): Likewise.
4453         (struct La_ppc64_regs): Likewise.
4454         (struct La_ppc64_retval): Likewise.
4455         (struct La_sh_regs): Likewise.
4456         (struct La_sh_retval): Likewise.
4457         (struct La_s390_32_regs): Likewise.
4458         (struct La_s390_32_retval): Likewise.
4459         (struct La_s390_64_regs): Likewise.
4460         (struct La_s390_64_retval): Likewise.
4461         (struct La_sparc32_regs): Likewise.
4462         (struct La_sparc32_retval): Likewise.
4463         (struct La_sparc64_regs): Likewise.
4464         (struct La_sparc64_retval): Likewise.
4465         (struct audit_ifaces): Remove architecture-specific pltenter and
4466         pltexit members.
4467         * sysdeps/i386/ldsodefs.h: New file.
4468         * sysdeps/powerpc/ldsodefs.h: Likewise.
4469         * sysdeps/s390/ldsodefs.h: Likewise.
4470         * sysdeps/sh/ldsodefs.h: Likewise.
4471         * sysdeps/sparc/ldsodefs.h: Likewise.
4472         * sysdeps/x86_64/ldsodefs.h: Likewise.
4473
4474 2012-07-25  Marek Polacek  <polacek@redhat.com>
4475
4476         [BZ #6808]
4477         * math/libm-test.inc (yn_test): Add another test.
4478         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
4479         to ERANGE when the result is +-Inf.
4480         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
4481         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4482         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
4483         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
4484
4485 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
4486
4487         * conform/data/time.h-data (NULL): Use macro-constant.  Require
4488         equal to 0.
4489         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
4490         clock_t.
4491         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
4492
4493 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
4494
4495         * configure.in <sysdeps resolving>: Correct printing
4496         Implies_before.
4497         * configure: Regenerate.
4498
4499 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
4500
4501         * math/w_ilogb.c: Include <limits.h>.
4502         * math/w_ilogbl.c: Likewise.
4503
4504 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4505
4506         * manual/lang.texi (__va_copy): Document primarily as ISO C99
4507         va_copy.  Document allowing for unavailable va_copy only as
4508         pre-C99 compatibility.
4509         * manual/string.texi (Copying and Concatenation): Use va_copy
4510         instead of __va_copy in concat example.
4511
4512 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
4513
4514         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
4515         (__sendto): Use create_address_port.  Initialize APORT and deallocate
4516         it if not null.
4517
4518         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
4519         with O_NOLINK passed to __file_name_lookup.
4520
4521         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
4522         with O_NOLINK passed to __file_name_lookup.
4523
4524         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
4525         negative N or less than NGIDS.
4526
4527         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
4528         type to string_t.  Set ERANGE as errno and return it if NAME is not big
4529         enough.  Use memcpy instead of strncpy.
4530
4531 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4532
4533         * elf/Makefile (check-data): Remove.
4534         (localplt.data): New vpath directive.
4535         ($(objpfx)check-localplt.out): Use localplt.data from vpath
4536         instead of $(check-data).
4537         * scripts/data/localplt-generic.data: Move to ...
4538         * sysdeps/generic/localplt.data: ... here.
4539         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
4540         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
4541         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
4542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
4543         ... here.
4544         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
4545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
4546         ... here.
4547         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
4548         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
4549         ... here.
4550         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
4551         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
4552         ... here.
4553         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
4554         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
4555         ... here.
4556         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
4557         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
4558         ... here.
4559
4560 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4561
4562         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
4563         PPC32 and PPC64 files.
4564         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
4565         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
4566
4567 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4568
4569         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
4570         __makecontext_ret to ...
4571         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
4572         ... here and call exit if uc_link is NULL.  New file.
4573         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
4574         __makecontext_ret.S.
4575         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
4576         __makecontext_ret to ...
4577         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
4578         ... here and call exit if uc_link is NULL.  New file.
4579         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
4580         __makecontext_ret.S.
4581
4582 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4583
4584         * elf/elf.h (R_390_IRELATIVE): New definition.
4585         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
4586         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
4587         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
4588         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4589         (elf_machine_lazy_rel): Likewise.
4590         * sysdeps/s390/dl-irel.h: New file.
4591         * sysdeps/s390/s390-64/memcpy.S: New asm code.
4592         * sysdeps/s390/s390-64/memset.S: New asm code.
4593         * sysdeps/s390/s390-64/memcmp.S: New asm code.
4594         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
4595         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
4596         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
4597         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
4598         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
4599         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
4600         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
4601         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
4602         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
4603         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
4604         * sysdeps/s390/s390-32/memcpy.S: New asm code.
4605         * sysdeps/s390/s390-32/memset.S: New asm code.
4606         * sysdeps/s390/s390-32/memcmp.S: New asm code.
4607
4608 2012-07-17  Marek Polacek  <polacek@redhat.com>
4609
4610         [BZ #14349]
4611         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
4612         * sysdeps/s390/s390-64/configure.in: Likewise.
4613         * sysdeps/sparc/configure.in: Likewise.
4614         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
4615         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
4616         * sysdeps/i386/configure.in: Likewise.
4617         * sysdeps/x86_64/configure.in: Likewise.
4618         * sysdeps/sh/configure.in: Likewise.
4619         * sysdeps/s390/s390-32/configure: Regenerated.
4620         * sysdeps/s390/s390-64/configure: Likewise.
4621         * sysdeps/x86_64/configure: Likewise.
4622         * sysdeps/sh/configure: Likewise.
4623         * sysdeps/powerpc/powerpc64/configure: Likewise.
4624         * sysdeps/powerpc/powerpc32/configure: Likewise.
4625         * sysdeps/sparc/configure: Likwise.
4626         * sysdeps/i386/configure: Likewise.
4627
4628         * elf/dl-open.c: Comment fixes.
4629
4630 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
4631
4632         * Makefile [CXX] (check-data): Remove.
4633         [CXX] (c++-types.data): New vpath directive.
4634         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
4635         vpath.  Do not allow for C++ type data being missing.
4636         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
4637         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
4638         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
4639         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
4640         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
4641         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
4642         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
4643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
4644         ... here.
4645         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
4646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
4647         ... here.
4648         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
4649         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
4650         ... here.
4651         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
4652         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
4653         ... here.
4654         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
4655         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
4656         ... here.
4657         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
4658         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
4659         ... here.
4660         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
4661         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
4662         ... here.
4663         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
4664         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
4665
4666         * elf/tls-macros.h (TLS_LE): Move architecture-specific
4667         definitions to architecture-specific files.
4668         (TLS_IE): Likewise.
4669         (TLS_LD): Likewise.
4670         (TLS_GD): Likewise.
4671         * sysdeps/i386/tls-macros.h: New file.
4672         * sysdeps/powerpc/tls-macros.h: Likewise.
4673         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
4674         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
4675         * sysdeps/sh/tls-macros.h: Likewise.
4676         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
4677         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
4678         * sysdeps/x86_64/tls-macros.h: Likewise.
4679
4680 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4681
4682         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
4683         zero value for regular exit case.
4684
4685         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4686         (__start_context): Preserve zero value for regular exit case.
4687
4688 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4689             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4690
4691         * manual/setjmp.texi (setcontext): Clarify normal process
4692         termination when uc_link is the null pointer.
4693         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
4694         exit call.
4695
4696 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
4697
4698         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
4699         preprocessor.  Test for each exception mask separately.
4700
4701 2012-07-16  Andreas Jaeger  <aj@suse.de>
4702
4703         * po/ru.po: Update from translation team.
4704
4705 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
4706
4707         * conform/data/string.h-data (NULL): Use macro-constant.  Require
4708         equal to 0.
4709         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4710         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4711         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
4712         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
4713         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4714
4715 2012-07-13  Andreas Jaeger  <aj@suse.de>
4716
4717         * po/fr.po: Update from translation team.
4718
4719 2012-07-12  Marek Polacek  <polacek@redhat.com>
4720
4721         [BZ #14173]
4722         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4723         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4724         loop condition.
4725
4726 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4727
4728         [BZ #13717]
4729         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4730         Change to 2.4.1 where previously 2.4.0.
4731         * sysdeps/unix/sysv/linux/configure: Regenerated.
4732         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4733         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4734         version.
4735         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4736         (__ASSUME_AT_CLKTCK): Remove.
4737         (__ASSUME_AT_PAGESIZE): Likewise.
4738         (__ASSUME_AT_XID): Likewise.
4739         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4740         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4741         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4742         unconditionally.
4743         (HAVE_AUX_PAGESIZE): Likewise.
4744         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4745         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4746         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4747
4748 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4749
4750         [BZ #14307]
4751         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4752         the temporary buffer used to invoke __gethostbyname2_r,
4753         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4754         host_data / struct gaih_addrtuple.
4755         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4756         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4757         header file nss/nsswitch.h.
4758         * nss/nsswitch.h (global scope): Add definition of implementation
4759         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4760         resolv/nss_dns/dns-host.c).
4761
4762 2012-07-11  Andreas Jaeger  <aj@suse.de>
4763
4764         * po/fr.po: Update from translation team.
4765
4766         * po/sv.po: Update from translation team
4767         * po/fr.po: Another update from translation team.
4768
4769 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4770
4771         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4772         for subnormals or multiply small sinh result by itself.
4773         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4774         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4775
4776 2012-07-11  David S. Miller  <davem@davemloft.net>
4777
4778         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4779
4780 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4781
4782         [BZ #14347]
4783         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4784         (INTERNAL_MARK): Shift it here.
4785
4786 2012-07-10  Marek Polacek  <polacek@redhat.com>
4787
4788         [BZ #14151]
4789         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4790         libc_cv_asm_global_directive with .globl.
4791         * configure: Regenerated.
4792         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4793         with .globl.
4794         * sysdeps/i386/configure: Regenerated.
4795         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4796         with .globl.
4797         * sysdeps/x86_64/configure: Regenerated.
4798         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4799         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4800         * elf/tst-unique2mod2.c: Likewise.
4801         * elf/tst-unique2mod1.c: Likewise.
4802         * elf/tst-unique1mod2.c: Likewise.
4803         * elf/tst-unique1mod1.c: Likewise.
4804         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4805         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4806         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4807         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4808         * sysdeps/mach/sysdep.h: Likewise.
4809         * sysdeps/i386/sysdep.h: Likewise.
4810         * sysdeps/i386/i386-mcount.S: Likewise.
4811         * sysdeps/x86_64/_mcount.S: Likewise.
4812         * sysdeps/x86_64/sysdep.h: Likewise.
4813         * sysdeps/sh/_mcount.S: Likewise.
4814         * sysdeps/sh/sysdep.h: Likewise.
4815         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4816         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4817         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4818         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4819         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4820         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4821         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4822         * locale/localeinfo.h: Likewise.
4823         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4824         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4825
4826 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4827
4828         [BZ #14336]
4829         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4830         system".
4831         * manual/message.texi (The Uniforum approach): Likewise.
4832         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4833         (glibc iconv Implementation): Likewise.
4834
4835 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4836
4837         [BZ #14337]
4838         * math/s_clog.c (__clog): Avoid scaling a value down where that
4839         could result in underflow.
4840         * math/s_clog10.c (__clog10): Likewise.
4841         * math/s_clog10f.c (__clog10f): Likewise.
4842         * math/s_clog10l.c (__clog10l): Likewise.
4843         * math/s_clogf.c (__clogf): Likewise.
4844         * math/s_clogl.c (__clogl): Likewise.
4845         * math/libm-test.inc (clog_test): Add more tests.
4846         (clog10_test): Likewise.
4847         * sysdeps/i386/fpu/libm-test-ulps: Update.
4848         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4849
4850 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4851
4852         [BZ #14283]
4853         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4854         by 7 not 8 to examine high bit of fractional part.
4855
4856         [BZ #14042]
4857         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4858         for call to __mcount_internal.
4859         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4860         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4861         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4862
4863 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4864
4865         [BZ #14154]
4866         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4867         approximation for values within 0x1p-13f of an odd multiple of
4868         pi/4.
4869         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4870         exception.  Add more tests.
4871         * sysdeps/i386/fpu/libm-test-ulps: Update.
4872
4873         [BZ #6778]
4874         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4875         inputs and return -1 for them.  Do not check for +Inf in case not
4876         reachable for +Inf.
4877         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4878         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4879         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4880         and return -1 for them.  Do not check for +Inf in case not
4881         reachable for +Inf.
4882         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4883         define.
4884         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4885         and return -1 for them.  Do not check for +Inf in case not
4886         reachable for +Inf.
4887         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4888         spurious underflow.
4889         * sysdeps/i386/fpu/libm-test-ulps: Update.
4890         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4891
4892 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4893
4894         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4895
4896 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4897
4898         [BZ #14157]
4899         [BZ #14331]
4900         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4901         could result in spurious underflow.  Scale down values above
4902         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4903         * math/s_csqrtf.c (__csqrtf): Likewise.
4904         * math/s_csqrtl.c (__csqrtl): Likewise.
4905         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4906         spurious underflow.
4907         * sysdeps/i386/fpu/libm-test-ulps: Update.
4908         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4909
4910 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4911
4912         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4913         xopen-msg.sed.
4914         * catgets/xopen-msg.awk: New file.
4915         * catgets/xopen-msg.sed: Removed.
4916
4917         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4918         po2text.sed.
4919         * intl/po2test.awk: New file.
4920         * intl/po2test.sed: Removed.
4921
4922 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4923
4924         [BZ #14328]
4925         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4926         or multiply small sinh result by itself.
4927         * math/s_ctanf.c (__ctanf): Likewise.
4928         * math/s_ctanh.c (__ctanh): Likewise.
4929         * math/s_ctanhf.c (__ctanhf): Likewise.
4930         * math/s_ctanhl.c (__ctanhl): Likewise.
4931         * math/s_ctanl.c (__ctanl): Likewise.
4932         * math/libm-test.inc (ctan_test_tonearest): New function.
4933         (ctan_test_towardzero): Likewise.
4934         (ctan_test_downward): Likewise.
4935         (ctan_test_upward): Likewise.
4936         (ctanh_test_tonearest): Likewise.
4937         (ctanh_test_towardzero): Likewise.
4938         (ctanh_test_downward): Likewise.
4939         (ctanh_test_upward): Likewise.
4940         (main): Call these new functions.
4941         * sysdeps/i386/fpu/libm-test-ulps: Update.
4942         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4943
4944 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4945
4946         * .gitignore: Delete /ports entry.
4947
4948 2012-07-03  Andreas Jaeger  <aj@suse.de>
4949
4950         * po/bg.po: Update from translation team.
4951         * po/cs.po: Likewise.
4952         * po/de.po: Likewise.
4953         * po/hr.po: Likewise.
4954         * po/nl.pl: Likewise.
4955         * po/pl.po: Likewise.
4956         * po/vi.po: Likewise.
4957
4958 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4959
4960         * Makeconfig [!+link] (+link-before-libc): New variable.
4961         [!+link] (+link-after-libc): Likewise.
4962         [!+link] (+link-tests): Likewise.
4963         [!+link] (+link): Define in terms of $(+link-before-libc) and
4964         $(+link-after-libc).
4965         [!+link-static] (+link-static-before-libc): New variable.
4966         [!+link-static] (+link-static-after-libc): Likewise.
4967         [!+link-static] (+link-static-tests): Likewise.
4968         [!+link-static] (+link-static): Define in terms of
4969         $(+link-static-before-libc) and $(+link-static-after-libc).
4970         [build-shared] (link-libc-before-gnulib): New variable.
4971         [build-shared] (link-libc-tests): Likewise.
4972         [build-shared] (link-libc): Define in terms of
4973         $(link-libc-before-gnulib).
4974         [!build-shared] (link-libc-tests): New variable.
4975         (link-libc-static-tests): New variable.
4976         [!gnulib] (gnulib-arch): New variable.
4977         [!gnulib] (gnulib-tests): Likewise.
4978         [!gnulib] (static-gnulib-arch): Likewise.
4979         [!gnulib] (static-gnulib-tests): Likewise.
4980         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4981         Define with "=" instead of ":=".
4982         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4983         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4984         * Rules (binaries-all-notests): New variable.
4985         (binaries-all-tests): Likewise.
4986         (binaries-static-notests): Likewise.
4987         (binaries-static-tests): Likewise.
4988         (binaries-all): Define using $(binaries-all-notests) and
4989         $(binaries-all-tests).
4990         (binaries-static): Define using $(binaries-static-notests) and
4991         $(binaries-static-tests).
4992         (binaries-shared-tests): New variable.
4993         (binaries-shared-notests): Likewise.
4994         (binaries-shared): Remove variable.
4995         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4996         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4997         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4998         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4999         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5000         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5001         * elf/Makefile (sln-modules): New variable.
5002         (extra-objs): Add $(sln-modules:=.o).
5003         (ldconfig-modules): Add static-stubs.
5004         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5005         * elf/static-stubs.c: New file.
5006
5007         [BZ #14283]
5008         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5009         by 7 not 8 to examine high bit of fractional part.  Use volatile
5010         variables when splitting into final array of floats if
5011         __FLT_EVAL_METHOD__ != 0.
5012         * math/libm-test.inc (cos_test): Add another test.
5013         (sin_test): Likewise.
5014         * sysdeps/i386/fpu/libm-test-ulps: Update.
5015
5016         [BZ #14273]
5017         * math/libm-test.inc (cosh_test): Add more tests.
5018
5019         * version.h (RELEASE): Set to "development".
5020         (VERSION): Set to "2.16.90".
5021
5022 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5023
5024         * NEWS: Update copyright. Remove last-updated date.
5025         Mention math library bug fixes and timezone data changes.
5026         * README: Mention GNU/Hurd, x32, and HPPA support status.
5027
5028 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5029
5030         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5031
5032 2012-06-27  Andreas Jaeger  <aj@suse.de>
5033
5034         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5035
5036 2012-06-25  Andreas Jaeger  <aj@suse.de>
5037
5038         * sysdeps/s390/fpu/libm-test-ulps: Update.
5039
5040 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5041             Thomas Schwinge  <thomas@codesourcery.com>
5042
5043         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5044         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5045         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5046         fanotify_mark.
5047
5048 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5049
5050         * sysdeps/mach/start.c: Remove file.
5051         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5052         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5053         * sysdeps/sh/init-first.c: Likewise.
5054
5055         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5056         registers for frame unwinding purposes, add CFI directives.
5057         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5058         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5059         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5060         Likewise.
5061
5062         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5063         __fortify_fail returning.
5064         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5065
5066         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5067         sysdeps/sh/____longjmp_chk.S.
5068         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5069         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5070         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5071         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5072
5073         * sysdeps/sh/abort-instr.h: New file.
5074         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5075         process in case exit returns.
5076
5077         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5078         initialize the GOT register before use.
5079
5080         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5081         calculation of ARGC > 4.
5082
5083         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5084         meaningful names to some local labels.
5085
5086 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5087             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5088
5089         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5090         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5091         (__arch_compare_and_exchange_val_16_acq): Likewise.
5092         (__arch_compare_and_exchange_val_32_acq): Likewise.
5093         (atomic_exchange_and_add): Fix gUSA sequence.
5094         (atomic_add): Likewise.
5095         (atomic_add_negative): Likewise.
5096         (atomic_add_zero): Likewise.
5097         (atomic_bit_test_set): Likewise.
5098
5099 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5100
5101         [BZ #13579]
5102         * include/link.h (struct link_map): Add l_free_initfini.
5103         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5104         l_initfini.
5105         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5106         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5107         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5108         set.
5109
5110 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5111
5112         * configure.in: Use AC_LANG_SOURCE.
5113         * configure: Regenerate.
5114
5115 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5116
5117         * configure.in (libc_cv_localstatedir): New substituted variable.
5118         * configure: Regenerated.
5119         * config.make.in (localstatedir): New variable, substituted from
5120         libc_cv_localstatedir.
5121         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5122         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5123         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5124         * sysdeps/gnu/configure: Regenerated.
5125
5126 2012-06-21  Jeff Law  <law@redhat.com>
5127
5128         [BZ #14277]
5129         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5130         free.  Simplify list management for _LIBC case.
5131
5132 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5133
5134         [BZ #14273]
5135         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5136         Clear sign bit of 64-bit integer value before comparing against
5137         overflow value.
5138
5139         * sysdeps/mach/configure: Regenerated.
5140
5141 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5142
5143         [BZ #14278]
5144         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5145
5146 2012-06-21  Jeff Law  <law@redhat.com>
5147
5148         [BZ #13882]
5149         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5150         uint16_t for elements in the "seen" array to avoid char overflows.
5151         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5152         * elf/dl-open.c (dl_open_worker): Likewise.
5153
5154 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5155
5156         * scripts/list-sources.sh: Scan PORTS for translations.
5157         * po/libc.pot: Regenerated.
5158
5159 2012-06-21  Andreas Jaeger  <aj@suse.de>
5160
5161         [BZ #12194]
5162         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5163         warning.
5164         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5165         * bits/byteswap-16.h (__bswap_16): Likewise.
5166         * bits/byteswap.h (__bswap_constant_16): Likewise.
5167
5168 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5169
5170         [BZ #14117]
5171         * sysdeps/i386/fpu_control.h: Removed.
5172         * sysdeps/x86_64/fpu_control.h: Moved to ...
5173         * sysdeps/x86/fpu_control.h: Here.
5174
5175         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5176         (_FPU_SETCW): Likewise.
5177
5178 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5179
5180         [BZ #14117]
5181         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5182         * sysdeps/x86/fpu/bits/mathinline.h: This.
5183         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5184
5185         [BZ #14050]
5186         [BZ #14117]
5187         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5188         functions if __x86_64__ is defined.
5189
5190 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5191
5192         * string/endian.h: Add !__ASSEMBLER__ condition for including
5193         conversion interfaces.
5194
5195 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5196
5197         [BZ #14241]
5198         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5199         of ABS(x) in calculating zero to negative powers other than odd
5200         integers.
5201         * math/libm-test.inc (pow_test): Add more tests.
5202
5203 2012-06-15  Andreas Jaeger  <aj@suse.de>
5204
5205         * manual/contrib.texi (Contributors): Update entry of Liubov
5206         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5207         Machado Filho.
5208
5209 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5210
5211         * string/string.h: Add __wur to GNU version of strerror_r.
5212
5213 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5214
5215         [BZ #14229]
5216         * string/Makefile (tests): Add tst-strtok_r.
5217         * string/tst-strtok_r.c: New file.
5218         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5219         RAX_LP/RDX_LP on SAVE_PTR.
5220
5221 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5222
5223         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5224
5225 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5226
5227         * libm_test.inc (csqrt_test): Allow more spurious underflow
5228         exceptions.
5229         (j0_test): Likewise.
5230         (j1_test): Likewise.
5231         (y0_test): Likewise.
5232         (y1_test): Likewise.
5233
5234 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5235
5236         * po/Makefile (libc.pot): Use UTF-8 charset.
5237
5238 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5239
5240         [BZ #14210]
5241         Suppress sign-conversion warning from FD_SET.
5242         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5243         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5244         not unsigned long int.
5245         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5246
5247 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5248
5249         [BZ #14050]
5250         [BZ #14117]
5251         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5252         __extern_always_inline instead of __extern_inline.
5253         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5254         (__signbit): Likewise.
5255         (__signbitl): Support C++ namespace.
5256         (lrintf): New inline function.
5257         (lrint): Likewise.
5258         (llrintf): Likewise.
5259         (llrint): Likewise.
5260         (fmaxf): Likewise.
5261         (fmax): Likewise.
5262         (fminf): Likewise.
5263         (fmin): Likewise.
5264         (rint): Likewise.
5265         (rintf): Likewise.
5266         (ceil): Likewise.
5267         (ceilf): Likewise.
5268         (floor): Likewise.
5269         (floorf): Likewise.
5270         (nearbyint): Likewise.
5271         (nearbyintf): Likewise.
5272
5273 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5274
5275         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5276         non-default versions.
5277
5278 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5279
5280         [BZ #14218]
5281         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5282
5283 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5284
5285         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5286         (FE_UPWARD, FE_DOWNWARD): Don't define.
5287         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5288         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5289
5290         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5291         reading it.
5292         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5293         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5294
5295 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5296
5297         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5298         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5299         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5300         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5301
5302 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5303
5304         [BZ #14117]
5305         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5306         * sysdeps/i386/fpu/Implies: New file.
5307         * sysdeps/x86_64/fpu/Implies: Likewise.
5308         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5309         * sysdeps/x86/fpu/bits/fenv.h: This.
5310
5311         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5312         __SSE_MATH__.
5313
5314 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5315
5316         [BZ #14134]
5317         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5318         character 0xffff that matches the last element of the
5319         conversion table.
5320
5321 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5322
5323         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5324         fmodl commit.
5325
5326 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5327
5328         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5329         values higher than 25.6283.
5330
5331 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5332
5333         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5334         subnormal exponent extraction and add some __builtin_expect.
5335         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
5336         Fix for subnormal mantissa calculation.
5337
5338 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
5339
5340         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
5341         cpu2 is -1 and errno is not ENOSYS.
5342
5343 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5344
5345         [BZ #14117]
5346         * sysdeps/i386/i486/bits/string.h: Renamed to ...
5347         * sysdeps/x86/bits/string.h: This.
5348         * sysdeps/x86_64/bits/string.h: Removed.
5349
5350         * sysdeps/i386/i486/bits/string.h: Define inline functions only
5351         if not compiling for x86-64, but compiling for >= i486.
5352
5353         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
5354         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
5355
5356         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
5357         New macro from Linux kernel 3.4.0.
5358         (FP_XSTATE_MAGIC2): Likewise.
5359         (FP_XSTATE_MAGIC2_SIZE): Likewise.
5360         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
5361         (struct _fpx_sw_bytes): New struct.
5362         (struct _xsave_hdr): Likewise.
5363         (struct _ymmh_state): Likewise.
5364         (struct _xstate): Likewise.
5365
5366         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
5367         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
5368         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
5369         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
5370         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
5371         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
5372
5373         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
5374         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
5375         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
5376         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
5377         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
5378         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
5379
5380 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5381
5382         [BZ #13743]
5383         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
5384         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
5385         (sysdep_headers): Include sys/platform/ppc.h.
5386         * sysdeps/powerpc/test-gettimebase.c: Test for
5387         __ppc_get_timebase() to catch future ISA opcode/insn changes.
5388         * manual/Makefile (appendices): Include platform.texi.
5389         * manual/contrib.texi (Contributors): Update @node pointers.
5390         * manual/maint.texi (Maintenance): Likewise.
5391         (Platform): New node.
5392         * manual/platform.texi: New file.  Document the new features.
5393
5394 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5395             Jakub Jelinek  <jakub@redhat.com>
5396
5397         [BZ #14188]
5398         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
5399         where __builtin_expect is unavailable.
5400
5401 2012-06-03  David S. Miller  <davem@davemloft.net>
5402
5403         * stdlib/longlong.h: Updated from GCC.
5404
5405 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
5406
5407         [BZ #14042]
5408         * sysdeps/powerpc/powerpc32/mcount.c: New file.
5409         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
5410         __mcount_internal.
5411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
5412         (GLIBC_2.16): Likewise.
5413
5414 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5415
5416         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
5417
5418 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5419
5420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
5421         (default-abi): New variable.
5422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
5423         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
5424         variable.
5425         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
5426         Likewise.
5427         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
5428         Likewise.
5429         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
5430         Likewise.
5431
5432         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
5433         definition.  Document in comment.
5434
5435 2012-06-01  David S. Miller  <davem@davemloft.net>
5436
5437         * stdlib/longlong.h: Updated from GCC.
5438
5439 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5440
5441         [BZ #14117]
5442         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
5443         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
5444         sys/debugreg.h sys/io.h here.
5445         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
5446         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
5447         sys/io.h.
5448         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
5449         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
5450         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
5451         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
5452         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
5453         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
5454
5455         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
5456         Define only if __x86_64__ is defined.
5457
5458 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5459
5460         [BZ #14048]
5461         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
5462         Use int64_t for variable i.
5463         * math/libm-test.inc (fmod_test): Add more tests.
5464
5465         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
5466         z computation is not scheduled after fetestexcept.
5467         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
5468         Use math_force_eval instead of asm to ensure calculation scheduled
5469         before exception test.
5470         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
5471         Ensure a1 + u.d computation is not scheduled after fetestexcept.
5472
5473 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
5474
5475         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
5476         computation is not scheduled after fetestexcept.
5477
5478 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5479
5480         [BZ #14117]
5481         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
5482         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
5483
5484 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5485
5486         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
5487         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5488
5489 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5490
5491         [BZ #14117]
5492         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
5493         <bits/wordsize.h>.
5494         (__WCHAR_MIN): Support __WORDSIZE == 64.
5495         (__WCHAR_MAX): Likewise.
5496
5497         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
5498         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
5499
5500         [BZ #14183]
5501         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
5502         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
5503
5504         [BZ #14117]
5505         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
5506         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
5507
5508         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
5509         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
5510
5511         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
5512         Defined to 1 if __x86_64__ isn't defined.
5513         (_STAT_VER_LINUX_OLD): New.
5514         (st_atime): Remove duplicate.
5515         (st_mtime): Likewise.
5516         (st_ctime): Likewise.
5517
5518 2012-05-31  David S. Miller  <davem@davemloft.net>
5519
5520         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
5521         entries.
5522
5523 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
5524
5525         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
5526         gen-libm-test.pl.
5527
5528         [BZ #14132]
5529         * elf/dl-reloc.c: Include <_itoa.h>.
5530         (_dl_reloc_bad_type): Remove use of INTUSE.
5531         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
5532         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
5533         * stdio-common/psiginfo.c (psiginfo): Likewise.
5534         * stdio-common/psignal.c (psignal): Likewise.
5535         * string/strsignal.c (strsignal): Likewise.
5536         * include/signal.h (_sys_siglist): Declare hidden proto.
5537         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
5538         INTVARDEF with libc_hidden_data_def.
5539         * stdio-common/itoa-udigits.c: Likewise.
5540         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
5541         (_itoa_lower_digits_internal): Remove declaration.
5542         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
5543         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
5544         (_sys_sigabbrev_internal): Remove aliases.
5545         (_sys_siglist): Define hidden alias.
5546
5547 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5548
5549         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5550         bits/sysctl.h.
5551
5552 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5553
5554         [BZ #14117]
5555         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
5556         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
5557
5558         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
5559         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
5560         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
5561         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
5562         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
5563         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
5564
5565         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
5566         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
5567         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
5568
5569         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
5570         with __addr.
5571         (insw): Likewise.
5572         (insl): Likewise.
5573         (outsb): Likewise.
5574         (outsw): Likewise.
5575         (outsl): Likewise.
5576
5577         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
5578         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
5579         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
5580
5581         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
5582         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
5583         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
5584         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
5585         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
5586         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
5587
5588         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
5589         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
5590
5591         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
5592         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
5593
5594         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
5595         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
5596         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
5597
5598         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
5599         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
5600         to ...
5601         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
5602
5603         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
5604         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
5605         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
5606
5607         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
5608         for x86-64.
5609         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
5610
5611 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
5612
5613         * math/math.h (M_El): Use two more decimal places.
5614         (M_LOG2El): Likewise.
5615         (M_LOG10El): Likewise.
5616         (M_LN2l): Likewise.
5617         (M_LN10l): Likewise.
5618         (M_PIl): Likewise.
5619         (M_PI_2l): Likewise.
5620         (M_PI_4l): Likewise.
5621         (M_1_PIl): Likewise.
5622         (M_2_PIl): Likewise.
5623         (M_2_SQRTPIl): Likewise.
5624         (M_SQRT2l): Likewise.
5625         (M_SQRT1_2l): Likewise.
5626
5627 2012-05-31  David S. Miller  <davem@davemloft.net>
5628
5629         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
5630         values between float registers.
5631         * sysdeps/sparc/sparc64/memset.S: Likewise.
5632         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5633
5634 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
5635
5636         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
5637         -D_FORTIFY_SOURCE=1.
5638         (CPPFLAGS-tst-longjmp_chk.c): Define.
5639         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
5640         (CPPFLAGS-tst-longjmp_chk2.c): Define.
5641         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
5642         CFLAGS-tst-wchar-h.c.
5643
5644 2012-05-31  Marek Polacek  <polacek@redhat.com>
5645
5646         [BZ #14132]
5647         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
5648         __endmntent_internal): Remove declaration.
5649         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
5650         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
5651         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
5652
5653 2012-05-30  David S. Miller  <davem@davemloft.net>
5654
5655         * sysdeps/sparc/sparc32/soft-fp/q_util.c
5656         (___Q_simulate_exceptions): Use real FP ops rather than writing
5657         into the %fsr.
5658         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
5659         Likewise.
5660
5661 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5662
5663         [BZ #14117]
5664         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
5665         * sysdeps/x86/bits/xtitypes.h: This.
5666
5667         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
5668         * sysdeps/x86/bits/wordsize.h: This.
5669
5670         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
5671         * sysdeps/x86/bits/huge_vall.h: This.
5672
5673         * sysdeps/i386/bits/select.h: Removed.
5674         * sysdeps/x86_64/bits/select.h: Renamed to ...
5675         * sysdeps/x86/bits/select.h: This.
5676
5677         * sysdeps/i386/bits/setjmp.h: Removed.
5678         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
5679         * sysdeps/x86/bits/setjmp.h: This.
5680
5681         * sysdeps/i386/bits/mathdef.h: Removed.
5682         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
5683         * sysdeps/x86/bits/mathdef.h: This.
5684
5685 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5686
5687         [BZ #14132]
5688         * include/sys/socket.h (__connect_internal)
5689         (__libc_sa_len_internal): Remove declaration.
5690         (__connect, __libc_sa_len): Declare hidden_proto.
5691         (SA_LEN): Remove use of INTUSE.
5692         * socket/connect.c: Add libc_hidden_def.
5693         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
5694         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
5695         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
5696         alias.
5697         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5698         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5699         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
5700         of adding _internal alias.
5701
5702 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5703
5704         [BZ #14117]
5705         * sysdeps/i386/bits/link.h: Removed.
5706         * sysdeps/i386/bits/linkmap.h: Likewise.
5707         * sysdeps/x86_64/bits/link.h: Renamed to ...
5708         * sysdeps/x86/bits/link.h: This.
5709         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
5710         * sysdeps/x86/bits/linkmap.h: This.
5711
5712         * sysdeps/i386/bits/endian.h: Removed.
5713         * sysdeps/x86_64/bits/endian.h: Renamed to ...
5714         * sysdeps/x86/bits/endian.h: This.
5715
5716         * sysdeps/i386/bits/byteswap.h: Removed.
5717         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5718         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
5719         * sysdeps/x86/bits/byteswap.h: This.
5720         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5721         * sysdeps/x86/bits/byteswap-16.h: This.
5722         * sysdeps/i386/Implies: Add x86.
5723         * sysdeps/x86_64/Implies: Likewise.
5724
5725 2012-05-30  David S. Miller  <davem@davemloft.net>
5726
5727         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5728         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5729         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5730         (FP_TRAPPING_EXCEPTIONS): Define.
5731         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5732         (FP_TRAPPING_EXCEPTIONS): Define.
5733         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5734         subnormals only when inexact has been signalled or underflow
5735         exceptions are enabled.
5736         (_FP_PACK_CANONICAL): Likewise.
5737
5738 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5739
5740         [BZ #14183]
5741         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5742         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5743
5744 2012-05-30  Richard Henderson  <rth@twiddle.net>
5745
5746         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5747         with #ifndef NOT_IN_libc.
5748
5749         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5750         marked to avoid plt entry.
5751
5752 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5753
5754         [BZ #14112]
5755         * Makeconfig (default-abi): New macro.
5756         (abi-includes): Likewise.
5757         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5758         $(abi-$(default-abi)-lib-soname) for soname if defined.
5759         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5760         abi-variants.
5761         * Makefile (installed-stubs): Likewise.
5762         * include/stubs-biarch.h: Removed.
5763         * scripts/lib-names.awk: Only handle one library at a time.
5764         * scripts/soversions.awk: Remove WORDSIZE support.
5765         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5766         entries.
5767         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5768         Removed.
5769         (syscall-list-default-condition): Likewise.
5770         (syscall-list-default-condition): Likewise.
5771         (syscall-list-includes): Likewise.
5772         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5773         syscall-list-* with abi-*.  Handle undefined abi-variants.
5774         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5775         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5776         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5777         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5778         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5779         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5780         Removed.
5781         (syscall-list-32-options): Likewise.
5782         (syscall-list-32-condition): Likewise.
5783         (syscall-list-64-options): Likewise.
5784         (syscall-list-64-condition): Likewise.
5785         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5786         macro.
5787         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5788         Renamed to ...
5789         (abi-*): This.
5790         (abi-64-ld-soname): New macro.
5791         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5792         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5793         Renamed to ...
5794         (abi-*): This.
5795         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5796         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5797
5798 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5799
5800         * sysdeps/unix/sysv/linux/kernel-features.h
5801         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5802         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5803         include <kernel-features.h>.
5804         [!__NR_ftruncate64]: Remove conditional code.
5805         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5806         [__NR_ftruncate64]: Make code unconditional.
5807         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5808         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5809         include <kernel-features.h>.
5810         [!__NR_ftruncate64]: Remove conditional code.
5811         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5812         [__NR_ftruncate64]: Make code unconditional.
5813         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5815         include <kernel-features.h>.
5816         [!__NR_ftruncate64]: Remove conditional code.
5817         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5818         [__NR_ftruncate64]: Make code unconditional.
5819         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5821         include <kernel-features.h>.
5822         [!__NR_ftruncate64]: Remove conditional code.
5823         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5824         [__NR_ftruncate64]: Make code unconditional.
5825         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5826
5827         * configure.in (libc_cv_fpie): Weaken to a compile test using
5828         LIBC_TRY_CC_OPTION.
5829         * configure: Regenerated.
5830
5831 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5832
5833         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5834         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5835         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5836         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5837         Refreshed.
5838         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5839         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5840         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5841         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5842         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5843         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5844         Refreshed.
5845
5846 2012-05-27  David S. Miller  <davem@davemloft.net>
5847
5848         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5849         (___Q_zero): New.
5850         (__Q_simulate_exceptions): Return void.  Change to simulate
5851         exceptions by writing into the %fsr.
5852         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5853         (__Qp_handle_exceptions): Likewise.
5854         (numbers): Delete.
5855         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5856         __Qp_handle_exceptions.
5857         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5858         __Qp_handle_exceptions.
5859         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5860         as unused and give dummy FP_RND_NEAREST initializer.
5861         (FP_INHIBIT_RESULTS): Define.
5862         (___Q_simulate_exceptions): Update declaration.
5863         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5864         formatting.
5865         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5866         as unused and give dummy FP_RND_NEAREST initializer.
5867         (__Qp_handle_exceptions): Update declaration.
5868         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5869         formatting.
5870
5871 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5872
5873         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5874         the temporary FPU control word.
5875         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5876         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5877         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5878         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5879         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5880         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5881         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5882         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5883         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5884         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5885         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5886
5887 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5888
5889         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5890         fields.
5891
5892 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5893
5894         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5895         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5896         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5897         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5898         Likewise.
5899         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5900         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5901         Likewise.
5902
5903 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5904
5905         * po/h.po: Update from translation team.
5906
5907 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5908
5909         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5910
5911         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5912         handling of denormals.
5913         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5914         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5915         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5916         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5917         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5918         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5919         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5920         Likewise.
5921
5922 2012-05-26  Marek Polacek  <polacek@redhat.com>
5923
5924         [BZ #14152]
5925         * math/libm-test.inc (fma_test): Don't always expect underflow
5926         exception.
5927
5928 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5929
5930         [BZ #12416]
5931         * elf/tst-execstack.c: Include stackinfo.h.
5932         (do_test): Adjust test case to ensure that pthread_getattr_np
5933         behaviour remains the same after marking stack executable.
5934
5935 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5936
5937         * sysdeps/unix/sysv/linux/kernel-features.h
5938         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5939         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5940         kernel-features.h.
5941         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5942         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5943         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5944         kernel-features.h.
5945         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5946         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5947
5948 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5949
5950         * configure.in: Define the default includes to being none.
5951         * configure: Regenerated.
5952
5953 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5954
5955         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5956         * sysdeps/x86_64/setjmp.S: Likewise.
5957         * sysdeps/i386/bsd-setjmp.S: Likewise.
5958         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5959         * sysdeps/i386/setjmp.S: Likewise.
5960         * sysdeps/i386/__longjmp.S: Likewise.
5961         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5962         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5963
5964         * include/stap-probe.h: New file.
5965         * configure.in: Handle --enable-systemtap.
5966         * configure: Regenerated.
5967         * config.h.in (USE_STAP_PROBE): New #undef.
5968         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5969         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5970         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5971
5972 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5973
5974         [BZ #13717]
5975         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5976         to 2.4.0 where earlier.
5977         * sysdeps/unix/sysv/linux/configure: Regenerated.
5978         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5979         <kernel-features.h>.
5980         [__ASSUME_32BITUIDS]: Make code unconditional.
5981         [!__ASSUME_32BITUIDS]: Remove conditional code.
5982         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5983         <kernel-features.h>.
5984         [__ASSUME_32BITUIDS]: Make code unconditional.
5985         [!__ASSUME_32BITUIDS]: Remove conditional code.
5986         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5987         [__ASSUME_32BITUIDS]: Make code unconditional.
5988         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5989         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5990         <kernel-features.h>.
5991         [__ASSUME_32BITUIDS]: Make code unconditional.
5992         [!__ASSUME_32BITUIDS]: Remove conditional code.
5993         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5994         <kernel-features.h>.
5995         [__ASSUME_32BITUIDS]: Make code unconditional.
5996         [!__ASSUME_32BITUIDS]: Remove conditional code.
5997         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5998         <kernel-features.h>.
5999         [__ASSUME_32BITUIDS]: Make code unconditional.
6000         [!__ASSUME_32BITUIDS]: Remove conditional code.
6001         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
6002         <kernel-features.h>.
6003         [__ASSUME_32BITUIDS]: Make code unconditional.
6004         [!__ASSUME_32BITUIDS]: Remove conditional code.
6005         * sysdeps/unix/sysv/linux/i386/getresgid.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/getresuid.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/getuid.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/lchown.c: Do not include
6018         <kernel-features.h>.
6019         [__ASSUME_32BITUIDS]: Make code unconditional.
6020         [!__ASSUME_32BITUIDS]: Remove conditional code.
6021         * sysdeps/unix/sysv/linux/i386/msgctl.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/semctl.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/setegid.c: Do not include
6030         <kernel-features.h>.
6031         [__NR_setresgid] (__setresgid): Do not declare.
6032         [__ASSUME_32BITUIDS]: Make code unconditional.
6033         [!__ASSUME_32BITUIDS]: Remove conditional code.
6034         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6035         <kernel-features.h>.
6036         [__NR_setresuid] (__setresuid): Do not declare.
6037         [__ASSUME_32BITUIDS]: Make code unconditional.
6038         [!__ASSUME_32BITUIDS]: Remove conditional code.
6039         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
6040         <kernel-features.h>.
6041         [__ASSUME_32BITUIDS]: Make code unconditional.
6042         [!__ASSUME_32BITUIDS]: Remove conditional code.
6043         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
6044         <kernel-features.h>.
6045         [__ASSUME_32BITUIDS]: Make code unconditional.
6046         [!__ASSUME_32BITUIDS]: Remove conditional code.
6047         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
6048         <kernel-features.h>.
6049         [__ASSUME_32BITUIDS]: Make code unconditional.
6050         [!__ASSUME_32BITUIDS]: Remove conditional code.
6051         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
6052         <kernel-features.h>.
6053         [__ASSUME_32BITUIDS]: Make code unconditional.
6054         [!__ASSUME_32BITUIDS]: Remove conditional code.
6055         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
6056         <kernel-features.h>.
6057         [__ASSUME_32BITUIDS]: Make code unconditional.
6058         [!__ASSUME_32BITUIDS]: Remove conditional code.
6059         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
6060         <kernel-features.h>.
6061         [__ASSUME_32BITUIDS]: Make code unconditional.
6062         [!__ASSUME_32BITUIDS]: Remove conditional code.
6063         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
6064         <kernel-features.h>.
6065         [__ASSUME_32BITUIDS]: Make code unconditional.
6066         [!__ASSUME_32BITUIDS]: Remove conditional code.
6067         * sysdeps/unix/sysv/linux/i386/setreuid.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/i386/setuid.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/i386/shmctl.c: Do not include
6076         <kernel-features.h>.
6077         [__ASSUME_32BITUIDS]: Make code unconditional.
6078         [!__ASSUME_32BITUIDS]: Remove conditional code.
6079         * sysdeps/unix/sysv/linux/kernel-features.h
6080         (__ASSUME_SETRESUID_SYSCALL): Remove.
6081         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6082         (__ASSUME_32BITUIDS): Likewise.
6083         (__ASSUME_LDT_WORKS): Likewise.
6084         (__ASSUME_O_DIRECTORY): Likewise.
6085         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6086         architecture but not kernel version.
6087         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6088         (__ASSUME_MMAP2_SYSCALL): Likewise.
6089         (__ASSUME_STAT64_SYSCALL): Likewise.
6090         (__ASSUME_IPC64): Likewise.
6091         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6092         <kernel-features.h>.
6093         [__ASSUME_32BITUIDS]: Make code unconditional.
6094         [!__ASSUME_32BITUIDS]: Remove conditional code.
6095         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6096         <kernel-features.h>.
6097         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6098         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6099         132096]: Remove conditional code.
6100         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6101         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6102         <kernel-features.h>.
6103         [__ASSUME_32BITUIDS]: Make code unconditional.
6104         [!__ASSUME_32BITUIDS]: Remove conditional code.
6105         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6106         <kernel-features.h>.
6107         [__ASSUME_32BITUIDS]: Make code unconditional.
6108         [!__ASSUME_32BITUIDS]: Remove conditional code.
6109         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6110         <kernel-features.h>.
6111         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6112         unconditional.
6113         (__setresgid): Do not declare.
6114         [__ASSUME_32BITUIDS]: Make code unconditional.
6115         [!__ASSUME_32BITUIDS]: Remove conditional code.
6116         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6117         <kernel-features.h>.
6118         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6119         unconditional.
6120         (__setresuid): Do not declare.
6121         [__ASSUME_32BITUIDS]: Make code unconditional.
6122         [!__ASSUME_32BITUIDS]: Remove conditional code.
6123         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6124         <kernel-features.h>.
6125         [__ASSUME_32BITUIDS]: Make code unconditional.
6126         [!__ASSUME_32BITUIDS]: Remove conditional code.
6127         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6128         <kernel-features.h>.
6129         [__ASSUME_32BITUIDS]: Make code unconditional.
6130         [!__ASSUME_32BITUIDS]: Remove conditional code.
6131
6132 2012-05-25  Richard Henderson  <rth@twiddle.net>
6133
6134         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6135         dl_hwcap to ifunc resolver.
6136         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6137         elf_ifunc_invoke.
6138         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6139         dl_hwcap to ifunc resolver.
6140         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6141
6142 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6143
6144         [BZ #14153]
6145         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6146         for |x| <= 2**-26, not 2**-57.
6147         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6148         exception.
6149
6150 2012-05-24  Jeff Law  <law@redhat.com>
6151
6152         * stdio-common/Makefile (tests): Add bug25.
6153         * stdio-common/bug25.c: New test.
6154
6155 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6156
6157         [BZ #13576]
6158         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6159         multiple of MALLOC_ALIGNMENT in size.
6160         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6161
6162 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6163
6164         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6165         Require >= 256.
6166         (FILENAME_MAX): Use macro-int-constant.
6167         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6168         (_IOFBF): Use macro-int-constant.
6169         (_IOLBF): Likewise.
6170         (_IONBF): Likewise.
6171         (SEEK_CUR): Likewise.
6172         (SEEK_END): Likewise.
6173         (SEEK_SET): Likewise.
6174         (TMP_MAX): Likewise.
6175         (EOF): Use macro-int-constant.  Require < 0.
6176         (NULL): Use macro-constant.  Require == 0.
6177         (stdin): Require type to be FILE *.
6178         (stdout): Likewise.
6179         (stderr): Likewise.
6180         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6181         macro-int-constant.
6182         (EXIT_SUCCESS): Likewise.
6183         (NULL): Use macro-constant.  Require == 0.
6184         (RAND_MAX): Use macro-int-constant.
6185         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6186         [C99-based standards] (strtof): Require function.
6187         [C99-based standards] (strtold): Likewise.
6188         [C99-based standards] (strtoll): Likewise.
6189         [C99-based standards] (strtoull): Likewise.
6190         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6191         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6192         [ISO || ISO99 || ISO11] (math.h): Likewise.
6193         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6194         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6195         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6196
6197 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6198
6199         [BZ #14132]
6200         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6201         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6202         * intl/dgettext.c (DCGETTEXT): Likewise.
6203         * intl/gettext.c (DCGETTEXT): Likewise.
6204         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6205         * posix/regex_internal.h (gettext): Likewise.
6206         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6207         Remove declaration.
6208         * include/argz.h (__argz_count_internal)
6209         (__argz_stringify_internal): Remove declaration.
6210         (__argz_count, __argz_stringify): Declare hidden proto.
6211         * intl/dcgettext.c: Remove use of INTDEF.
6212         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6213         * string/argz-stringify.c: Likewise.
6214         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6215         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6216         Declare hidden proto.
6217         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6218         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6219         Declare hidden proto.
6220         * include/stdio.h (__asprintf_internal): Don't declare.
6221         (__asprintf): Don't define as macro.  Declare hidden proto.
6222         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6223         (__fsetlocking): Declare hidden proto.
6224         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6225         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6226         hidden proto.
6227         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6228         (_IO_setlinebuf): Remove use of INTUSE.
6229         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6230         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6231         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6232         Remove declaration.
6233         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6234         (_IO_do_flush): Remove use of INTUSE.
6235         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6236         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6237         (_IO_adjust_column, _IO_least_wmarker)
6238         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6239         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6240         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6241         (_IO_default_doallocate, _IO_wdefault_doallocate)
6242         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6243         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6244         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6245         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6246         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6247         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6248         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6249         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6250         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6251         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6252         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6253         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6254         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6255         proto.
6256         (_IO_flush_all_internal, _IO_adjust_column_internal)
6257         (_IO_default_uflow_internal, _IO_default_finish_internal)
6258         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6259         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6260         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6261         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6262         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6263         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6264         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6265         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6266         (_IO_file_close_internal, _IO_file_close_it_internal)
6267         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6268         (_IO_file_init_internal, _IO_file_attach_internal)
6269         (_IO_file_fopen_internal, _IO_file_read_internal)
6270         (_IO_file_sync_internal, _IO_file_seek_internal)
6271         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6272         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6273         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6274         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6275         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6276         (_IO_list_all_internal, _IO_link_in_internal)
6277         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6278         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6279         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6280         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6281         (_IO_do_write_internal, _IO_padn_internal)
6282         (_IO_getline_info_internal, _IO_getline_internal)
6283         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6284         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6285         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6286         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6287         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6288         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6289         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6290         with libc_hidden_ver, remove use of INTUSE.
6291         * libio/genops.c: Likewise.
6292         * libio/freopen.c: Likewise.
6293         * libio/freopen64.c: Likewise.
6294         * libio/iofclose.c: Likewise.
6295         * libio/iofdopen.c: Likewise.
6296         * libio/iofflush.c: Likewise.
6297         * libio/iofflush_u.c: Likewise.
6298         * libio/iofgets.c: Likewise.
6299         * libio/iofgets_u.c: Likewise.
6300         * libio/iofopen.c: Likewise.
6301         * libio/iofopncook.c: Likewise.
6302         * libio/iofread.c: Likewise.
6303         * libio/iofread_u.c: Likewise.
6304         * libio/ioftell.c: Likewise.
6305         * libio/iofwrite.c: Likewise.
6306         * libio/iogetline.c: Likewise.
6307         * libio/iogets.c: Likewise.
6308         * libio/iogetwline.c: Likewise.
6309         * libio/iopadn.c: Likewise.
6310         * libio/iopopen.c: Likewise.
6311         * libio/ioseekoff.c: Likewise.
6312         * libio/ioseekpos.c: Likewise.
6313         * libio/iosetbuffer.c: Likewise.
6314         * libio/iosetvbuf.c: Likewise.
6315         * libio/ioungetc.c: Likewise.
6316         * libio/ioungetwc.c: Likewise.
6317         * libio/iovdprintf.c: Likewise.
6318         * libio/iovsprintf.c: Likewise.
6319         * libio/iovsscanf.c: Likewise.
6320         * libio/memstream.c: Likewise.
6321         * libio/obprintf.c: Likewise.
6322         * libio/oldfileops.c: Likewise.
6323         * libio/oldiofclose.c: Likewise.
6324         * libio/oldiofdopen.c: Likewise.
6325         * libio/oldiofopen.c: Likewise.
6326         * libio/oldiopopen.c: Likewise.
6327         * libio/oldstdfiles.c: Likewise.
6328         * libio/putc.c: Likewise.
6329         * libio/setbuf.c: Likewise.
6330         * libio/setlinebuf.c: Likewise.
6331         * libio/stdfiles.c: Likewise.
6332         * libio/strops.c: Likewise.
6333         * libio/vasprintf.c: Likewise.
6334         * libio/vscanf.c: Likewise.
6335         * libio/vsnprintf.c: Likewise.
6336         * libio/vswprintf.c: Likewise.
6337         * libio/wfiledoalloc.c: Likewise.
6338         * libio/wfileops.c: Likewise.
6339         * libio/wgenops.c: Likewise.
6340         * libio/wmemstream.c: Likewise.
6341         * libio/wstrops.c: Likewise.
6342         * libio/__fpurge.c: Likewise.
6343         * libio/__fsetlocking.c: Likewise.
6344         * assert/assert.c: Likewise.
6345         * debug/fgets_chk.c: Likewise.
6346         * debug/fgets_u_chk.c: Likewise.
6347         * debug/fread_chk.c: Likewise.
6348         * debug/fread_u_chk.c: Likewise.
6349         * debug/gets_chk.c: Likewise.
6350         * debug/obprintf_chk.c: Likewise.
6351         * debug/vasprintf_chk.c: Likewise.
6352         * debug/vdprintf_chk.c: Likewise.
6353         * debug/vsnprintf_chk.c: Likewise.
6354         * debug/vsprintf_chk.c: Likewise.
6355         * malloc/mtrace.c: Likewise.
6356         * misc/error.c: Likewise.
6357         * misc/syslog.c: Likewise.
6358         * stdio-common/asprintf.c: Likewise.
6359         * stdio-common/fxprintf.c: Likewise.
6360         * stdio-common/getw.c: Likewise.
6361         * stdio-common/isoc99_fscanf.c: Likewise.
6362         * stdio-common/isoc99_scanf.c: Likewise.
6363         * stdio-common/isoc99_vfscanf.c: Likewise.
6364         * stdio-common/isoc99_vscanf.c: Likewise.
6365         * stdio-common/isoc99_vsscanf.c: Likewise.
6366         * stdio-common/printf-prs.c: Likewise.
6367         * stdio-common/printf_fp.c: Likewise.
6368         * stdio-common/printf_fphex.c: Likewise.
6369         * stdio-common/printf_size.c: Likewise.
6370         * stdio-common/putw.c: Likewise.
6371         * stdio-common/scanf.c: Likewise.
6372         * stdio-common/sprintf.c: Likewise.
6373         * stdio-common/tmpfile.c: Likewise.
6374         * stdio-common/vfprintf.c: Likewise.
6375         * stdio-common/vfscanf.c: Likewise.
6376         * stdlib/strfmon_l.c: Likewise.
6377         * sunrpc/openchild.c: Likewise.
6378         * sunrpc/xdr_stdio.c: Likewise.
6379         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
6380         * sysdeps/mach/hurd/tmpfile.c: Likewise.
6381
6382 2012-05-24  Roland McGrath  <roland@hack.frob.com>
6383
6384         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6385
6386         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
6387         in the third column, to generate for the shared library an IFUNC
6388         that uses _dl_vdso_vsym.
6389         * Makerules (COMPILE.c, compile-stdin.c): New variables.
6390         * Makeconfig (object-suffixes-noshared): New variable.
6391
6392         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
6393         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
6394         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
6395         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
6396
6397         [BZ #14132]
6398         * include/sys/time.h (__gettimeofday): Remove macro.
6399         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
6400         * time/gettimeofday.c (__gettimeofday): Remove #undef.
6401         Remove INTDEF.
6402         (__gettimeofday): Add libc_hidden_def.
6403         (gettimeofday): Add libc_hidden_weak.
6404         * sysdeps/mach/gettimeofday.c: Likewise.
6405         * sysdeps/posix/gettimeofday.c: Likewise.
6406         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
6407         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
6408         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
6409         (__gettimeofday_internal): Remove strong_alias.
6410         (__gettimeofday): Add libc_hidden_def.
6411         (gettimeofday): Add libc_hidden_weak.
6412         * sysdeps/unix/syscalls.list (gettimeofday):
6413         Remove __gettimeofday_internal alias.
6414
6415 2012-05-24  Daniel Jacobowitz  <drow@false.org>
6416             H.J. Lu  <hongjiu.lu@intel.com>
6417
6418         [BZ #12495]
6419         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
6420         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
6421         (largebin_index_32_big): New.
6422         (largebin_index): Use it for 16-byte alignment.
6423         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
6424         correction with front_misalign.
6425
6426 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6427
6428         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
6429         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
6430         Likewise.
6431         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
6432         Likewise.
6433         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
6434         Likewise.
6435         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
6436         Likewise.
6437         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
6438         Likewise.
6439         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
6440         Likewise.
6441         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
6442         Likewise.
6443         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6444         Likewise.
6445         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
6446         Likewise.
6447         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
6448         Likewise.
6449         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
6450         Likewise.
6451         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
6452         Likewise.
6453
6454         * scripts/data/c++-types-x32-linux-gnu.data: New file.
6455         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
6456
6457 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6458
6459         [BZ #10846]
6460         [BZ #14036]
6461         * math/libm-test.inc (exp_test): Add test from bug 14036.
6462         (pow_test): Add test from bug 10846.
6463
6464         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
6465         and other flags.
6466         (special_function): Do not include flags in test name.
6467         (parse_args): Likewise.
6468         * sysdeps/i386/fpu/libm-test-ulps: Update.
6469         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6470         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6471         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6472         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6473
6474         * math/gen-libm-test.pl (%beautify): Add entries for underflow
6475         exceptions.
6476         * math/libm-test.inc ("Philosophy"): Update comment about
6477         exception testing.
6478         (UNDERFLOW_EXCEPTION): New macro.
6479         (UNDERFLOW_EXCEPTION_OK): Likewise.
6480         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
6481         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
6482         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
6483         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
6484         (INVALID_EXCEPTION_OK): Update value.
6485         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6486         (OVERFLOW_EXCEPTION_OK): Likewise.
6487         (IGNORE_ZERO_INF_SIGN): Likewise.
6488         (test_exceptions): Handle underflow exceptions.
6489         (acos_test): Update for underflow exception expectations.
6490         (cexp_test): Likewise.
6491         (clog_test): Likewise.
6492         (clog10_test): Likewise.
6493         (csqrt_test): Likewise.
6494         (ctan_test): Likewise.
6495         (ctanh_test): Likewise.
6496         (exp_test): Likewise.
6497         (exp10_test): Likewise.
6498         (exp2_test): Likewise.
6499         (expm1_test): Likewise.
6500         (fma_test): Likewise.
6501         (j0_test): Likewise.
6502         (jn_test): Likewise.
6503         (nexttoward_test): Likewise.
6504         (pow_test): Likewise.
6505         (scalbn_test): Likewise.
6506         (scalbln_test): Likewise.
6507         (tan_test): Likewise.
6508         (y1_test): Likewise.
6509         * sysdeps/i386/fpu/libm-test-ulps: Update.
6510         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6511
6512 2012-05-23  David S. Miller  <davem@davemloft.net>
6513
6514         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6515         (__libc_sigaction): Remove unused local variables.
6516
6517 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6518
6519         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
6520
6521 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6522
6523         mktime: avoid signed integer overflow
6524         * time/mktime.c (__mktime_internal): Do not mishandle the case
6525         where diff == INT_MIN.
6526
6527         mktime: simplify computation of average
6528         * time/mktime.c (ranged_convert): Use new time_t_avg function
6529         instead of rolling our own (probably-slower) code.
6530
6531         mktime: do not assume signed right shift propagates sign bit
6532         * time/mktime.c (isdst_differ): New static function.
6533         (__mktime_internal): No need to normalize tm_isdst now.
6534         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
6535         tm_isdst values.
6536
6537         mktime: merge another wrapv change from gnulib
6538         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
6539         from some compilers.
6540
6541         mktime: remove incorrect attempt at unusual arithmetics
6542         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
6543         The code didn't really work on such machines anyway.
6544         (TYPE_MINIMUM): Assume two's complement.
6545         (twos_complement_arithmetic): Verify that long_int and time_t
6546         are two's complement (or unsigned, in the latter case).
6547
6548         mktime: check signed shifts on long_int and time_t, too
6549         * time/mktime.c (SHR): Check that shifts work as desired
6550         on the types long_int and time_t too, as SHR is used on
6551         such types.
6552
6553         mktime: do not assume 'long' is wide enough
6554         * time/mktime.c (verify): Move decl up.
6555         (long_int): New type.
6556         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
6557         to remove assumption in the code that 'long' is wide enough to
6558         store year values.  This assumption is not true on x32 and on
6559         some non-glibc platforms.
6560
6561         mktime: merge wrapv change from gnulib
6562         * time/mktime.c (WRAPV): New macro.
6563         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
6564         (guess_time_tm, __mktime_internal): Do not assume that signed
6565         integer overflow wraps around; modern compilers generate code
6566         where this assumption is no longer valid.
6567
6568 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6569
6570         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6571         Replace "jmp L(pseudo_end)" with "ret".
6572         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6573         Likewise.
6574
6575 2012-05-23  Andreas Jaeger  <aj@suse.de>
6576
6577         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
6578         * sysdeps/unix/sysv/linux/poll.c: Remove file.
6579
6580 2012-05-23  Andreas Jaeger  <aj@suse.de>
6581             Maximilian Attems  <max@stro.at>
6582
6583         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
6584         New macros.
6585
6586 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6587
6588         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
6589         code so that pseudo_end is just ret and the stack pointer is
6590         correct also for static library in error case.
6591
6592 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
6593
6594         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
6595         move to syscalls.list.
6596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
6597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
6598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
6599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
6600
6601         * manual/install.texi (Running make install): Do not mention Linux
6602         kernel version for which pt_chown is not needed.
6603         (Linux): Do not mention problems with nscd with 2.0 kernels.
6604         * INSTALL: Regenerated.
6605
6606 2012-05-23  Andreas Jaeger  <aj@suse.de>
6607
6608         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
6609         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
6610         macro.
6611         * sysdeps/unix/sysv/linux/s390/bits/mman.h
6612         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6613         * sysdeps/unix/sysv/linux/sh/bits/mman.h
6614         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6615         * sysdeps/unix/sysv/linux/i386/bits/mman.h
6616         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6617         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
6618         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6619         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
6620         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6621         * sysdeps/unix/sysv/linux/bits/in.h
6622         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
6623
6624 2012-05-22  Roland McGrath  <roland@hack.frob.com>
6625
6626         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
6627         (PREPARE_VERSION): Just use assert instead, it will be elided
6628         under [NDEBUG] anyway.
6629
6630 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6631
6632         * sysdeps/unix/sysv/linux/Makefile: Include
6633         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
6634         (sysdep_routines): Remove sysctl.
6635         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
6636         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
6637         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
6638         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
6639         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
6640
6641 2012-05-22  Andreas Jaeger  <aj@suse.de>
6642
6643         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
6644         that pseudo_end is just ret and the stack pointer is correct also
6645         for static library in error case.
6646
6647 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
6648
6649         [BZ #14122]
6650         * nss/nsswitch.c (defconfig_entries): New variable.
6651         (__nss_database_lookup): Don't leak defconfig entries.
6652         (nss_parse_service_list): Don't leak on error paths.
6653         (free_database_entries): New function.
6654         (free_defconfig): New function.
6655         (free_mem): Move common code to free_database_entries.
6656
6657 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6658
6659         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
6660         Add arch_prctl.
6661         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6662
6663         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6664         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
6665         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
6666         New macro.
6667         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6668         (INTERNAL_SYSCALL_TYPES): Likewise.
6669         (LOAD_ARGS_TYPES_[1-6]): Likewise.
6670         (LOAD_REGS_TYPES_[1-6]): Likewise.
6671         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
6672         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
6673
6674 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6675
6676         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
6677         copysignl for GLIBC_2_0.
6678         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
6679         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
6680         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
6681         logbl for GLIBC_2_0.
6682         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
6683         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
6684
6685 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6686
6687         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
6688         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6689
6690         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6691         Use "neg %eax".
6692
6693         * time/mktime.c: Update copyright years.
6694
6695 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6696
6697         mktime: merge comment-quoting-style change from gnulib
6698         * time/mktime.c: Quote 'like this' in comments.
6699         The GNU coding standards suggest that we no longer quote `like this',
6700         as "`" and "'" are typically rendered asymmetrically nowadays.
6701         The typical gnulib style is to quote 'like this' when quoting
6702         code, and "like this" when quoting English.
6703
6704         * time/mktime.c (compile-command): Add "-I.".
6705
6706         mktime: merge mktime-internal.h change from gnulib
6707         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
6708
6709         mktime: merge time_r change from gnulib
6710         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
6711
6712         mktime: merge DEBUG change from gnulib
6713         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
6714         case system <time.h> has a #define.
6715
6716         mktime: merge <sys/types.h> change from gnulib
6717         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
6718         since <time.t> is now guaranteed to define time_t.
6719
6720         mktime: merge HAVE_CONFIG_H change from gnulib
6721         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6722
6723 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6724
6725         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6726         Use "neg %eax".
6727
6728         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6729         __rlim_t cast.
6730         (struct rusage): Use anonymous union to pad each field to
6731         __syscall_slong_t.
6732
6733 2012-05-21  David S. Miller  <davem@davemloft.net>
6734
6735         * Makefules (o-iterator): Remove .s cases.
6736         (compile-command.s): Delete.
6737         (COMPILE.s): Delete.
6738         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6739
6740 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6741
6742         * configure.in (libc_cv_predef_stack_protector): Only consider
6743         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6744         * configure: Regenerated.
6745
6746 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6747
6748         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6749         New macro.  Use R*LP on int and pointer.
6750         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6751         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6752         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6753         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6754
6755         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6756         [__WORDSIZE_TIME64_COMPAT32] instead of
6757         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6758         (struct utmp): Likewise.
6759         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6760         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6761         Renamed to ...
6762         (__WORDSIZE_TIME64_COMPAT32): This.
6763         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6764         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6765         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6766         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6767         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6768         (__WORDSIZE_TIME64_COMPAT32): New macro.
6769
6770 2012-05-21  Andreas Jaeger  <aj@suse.de>
6771
6772         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6773         only if [SHARED]. Add prototype for __wcschr_ia32.
6774
6775 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6776
6777         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6778         of %rbp unmolested in the jmp_buf while mangling the low bits.
6779         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6780         unmolested high bits of %rbp while demangling the low bits.
6781         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6782
6783 2012-05-21  Andreas Jaeger  <aj@suse.de>
6784
6785         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6786         * sunrpc/svc_simple.c: Use it for registerrpc.
6787         * sunrpc/xcrypt.c: Use it for passwd2des.
6788
6789         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6790
6791 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6792
6793         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6794         Don't define if [__SYSCALL_WORDSIZE != 32].
6795         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6796         New macro.
6797
6798 2012-05-21  Bruno Haible  <bruno@clisp.org>
6799             Andreas Jaeger  <aj@suse.de>
6800
6801         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6802         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6803         inptr and inend for must_buffer_ch.
6804         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6805         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6806         * stdio-common/Makefile (tests): Remove bug15.
6807         (bug15-ENV): Remove macro.
6808         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6809         anymore.
6810
6811 2012-05-19  Andreas Jaeger  <aj@suse.de>
6812             Roland McGrath  <roland@hack.frob.com>
6813
6814         * manual/contrib.texi: Completely rewritten. It contains now an
6815         alphabetical list of contributors and their contributions.
6816
6817 2012-05-21  Richard Henderson  <rth@twiddle.net>
6818
6819         * misc/getauxval.c (__getauxval): Use unsigned long int.
6820         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6821         (getauxval): Use unsigned long int.
6822
6823 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6824
6825         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6826
6827 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6828
6829         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6830         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6831         __alignof__ (long double).
6832
6833 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6834
6835         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6836
6837 2012-05-20  Richard Henderson  <rth@twiddle.net>
6838
6839         * misc/getauxval.c: New file.
6840         * misc/sys/auxv.h: New file.
6841         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6842         (routines): Add getauxval.
6843         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6844         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6845         * elf/dl-sysdep.c (_dl_auxv): Remove.
6846         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6847         * elf/dl-support.c (_dl_auxv): New variable.
6848         (_dl_aux_init): Initialize it.
6849         * manual/startup.texi (Auxiliary Vector): New node.
6850         * sysdeps/generic/bits/hwcap.h: New file.
6851         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6852         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6853         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6854         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6855         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6856         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6858         Update.
6859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6860         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6861         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6862         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6863         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6864         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6865         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6866         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6867
6868 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6869
6870         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6871
6872 2012-05-19  David S. Miller  <davem@davemloft.net>
6873
6874         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6875
6876 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6877
6878         [BZ #14123]
6879         * math/s_ccosh.c: Include <float.h>
6880         (__ccosh): Avoid internal overflow calculating sinh and cosh
6881         values before multiplying by sin and cos values.
6882         * math/s_ccoshf.c: Likewise.
6883         * math/s_ccoshl.c: Likewise.
6884         * math/s_csin.c: Likewise.
6885         * math/s_csinf.c: Likewise.
6886         * math/s_csinl.c: Likewise.
6887         * math/s_csinh.c: Likewise.
6888         * math/s_csinhf.c: Likewise.
6889         * math/s_csinhl.c: Likewise.
6890         * math/libm-test.inc (ccos_test): Add more tests.
6891         (ccosh_test): Likewise.
6892         (csin_test): Likewise.
6893         (csinh_test): Likewise.
6894         * sysdeps/i386/fpu/libm-test-ulps: Update.
6895         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6896
6897 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6898
6899         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6900         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6901
6902         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6903
6904 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6905
6906         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6907         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6908         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6909         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6910         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6911         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6912         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6913         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6914         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6915         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6916         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6917         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6918         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6919         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6920         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6921         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6922         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6923         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6924         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6925         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6926         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6927         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6928         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6929         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6930         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6931         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6932         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6933         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6934         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6935         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6936         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6937
6938 2012-05-18  Andreas Jaeger  <aj@suse.de>
6939
6940         * csu/.gitignore: Delete.
6941
6942 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6943
6944         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6945         (timex): Use __syscall_slong_t.
6946
6947 2012-05-18  Andreas Jaeger  <aj@suse.de>
6948             Carlos O'Donell  <carlos_odonell@mentor.com>
6949
6950         * manual/install.texi (Configuring and compiling): Update
6951         description about files modified in the source directory.
6952         * INSTALL: Regenerated.
6953
6954 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6955
6956         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6957         value.  Use "or" to set return value to -1.
6958         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6959         negate return value.
6960
6961 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6962
6963         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6964         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6965         failure if the compiler has Graphite support disabled.
6966         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6967         Likewise.
6968         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6969         CFLAGS-memmove.c): Likewise.
6970         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6971         Likewise.
6972
6973 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6974
6975         * sysdeps/x86_64/x32/_itoa.h: New file.
6976
6977         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6978         getdents system call only if kernel and user dirents have the
6979         same d_ino and d_off.
6980
6981         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6982         LLONG_MAX != LONG_MAX.
6983         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6984         (_fitoa_word): Likewise.
6985
6986         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6987         years.
6988         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6989         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6990         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6991
6992         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6993         include <bits/wordsize.h>.  Check __x86_64__ instead of
6994         __WORDSIZE.
6995         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6996         if __x86_64__ is defined.  Use anonymous union on fpstate.
6997
6998         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6999         anonymous union.
7000
7001 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7002
7003         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7004         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7005         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7006         Refer to _rtld_local_ro instead of _rtld_global_ro.
7007         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7008         Likewise.
7009         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7010         Likewise.
7011         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7012         Likewise.
7013         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7014         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7015         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7016
7017         * sysdeps/powerpc/powerpc32/dl-machine.c
7018         (__elf_machine_runtime_setup) [PROF]: Don't reference
7019         _dl_prof_resolve.
7020
7021 2012-05-18  Andreas Jaeger  <aj@suse.de>
7022
7023         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7024         function only available for GCCs before 3.4 since GCC 3.4
7025         introduced a builtin.
7026         (lrint): Likewise.
7027         (llrintf): Likewise.
7028         (llrint): Likewise.
7029         (fmaxf): Likewise.
7030         (fmax): Likewise.
7031         (fminf): Likewise.
7032         (fmin): Likewise.
7033         (rint): Likewise.
7034         (rintf): Likewise.
7035         (nearbyint): Likewise.
7036         (nearbyintf): Likewise.
7037         (ceil): Likewise.
7038         (ceilf): Likewise.
7039         (floor): Likewise.
7040         (floorf): Likewise.
7041
7042 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7043
7044         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7045         on both fields and cast pointer to __syscall_ulong_t.
7046
7047         * bits/types.h (__fsword_t): New type.
7048         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7049         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7050         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7051         (__FSWORD_T_TYPE): Likewise.
7052         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7053         (__FSWORD_T_TYPE): Likewise.
7054         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7055         (__FSWORD_T_TYPE): Likewise.
7056         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7057         (__FSWORD_T_TYPE): Likewise.
7058         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7059         __SWORD_TYPE with __fsword_t.
7060         (statfs64): Likewise.
7061
7062 2012-05-17  David S. Miller  <davem@davemloft.net>
7063
7064         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7065
7066 2012-05-17  Andreas Jaeger  <aj@suse.de>
7067
7068         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7069         warning.
7070
7071 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7072
7073         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7074
7075 2012-05-17  Andreas Jaeger  <aj@suse.de>
7076
7077         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7078         when it is used.
7079
7080 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7081
7082         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7083
7084 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7085
7086         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7087         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7088
7089 2012-05-17  Andreas Jaeger  <aj@suse.de>
7090             Carlos O'Donell  <carlos_odonell@mentor.com>
7091
7092         [BZ #14059]
7093         * sysdeps/x86_64/multiarch/init-arch.h
7094         (bit_YMM_Usable): Rename to...
7095         (bit_AVX_Usable): ... this.
7096         (bit_FMA4_Usable): New macro.
7097         (bit_XMM_state): New macro.
7098         (bit_YMM_state): New macro.
7099         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7100         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7101         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7102         (CPUID_OSXSAVE): New macro.
7103         (CPUID_AVX): New macro.
7104         (CPUID_FMA4): New macro.
7105         (index_YMM_Usable): Rename to...
7106         (index_AVX_Usable): ... this.
7107         (HAS_AVX): Use HAS_ARCH_FEATURE.
7108         (HAS_FMA4): Likewise.
7109         (HAS_YMM_USABLE): Remove.
7110         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7111         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7112         are present.
7113         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7114         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7115         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7116         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7117         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7118
7119 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7120
7121         * math/libm-test.c: Support platforms without multiple rounding modes.
7122         * math/bug-nextafter.c: Support platforms without FP exceptions.
7123         * math/bug-nexttoward.c: Likewise.
7124         * math/test-fenv.c: Likewise.
7125         * math/test-misc.c: Likewise.
7126         * stdlib/bug-getcontext.c: Likewise.
7127
7128 2012-05-17  Andreas Jaeger  <aj@suse.de>
7129
7130         * manual/examples/search.c (critter_cmp): Change signature to
7131         avoid warnings.
7132         * manual/string.texi (Collation Functions): Likewise.
7133
7134 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7135
7136         * bits/types.h: Fold copyright years.
7137         * bits/typesizes.h: Likewise.
7138         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7139         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7140         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7141         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7142         * time/time.h: Likewise.
7143
7144 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7145
7146         [BZ #208]
7147         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7148         in instead of returning them.  Return void.
7149         (__libc_mallinfo): Accumulate over all arenas.
7150         (__malloc_stats): Adjust for change in int_mallinfo interface.
7151
7152 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7153
7154         [BZ #10375]
7155         * configure.in (NM): Add AC_CHECK_TOOL for it.
7156         (libc_extra_cflags): New substituted variable.
7157         Check for -fstack-protector being used implicitly.
7158         * configure: Regenerated.
7159         * config.make.in (config-extra-cflags): New variable,
7160         gets @libc_extra_cflags@.
7161         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7162
7163         [BZ #10375]
7164         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7165         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7166         * configure: Regenerated.
7167         * config.make.in (CPPUNDEFS): New substituted variable.
7168         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7169         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7170         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7171
7172 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7173
7174         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7175         (mq_attr): Use __syscall_slong_t.
7176
7177 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7178
7179         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7180         Check __x86_64__ instead of __WORDSIZE.
7181         (_STAT_VER_LINUX): Likewise.
7182         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7183         __syscall_ulong_t and __syscall_slong_t.
7184         (stat64): Likewise.
7185
7186 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7187
7188         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7189
7190 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7191
7192         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7193
7194 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7195
7196         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7197         __syscall_ulong_t.
7198
7199         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7200         include <bits/wordsize.h>.  Check __x86_64__ instead of
7201         __WORDSIZE.
7202         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7203         defined.
7204         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7205
7206         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7207         include <bits/wordsize.h>.  Check __x86_64__ instead of
7208         __WORDSIZE.
7209         (user_regs_struct): Use "__extension__ unsigned long long"
7210         instead of "unsigned long" if __x86_64__ is defined.
7211         (user): Likewise.  Pad after pointer field if __ILP32__ is
7212         defined.
7213
7214 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7215
7216         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7217         versions 5 to 9.
7218         * configure: Regenerated.
7219         * manual/install.texi (texinfo): Increase version requirement to
7220         4.5 or later.
7221         * INSTALL: Regenerated.
7222
7223         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7224
7225 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7226
7227         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7228
7229         * sysdeps/x86_64/x32/ffs.c: New file.
7230
7231         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7232         __syscall_ulong_t.
7233         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7234         defined.  Use __syscall_ulong_t.
7235         (shminfo): Use __syscall_ulong_t.
7236         (shm_info): Likewise.
7237
7238         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7239         __syscall_ulong_t.
7240
7241         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7242         <bits/wordsize.h>.
7243         (msgqnum_t): Use __syscall_ulong_t.
7244         (msglen_t): Likewise.
7245         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7246         __syscall_ulong_t.
7247
7248         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7249         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7250
7251         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7252
7253         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7254         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7255
7256         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7257         __syscall_slong_t.
7258
7259         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7260         include <bits/wordsize.h>.  Check __x86_64__ instead of
7261         __WORDSIZE.
7262
7263         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7264         "unsigned long long int" if __x86_64__ is defined.
7265         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7266
7267         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7268         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7269         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7270
7271         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7272         <stdint.h>.
7273         (GET_PC): Cast to uintptr_t first.
7274         (GET_FRAME): Likewise.
7275         (GET_STACK): Likewise.
7276
7277         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7278         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7279         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7280         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7281         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7282         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7283         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7284         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7285         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7286         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7287         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7288         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7289         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7290         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7291         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7292         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7293         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7294         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7295         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7296         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7297         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7298         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7299         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7300         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7301         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7302         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7303         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7304         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7305         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7306
7307 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7308
7309         * Makerules (+depfiles): Also collect depfiles from .oS in
7310         $(extra-objs).
7311         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7312         .oS, $(libnldbl-routines)).
7313
7314         * Makerules (native-compile-mkdep-flags): Define.
7315         * sunrpc/Makefile (extra-objs): Add $(addprefix
7316         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7317         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7318         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7319         calling $(make-target-directory).
7320
7321 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7322
7323         * bits/types.h (__snseconds_t): Removed.
7324         * time/time.h (struct timespec): Replace __snseconds_t with
7325         __syscall_slong_t.
7326         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7327         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7328         Likewise.
7329         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7330         (__SNSECONDS_T_TYPE): Likewise.
7331         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7332         (__SNSECONDS_T_TYPE): Likewise.
7333         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7334         (__SNSECONDS_T_TYPE): Likewise.
7335
7336 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7337
7338         * sysdeps/mach/hurd/bits/typesizes.h
7339         (__SYSCALL_SLONG_TYPE): New macro.
7340         (__SYSCALL_ULONG_TYPE): Likewise.
7341
7342 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7343
7344         * bits/types.h (__syscall_slong_t): New type.
7345         (__syscall_ulong_t): Likewise.
7346
7347         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
7348         (__SYSCALL_ULONG_TYPE): Likewise.
7349         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7350         (__SYSCALL_SLONG_TYPE): Likewise.
7351         (__SYSCALL_ULONG_TYPE): Likewise.
7352         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7353         (__SYSCALL_SLONG_TYPE): Likewise.
7354         (__SYSCALL_ULONG_TYPE): Likewise.
7355         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7356         (__SYSCALL_SLONG_TYPE): Likewise.
7357         (__SYSCALL_ULONG_TYPE): Likewise.
7358
7359 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7360
7361         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
7362         Add sigaltstack-offsets.sym.
7363         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
7364         <sigaltstack-offsets.h>.
7365         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
7366         longjmp_msg pointer.
7367         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
7368         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
7369         signal stack.
7370         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
7371
7372 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7373
7374         * elf/stackguard-macros.h: Remove file.
7375         * sysdeps/generic/stackguard-macros.h: New file.
7376         * sysdeps/i386/stackguard-macros.h: Likewise.
7377         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
7378         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
7379         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7380         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7381         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
7382         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
7383         * sysdeps/x86_64/stackguard-macros.h: Likewise.
7384         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
7385         <elf/stackguard-macros.h>.
7386
7387         [BZ #14109]
7388         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
7389         __aligned__ in attribute.
7390         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
7391         (gregset_t): Likewise.
7392
7393 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7394
7395         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
7396         * sysdeps/x86_64/64/Implies-after: Here.  New file.
7397         * sysdeps/x86_64/x32/Implies-after: New file.
7398
7399 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7400
7401         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
7402         and access return value for _dl_profile_fixup.  Use R10_LP to
7403         load frame size.
7404
7405 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7406
7407         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
7408
7409 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7410
7411         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
7412         * sysdeps/x86_64/x32/sysdep.h: New file.
7413
7414 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7415
7416         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
7417         * sysdeps/x86_64/setjmp.S: Likewise.
7418
7419 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7420
7421         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
7422         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
7423         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
7424         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
7425         remove unused global constant.
7426
7427 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
7428
7429         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
7430         include of <not-cancel.h>.
7431
7432 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7433
7434         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
7435
7436 2012-05-15  Jeff Law  <law@redhat.com>
7437             Andreas Jaeger  <aj@suse.de>
7438
7439         [BZ #13594]
7440         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
7441         out from...
7442         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
7443         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
7444         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
7445         code changing __hst_map_handle.map.
7446
7447 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7448
7449         * configure.in (sysnames): Look for Implies-before and Implies-after
7450         files.
7451         * configure: Regenerated.
7452
7453 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7454
7455         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
7456         8-byte data alignment with LP_SIZE alignment.
7457
7458 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7459
7460         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
7461         into R10_LP.
7462
7463 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7464
7465         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
7466
7467 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7468
7469         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
7470         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
7471         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
7472         Likewise.
7473         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
7474
7475 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7476
7477         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
7478         (stackinfo_sub_sp): Likewise.
7479
7480 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7481
7482         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
7483         RAX_LP.
7484
7485 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7486
7487         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
7488         into R*_LP.
7489
7490 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7491
7492         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
7493         sizes into R*_LP.
7494
7495 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7496
7497         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
7498
7499 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7500
7501         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
7502         into R11_LP and load __x86_64_shared_cache_size_half into
7503         R8_LP.
7504
7505 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7506
7507         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
7508         R8_LP.
7509
7510 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7511
7512         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
7513         logb for POWER7.
7514         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
7515         logbf for POWER7.
7516         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
7517         logbl for POWER7.
7518         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
7519         powerpc32/power7/fpu/s_logb.c via #include.
7520         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
7521         powerpc32/power7/fpu/s_logbf.c via #include.
7522         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
7523         powerpc32/power7/fpu/s_logbl.c via #include.
7524
7525 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7526
7527         * README.libm: Remove file.
7528
7529 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7530
7531         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
7532         count for x32.  Use R*_LP and omit operand-size suffix.
7533
7534 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7535
7536         * shlib-versions: Move x86_64-.*-linux.* entries to ...
7537         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
7538         * sysdeps/x86_64/x32/shlib-versions: New file.
7539
7540 2012-05-14  Roland McGrath  <roland@hack.frob.com>
7541
7542         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
7543         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
7544         Use _dl_fatal_printf instead.
7545
7546 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7547
7548         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
7549         set if not set by the user.  Do not allow for being unset.
7550         * sysdeps/unix/sysv/linux/configure: Regenerated.
7551
7552 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7553
7554         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
7555         the `q' suffix from lea and replace .quad with ASM_ADDR.
7556
7557 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7558
7559         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
7560         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
7561         instead of $17.
7562         (PTR_DEMANGLE): Likewise.
7563
7564 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7565
7566         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
7567         (LP_OP): Likewise.
7568         (ASM_ADDR): Likewise.
7569         (RAX_LP): Likewise.
7570         (RBP_LP): Likewise.
7571         (RBX_LP): Likewise.
7572         (RCX_LP): Likewise.
7573         (RDI_LP): Likewise.
7574         (RSI_LP): Likewise.
7575         (RSP_LP): Likewise.
7576         (R8_LP): Likewise.
7577         (R9_LP): Likewise.
7578         (R10_LP): Likewise.
7579         (R10_LP): Likewise.
7580         (R11_LP): Likewise.
7581         (R12_LP): Likewise.
7582         (R13_LP): Likewise.
7583         (R14_LP): Likewise.
7584         (R15_LP): Likewise.
7585
7586 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7587
7588         * sysdeps/x86_64/x32/dl-machine.h: New file.
7589
7590 2012-05-14  Andreas Jaeger  <aj@suse.de>
7591
7592         * manual/Makefile (subdir): Remove export of subdir.
7593         (all): Remove target.
7594         (.PHONY): Remove all from list.
7595         (mkinstalldirs): Remove.
7596         (.PHONY): Remove installdirs from list.
7597         ($(inst_infodir)/libc.info): Use make-target-directory.
7598         (installdirs): Remove.
7599         (subdir_%): Remove.
7600         (glibc-targets): Remove.
7601         (lib): Remove.
7602         (stubs): Remove.
7603         ($(objpfx)stubs ../po/manual.pot): Remove.
7604         ($(objpfx)stamp%): Remove.
7605         (make-target-directory): Remove.
7606         (subdir_install): Remove.
7607         (routines): Remove.
7608         (aux): Remove.
7609         (sources): Remove.
7610         (objects): Remove.
7611         (headers): Remove.
7612
7613         [BZ #13750]
7614         * manual/.gitignore: Remove, it's not needed anymore.
7615         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
7616         all files in it.
7617         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
7618         directory.
7619         (texis): Renamed to $(objpfx)texis.
7620         (texis-path): New, contains path to generated files.
7621         (chapters.%): Use texis-path for complete path, add extra argument
7622         libc-texinfo.sh.
7623         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
7624         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
7625         (summary,texi, stamp-summary): Use complete path of
7626         files. Generate files in build dir.
7627         (dir-add.texi): Build in build dir.
7628         (libm-err.texi,stamp-libm-err): Likewise.
7629         (version.texi, stamp-version): Likewise.
7630         (.%c.texi): Likewise.
7631         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
7632         (mostlyclean): Remove target.
7633         (realclean): Remove target.
7634         (generated): Add new variable with contents from mostlyclean and
7635         realclean, remove entries duplicated in common-mostlyclean, add
7636         stamp-libm-err and stamp-version.
7637         (generated-dirs): Add libc directory.
7638         ($(inst_infodir)/libc.info): Install files from build dir.
7639
7640         * manual/install.texi (Configuring and compiling): Adjust since
7641         the info files are not part of the tar ball anymore.
7642
7643 2012-05-14  Andreas Jaeger  <aj@suse.de>
7644
7645         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
7646         variable.
7647
7648 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7649
7650         [BZ #13717]
7651         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7652         to 2.2.0 where earlier.
7653         * sysdeps/unix/sysv/linux/configure: Regenerated.
7654         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
7655         Remove conditional code.
7656         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
7657         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
7658         Remove conditional code.
7659         [!__NR_lchown]: Likewise.
7660         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7661         [__NR_lchown]: Likewise.
7662         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
7663         comment referencing __ASSUME_LCHOWN_SYSCALL.
7664         * sysdeps/unix/sysv/linux/i386/sigaction.c
7665         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7666         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7667         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
7668         Remove conditional code.
7669         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
7670         (__protocol_available): Remove #if 0 code.
7671         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
7672         conditional code.
7673         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
7674         * sysdeps/unix/sysv/linux/kernel-features.h
7675         (__ASSUME_GETCWD_SYSCALL): Don't define.
7676         (__ASSUME_REALTIME_SIGNALS): Likewise.
7677         (__ASSUME_PREAD_SYSCALL): Likewise.
7678         (__ASSUME_PWRITE_SYSCALL): Likewise.
7679         (__ASSUME_POLL_SYSCALL): Likewise.
7680         (__ASSUME_LCHOWN_SYSCALL): Likewise.
7681         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
7682         non-SPARC.
7683         (__ASSUME_SIOCGIFNAME): Don't define.
7684         (__ASSUME_MSG_NOSIGNAL): Likewise.
7685         (__ASSUME_SENDFILE): Define unconditionally.
7686         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
7687         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
7688         conditional code.
7689         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
7690         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
7691         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7692         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7693         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
7694         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7695         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
7697         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7698         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
7700         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7701         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
7703         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7704         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
7706         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7707         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
7709         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7710         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
7712         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7713         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
7715         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7716         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
7718         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7719         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7720         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7721         Remove conditional code.
7722         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7723         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7724         Remove conditional code.
7725         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7726         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7727         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7728         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7729         Remove conditional code.
7730         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7731         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7732         Remove conditional code.
7733         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7734         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7735         Remove conditional code.
7736         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7737         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7738         Remove conditional code.
7739         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7740         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7741         Remove conditional code.
7742         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7743         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7744         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7745         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7746         * sysdeps/unix/sysv/linux/sigaction.c
7747         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7748         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7749         * sysdeps/unix/sysv/linux/sigpending.c
7750         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7751         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7752         * sysdeps/unix/sysv/linux/sigprocmask.c
7753         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7754         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7755         * sysdeps/unix/sysv/linux/sigsuspend.c
7756         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7757         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7758         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7759         (__libc_missing_rt_sigs): Remove.
7760         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7761         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7762         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7763         Remove conditional code.
7764         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7765         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7766         return 1.
7767         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7768         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7769         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7770         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7771
7772 2012-05-14  Andreas Jaeger  <aj@suse.de>
7773
7774         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7775         it's not used in glibc.
7776         (__coshm1): Likewise.
7777         (__acosh1p): Likewise.
7778         (__sgn): Likewise.
7779
7780         * manual/string.texi (Copying and Concatenation): Add missing
7781         variable in concat example.
7782         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7783
7784 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7785
7786         [BZ #14103]
7787         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7788         __builtin_clzl with __builtin_clzll.
7789
7790 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7791
7792         [BZ #14104]
7793         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7794         libc_freeres_ptr.
7795
7796 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7797
7798         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7799         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7800         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7801         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7802
7803 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7804
7805         * NEWS: Update ia64 info.
7806
7807 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7808
7809         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7810         used as bcopy.
7811
7812 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7813
7814         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7815         * sysdeps/unix/syscalls.list (dup3): Likewise.
7816         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7817         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7818
7819 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7820
7821         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7822         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7823
7824 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7825
7826         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7827         thread pointer.
7828         (TLS_IE): Use mov/add instead of movq/addq to load thread
7829         pointer.
7830         (TLS_GD_PREFIX): New.
7831         (TLS_GD): Use it.
7832
7833 2012-05-11  David S. Miller  <davem@davemloft.net>
7834
7835         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7836         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7837         (_FPU_SETCW): Likewise.
7838
7839 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7840
7841         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7842         is 32-byte aligned.
7843
7844 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7845
7846         [BZ #11837]
7847         * iconvdata/gb18030.c: Update tables.
7848         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7849         characters specially.
7850         (BODY for TO_LOOP): Add encoding of missing ranges.
7851
7852 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7853
7854         [BZ #13673]
7855         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7856         * sysdeps/mach/hurd/dup3.c: Likewise.
7857         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7858         * sysdeps/powerpc/memmove.c:: Likewise.
7859
7860 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7861
7862         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7863         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7864
7865 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7866
7867         * elf/elf.h (R_X86_64_RELATIVE64): New.
7868         (R_X86_64_NUM): Updated.
7869         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7870         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7871         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7872         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7873         tst-quad1pie tst-quad2pie
7874         (modules-names): Add tst-quadmod1 tst-quadmod2.
7875         ($(objpfx)tst-quad1): New dependency.
7876         ($(objpfx)tst-quad2): Likewise.
7877         ($(objpfx)tst-quad1pie): Likewise.
7878         ($(objpfx)tst-quad2pie): Likewise.
7879         * sysdeps/x86_64/tst-quad1.c: New file.
7880         * sysdeps/x86_64/tst-quad1pie.c: New file.
7881         * sysdeps/x86_64/tst-quad2.c: Likewise.
7882         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7883         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7884         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7885         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7886         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7887
7888 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7889
7890         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7891         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7892         * streams/stropts.h (t_scalar_t): Define type.
7893
7894         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7895         (_PATH_PRESERVE): Set to "/var/lib".
7896         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7897
7898         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7899         instead of int.
7900
7901         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7902         if __dir_mkfile succeeded.
7903
7904         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7905         checking for _hurd_dtablesize.  Unlock it right after having
7906         finished _hurd_dtable allocation.
7907
7908 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7909
7910         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7911         * sysdeps/mach/hurd/configure: Regenerated.
7912         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7913         special-casing to...
7914         * sysdeps/gnu/configure.in: ... this new file.
7915         * sysdeps/unix/sysv/linux/configure: Regenerated.
7916         * sysdeps/gnu/configure: New generated file.
7917
7918         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7919         for Linux: use nsec instead of usec, as well as:
7920         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7921         members of type struct timespec.
7922         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7923         New macros.
7924         (struct stat64): Likewise.
7925         (_STATBUF_ST_NSEC): New macro.
7926         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7927
7928         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7929         __strtoul_internal rather than strtoul.
7930
7931 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7932
7933         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7934         and reject them.
7935
7936 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7937
7938         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7939         which preserves existing values.
7940         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7941
7942 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7943
7944         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7945         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7946         greater than FD_SETSIZE.
7947
7948 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7949
7950         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7951         allocated, call __vm_protect to finish enabling the existing space, and
7952         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7953         allocate the remainder.
7954
7955 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7956
7957         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7958         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7959
7960 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7961
7962         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7963         sysdeps/mach/hurd/readlink.c.
7964
7965         * posix/tst-sysconf.c (posix_options): Only use
7966         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7967         _POSIX_SYNCHRONIZED_IO when they are defined
7968         * sysdeps/mach/hurd/bits/posix_opt.h:
7969         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7970         (_XOPEN_REALTIME): Undefine macro.
7971         (_XOPEN_REALTIME_THREADS): Undefine macro.
7972         (_XOPEN_SHM): Undefine macro.
7973         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7974         macro to -1.
7975         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7976         macro to -1.
7977         (_POSIX_ASYNC_IO): Undefine macro.
7978         (_POSIX_PRIORITIZED_IO): Undefine macro.
7979         (_POSIX_SPIN_LOCKS): Define macro to -1.
7980
7981         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7982         SA_NODEFER, SA_RESETHAND.
7983         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7984         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7985         F_DUPFD_CLOEXEC.
7986
7987 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7988
7989         * elf/Makefile (pldd-modules): Define unconditionally.
7990
7991 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7992
7993         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7994
7995 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7996
7997         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7998         Return ENOENT when name is empty.
7999         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8000
8001 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8002
8003         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8004
8005         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8006
8007 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8008
8009         Fix mlock in all cases except non-readable pages.
8010         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8011         instead of VM_PROT_ALL as parameter to __vm_wire function.
8012
8013         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8014         (__mkdir): When path is `/', just fail with EEXIST.
8015         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8016
8017 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8018
8019         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8020         <sys/uio.h> (for writev).
8021         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8022         and <sys/param.h> (for MIN).
8023
8024 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8025
8026         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8027         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8028         if interrupted.
8029
8030 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8031
8032         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8033         Depend on against $(link-rpcuserlibs).
8034
8035 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8036
8037         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8038         (__libc_stack_end): Do not use attribute_relro.
8039         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8040         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8041         to libthread-provided value.
8042         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8043         attribute_relro.
8044
8045 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8046
8047         [BZ #3748]
8048         * bits/libc-lock.h (__libc_once_get): New macro.
8049         * sysdeps/mach/bits/libc-lock.h: Likewise.
8050         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8051         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8052         instead of using implementation details.
8053
8054         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8055         * libio/freopen.c: Likewise.
8056         * libio/freopen64.c: Likewise.
8057         * misc/syslog.c: Likewise.
8058         * nscd/connections.c: Likewise.
8059         * nscd/netgroupcache.c: Likewise.
8060         * sysdeps/posix/getcwd.c: Likewise.
8061
8062 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8063
8064         * math/w_ilogbf.c: Add #include <limits.h>.
8065
8066 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8067
8068         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8069         path instead of returning without unlocking.
8070
8071         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8072         immediate-write ioctls.
8073         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8074
8075 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8076
8077         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8078         __builtin_frame_address instead of making assumptions about the
8079         location of the return address relative to DATA.  Force early load of
8080         the return address.
8081         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8082         __builtin_frame_address.
8083
8084         dup3 for GNU Hurd.
8085         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8086         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8087         implement dup3 and do some further code clean-ups.
8088         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8089         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8090
8091 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8092
8093         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8094
8095         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8096         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8097         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8098         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8099         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8100         d->port.lock.
8101
8102         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8103         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8104         when handler == SIG_ERR, not when handler != SIG_ERR.
8105
8106 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8107
8108         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8109         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8110         definitions.
8111
8112         accept4 for GNU Hurd.
8113         * include/sys/socket.h (__libc_accept4): New prototype.
8114         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8115         to implement __libc_accept4.
8116         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8117         __libc_accept4.
8118         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8119
8120         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8121         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8122         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8123         signal-defines.sym.
8124
8125 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8126
8127         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8128
8129 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8130
8131         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8132         assertion on O_CLOEXEC flag.
8133         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8134         * hurd/intern-fd.c: Likewise.
8135         * hurd/port2fd.c: Likewise.
8136
8137 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8138
8139         [BZ #3906]
8140         * bits/in.h (IPV6_PKTINFO): Define new macro.
8141         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8142
8143 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8144
8145         [BZ #13954]
8146         [BZ #13955]
8147         [BZ #13956]
8148         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8149         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8150         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8151         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8152         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8153         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8154         * math/libm-test.inc (logb_test) : Additional logb tests.
8155
8156 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8157             Andreas Jaeger  <aj@suse.de>
8158
8159         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8160         * configure: Regenerated.
8161         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8162         * config.make.in (link-obsolete-rpc): New substituted variable.
8163         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8164         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8165         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8166         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8167         so that libc.a contains the symbols.
8168         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8169         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8170         * sunrpc/auth_none.c: Likewise.
8171         * sunrpc/auth_unix.c: Likewise.
8172         * sunrpc/authdes_prot.c: Likewise.
8173         * sunrpc/authuxprot.c: Likewise.
8174         * sunrpc/clnt_gen.c: Likewise.
8175         * sunrpc/clnt_perr.c: Likewise.
8176         * sunrpc/clnt_raw.c: Likewise.
8177         * sunrpc/clnt_simp.c: Likewise.
8178         * sunrpc/clnt_tcp.c: Likewise.
8179         * sunrpc/clnt_udp.c: Likewise.
8180         * sunrpc/clnt_unix.c: Likewise.
8181         * sunrpc/des_crypt.c: Likewise.
8182         * sunrpc/des_soft.c: Likewise.
8183         * sunrpc/get_myaddr.c: Likewise.
8184         * sunrpc/key_call.c: Likewise.
8185         * sunrpc/key_prot.c: Likewise.
8186         * sunrpc/netname.c: Likewise.
8187         * sunrpc/pm_getmaps.c: Likewise.
8188         * sunrpc/pm_getport.c: Likewise.
8189         * sunrpc/pmap_clnt.c: Likewise.
8190         * sunrpc/pmap_prot.c: Likewise.
8191         * sunrpc/pmap_prot2.c: Likewise.
8192         * sunrpc/pmap_rmt.c: Likewise.
8193         * sunrpc/publickey.c: Likewise.
8194         * sunrpc/rpc_cmsg.c: Likewise.
8195         * sunrpc/rpc_common.c: Likewise.
8196         * sunrpc/rpc_dtable.c: Likewise.
8197         * sunrpc/rpc_prot.c: Likewise.
8198         * sunrpc/rpc_thread.c: Likewise.
8199         * sunrpc/rtime.c: Likewise.
8200         * sunrpc/svc.c: Likewise.
8201         * sunrpc/svc_auth.c: Likewise.
8202         * sunrpc/svc_raw.c: Likewise.
8203         * sunrpc/svc_run.c: Likewise.
8204         * sunrpc/svc_tcp.c: Likewise.
8205         * sunrpc/svc_udp.c: Likewise.
8206         * sunrpc/svc_unix.c: Likewise.
8207         * sunrpc/svcauth_des.c: Likewise.
8208         * sunrpc/xcrypt.c: Likewise.
8209         * sunrpc/xdr.c: Likewise.
8210         * sunrpc/xdr_array.c: Likewise.
8211         * sunrpc/xdr_float.c: Likewise.
8212         * sunrpc/xdr_intXX_t.c: Likewise.
8213         * sunrpc/xdr_mem.c: Likewise.
8214         * sunrpc/xdr_rec.c: Likewise.
8215         * sunrpc/xdr_ref.c: Likewise.
8216         * sunrpc/xdr_sizeof.c: Likewise.
8217         * sunrpc/xdr_stdio.c: Likewise.
8218
8219 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8220
8221         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8222         change.  Update copyright years.
8223
8224 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8225
8226         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8227
8228 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8229             Joseph Myers  <joseph@codesourcery.com>
8230             Paul Pluzhnikov  <ppluzhnikov@google.com>
8231
8232         [BZ #14012]
8233         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8234         requiring rpcgen.
8235         [cross-compiling] (extra-libs): Likewise.
8236         [cross-compiling] (extra-libs-others): Likewise.
8237         [cross-compiling] (librpcsvc-routines): Likewise.
8238         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8239         [cross-compiling] (omit-deps): Likewise.
8240         (sunrpc-CPPFLAGS): New variable.
8241         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8242         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8243         (cross-rpcgen-objs): New variable.
8244         (extra-objs): Append $(cross-rpcgen-objs).
8245         ($(cross-rpcgen-objs)): New rule.
8246         ($(objpfx)cross-rpcgen): Likewise.
8247         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8248         comment.
8249         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8250         ($(objpfx)x%.stmp): Likewise.
8251         * sunrpc/proto.h [IS_IN_build] (_): Define.
8252         [IS_IN_build] (_libc_intl_domainname): Likewise.
8253
8254 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8255
8256         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8257         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8258         and R_X86_64_TPOFF64.
8259
8260 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8261
8262         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8263         sysdeps/unix/sysv/syscalls.list.
8264         (stime): Likewise.
8265         (utime): Likewise.
8266         * sysdeps/unix/sysv/syscalls.list: Remove file.
8267
8268 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8269
8270         [BZ #3440]
8271         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8272         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8273         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8274         (__LC_IDENTIFICATION): Make these macros useful in #if
8275         expressions, as required by C99.
8276
8277 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8278
8279         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8280         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8281         after this.
8282
8283 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8284
8285         * stdlib/longlong.h: Updated from GCC.
8286
8287 2012-05-09  Andreas Jaeger  <aj@suse.de>
8288
8289         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8290         default is first entry.
8291         (run_mode): Set type.
8292         (main): Remove informal message about syslog.
8293         (options): Fix typo.
8294
8295         [BZ #14053]
8296         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8297         to asm.
8298         (lrint): Likewise.
8299         (llrintf): Likewise.
8300         (llrint): Likewise.
8301         (rint): Likewise.
8302         (rintf): Likewise.
8303         (nearbyint): Likewise.
8304         (nearbyintf): Likewise.
8305
8306 2012-05-09  Andreas Jaeger  <aj@suse.de>
8307             Pedro Alves  <palves@redhat.com>
8308
8309         * nscd/nscd.c (run_mode): Use enum.
8310         (main): Cleanup coding style issue.
8311
8312 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8313             Andreas Jaeger  <aj@suse.de>
8314
8315         * nscd/nscd.c (go_background): Replaced with...
8316         (run_mode): ... this.
8317         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8318         (options): Add -F --foreground.
8319         (main): Implement it.
8320         (parse_opt): Parse it.
8321
8322 2012-05-09  Andreas Jaeger  <aj@suse.de>
8323
8324         [BZ #14083]
8325         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8326         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8327         -Wconversion warning.
8328         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8329         Likewise.
8330
8331 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8332
8333         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8334         == 0.
8335         (LC_ALL): Use macro-int-constant.
8336         (LC_COLLATE): Likewise.
8337         (LC_CTYPE): Likewise.
8338         (LC_MESSAGES): Likewise.
8339         (LC_MONETARY): Likewise.
8340         (LC_NUMERIC): Likewise.
8341         (LC_TIME): Likewise.
8342         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
8343         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8344         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8345         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
8346         Specify type.
8347         [C99-based standards] (float_t): Expect type.
8348         [C99-based standards] (double_t): Expect type.
8349         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
8350         type.
8351         [C99-based standards] (HUGE_VALL): Likewise.
8352         [C99-based standards] (INFINITY): Likewise.
8353         [C99-based standards] (NAN): Likewise.
8354         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
8355         [C99-based standards] (FP_NAN): Likewise.
8356         [C99-based standards] (FP_NORMAL): Likewise.
8357         [C99-based standards] (FP_SUBNORMAL): Likewise.
8358         [C99-based standards] (FP_ZERO): Likewise.
8359         [C99-based standards] (FP_FAST_FMA): Use
8360         optional-macro-int-constant.  Specify type.  Require == 1.
8361         [C99-based standards] (FP_FAST_FMAF): Likewise.
8362         [C99-based standards] (FP_FAST_FMAL): Likewise.
8363         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
8364         [C99-based standards] (FP_ILOGBNAN): Likewise.
8365         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
8366         Specify type.
8367         [C99-based standards] (MATH_ERREXCEPT): Likewise.
8368         [C99-based standards] (math_errhandling): Specify type.
8369         [ISO99 || ISO11] (signgam): Do not allow.
8370         [non-C99-based standards] (copysignf): Do not allow.
8371         [non-C99-based standards] (exp2f): Likewise.
8372         [non-C99-based standards] (log2f): Likewise.
8373         [non-C99-based standards] (modff): Allow.
8374         [non-C99-based standards] (erff): Do not allow.
8375         [non-C99-based standards] (erfcf): Likewise.
8376         [non-C99-based standards] (gammaf): Likewise.
8377         [non-C99-based standards] (hypotf): Likewise.
8378         [non-C99-based standards] (j0f): Likewise.
8379         [non-C99-based standards] (j1f): Likewise.
8380         [non-C99-based standards] (jnf): Likewise.
8381         [non-C99-based standards] (lgammaf): Likewise.
8382         [non-C99-based standards] (tgammaf): Likewise.
8383         [non-C99-based standards] (y0f): Likewise.
8384         [non-C99-based standards] (y1f): Likewise.
8385         [non-C99-based standards] (ynf): Likewise.
8386         [non-C99-based standards] (isnanf): Likewise.
8387         [non-C99-based standards] (acoshf): Likewise.
8388         [non-C99-based standards] (asinhf): Likewise.
8389         [non-C99-based standards] (atanhf): Likewise.
8390         [non-C99-based standards] (cbrtf): Likewise.
8391         [non-C99-based standards] (expm1f): Likewise.
8392         [non-C99-based standards] (ilogbf): Likewise.
8393         [non-C99-based standards] (log1pf): Likewise.
8394         [non-C99-based standards] (logbf): Likewise.
8395         [non-C99-based standards] (nextafterf): Likewise.
8396         [non-C99-based standards] (remainderf): Likewise.
8397         [non-C99-based standards] (rintf): Likewise.
8398         [non-C99-based standards] (scalbf): Likewise.
8399         [non-C99-based standards] (copysignl): Likewise.
8400         [non-C99-based standards] (exp2l): Likewise.
8401         [non-C99-based standards] (log2l): Likewise.
8402         [non-C99-based standards] (modfl): Allow.
8403         [non-C99-based standards] (erfl): Do not allow.
8404         [non-C99-based standards] (erfcl): Likewise.
8405         [non-C99-based standards] (gammal): Likewise.
8406         [non-C99-based standards] (hypotl): Likewise.
8407         [non-C99-based standards] (j0l): Likewise.
8408         [non-C99-based standards] (j1l): Likewise.
8409         [non-C99-based standards] (jnl): Likewise.
8410         [non-C99-based standards] (lgammal): Likewise.
8411         [non-C99-based standards] (tgammal): Likewise.
8412         [non-C99-based standards] (y0l): Likewise.
8413         [non-C99-based standards] (y1l): Likewise.
8414         [non-C99-based standards] (ynl): Likewise.
8415         [non-C99-based standards] (isnanl): Likewise.
8416         [non-C99-based standards] (acoshl): Likewise.
8417         [non-C99-based standards] (asinhl): Likewise.
8418         [non-C99-based standards] (atanhl): Likewise.
8419         [non-C99-based standards] (cbrtl): Likewise.
8420         [non-C99-based standards] (expm1l): Likewise.
8421         [non-C99-based standards] (ilogbl): Likewise.
8422         [non-C99-based standards] (log1pl): Likewise.
8423         [non-C99-based standards] (logbl): Likewise.
8424         [non-C99-based standards] (nextafterl): Likewise.
8425         [non-C99-based standards] (remainderl): Likewise.
8426         [non-C99-based standards] (rintl): Likewise.
8427         [non-C99-based standards] (scalbl): Likewise.
8428         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8429         [non-C99-based standards] (FP_*): Do not allow.
8430         [C99-based standards] (FP_*): Change to
8431         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8432         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8433         allow.
8434         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
8435         (SIG_ERR): Likewise.
8436         [X/Open-based standards] (SIG_HOLD): Likewise.
8437         (SIG_IGN): Likewise.
8438         (SIGABRT): Use macro-int-constant.  Specify type.  Require
8439         positive value.
8440         (SIGFPE): Likewise.
8441         (SIGILL): Likewise.
8442         (SIGINT): Likewise.
8443         (SIGSEGV): Likewise.
8444         (SIGTER): Likewise.
8445         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
8446         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
8447         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
8448         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
8449         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
8450         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
8451         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
8452         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
8453         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
8454         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
8455         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
8456         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
8457         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
8458         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
8459         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
8460         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
8461         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
8462         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
8463         [X/Open-based standards] (SIGTRAP): Likewise.
8464         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
8465         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
8466         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
8467         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
8468         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8469         allow.
8470
8471 2012-05-08  Ian Wienand  <ianw@vmware.com>
8472
8473         [BZ #14080]
8474         * time/tzset.c (__tzset_parse_tz): Update default rules for
8475         daylight time changes in the Energy Policy Act of 2005.
8476
8477 2012-05-09  Andreas Jaeger  <aj@suse.de>
8478
8479         [BZ #13983]
8480         * elf/ldconfig.c (parse_conf): Change string to make clear that
8481         ldconfig only issued a warning if ld.so.conf does not exist.
8482
8483 2012-05-08  David S. Miller  <davem@davemloft.net>
8484
8485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
8486         movxtod instead of popping the value on the stack.
8487
8488         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8489
8490 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
8491
8492         * config.h.in: Add HAVE_ARM_PCS_VFP.
8493
8494 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
8495
8496         [BZ #13979]
8497         * include/features.h: Warn if user requests __FORTIFY_SOURCE
8498         checking but the checks are disabled for any reason.
8499
8500 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8501
8502         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
8503         and ELF64_R_TYPE with ELFW(R_TYPE).
8504
8505 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
8506
8507         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
8508         (ulimit): Likewise.
8509
8510         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
8511         (settimeofday): Likewise.
8512
8513 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
8514
8515         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
8516         a struct th_u2 inside the union, and move tu_block/tu_code into
8517         a new th_u3 union of tu_block/tu_code inside of that.  Move
8518         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
8519         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
8520         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
8521         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
8522         (th_stuff): Change to th_u1.tu_stuff.
8523         (th_data): Define.
8524         (th_msg): Change to th_u1.th_u2.tu_data.
8525
8526 2012-05-07  David S. Miller  <davem@davemloft.net>
8527
8528         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8529
8530         [BZ #14074]
8531         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
8532         (SETUP_PIC_REG): Use it.
8533         (SETUP_PIC_REG_LEAF): Use it.
8534
8535 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
8536
8537         [BZ #13885]
8538         [BZ #13923]
8539         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8540         USE_AS_EXPM1L.
8541         (EXPL_FINITE): Likewise.
8542         (FLDLOG): Likewise.
8543         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8544         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8545         e_expl.S.
8546         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8547         USE_AS_EXPM1L.
8548         (EXPL_FINITE): Likewise.
8549         (FLDLOG): Likewise.
8550         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8551         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8552         e_expl.S.
8553         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
8554         test of -max_value argument for long double.
8555         * sysdeps/i386/fpu/libm-test-ulps: Update.
8556         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8557
8558 2012-05-06  David S. Miller  <davem@davemloft.net>
8559
8560         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
8561         quad soft-float symbols whose references which are compiler
8562         generated.
8563         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8564
8565 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
8566
8567         [BZ #13884]
8568         [BZ #13914]
8569         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8570         USE_AS_EXP10L.
8571         (EXPL_FINITE): Likewise.
8572         (FLDLOG): Likewise.
8573         (c0): Likewise.
8574         (c1): Likewise.
8575         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8576         Adjust comments for base varying.
8577         (__expl_finite): Change alias to EXPL_FINITE.
8578         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
8579         e_expl.S.
8580         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
8581         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
8582         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
8583         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
8584         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8585         USE_AS_EXP10L.
8586         (EXPL_FINITE): Likewise.
8587         (FLDLOG): Likewise.
8588         (c0): Likewise.
8589         (c1): Likewise.
8590         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8591         Adjust comments for base varying.
8592         (__expl_finite): Change alias to EXPL_FINITE.
8593         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
8594         tests for bugs.
8595         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8596
8597         [BZ #14064]
8598         * math/libm-test.inc (check_float_internal): Correct ulp
8599         calculation for subnormal expected results.
8600
8601 2012-05-06  Andreas Jaeger  <aj@suse.de>
8602
8603         * Makeconfig (+math-flags): New, set to -frounding-math.
8604         (+cflags): Add +math-flags so that all of glibc gets compiled with
8605         it.
8606
8607         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
8608
8609 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
8610
8611         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
8612         Disable one test.
8613
8614         [BZ #13787]
8615         [BZ #13922]
8616         [BZ #14036]
8617         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
8618         (__ieee754_expl): Allow for and saturate large arguments.
8619         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
8620         (u_threshold): Likewise.
8621         (__exp): Call __ieee754_exp before checking for overflow and
8622         underflow.
8623         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
8624         (u_threshold): Likewise.
8625         (__expf): Call __ieee754_expf before checking for overflow and
8626         underflow.
8627         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
8628         (u_threshold): Likewise.
8629         (__expl): Call __ieee754_expl before checking for overflow and
8630         underflow.
8631         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
8632         (__ieee754_expl): Allow for and saturate large arguments.
8633         * math/libm-test.inc (exp_test): Add another test.  Do not allow
8634         missing overflow exception on overflow.
8635         (expm1_test): Do not allow missing overflow exception on overflow.
8636
8637         * sysdeps/i386/fpu/e_expl.c: Move to ...
8638         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
8639         rather than using inline asm.
8640         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
8641         * sysdeps/x86_64/fpu/e_expl.S: Copy from
8642         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
8643
8644         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
8645         (nice): Likewise.
8646         (poll): Likewise.
8647         (signal): Likewise.
8648         (time): Likewise.
8649         (times): Likewise.
8650
8651 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8652
8653         * sysdeps/unix/syscalls.list (adjtime): Add entry from
8654         sysdeps/unix/common/syscalls.list.
8655         (fchmod): Likewise.
8656         (fchown): Likewise.
8657         (ftruncate): Likewise.
8658         (getrusage): Likewise.
8659         (gettimeofday): Likewise.
8660         (setpgid): Likewise.
8661         (setregid): Likewise.
8662         (setreuid): Likewise.
8663         (sigaction): Likewise.
8664         (truncate): Likewise.
8665         (vhangup): Likewise.
8666         * sysdeps/unix/common/syscalls.list: Remove file.
8667         * sysdeps/unix/bsd/Implies: Don't include unix/common.
8668         * sysdeps/unix/sysv/linux/Implies: Likewise.
8669
8670 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8671
8672         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
8673         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
8674         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
8675         Moved to ...
8676         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
8677         Here.
8678         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
8679         to ...
8680         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
8681         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
8682         to ...
8683         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
8684         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
8685         to ...
8686         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
8687         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
8688         to ...
8689         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
8690         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
8691         to ...
8692         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
8693         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
8694         to ...
8695         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
8696         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
8697         to ...
8698         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
8699         Here.
8700         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
8701         to ...
8702         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
8703         Here.
8704         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
8705         to ...
8706         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
8707         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
8708         Moved to ...
8709         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
8710         Here.
8711         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
8712         to ...
8713         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
8714
8715 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8716
8717         * sysdeps/unix/common/bits/dirent.h: Remove file.
8718         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8719
8720         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8721         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8722         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8723         * sysdeps/unix/bsd/isatty.c: Likewise.
8724         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8725         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8726         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8727
8728 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8729
8730         [BZ #13563]
8731         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8732         long double comparison inaccuracies.
8733         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8734         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8735
8736 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8737
8738         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8739         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8740
8741 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8742
8743         [BZ #14049]
8744         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8745         nonzero digits before rounding a hex value.
8746         * stdlib/tst-strtod.c (tests): Add another test.
8747
8748 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8749
8750         * sysdeps/s390/fpu/libm-test-ulps: Update.
8751
8752 2012-05-03  Andreas Jaeger  <aj@suse.de>
8753
8754         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8755         does not get optimized out.
8756         (malloc_opt_barrier): New.
8757
8758 2012-05-03  Andreas Jaeger  <aj@suse.de>
8759             Roland McGrath  <roland@hack.frob.com>
8760
8761         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8762         intermediate file deletion.
8763         (generated): Add .symlist files.
8764
8765 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8766
8767         [BZ #13775]
8768         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8769         Redirect under this condition.
8770         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8771         [__USE_GNU] (__dprintf_chk): Not under this condition.
8772         [__USE_GNU] (__vdprintf_chk): Likewise.
8773         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8774         under this condition.
8775         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8776         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8777         [__USE_XOPEN2K8] (vdprintf): Likewise.
8778         [__USE_GNU] (__dprintf_chk): Not under this condition.
8779         [__USE_GNU] (__vdprintf_chk): Likewise.
8780         [__USE_GNU] (dprintf): Likewise.
8781         [__USE_GNU] (vdprintf): Likewise.
8782
8783 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8784
8785         * elf/Makefile (common-generated): Set this instead of generated for
8786         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8787         $(all-built-dso)-derived lists.
8788
8789 2012-05-03  Andreas Jaeger  <aj@suse.de>
8790
8791         * sysdeps/i386/fpu/libm-test-ulps: Update.
8792
8793         * FAQ: Removed.
8794         * FAQ.in: Likewise.
8795         * scripts/gen-FAQ.pl: Likewise.
8796         * manual/install.texi (Installation): Point to online location of
8797         FAQ.
8798         * Makefile (files-for-dist): Remove FAQ.
8799         (FAQ): Remove.
8800
8801 2012-05-02  Allan McRae  <allan@archlinux.org>
8802
8803         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8804         (LDFLAGS-reldepmod5.so): Likewise.
8805         (LDFLAGS-reldep6mod1.so): Likewise.
8806         (LDFLAGS-reldep6mod4.so): Likewise.
8807         (LDFLAGS-reldep8mod3.so): Likewise.
8808         (LDFLAGS-unload4mod1.so): Likewise.
8809         (LDFLAGS-unload4mod2.so): Likewise.
8810         (LDFLAGS-tst-initorder): Likewise.
8811         (LDFLAGS-tst-initordera2.so): Likewise.
8812         (LDFLAGS-tst-initordera3.so): Likewise.
8813         (LDFLAGS-tst-initordera4.so): Likewise.
8814         (LDFLAGS-tst-initorderb2.so): Likewise.
8815         (LDFLAGS-noload): Likewise.
8816         (LDFLAGS-next): Likewise.
8817         (LDFLAGS-order2mod1.so): Likewise.
8818         (LDFLAGS-order2mod2.so): Likewise.
8819         (LDFLAGS-tst-initorder2): Likewise.
8820         (LDFLAGS-tst-initorder2a.so): Likewise.
8821         (LDFLAGS-tst-initorder2b.so): Likewise.
8822         (LDFLAGS-tst-initorder2c.so): Likewise.
8823         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8824
8825 2012-05-02  David S. Miller  <davem@davemloft.net>
8826
8827         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8828
8829 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8830
8831         [BZ #14055]
8832         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8833
8834 2012-05-02  Andreas Jaeger  <aj@suse.de>
8835
8836         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8837         since we manipulate rounding mode.
8838         (CPPFLAGS-test-idouble.c): Likewise.
8839         (CPPFLAGS-test-ifloat.c): Likewise.
8840         (CFLAGS-test-ldouble.c): Likewise.
8841         (CFLAGS-test-double.c): Likewise.
8842         (CFLAGS-test-float.c): Likewise.
8843         (CFLAGS-test-misc.c): Likewise.
8844         (CFLAGS-test-test-fenv.c): Likewise.
8845
8846 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8847
8848         [BZ #2550]
8849         [BZ #2570]
8850         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8851         comparisons to determine direction to adjust input.
8852
8853 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8854
8855         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8856         output to the target.
8857
8858         * scripts/localplt.awk: New file.
8859         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8860         (check-localplt-CFLAGS): Variable removed.
8861         ($(all-built-dso:=.jmprel)): New static pattern rule.
8862         (generated): Add those targets.
8863         (localplt-built-dso): New variable.
8864         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8865
8866         * elf/check-localplt.c: File removed.
8867
8868         * scripts/check-execstack.awk: New file.
8869         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8870         (check-execstack-CFLAGS): Variable removed.
8871         ($(objpfx)check-execstack.h): Target removed.
8872         ($(objpfx)execstack-default): New target.
8873         (generated): Add that instead of check-execstack.h.
8874         ($(all-built-dso:=.phdr)): New static pattern rule.
8875         (generated): Add those targets.
8876         * elf/check-execstack.c: File removed.
8877
8878         * scripts/check-textrel.awk: New file.
8879         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8880         (check-textrel-CFLAGS): Variable removed.
8881         (all-built-dso): Use := to define.o
8882         ($(all-built-dso:=.dyn)): New static pattern rule.
8883         (generated): Add those targets.
8884         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8885         * config.make.in (READELF): New substituted variable.
8886         * elf/check-textrel.c: File removed.
8887
8888 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8889
8890         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8891         allow.
8892         * conform/data/ctype.h-data [C99-based standards] (isblank):
8893         Expect function.
8894         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8895         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8896         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8897         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8898         Specify type.  Require positive value.
8899         (EILSEQ): Likewise.
8900         (ERANGE): Likewise.
8901         [ISO || POSIX] (EILSEQ): Do not expect.
8902         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8903         Specify type.  Require positive value.
8904         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8905         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8906         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8907         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8908         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8909         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8910         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8911         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8912         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8913         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8914         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8915         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8916         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8917         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8918         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8919         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8920         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8921         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8922         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8923         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8924         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8925         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8926         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8927         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8928         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8929         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8930         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8931         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8932         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8933         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8934         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8935         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8936         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8937         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8938         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8939         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8940         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8941         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8942         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8943         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8944         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8945         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8946         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8947         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8948         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8949         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8950         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8951         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8952         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8953         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8954         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8955         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8956         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8957         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8958         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8959         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8960         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8961         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8962         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8963         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8964         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8965         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8966         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8967         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8968         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8969         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8970         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8971         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8972         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8973         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8974         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8975         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8976         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8977         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8978         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8979         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8980         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8981         Require >= 2.
8982         (FLT_ROUNDS): Expect as macro, not constant.
8983         (FLT_MANT_DIG): Use macro-int-constant.
8984         (DBL_MANT_DIG): Likewise.
8985         (LDBL_MANT_DIG): Likewise.
8986         (FLT_DIG): Likewise.
8987         (DBL_DIG): Likewise.
8988         (LDBL_DIG): Likewise.
8989         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8990         (DBL_MIN_EXP): Likewise.
8991         (LDBL_MIN_EXP): Likewise.
8992         (FLT_MAX_EXP): Use macro-int-constant.
8993         (DBL_MAX_EXP): Likewise.
8994         (LDBL_MAX_EXP): Likewise.
8995         (FLT_MAX_10_EXP): Likewise.
8996         (DBL_MAX_10_EXP): Likewise.
8997         (LDBL_MAX_10_EXP): Likewise.
8998         (FLT_MAX): Use macro-constant.
8999         (DBL_MAX): Likewise.
9000         (LDBL_MAX): Likewise.
9001         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9002         (DBL_EPSILON): Likewise.
9003         (LDBL_EPSILON): Likewise.
9004         (FLT_MIN): Likewise.
9005         (DBL_MIN): Likewise.
9006         (LDBL_MIN): Likewise.
9007         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9008         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9009         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9010         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9011         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9012         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9013         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9014         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9015         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9016         [ISO11] (FLT_TRUE_MIN): Likewise.
9017         [ISO11] (LDBL_TRUE_MIN): Likewise.
9018         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9019         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9020         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9021         (SCHAR_MAX): Likewise.
9022         (UCHAR_MAX): Likewise.
9023         (CHAR_MIN): Likewise.
9024         (CHAR_MAX): Likewise.
9025         (MB_LEN_MAX): Use macro-int-constant.
9026         (SHRT_MIN): Use macro-int-constant.  Specify type.
9027         (SHRT_MAX): Likewise.
9028         (USHRT_MAX): Likewise.
9029         (INT_MAX): Likewise.
9030         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9031         bound negative.
9032         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9033         bound with "U".
9034         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9035         bound with "L".
9036         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9037         bound negative.  Suffix upper bound with "L".
9038         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9039         bound with "UL".
9040         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9041         Specify type.
9042         [C99-based standards] (LLONG_MAX): Likewise.
9043         [C99-based standards] (ULLONG_MAX): Likewise.
9044         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9045         == 0.
9046         [ISO11] (max_align_t): Require type.
9047         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9048
9049         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9050         from $CFLAGS, without defining away __attribute__ calls.
9051         (checknamespace): Use $CFLAGS_namespace.
9052
9053         * conform/conformtest.pl (@keywords): Only include C99 keywords
9054         for standards based on C99 or C11.
9055
9056         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9057         Disable tests.
9058         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9059         UNIX98]: Likewise.
9060
9061         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9062         usability of symbols in #if.
9063
9064         * conform/conformtest.pl: If macro or constant types start
9065         "promoted:", expect the symbol to be of the following type
9066         promoted by the integer promotions.
9067
9068         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9069         in one place.  Also handle "macro-constant".
9070
9071         * conform/conformtest.pl: Only accept expected macro values with
9072         "==".  Parse all "macro" lines in one place.
9073         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9074
9075         * conform/conformtest.pl: Handle braced types on "constant" lines
9076         instead of handling "typed-constant".
9077         * conform/data/signal.h-data: Use "constant" instead of
9078         "typed-constant".
9079
9080         * conform/conformtest.pl: Handle "optional-" at start of lines in
9081         one place rather than duplicating several cases.  Handle each
9082         format of "macro" line with initial "optional-".
9083
9084         * conform/conformtest.pl: Only accept expected constant or
9085         optional-constant values with "==".  Parse all "constant" lines in
9086         one place.  Parse all "optional-constant" lines in one place.
9087         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9088         * conform/data/fmtmsg.h-data: Likewise.
9089         * conform/data/netinet/in.h-data: Likewise.
9090         * conform/data/tar.h-data: Likewise.
9091         * conform/data/limits.h-data: Use "==" form on "constant" and
9092         "optional-constant" lines.
9093
9094         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9095         Use -std=c99 for XOPEN2K.
9096         (@knownproblems): Remove.
9097         (newtoken): Don't check %isknown.
9098
9099         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9100         Do not expect macro.
9101         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9102         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9103         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9104         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9105         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9106         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9107         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9108         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9109         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9110         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9111         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9112         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9113         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9114         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9115         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9116         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9117         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9118         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9119         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9120         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9121         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9122         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9123         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9124         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9125         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9126         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9127         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9128         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9129         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9130         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9131         [XPG3] (acosh): Likewise.
9132         [XPG3] (asinh): Likewise.
9133         [XPG3] (atanh): Likewise.
9134         [XPG3] (cbrt): Likewise.
9135         [XPG3] (expm1): Likewise.
9136         [XPG3] (ilogb): Likewise.
9137         [XPG3] (log1p): Likewise.
9138         [XPG3] (logb): Likewise.
9139         [XPG3] (nextafter): Likewise.
9140         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9141         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9142         [XPG3] (remainder): Likewise.
9143         [XPG3] (rint): Likewise.
9144         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9145         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9146         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9147         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9148         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9149         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9150         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9151         [UNIX98 || XOPEN2K] (scalb): Expect.
9152         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9153         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9154         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9155         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9156         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9157         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9158         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9159         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9160         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9161         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9162         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9163         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9164         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9165         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9166         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9167         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9168         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9169         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9170         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9171         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9172         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9173         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9174         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9175         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9176         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9177         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9178         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9179         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9180         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9181         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9182         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9183         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9184         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9185         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9186         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9187         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9188         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9189         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9190         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9191         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9192         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9193         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9194         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9195         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9196         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9197         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9198         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9199         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9200         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9201         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9202         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9203         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9204         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9205         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9206         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9207         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9208         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9209         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9210         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9211         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9212         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9213         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9214         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9215         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9216         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9217         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9218         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9219         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9220         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9221         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9222         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9223         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9224         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9225         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9226         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9227         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9228         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9229         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9230         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9231         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9232         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9233         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9234         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9235         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9236         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9237         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9238         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9239         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9240         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9241         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9242         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9243         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9244         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9245         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9246         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9247         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9248         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9249         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9250         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9251         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9252         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9253         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9254         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9255         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9256         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9257         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9258         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9259         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9260         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9261         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9262         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9263         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9264         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9265         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9266         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9267         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9268         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9269         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9270         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9271         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9272         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9273         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9274         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9275         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9276         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9277         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9278         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9279         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9280         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9281         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9282         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9283         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9284         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9285         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9286         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9287         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9288         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9289
9290         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9291         _XOPEN_SOURCE_EXTENDED for XPG4.
9292
9293         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9294
9295         * Makeconfig (localtime): Remove variable.
9296         (inst_localtime-file): Likewise.
9297
9298 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9299
9300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9301         Update.
9302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9303         Update.
9304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9305         Update.
9306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9307         Update.
9308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9309         Update.
9310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9311         Update.
9312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9313         Update.
9314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9315         Update.
9316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9317         Update.
9318
9319 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9320
9321         [BZ #2550]
9322         [BZ #2570]
9323         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9324         comparisons to determine direction to adjust input.
9325         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9326         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9327         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9328         Likewise.
9329         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9330         Likewise.
9331         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9332         Likewise.
9333         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9334         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9335         Likewise.
9336         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9337         Likewise.
9338         * math/libm-test.inc (nexttoward_test): Add more tests.
9339
9340 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9341
9342         [BZ #14040]
9343         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
9344         in version GLIBC_2.1, not GLIBC_2.0.
9345         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
9346         Likewise.
9347
9348 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
9349
9350         [BZ #13942]
9351         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
9352         (1 - x) * (1 + x).
9353         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9354         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
9355         * math/libm-test.inc (acos_test): Add more tests.
9356         (asin_test): Likewise.
9357         * sysdeps/i386/fpu/libm-test-ulps: Update.
9358         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9359
9360         [BZ #14034]
9361         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
9362         of square root.
9363         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
9364         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9365         * math/libm-test.inc (acos_test_tonearest): New function.
9366         (acos_test_towardzero): Likewise.
9367         (acos_test_downward): Likewise.
9368         (acos_test_upward): Likewise.
9369         (asin_test_tonearest): Likewise.
9370         (asin_test_towardzero): Likewise.
9371         (asin_test_downward): Likewise.
9372         (asin_test_upward): Likewise.
9373         (main): Call the new functions.
9374         * sysdeps/i386/fpu/libm-test-ulps: Update.
9375         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9376
9377         [BZ #13884]
9378         [BZ #13924]
9379         * math/e_exp10.c: Include <float.h>.
9380         (__ieee754_exp10): Handle underflow here rather than multiplying
9381         large negative argument by M_LN10.
9382         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
9383         of __ieee754_expf.
9384         * math/e_exp10l.c: Include <float.h>.
9385         (__ieee754_exp10l): Handle underflow here rather than multiplying
9386         large negative argument by M_LN10l.
9387         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
9388         spurious overflow exception on underflow.
9389
9390 2012-04-29  Marek Polacek  <polacek@redhat.com>
9391
9392         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
9393         (__fortify_function): New macro.
9394         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
9395         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
9396         __extern_always_inline.
9397         * libio/bits/stdio2.h: Likewise.
9398         * libio/bits/stdio.h: Likewise.
9399         * string/string.h: Likewise.
9400         * string/bits/string3.h: Likewise.
9401         * include/stdio.h: Likewise.
9402         * stdlib/bits/stdlib.h: Likewise.
9403         * stdlib/stdlib.h: Likewise.
9404         * rt/bits/mqueue2.h: Likewise.
9405         * rt/mqueue.h: Likewise.
9406         * posix/bits/unistd.h: Likewise.
9407         * posix/unistd.h: Likewise.
9408         * io/bits/poll2.h: Likewise.
9409         * io/bits/fcntl2.h: Likewise.
9410         * io/fcntl.h: Likewise.
9411         * io/sys/poll.h: Likewise.
9412         * misc/bits/syslog.h: Likewise.
9413         * misc/bits/syslog-ldbl.h: Likewise.
9414         * misc/sys/syslog.h: Likewise.
9415         * socket/bits/socket2.h: Likewise.
9416         * socket/sys/socket.h: Likewise.
9417         * debug/tst-chk1.c: Likewise.
9418         * wcsmbs/bits/wchar2.h: Likewise.
9419         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9420         * wcsmbs/wchar.h: Likewise.
9421
9422 2012-04-29  Andreas Jaeger  <aj@suse.de>
9423
9424         * Makerules (tests): Remove enable-check-abi protection.
9425         (check-abi-warn): Remove.
9426         (check-abi-%): Remove check-abi-warn usage.
9427
9428         * configure.in: Remove check-abi configure option.
9429         * configure: Regenerated.
9430         * config.make.in (enable-check-abi): Remove.
9431
9432 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
9433
9434         [BZ #14033]
9435         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
9436         double functions to double *_finite functions.
9437
9438         [BZ #13941]
9439         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
9440         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
9441         LDBL_MIN_EXP.
9442         * stdio-common/Makefile (tests): Add tst-sprintf3.
9443         * stdio-common/tst-sprintf3.c: New file.
9444
9445         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
9446         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
9447
9448 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9449
9450         * conform/conformtest.pl: Remove duplicate typed-constant
9451         handling.
9452
9453 2012-04-28  David S. Miller  <davem@davemloft.net>
9454
9455         * Makerules (%.abilist): Add vpath on sysdep_dirs.
9456         (check-abi-%): Remove AWK script prerequisite and explicit
9457         abilist directory.
9458         (check-abi): Rewrite to just diff the symlist with the abilist.
9459         (config-tls, config-abi-config): Delete, no longer used.
9460         (update-abi-%): Remove AWK script and explicit abilist directory.
9461         (update-abi): Rewrite to simply compare and conditionally copy the
9462         symlist and the sysdep abilist file.  Remove update-abi-config
9463         checks.
9464         * abilist/ld.abilist: Remove.
9465         * abilist/libBrokenLocale.abilist: Remove.
9466         * abilist/libanl.abilist: Remove.
9467         * abilist/libcrypt.abilist: Remove.
9468         * abilist/libdl.abilist: Remove.
9469         * abilist/librt.abilist: Remove.
9470         * abilist/libthread_db.abilist: Remove.
9471         * abilist/libutil.abilist: Remove.
9472         * scripts/extract-abilist.awk: Remove.
9473         * scripts/merge-abilist.awk: Remove.
9474         * sysdeps/generic/libcidn.abilist: New file.
9475         * sysdeps/generic/libnss_compat.abilist: New file.
9476         * sysdeps/generic/libnss_db.abilist: New file.
9477         * sysdeps/generic/libnss_dns.abilist: New file.
9478         * sysdeps/generic/libnss_files.abilist: New file.
9479         * sysdeps/generic/libnss_hesiod.abilist: New file.
9480         * sysdeps/generic/libnss_nis.abilist: New file.
9481         * sysdeps/generic/libnss_nisplus.abilist: New file.
9482         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
9483         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
9484         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
9485         file.
9486         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
9487         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
9488         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
9489         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
9490         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
9491         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
9492         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
9493         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
9494         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
9495         file.
9496         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
9497         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
9498         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
9499         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
9500         file.
9501         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
9502         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
9503         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
9504         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
9505         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
9506         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
9507         file.
9508         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
9509         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
9510         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
9511         file.
9512         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
9513         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
9514         New file.
9515         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
9516         New file.
9517         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
9518         New file.
9519         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
9520         New file.
9521         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
9522         New file.
9523         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
9524         New file.
9525         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
9526         New file.
9527         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
9528         New file.
9529         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
9530         New file.
9531         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
9532         New file.
9533         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
9534         New file.
9535         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
9536         New file.
9537         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
9538         New file.
9539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
9540         file.
9541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
9542         New file.
9543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
9544         New file.
9545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
9546         file.
9547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
9548         New file.
9549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
9550         New file.
9551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
9552         file.
9553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
9554         New file.
9555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9556         New file.
9557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
9558         New file.
9559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
9560         New file.
9561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
9562         New file.
9563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
9564         New file.
9565         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
9566         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
9567         file.
9568         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
9569         New file.
9570         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
9571         file.
9572         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
9573         file.
9574         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
9575         file.
9576         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
9577         file.
9578         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
9579         file.
9580         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9581         New file.
9582         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
9583         file.
9584         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
9585         file.
9586         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
9587         New file.
9588         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
9589         file.
9590         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
9591         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
9592         file.
9593         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
9594         New file.
9595         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
9596         file.
9597         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
9598         file.
9599         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
9600         file.
9601         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
9602         file.
9603         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
9604         file.
9605         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9606         New file.
9607         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
9608         file.
9609         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
9610         file.
9611         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
9612         New file.
9613         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
9614         file.
9615         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
9616         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
9617         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
9618         file.
9619         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
9620         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
9621         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
9622         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
9623         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
9624         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
9625         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
9626         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
9627         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
9628         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
9629         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
9630         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
9631         file.
9632         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
9633         New file.
9634         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
9635         file.
9636         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
9637         file.
9638         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
9639         file.
9640         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
9641         file.
9642         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
9643         file.
9644         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
9645         New file.
9646         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
9647         New file.
9648         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
9649         file.
9650         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
9651         New file.
9652         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
9653         file.
9654         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
9655         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
9656         file.
9657         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
9658         New file.
9659         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
9660         file.
9661         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
9662         file.
9663         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
9664         file.
9665         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
9666         file.
9667         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
9668         file.
9669         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
9670         New file.
9671         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
9672         New file.
9673         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
9674         file.
9675         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
9676         New file.
9677         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
9678         file.
9679
9680 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9681
9682         * conform/conformtest.pl: Fix typo in handling typed-constant from
9683         allow-header.
9684
9685 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9686
9687         * README: Cut down references to pre-2.6 Linux kernels and
9688         Linuxthreads.  Update lists of configurations in libc and ports
9689         and sort alphabetically.  Say "or newer" with Linux kernel version
9690         requirements.
9691
9692         * config.h.in [IS_IN_build]: Allow compiling without optimization.
9693
9694 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9695
9696         [BZ #887]
9697         * math/libm-test.inc (logb_test_downward): New test to expose
9698         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
9699         rounding mode.
9700
9701 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9702
9703         [BZ #14027]
9704         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
9705         to be done.
9706         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
9707         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
9708
9709 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
9710
9711         * sysdeps/unix/i386/brk.S: Remove file.
9712         * sysdeps/unix/i386/dl-brk.S: Likewise.
9713         * sysdeps/unix/i386/pipe.S: Likewise.
9714         * sysdeps/unix/i386/sigreturn.S: Likewise.
9715         * sysdeps/unix/i386/syscall.S: Likewise.
9716         * sysdeps/unix/i386/vfork.S: Likewise.
9717         * sysdeps/unix/i386/wait.S: Likewise.
9718
9719         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9720         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9721
9722         * configure.in (arm*-none*): Do not allow without
9723         --enable-hacker-mode.
9724         (netbsd*): Remove case setting base_os.
9725         (386bsd*): Likewise.
9726         (freebsd*): Likewise.
9727         (bsdi*): Likewise.
9728         (osf*): Likewise.
9729         (sunos*): Likewise.
9730         (ultrix*): Likewise.
9731         (newsos*): Likewise.
9732         (dynix*): Likewise.
9733         (*bsd*): Likewise.
9734         (sysv*): Likewise.
9735         (isc*): Likewise.
9736         (esix*): Likewise.
9737         (sco*): Likewise.
9738         (minix*): Likewise.
9739         (irix4*): Likewise.
9740         (irix6*): Likewise.
9741         (solaris[2-9]*): Likewise.
9742         (none): Likewise.
9743         * configure: Regenerated.
9744
9745 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9746
9747         [BZ #11521]
9748         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9749         overflow or cancellation in calculating denominator.
9750         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9751         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9752         down expression to avoid unexpected rounding in newer GCCs.
9753         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9754
9755 2012-04-26  David S. Miller  <davem@davemloft.net>
9756
9757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9758         long-double compat symbols.
9759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9764         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9766         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9767         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9768         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9769         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9770         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9771         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9772
9773 2012-04-25  David S. Miller  <davem@davemloft.net>
9774
9775         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9776         HWCAP_* values only after the memory barriers have been defined.
9777         (atomic_full_barrier): Define.
9778         (atomic_read_barrier): Define.
9779         (atomic_write_barrier): Define.
9780
9781 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9782
9783         * shlib-versions: Add libgcc_s version information.
9784         * sysdeps/generic/libgcc_s.h: Remove.
9785         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9786         libgcc_s.h.
9787         * sysdeps/gnu/unwind-resume.c: Likewise.
9788         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9789
9790 2012-04-25  David S. Miller  <davem@davemloft.net>
9791
9792         * sysdeps/unix/sparc/brk.S: Delete.
9793         * sysdeps/unix/sparc/dl-brk.S: Delete.
9794         * sysdeps/unix/sparc/pipe.S: Delete.
9795         * sysdeps/unix/sparc/sysdep.S: Delete.
9796         * sysdeps/unix/sparc/sysdep.h: Delete.
9797         * sysdeps/unix/sparc/vfork.S: Delete.
9798         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9799         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9800         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9801         ret_ERRVAL, r0, r1, MOVE): Define.
9802         (JUMPTARGET): Remove.
9803         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9804         sysdeps/unix/sparc/sysdep.h
9805         (ENTRY, END): Remove.
9806         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9807
9808 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9809
9810         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9811         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9812         -DIS_IN_build.
9813
9814         * timezone/README: Update upstream location and email address for
9815         tzcode and tzdata.
9816         * timezone/zdump.c: Update from tzcode 2012b.
9817         * timezone/zic.c: Likewise.
9818
9819         * configure.in (libc_cv_as_needed): Remove test.
9820         * configure: Regenerated.
9821         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9822         conditional definition.
9823         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9824         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9825         * config.make.in (have-as-needed): Remove variable.
9826
9827 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9828             Paul Pluzhnikov  <ppluzhnikov@google.com>
9829
9830         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9831         strings correctly.
9832
9833 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9834
9835         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9836         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9837         * sysdeps/sh/strlen.S: Likewise.
9838
9839 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9840
9841         * sysdeps/unix/fork.S: Remove file.
9842         * sysdeps/unix/i386/fork.S: Likewise.
9843         * sysdeps/unix/sparc/fork.S: Likewise.
9844
9845         * sysdeps/unix/system.c: Remove file.
9846         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9847
9848         * sysdeps/unix/getegid.S: Remove file.
9849         * sysdeps/unix/geteuid.S: Likewise.
9850
9851 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9852
9853         * scripts/check-localplt.awk: New file.
9854         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9855         of diff.
9856         * scripts/data/localplt-generic.data: Add a comment.
9857
9858         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9859         NODE when __dir_mkfile failed.
9860         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9861         Reported by Ludovic Courtès <ludo@gnu.org>.
9862
9863 2012-04-24  Andreas Jaeger  <aj@suse.de>
9864
9865         * Makerules (common-clean): Also remove gen-as-const-headers
9866         files.
9867
9868 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9869
9870         * Makerules (native-compile): Do not change working directory for
9871         build.  Use $(OUTPUT_OPTION) in command.
9872         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9873
9874 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9875
9876         [BZ #13886]
9877         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9878         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9879         * math/libm-test.inc (floor_test): Add more tests.
9880         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9881
9882 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9883
9884         * sysdeps/unix/getdents.c: Remove file.
9885         * sysdeps/unix/sysv/getdents.c: Likewise.
9886         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9887
9888         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9889         sysdeps/unix/mman/syscalls.list.
9890         (mmap): Likewise.
9891         (mprotect): Likewise.
9892         (msync): Likewise.
9893         (munmap): Likewise.
9894         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9895         * sysdeps/unix/mman/syscalls.list: Remove.
9896         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9897
9898         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9899         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9900         * configure: Regenerated.
9901         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9902         $(libgcc_s_suffix).
9903         * config.make.in (libgcc_s_suffix): Remove variable.
9904
9905 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9906
9907         * sysdeps/unix/sysv/gethostname.c: Move to ...
9908         * sysdeps/posix/gethostname.c: ... here.
9909
9910         * sysdeps/unix/execve.S: Remove file.
9911
9912         * sysdeps/unix/_exit.S: Remove file.
9913
9914 2012-04-23  Andreas Jaeger  <aj@suse.de>
9915
9916         [BZ #13739]
9917         * manual/Makefile: Remove make dist support, there's no
9918         need for a stand-alone documentation tar ball.
9919         (TEXI2DVI): Define always, it's not in Makeconfig.
9920         (dist): Removed.
9921         (tar-it): Removed.
9922         (edition): Removed.
9923         (glibc-doc-$(edition).tar): Removed
9924         (%.Z): Removed.
9925         (%.gz): Removed.
9926         (%.uu): Removed.
9927         (ETAGS): Remove, it's in Makeconfig.
9928         (move-if-change): Remove, it's in Makeconfig.
9929
9930 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9931
9932         [BZ #13970]
9933         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9934         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9935         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9936         (strtod_l, strtof_l, strtold_l): Remove __wur.
9937         It is not necessarily an error to ignore strtol's return value.
9938         One can reliably look at the stored endptr to decide whether
9939         the number had valid syntax.
9940
9941 2012-04-21  Andreas Jaeger  <aj@suse.de>
9942
9943         [BZ #13739]
9944         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9945
9946 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9947
9948         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9949         * sysdeps/unix/sysv/Versions: Remove file.
9950
9951 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9952
9953         [BZ #13927]
9954         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9955
9956 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9957
9958         [BZ #7064]
9959         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9960         version from __vm86.
9961
9962 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9963
9964         * sysdeps/unix/common/lxstat.c: Remove file.
9965         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9966
9967         * sysdeps/unix/sysv/Makefile: Remove file.
9968
9969         * sysdeps/unix/sysv/direct.h: Remove file.
9970
9971         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9972         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9973         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9974         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9975         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9976         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9977         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9978
9979         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9980
9981         * sysdeps/unix/xmknod.c: Remove file.
9982         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9983
9984         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9985
9986         * sysdeps/unix/sysv/i386/time.S: Remove file.
9987
9988         * sysdeps/unix/fxstat.c: Remove file.
9989         * sysdeps/unix/xstat.c: Likewise.
9990         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9991
9992         * sysdeps/unix/sysv/sigaction.c: Remove file.
9993
9994         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9995         (sysdep_headers): Remove variable.
9996         [termio.h not in sysdep_headers] (generated): Likewise.
9997         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9998         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9999         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10000         * sysdeps/unix/sysv/tcflow.c: Likewise.
10001         * sysdeps/unix/sysv/tcflush.c: Likewise.
10002         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10003         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10004         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10005         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10006         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10007
10008         * sysdeps/unix/siglist.c: Remove file.
10009
10010         * sysdeps/unix/getppid.S: Remove file.
10011
10012         * sysdeps/unix/mkdir.c: Remove file.
10013         * sysdeps/unix/rmdir.c: Likewise.
10014
10015 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10016
10017         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10018         ERR_MAX value.
10019         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10020         errlist-compat value.
10021
10022 2012-04-18  David S. Miller  <davem@davemloft.net>
10023
10024         * sysdeps/generic/memcopy.h (reg_char): Delete.
10025         * debug/strcat_chk.c: Use char, not reg_char.
10026         * debug/strcpy_chk.c: Likewise.
10027         * debug/strncat_chk.c: Likewise.
10028         * debug/strncpy_chk.c: Likewise.
10029         * string/memchr.c: Likewise.
10030         * string/memrchr.c: Likewise.
10031         * string/rawmemchr.c: Likewise.
10032         * string/strcat.c: Likewise.
10033         * string/strchr.c: Likewise.
10034         * string/strchrnul.c: Likewise.
10035         * string/strcmp.c: Likewise.
10036         * string/strcpy.c: Likewise.
10037         * string/strncat.c: Likewise.
10038         * string/strncmp.c: Likewise.
10039         * string/strncpy.c: Likewise.
10040
10041 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10042
10043         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10044         __builtin_memcopy is called when src and dest ranges are known to not
10045         overlap.
10046
10047 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10048
10049         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10050         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10051         fwd_align_merge macro call.
10052         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10053         bwd_align_merge macro call.
10054         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10055
10056 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10057
10058         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10059         bwd_align_merge macros.
10060         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10061         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10062         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10063
10064 2012-04-18  David S. Miller  <davem@davemloft.net>
10065
10066         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10067
10068 2012-04-18  Andreas Jaeger  <aj@suse.de>
10069
10070         [BZ# 6794]
10071         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10072         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10073         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10074
10075         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10076         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10077         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10078
10079         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10080         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10081         Adjust for changed ldbl-128 files.
10082
10083         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10084         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10085         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10086
10087 2012-04-17  David S. Miller  <davem@davemloft.net>
10088
10089         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10090
10091 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10092
10093         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10094         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10095         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10096         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10097         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10098         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10099
10100 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10101
10102         [BZ #6794]
10103         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10104         * math/libm-test.inc: Add ilogb errno and exception tests.
10105         * math/w_ilogb.c: New file: ilogb wrapper.
10106         * math/w_ilogbf.c: New file: ilogbf wrapper.
10107         * math/w_ilogbl.c: New file: ilogbl wrapper.
10108         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10109         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10110         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10111         exception being thrown with 0.0 as argument.
10112         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10113         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10114         exception being thrown with 0.0 as argument.
10115         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10116         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10117         exception being thrown with 0.0 as argument.
10118         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10119         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10120         exception being thrown with 0.0 as argument.
10121         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10122         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10123         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10124         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10125         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10126         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10127         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10128         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10129         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10130
10131 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10132
10133         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10134         with altivec.
10135
10136 2012-04-16  Marek Polacek  <polacek@redhat.com>
10137
10138         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10139
10140 2012-04-16  Marek Polacek  <polacek@redhat.com>
10141
10142         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10143         operands of fdivp instruction.
10144
10145 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10146
10147         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10148         * elf/tst-auditmod3b.c: Likewise.
10149         * elf/tst-auditmod4b.c: Likewise.
10150         * elf/tst-auditmod5b.c: Likewise.
10151         * elf/tst-auditmod6b.c: Likewise.
10152         * elf/tst-auditmod6c.c: Likewise.
10153         * elf/tst-auditmod7b.c: Likewise.
10154         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10155         * sysdeps/x86_64/preconfigure.in: Likewise.
10156         * sysdeps/x86_64/preconfigure: Regenerated.
10157
10158 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10159
10160         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10161         __ILP32__.
10162
10163 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10164
10165         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10166         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10167
10168 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10169
10170         [BZ #13973]
10171         * locale/iso-639.def: Fix gl language name. Spotted by
10172         Yaron Shahrabani.
10173
10174 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10175
10176         [BZ #2074]
10177         * libio/libio.h (__io_write_fn): Update comment.
10178
10179 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10180
10181         [BZ #2074]
10182         * stdio.texi (Hook Functions): The user provided writer function
10183         is not allowed to return -1.
10184
10185 2012-04-11  David S. Miller  <davem@davemloft.net>
10186
10187         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10188
10189 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10190
10191         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10192         Add a leading slash to rtkaio.
10193
10194 2012-04-11  Jim Meyering  <meyering@redhat.com>
10195
10196         [BZ #11959]
10197         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10198         It is not necessarily an error to ignore fwrite's return
10199         value.  One can reliably use ferror to test for errors after
10200         the fact.
10201
10202 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10203
10204         * bits/types.h (__snseconds_t): New type.
10205         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10206
10207         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10208         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10209         (__SNSECONDS_T_TYPE): Likewise.
10210         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10211         (__SNSECONDS_T_TYPE): Likewise.
10212         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10213         (__SNSECONDS_T_TYPE): Likewise.
10214
10215 2012-04-10  Andreas Jaeger  <aj@suse.de>
10216
10217         [BZ #2636]
10218         * manual/time.texi (Processor Time): Return type of times is
10219         elapsed real time since an arbitrary point in the past.
10220         (CPU Time): Move CLK_TCK from here...
10221         (Processor Time): ...to here.  Correct description.
10222         * manual/conf.texi (Constants for Sysconf): Correct description of
10223         _SC_CLK_TCK.
10224
10225 2012-04-10  David S. Miller  <davem@davemloft.net>
10226
10227         [BZ #13967]
10228         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10229         where the is a gap between DT_REL(A) and DT_JMPREL.
10230
10231 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10232
10233         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10234         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10235         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10236
10237 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10238
10239         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10240         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10241         (dl_main): Handle --inhibit-cache.
10242         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10243         _dl_inhibit_cache.
10244         * elf/dl-load.c (_dl_map_object): Use it.
10245         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10246
10247 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10248
10249         [BZ #13872]
10250         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10251         (__ieee754_powl): Saturate large exponents rather than testing for
10252         overflow of y*log2(x).
10253         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10254         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10255         exceptions.
10256
10257         [BZ #11521]
10258         * math/s_ctan.c: Include <float.h>.
10259         (__ctan): Avoid internal overflow or cancellation in calculating
10260         denominator.
10261         * math/s_ctanf.c: Likewise.
10262         * math/s_ctanl.c: Likewise.
10263         * math/s_ctanh.c: Likewise.
10264         * math/s_ctanhf.c: Likewise.
10265         * math/s_ctanhl.c: Likewise.
10266         * math/libm-test.inc (ctan_test): Add more tests.
10267         (ctanh_test): Likewise.
10268         * sysdeps/i386/fpu/libm-test-ulps: Update.
10269         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10270
10271 2012-04-09  Andreas Jaeger  <aj@suse.de>
10272
10273         [BZ #6894]
10274         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10275         is an optional BSD extension.
10276
10277         [BZ #10254]
10278         * manual/stdio.texi (Opening Streams): Document additional fopen
10279         parameters.
10280
10281 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10282
10283         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10284         %eax without telling the compiler.
10285
10286 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10287
10288         [BZ # 13963]
10289         * manual/install.texi: Use sourceware.org.
10290
10291 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10292
10293         [BZ #13873]
10294         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10295         (__ieee754_pow): Generate overflow and underflow using huge*huge
10296         and tiny*tiny rather than just returning constant infinity or zero
10297         for large exponents.
10298         * math/libm-test.inc (pow_test): Require overflow exceptions for
10299         applicable cases of large exponents.
10300
10301         [BZ #706]
10302         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10303         (__ieee754_pow): Use iterative multiplication algorithm only for
10304         integer exponents with absolute value below 1024.  Check for odd
10305         integer exponents when using algorithm for real exponents.
10306         * math/libm-test.inc (pow_test): Add more tests.
10307         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10308
10309 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10310
10311         [BZ #13705]
10312         * math/libm-test.inc (exp_test): Do not allow overflow exception
10313         on underflow test.
10314
10315 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10316
10317         [BZ #13705]
10318         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10319         instead of __kernel_standard_f.
10320
10321 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10322
10323         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10324         * sysdeps/x86_64/memset_chk.S: Likewise.
10325
10326 2012-04-08  Andreas Jaeger  <aj@suse.de>
10327
10328         [BZ #10153]
10329         * manual/startup.texi (Environment Access): Describe return value
10330         for putenv and setenv.
10331
10332         [BZ #6895]
10333         * manual/filesys.texi (Directory Entries): Add description for
10334         DT_LNK.
10335
10336         [BZ #6890]
10337         * manual/filesys.texi (Directory Entries): Clarify that it's file
10338         system not operating system in the description of DT_UNKNOWN.
10339
10340         [BZ #6578]
10341         * manual/syslog.texi (closelog): Fix reference, it's openlog.
10342
10343 2012-04-08  Stephen Compall  <s11@member.fsf.org>
10344
10345         [BZ #6649]
10346         * manual/llio.texi (Opening and Closing Files): Add cross
10347         reference to explain mode argument.
10348
10349 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
10350
10351         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
10352         * sysdeps/x86_64/memset_chk.S: Likewise.
10353
10354 2012-04-07  David S. Miller  <davem@davemloft.net>
10355
10356         * elf/elf.h (R_SPARC_WDISP10): Define.
10357         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
10358         R_SPARC_SIZE32.
10359         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
10360         R_SPARC_SIZE64 and R_SPARC_H34.
10361
10362 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
10363
10364         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
10365         conditions and remove no longer applicable assertion.
10366
10367 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10368
10369         * bits/byteswap.h: Include <features.h>.
10370         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10371         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10372
10373 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10374
10375         * bits/byteswap.h (__bswap_16): Removed.
10376         Include <bits/byteswap-16.h> to get __bswap_16.
10377         * sysdeps/i386/bits/byteswap.h: Likewise.
10378         * sysdeps/s390/bits/byteswap.h: Likewise.
10379         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10380         * bits/byteswap-16.h: New file.
10381         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10382         * sysdeps/s390/bits/byteswap-16.h: Likewise.
10383         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
10384         * string/Makefile (headers): Add bits/byteswap-16.h.
10385
10386 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10387
10388         [BZ #13895]
10389         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
10390         extra indirection.
10391         * nss/Makefile (tests-static, tests): Add tst-nss-static.
10392         * nss/tst-nss-static.c: New.
10393
10394 2012-04-06  Robert Millan  <rmh@gnu.org>
10395
10396         [BZ #6486]
10397         * manual/llio.texi (File Position Primitive): lseek
10398         refers to WHENCE when it really means OFFSET.
10399
10400 2012-04-06  Andreas Jaeger  <aj@suse.de>
10401
10402         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
10403         strncmp declarations.
10404
10405         * abilist/libc.abilist: Add __poll and __ppoll.
10406
10407 2012-04-05  David S. Miller  <davem@davemloft.net>
10408
10409         * scripts/check-local-headers.sh: Accept a host triplet in the
10410         path matched by the exclude regexp.
10411
10412         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
10413         definition.
10414         * sysdeps/powerpc/powerpc32/dl-machine.h
10415         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
10416         * sysdeps/s390/s390-32/dl-machine.h
10417         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10418         * sysdeps/sparc/sparc32/dl-machine.h
10419         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10420         * sysdeps/sparc/sparc64/dl-machine.h
10421         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10422
10423         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
10424         lazy binding.
10425         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
10426         undefined symbol errors.
10427
10428         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
10429         DT_NEEDED entries.
10430
10431 2012-04-05  Michael Matz  <matz@suse.de>
10432
10433         [BZ #13592]
10434         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
10435
10436 2012-04-05  Andreas Jaeger  <aj@suse.de>
10437
10438         [BZ #13908]
10439         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
10440         comment.
10441
10442 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10443
10444         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
10445         which ROUND is no valid rounding mode.
10446
10447 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10448
10449         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
10450         read again.
10451         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
10452
10453 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10454
10455         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
10456         an exception using FPU order intentionally.
10457
10458 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10459
10460         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
10461         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
10462         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
10463         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
10464
10465 2012-04-05  Simon Josefsson  <simon@josefsson.org>
10466
10467         [BZ #12340]
10468         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
10469         EINVAL when BUFLEN is too smal.
10470
10471 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10472
10473         [BZ #13553]
10474         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
10475         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10476
10477 2012-04-03  Andreas Jaeger  <aj@suse.de>
10478
10479         [BZ #13938]
10480         * manual/setjmp.texi (System V contexts): Fix sentence.
10481
10482         [BZ #13926]
10483         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
10484         New macro for this case.
10485         [!__GNUC__] (__bswap_64): New inline function for this case.
10486         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10487         * bits/byteswap.h: Likewise.
10488         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
10489         ull, guard with __GLIBC_HAVE_LONG_LONG.
10490
10491         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
10492         __GLIBC_HAVE_LONG_LONG.
10493
10494         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
10495         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
10496
10497 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10498
10499         [BZ #13691]
10500         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
10501         inptr and inend, rather than using last_ch.
10502
10503 2012-04-02  David S. Miller  <davem@davemloft.net>
10504
10505         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
10506         * stdio-common/printf-parse.h (read_int): Change return type to
10507         'int', return -1 on INT_MAX overflow.
10508         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
10509         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
10510         overflows INT_MAX.  Check for overflow of in-format-string precision
10511         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
10512         SIZE_MAX not INT_MAX for integer overflow test.
10513         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
10514         skip the construct in the format string but do not record anything.
10515         * stdio-common/bug22.c: Adjust to test both width/prevision
10516         INT_MAX overflow as well as total length INT_MAX overflow.  Check
10517         explicitly for proper errno values.
10518
10519 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10520
10521         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
10522         CHAR_MAX.
10523         * string/test-strcmp.c [! WIDE]: Likewise.
10524         * time/tst-mktime2.c: Likewise for INT_MAX.
10525         * string/test-string.h: #include <sys/param.h> for MIN.
10526
10527         * csu/init-first.c (__libc_init_first): Call __ctype_init.
10528         * sysdeps/i386/init-first.c (init): Likewise.
10529         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
10530         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
10531         * sysdeps/sh/init-first.c (init): Likewise.
10532
10533 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
10534
10535         * po/ru.po: Update from translation team.
10536         * po/vi.po: Likewise.
10537
10538 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10539
10540         * resolv/nss_dns/dns-host.c: Merge copyright years.
10541
10542 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10543
10544         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10545         Optimize memcpy with prefetch if
10546         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
10547         src, dst pointers have unequal 16 byte alignments.
10548
10549 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10550
10551         [BZ #13928]
10552         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
10553         from a CNAME entry and return the minimum ttl for the query.
10554         (gaih_getanswer_slice): Likewise.
10555
10556 2012-03-30  Jeff Law  <law@redhat.com>
10557
10558         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
10559         due to long keys.
10560         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
10561         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
10562
10563         * resolv/nss_dns/dns-host.c: Update copyright year.
10564
10565 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
10566
10567         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
10568         requests to save a system call.  Fix check that all bytes are sent.
10569
10570         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
10571         comments for sendmmsg.
10572
10573 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10574
10575         [BZ #13691]
10576         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
10577         with only 1 character between 0x0041 and 0x01b0.
10578         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
10579         * wcsmbs/tst-mbsnrtowcs.c: New file.
10580
10581 2012-03-29  David S. Miller  <davem@davemloft.net>
10582
10583         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
10584         small copies by hand.
10585
10586 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10587
10588         [BZ #13761]
10589         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
10590         _nss_compat_initgroups_dyn): Fall back to malloc/free
10591         for large group memberships.
10592
10593 2012-03-28  David S. Miller  <davem@davemloft.net>
10594
10595         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
10596         that branches into memcpy.
10597         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
10598         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
10599         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
10600         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
10601         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
10602         bits.
10603         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
10604         implementation too.
10605         * sysdeps/sparc/mempcpy.S: New file.
10606
10607         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
10608         the IFUNC routine in the libc case.
10609         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10610
10611         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
10612         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
10613         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
10614         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
10615         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
10616         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
10617         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
10618         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
10619
10620         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
10621         loop to 256 bytes instead of 64 bytes and fix test signedness.
10622
10623         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
10624         * sysdeps/sparc/sparc32/Makefile: rather than here...
10625         * sysdeps/sparc/sparc64/Makefile: and here.
10626
10627 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
10628
10629         * malloc/mallocbug.c: Avoid warnings about unused variables.
10630
10631 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10632
10633         [BZ #13760]
10634         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
10635         in the right place. Discard and retry query if response is
10636         larger than input buffer size.
10637
10638 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
10639
10640         [BZ #369]
10641         [BZ #2678]
10642         [BZ #3866]
10643         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
10644         x for large integer exponent.
10645         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
10646         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
10647         sign of result as needed afterwards.
10648         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10649         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
10650         result for underflowing pow the same as for overflow.
10651         (__kernel_standard_l): Handle powl overflow and underflow here
10652         rather than calling __kernel_standard.
10653         * math/libm-test.inc (pow_test): Add more tests.
10654
10655         [BZ #3868]
10656         [BZ #13879]
10657         [BZ #13910]
10658         [BZ #13911]
10659         [BZ #13912]
10660         [BZ #13913]
10661         [BZ #13915]
10662         [BZ #13916]
10663         [BZ #13917]
10664         [BZ #13918]
10665         [BZ #13919]
10666         [BZ #13920]
10667         [BZ #13921]
10668         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
10669         * sysdeps/ieee754/k_standard.c: Include <float.h>.
10670         (__kernel_standard_l): New function.
10671         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
10672         __kernel_standard.
10673         * math/w_acosl.c (__acosl): Likewise.
10674         * math/w_asinl.c (__asinl): Likewise.
10675         * math/w_atan2l.c (__atan2l): Likewise.
10676         * math/w_atanhl.c (__atanhl): Likewise.
10677         * math/w_coshl.c (__coshl): Likewise.
10678         * math/w_exp10l.c (__exp10l): Likewise.
10679         * math/w_exp2l.c (__exp2l): Likewise.
10680         * math/w_fmodl.c (__fmodl): Likewise.
10681         * math/w_hypotl.c (__hypotl): Likewise.
10682         * math/w_j0l.c (__j0l, __y0l): Likewise.
10683         * math/w_j1l.c (__j1l, __y1l): Likewise.
10684         * math/w_jnl.c (__jnl, __ynl): Likewise.
10685         * math/w_lgammal.c (__lgammal): Likewise.
10686         * math/w_log10l.c (__log10l): Likewise.
10687         * math/w_log2l.c (__log2l): Likewise.
10688         * math/w_logl.c (__logl): Likewise.
10689         * math/w_powl.c (__powl): Likewise.
10690         * math/w_remainderl.c (__remainderl): Likewise.
10691         * math/w_scalbl.c (sysv_scalbl): Likewise.
10692         * math/w_sinhl.c (__sinhl): Likewise.
10693         * math/w_sqrtl.c (__sqrtl): Likewise.
10694         * math/w_tgammal.c (__tgammal): Likewise.
10695         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
10696         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
10697         * math/libm-test.inc (acos_test): Add more tests.
10698         (acosh_test): Likewise.
10699         (asin_test): Likewise.
10700         (atanh_test): Likewise.
10701         (exp_test): Likewise.
10702         (exp10_test): Likewise.
10703         (exp2_test): Likewise.
10704         (expm1_test): Likewise.
10705         (lgamma_test): Likewise.
10706         (log_test): Likewise.
10707         (log10_test): Likewise.
10708         (log1p_test): Likewise.
10709         (log2_test): Likewise.
10710         (pow_test): Do not allow some spurious overflow exceptions.
10711         (sqrt_test): Add more tests.
10712         (tgamma_test): Likewise.
10713         (y0_test): Likewise.
10714         (y1_test): Likewise.
10715         (yn_test): Likewise.
10716
10717 2012-03-27  Anton Blanchard  <anton@samba.org>
10718
10719         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10720         MAP_HUGETLB.
10721         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10722         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10723         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10724
10725 2012-03-27  David S. Miller  <davem@davemloft.net>
10726
10727         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10728
10729         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10730         have-as-vis3 check.
10731
10732 2012-03-27  Andreas Jaeger  <aj@suse.de>
10733
10734         * sysdeps/x86_64/elf/configure.in: Moved to ...
10735         * sysdeps/x86_64/configure.in: ... here.
10736         * sysdeps/x86_64/elf/start.S: Moved to ...
10737         * sysdeps/x86_64/start.S: ... here.
10738         * sysdeps/x86_64/elf/configure: Delete.
10739
10740         * sysdeps/x86_64/configure.in: Merge contents from
10741         sysdeps/i386/configure.in (without i686 check).
10742
10743         * sysdeps/i386/elf/Versions: Merge into ...
10744         * sysdeps/i386/Versions: ... this.
10745         * sysdeps/i386/elf/Versions: Delete file.
10746         * sysdeps/i386/elf/start.S: Moved to ...
10747         * sysdeps/i386/start.S: ...here.
10748         * sysdeps/i386/elf/configure.in: Merge into...
10749         * sysdeps/i386/configure.in: ...here.
10750         * sysdeps/i386/elf/configure.in: Delete file.
10751         * sysdeps/i386/elf/configure: Delete file.
10752
10753         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10754         * debug/backtracesyms.c: ... here.
10755         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10756         * debug/backtracesymsfd.c: ... here.
10757         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10758         * sysdeps/generic/ifunc-sel.h: ... here.
10759
10760         * sysdeps/unix/i386/start.c: Delete file.
10761         * sysdeps/unix/sparc/start.c: Delete file.
10762         * sysdeps/unix/start.c: Delete file.
10763
10764         * sysdeps/sh/elf/configure.in: Moved to ...
10765         * sysdeps/sh/configure.in: ... here.
10766         * sysdeps/sh/elf/start.S: Moved to ...
10767         * sysdeps/sh/start.S: ... here.
10768         * sysdeps/sh/elf/configure: Delete file.
10769
10770         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10771         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10772         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10773         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10774         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10775         * sysdeps/powerpc/powerpc64/start.S: here.
10776         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10777         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10778         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10779         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10780         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10781
10782         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10783         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10784         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10785         * sysdeps/powerpc/powerpc32/start.S: ... here.
10786         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10787         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10788         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10789
10790         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10791         * sysdeps/powerpc/ifunc-sel.h: ... here.
10792         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10793         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10794
10795         * sysdeps/sparc/elf/configure.in: Moved to ...
10796         * sysdeps/sparc/configure.in: ... here.
10797         * sysdeps/sparc/elf/configure: Delete file.
10798         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10799         * sysdeps/sparc/sparc32/start.S: ... here.
10800         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10801         * sysdeps/sparc/sparc64/start.S: ... here.
10802         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10803         * sysdeps/sparc/sparc32/Makefile: ... this.
10804         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10805         * sysdeps/sparc/sparc64/Makefile: ... this.
10806
10807         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10808         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10809         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10810         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10811         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10812         * sysdeps/s390/s390-32/setjmp.S: ... here.
10813         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10814         * sysdeps/s390/s390-32/configure.in: ... here.
10815         * sysdeps/s390/s390-32/elf/configure: Delete file.
10816         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10817         * sysdeps/s390/s390-32/start.S: ... here.
10818
10819         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10820         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10821         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10822         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10823         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10824         * sysdeps/s390/s390-64/setjmp.S: ... here.
10825         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10826         * sysdeps/s390/s390-64/configure.in: ... here
10827         * sysdeps/s390/s390-64/elf/configure: Delete file.
10828         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10829         * sysdeps/s390/s390-64/start.S: ... here.
10830         * sysdeps/s390/s390-64/elf/configure: Delete.
10831
10832         * configure.in: Remove support for elf directories in sysdeps.
10833
10834         * configure: Regenerated.
10835         * sysdeps/i386/configure: Regenerated.
10836         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10837         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10838         * sysdeps/s390/s390-32/configure: Regenerated.
10839         * sysdeps/s390/s390-64/configure: Regenerated.
10840         * sysdeps/sh/configure: Regenerated.
10841         * sysdeps/sparc/configure: Regenerated.
10842         * sysdeps/x86_64/configure: Regenerated.
10843
10844 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10845
10846         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10847
10848         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10849         denormal result into account.
10850
10851 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10852
10853         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10854         Reported by Allan McRae <allan@archlinux.org>.
10855
10856 2012-03-23  Jeff Law  <law@redhat.com>
10857
10858         * nss/getnssent.c (__nss_getent): Fix typo.
10859
10860 2012-03-23  David S. Miller  <davem@davemloft.net>
10861
10862         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10863
10864 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10865
10866         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10867         to pad to uint64_t for each field.
10868         (dl_tls_index): Replace unsigned long with uint64_t.
10869
10870 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10871         Paul Pluzhnikov  <ppluzhnikov@google.com>
10872
10873         [BZ #6528]
10874         * grp/Makefile (otherlibs): Don't set it.
10875         * inet/Makefile (otherlibs): Likewise.
10876         * login/Makefile (otherlibs): Likewise.
10877         * nscd/Makefile (otherlibs): Likewise.
10878         * posix/Makefile (otherlibs): Likewise.
10879         * pwd/Makefile (otherlibs): Likewise.
10880         * rt/Makefile (otherlibs): Likewise.
10881         * sunrpc/Makefile (otherlibs): Likewise.
10882         * nss/Makefile (otherlibs): Likewise.
10883         Add libnss_files to routines and static-only-routines.
10884         ($(objpfx)getent): Remove rule.
10885         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10886         static-only-routines.
10887
10888 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10889
10890         [BZ #13892]
10891         * math/s_cexp.c: Include <float.h>.
10892         (__cexp): Handle exp result overflowing not necessarily
10893         overflowing both real and imaginary parts of result.
10894         * math/s_cexpf.c: Likewise.
10895         * math/s_cexpl.c: Likewise.
10896         * math/libm-test.inc (cexp_test): Add more tests.
10897         * sysdeps/i386/fpu/libm-test-ulps: Update.
10898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10899
10900 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10901
10902         * include/link.h (ELFW): New macro.
10903         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10904         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10905
10906 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10907
10908         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10909         with uint64_t.
10910
10911 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10912
10913         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10914         declaration.
10915         (struct La_x32_retval): Likewise.
10916
10917 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10918
10919         * sysdeps/x86_64/preconfigure.in: New file.
10920         * sysdeps/x86_64/preconfigure: New generated file.
10921
10922 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10923
10924         [BZ #13824]
10925         * math/e_exp2l.c: Include <float.h>.
10926         (__ieee754_exp2l): Handle overflow and underflow cases
10927         separately.  Only pass fractional part of argument to
10928         __ieee754_expl.
10929         * math/libm-test.inc (exp2_test): Add more tests.
10930
10931         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10932         negating x to take absolute value.
10933         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10934         Likewise.
10935         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10936         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10937         Likewise.
10938         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10939         computing low part if x was negated.
10940         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10941
10942 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10943
10944         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10945         la_x32_gnu_pltexit.
10946         (pltexit): Cast int_retval to ptrdiff_t.
10947         * elf/tst-auditmod3b.c: Likewise.
10948         * elf/tst-auditmod4b.c: Likewise.
10949         * elf/tst-auditmod5b.c: Likewise.
10950         * elf/tst-auditmod6b.c: Likewise.
10951         * elf/tst-auditmod6c.c: Likewise.
10952         * elf/tst-auditmod7b.c: Likewise.
10953
10954         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10955         and x32_gnu_pltexit.
10956
10957         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10958         __ELF_NATIVE_CLASS.
10959         (La_x32_regs): New macro.
10960         (La_x32_retval): Likewise.
10961         (la_x32_gnu_pltenter): New function prototype.
10962         (la_x32_gnu_pltexit): Likewise.
10963
10964 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10965
10966         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10967         exponent.
10968
10969         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10970
10971         * configure.in (libc_cv_cc_nofma): Check for option to disable
10972         generation of FMA instructions.
10973         * configure: Regenerate.
10974         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10975         * sysdeps/ieee754/dbl-64/Makefile: New file.
10976         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10977         Remove brandred-fma4.
10978         (CFLAGS-brandred-fma4.c): Remove.
10979         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10980         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10981         define.
10982         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10983         define.
10984
10985 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10986
10987         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10988         LLONG_MAX != LONG_MAX.
10989         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10990         (_fitoa_word): Likewise.
10991         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10992         LLONG_MAX != LONG_MAX.
10993         * stdio-common/_itowa.h: Include <_itoa.h>.
10994         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10995         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10996         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10997         only if not defined.
10998         (_ITOA_WORD_TYPE): Likewise.
10999         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11000         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11001
11002 2012-03-21  David S. Miller  <davem@davemloft.net>
11003
11004         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11005
11006 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11007
11008         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11009         of x86_64 when setting libc_cv_slibdir, libdir and
11010         libc_cv_localedir.
11011         * sysdeps/unix/sysv/linux/configure: Regenerated.
11012
11013 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11014
11015         * manual/lang.texi (Old Varargs): Remove section.
11016         (How Variadic): Update menu.
11017         (va_start): Do not mention varargs.h.
11018
11019 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11020             Joseph Myers  <joseph@codesourcery.com>
11021
11022         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11023         link test.
11024         * configure: Regenerated.
11025
11026 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11027
11028         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11029         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11030         conformtest.pl
11031
11032 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11033
11034         * NOTES: Remove.
11035         * Makefile (files-for-dist): Remove NOTES.
11036         (NOTES): Remove rule.
11037         * README: Don't refer to NOTES.
11038         * manual/creature.texi: Don't include macros.texi.
11039         * manual/intro.texi (creature.texi): Remove comment referring to
11040         NOTES.
11041
11042         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11043         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11044         * configure: Regenerated.
11045         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11046         LIBC_TRY_CC_OPTION.
11047         (libc_cv_as_i686): Likewise.
11048         (libc_cv_cc_avx): Likewise.
11049         (libc_cv_cc_sse2avx): Likewise.
11050         (libc_cv_cc_fma4): Likewise.
11051         (libc_cv_cc_novzeroupper): Likewise.
11052         * sysdeps/i386/configure: Regenerated.
11053
11054         [BZ #13883]
11055         * sysdeps/i386/fpu/s_cexp.S: Remove.
11056         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11057         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11058         * math/libm-test.inc (cexp_test): Add more tests.
11059         * sysdeps/i386/fpu/libm-test-ulps: Update.
11060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11061
11062 2012-03-21  Allan McRae  <allan@archlinux.org>
11063
11064         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11065
11066 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11067
11068         [BZ #13871]
11069         * math/w_exp2.c: Do not include <float.h>.
11070         (o_threshold, u_threshold): Remove.
11071         (__exp2): Calculate result before checking finiteness and calling
11072         __kernel_standard.
11073         * math/w_exp2f.c: Likewise.
11074         * math/w_exp2l.c: Likewise.
11075         * math/libm-test.inc (exp2_test): Require overflow exception for
11076         1e6 input.
11077
11078         [BZ #3866]
11079         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11080         range of signed 64-bit integers before using fistpll.  Remove
11081         checks for whether integers fit in mantissa bits.
11082         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11083         the range of signed 32-bit integers before using fistpl.  Remove
11084         checks for whether integers fit in mantissa bits.
11085         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11086         (__ieee754_powl): Test for y outside the range of signed 64-bit
11087         integers before using fistpll.  Reduce 64-bit values to 63-bit
11088         ones as needed.
11089         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11090         divide-by-zero is raised for zero to large negative powers.
11091         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11092         (__ieee754_powl): Test for y outside the range of signed 64-bit
11093         integers before using fistpll.  Reduce 64-bit values to 63-bit
11094         ones as needed.
11095         * math/libm-test.inc (pow_test): Add more tests.
11096
11097 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11098
11099         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11100         <stdio-common/_itoa.h>.
11101         * debug/segfault.c: Likewise.
11102         * elf/dl-cache.c: Likewise.
11103         * elf/dl-minimal.c: Likewise.
11104         * elf/dl-misc.c: Likewise.
11105         * elf/dl-sysdep.c: Likewise.
11106         * elf/dl-version.c: Likewise.
11107         * elf/rtld.c: Likewise.
11108         * hurd/hurdsock.c: Likewise.
11109         * hurd/lookup-retry.c: Likewise.
11110         * malloc/malloc.c: Likewise.
11111         * malloc/mtrace.c: Likewise.
11112         * nscd/nscd_getgr_r.c: Likewise.
11113         * nscd/nscd_getpw_r.c: Likewise.
11114         * nscd/nscd_getserv_r.c: Likewise.
11115         * posix/getopt_init.c: Likewise.
11116         * posix/wordexp.c: Likewise.
11117         * stdio-common/_itoa.c: Likewise.
11118         * stdio-common/printf_fphex.c: Likewise.
11119         * stdio-common/vfprintf.c: Likewise.
11120         * string/_strerror.c: Likewise.
11121         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11122         * sysdeps/i386/i686/hp-timing.h: Likewise.
11123         * sysdeps/mach/_strerror.c: Likewise.
11124         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11125         * sysdeps/mach/hurd/sethostid.c: Likewise.
11126         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11127         * sysdeps/mach/xpg-strerror.c: Likewise.
11128         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11129         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11130         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11131         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11132         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11133         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11134         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11135         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11136         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11137         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11138         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11139         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11140         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11141         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11142         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11143         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11144         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11145         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11146         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11147         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11148         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11149
11150         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11151
11152         * stdio-common/_itoa.h: Moved to ...
11153         * sysdeps/generic/_itoa.h: Here.
11154
11155         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11156
11157         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11158         instead of "_itoa.h" and "_itowa.h".
11159         * stdio-common/vfprintf.: Likewise.
11160
11161 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11162
11163         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11164         <bits/wordsize.h>.
11165         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11166         (__signbit): Likwise.
11167         (llrintf): Likwise.
11168         (llrint): Likwise.
11169
11170 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11171
11172         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11173         __WORDSIZE != 64.
11174
11175 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11176
11177         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11178         OVERFLOW_EXCEPTION_OK.
11179         * math/libm-test.inc ("Philosophy"): Update comment about
11180         exception testing.
11181         (OVERFLOW_EXCEPTION): Define.
11182         (OVERFLOW_EXCEPTION_OK): Likewise.
11183         (INVALID_EXCEPTION_OK): Renumber.
11184         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11185         (IGNORE_ZERO_INF_SIGN): Likewise.
11186         (test_exceptions): Handle FE_OVERFLOW.
11187         (exp10_test): Expect overflow exceptions.
11188         (exp2_test): Likewise.
11189         (expm1_test): Likewise.
11190         (nextafter_test): Likewise.
11191         (pow_test): Likewise.
11192         (scalbn_test): Likewise.
11193         (scalbln_test): Likewise.
11194
11195 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11196
11197         * sysdeps/x86_64/bits/atomic.h
11198         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11199         64bit integer.
11200         (atomic_exchange_acq): Likewise.
11201         (__arch_exchange_and_add_body): Likewise.
11202         (__arch_add_body): Likewise.
11203         (atomic_add_negative): Likewise.
11204         (atomic_add_zero): Likewise.
11205
11206 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11207
11208         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11209         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11210
11211 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11212
11213         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11214         Check __x86_64__ instead of __WORDSIZE.
11215
11216 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11217
11218         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11219
11220 2012-03-19  David S. Miller  <davem@davemloft.net>
11221
11222         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11223
11224         * sysdeps/sparc/fpu/fenv_private.h: New file.
11225         * sysdeps/sparc/fpu/math_private.h: Use it.
11226         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11227         Remove.
11228         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11229         (libc_feholdexcept_setroundl): Remove.
11230         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11231         Remove.
11232         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11233         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11234
11235 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11236
11237         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11238         int64_t instead of long int.
11239         (INSERT_WORDS64): Likwise.
11240
11241 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11242
11243         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11244         _Unwind_GetCFA return to _Unwind_Ptr first.
11245
11246 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11247
11248         [BZ #13629]
11249         * math/s_clog.c: Include <float.h>.
11250         (__clog): Scale large or subnormal inputs.
11251         * math/s_clogf.c: Likewise.
11252         * math/s_clogl.c: Likewise.
11253         * math/s_clog10.c: Include <float.h>.
11254         (M_LOG10_2): Define.
11255         (__clog10): Scale large or subnormal inputs.
11256         * math/s_clog10f.c: Likewise.
11257         * math/s_clog10l.c: Likewise.
11258         * math/libm-test.inc (clog_test): Add more tests.
11259         (clog10_test): Likewise.
11260         * sysdeps/i386/fpu/libm-test-ulps: Update.
11261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11262
11263         [BZ #11451]
11264         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11265         x and y.
11266         * math/libm-test.inc (atan2_test): Add another test.
11267
11268         * Makerules (common-objdir-compile): Remove.
11269         * sysdeps/unix/Makefile (config-generated): Do not add
11270         $(unix-generated) to variable.
11271         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11272         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11273         Remove rule.
11274         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11275         Likewise.
11276         [generic bits/local_lim.h] (before-compile): Do not append to
11277         variable.
11278         [generic bits/local_lim.h] (common-generated): Likewise.
11279         [generic sys/param.h] (before-compile): Do not append to variable.
11280         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11281         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11282         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11283         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11284         include.
11285         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11286         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11287         [generic sys/param.h] ($(addprefix
11288         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11289         [generic sys/param.h] (common-generated): Do not append to
11290         variable.
11291         [generic sys/param.h] (sysdep_headers): Likewise.
11292         [generic bits/errno.h] (before-compile): Do not append to
11293         variable.
11294         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11295         rule.
11296         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11297         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11298         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11299         [generic bits/errno.h] (common-generated): Do not append to
11300         variable.
11301         [generic bits/ioctls.h] (before-compile): Do not append to
11302         variable.
11303         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11304         rule.
11305         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11306         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11307         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11308         rule.
11309         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11310         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11311         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11312         [generic bits/ioctls.h] (common-generated): Do not append to
11313         variable.
11314         [generic sys/syscall.h] (syscall.h): Remove variable.
11315         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11316         rule.
11317         [generic sys/syscall.h] (before-compile): Do not append to
11318         variable.
11319         [generic sys/syscall.h] (common-generated): Likewise.
11320         * sysdeps/unix/errnos-tmpl.c: Remove file.
11321         * sysdeps/unix/errnos.awk: Likewise.
11322         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11323         * sysdeps/unix/ioctls.awk: Likewise.
11324         * sysdeps/unix/mk-local_lim.c: Likewise.
11325         * sysdeps/unix/snarf-ioctls: Likewise.
11326
11327 2012-03-19  Richard Henderson  <rth@twiddle.net>
11328
11329         * sysdeps/i386/fpu/fenv_private.h: New file.
11330         * sysdeps/i386/fpu/math_private.h: Use it.
11331         (math_opt_barrier, math_force_eval): Remove.
11332         (libc_feholdexcept_setround_53bit): Remove.
11333         (libc_feupdateenv_53bit): Remove.
11334         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11335         (math_opt_barrier, math_force_eval): Remove.
11336         (libc_feholdexcept): Remove.
11337         (libc_feholdexcept_setround): Remove.
11338         (libc_fetestexcept, libc_fesetenv): Remove.
11339         (libc_feupdateenv_test): Remove.
11340         (libc_feupdateenv, libc_feholdsetround): Remove.
11341         (libc_feresetround): Remove.
11342
11343         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
11344         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
11345
11346         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
11347         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
11348         (libc_feupdateenv_testl): New.
11349         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
11350         (libc_feupdateenv_testf): New.
11351         (libc_feupdateenv): Use libc_feupdateenv_test.
11352         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
11353         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
11354
11355         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
11356         (libc_feholdsetroundf, libc_feholdsetroundl): New.
11357         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
11358         (libc_feresetround_noex): New.
11359         (libc_feresetround_noexf): New.
11360         (libc_feresetround_noexl): New.
11361         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
11362         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
11363         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
11364         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
11365         SET_RESTORE_ROUND.
11366         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11367         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
11368         (__cos): Likewise.
11369         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
11370         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11371         SET_RESTORE_ROUND_NOEX.
11372         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
11373         SET_RESTORE_ROUND_NOEXF.
11374         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
11375         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
11376         (libc_feholdsetroundf): New.
11377         (libc_feresetround, libc_feresetroundf): New.
11378
11379         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
11380         (libc_feholdexcept_setround_53bit): Convert from macro to function.
11381         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
11382
11383         * sysdeps/generic/math_private.h: Include <fenv.h>.
11384         (default_libc_feholdexcept): New.
11385         (default_libc_feholdexcept_setround): New.
11386         (default_libc_fesetenv, default_libc_feupdateenv): New.
11387         (libc_feholdexcept): Only define if undefined.
11388         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
11389         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
11390         (libc_feholdexcept_setroundl): Likewise.
11391         (libc_feholdexcept_setround_53bit): Likewise.
11392         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
11393         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
11394         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
11395         (libc_feupdateenv_53bit): Likewise.
11396         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
11397         (libc_feholdexcept): Convert from macro to inline function.
11398         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
11399         (libc_fesetenv, libc_feupdateenv): Likewise.
11400
11401         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
11402         not previously defined.
11403         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
11404         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
11405         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
11406         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
11407         * sysdeps/ieee754/flt-32/math_private.h: New file.
11408         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
11409         math_private.h below SET_FLOAT_WORD.
11410         (__isnan, __isinf_ns, __finite): Remove.
11411         (__isnanf, __isinf_nsf, __finitef): Remove.
11412
11413 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
11414
11415         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11416
11417 2012-03-17  David S. Miller  <davem@davemloft.net>
11418
11419         [BZ #6471]
11420         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
11421         for 2.16.
11422
11423 2012-03-16  David S. Miller  <davem@davemloft.net>
11424
11425         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
11426         warnings.
11427
11428         [BZ #6471]
11429         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
11430         properly.
11431         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
11432         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
11433         sysdep_routines when subdir is sysvipc.
11434         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
11435         __getshmlba helper.
11436
11437         * sysdeps/sparc/fpu/libm-test/ulps: Update.
11438
11439 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11440
11441         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
11442         [__LP64__].
11443
11444 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11445
11446         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
11447         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
11448         (__lround): Renamed to ...
11449         (__llround): This.  Replace long int with long long int.
11450         Define lround functions as aliases of llround functions.
11451         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
11452
11453 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11454
11455         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
11456         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
11457         adresses to uintptr_t.  Replace "long int" and "unsigned long
11458         int" with "greg_t" on va_arg.
11459
11460 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11461
11462         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
11463         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
11464
11465         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
11466         Move e_machine check before EI_CLASS check.  Handle x32
11467         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
11468         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
11469         SKIP_EM_IA_64 and include
11470         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
11471
11472         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
11473         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
11474         (add_system_dir): New macro.
11475
11476         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
11477         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
11478
11479 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11480
11481         [BZ #2551]
11482         [BZ #2552]
11483         [BZ #2553]
11484         [BZ #2554]
11485         [BZ #2562]
11486         [BZ #2563]
11487         [BZ #2565]
11488         [BZ #2566]
11489         [BZ #2576]
11490         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
11491         (y0): Likewise.
11492         * math/w_j0f.c (j0f): Likewise.
11493         (y0f): Likewise.
11494         * math/w_j0l.c (__j0l): Likewise.
11495         (__y0l): Likewise.
11496         * math/w_j1.c (j1): Likewise.
11497         (y1): Likewise.
11498         * math/w_j1f.c (j1f): Likewise.
11499         (y1f): Likewise.
11500         * math/w_j1l.c (__j1l): Likewise.
11501         (__y1l): Likewise.
11502         * math/w_jn.c (jn): Likewise.
11503         (yn): Likewise.
11504         * math/w_jnf.c (jnf): Likewise.
11505         (ynf): Likewise.
11506         * math/w_jnl.c (__jnl): Likewise.
11507         (__ynl): Likewise.
11508         * math/libm-test.inc (j0_test): Add more tests.
11509         (j1_test): Likewise.
11510         (jn_test): Likewise.  Add trailing semicolon to existing test.
11511         (y0_test): Likewise.
11512         (y1_test): Likewise.
11513         * sysdeps/i386/fpu/libm-test-ulps: Update.
11514         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11515
11516         [BZ #13851]
11517         [BZ #13854]
11518         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11519         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
11520         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
11521         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
11522         (__tanl): Set errno for infinite argument.
11523         * sysdeps/i386/fpu/mptan.c: Remove.
11524         * sysdeps/i386/fpu/s_tan.S: Likewise.
11525         * sysdeps/i386/fpu/s_tanl.S: Likewise.
11526         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
11527         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
11528         * math/libm-test.inc (tan_test): Add more tests and enable more
11529         tests for double and long double.
11530         * sysdeps/i386/fpu/libm-test-ulps: Update.
11531         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11532
11533 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11534
11535         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
11536         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
11537
11538 2012-03-16  Roland McGrath  <roland@hack.frob.com>
11539
11540         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
11541         * configure.in: Use it for both main tree and add-ons.
11542         * configure: Regenerated.
11543
11544 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11545
11546         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
11547
11548 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11549
11550         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
11551         in comment.
11552
11553         [BZ #13851]
11554         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
11555         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
11556         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11557         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
11558         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
11559         infinite argument.
11560         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
11561         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
11562         != 0 for prec == 2.
11563         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
11564         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
11565         * sysdeps/i386/fpu/s_cosl.S: Likewise.
11566         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
11567         * sysdeps/i386/fpu/s_sinl.S: Likewise.
11568         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
11569         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
11570         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
11571         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
11572         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
11573         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
11574         * math/libm-test.inc (cos_test): Add more tests and enable more
11575         tests for long double.
11576         (sin_test): Likewise.
11577         (sincos_test): Likewise.
11578         * sysdeps/i386/fpu/libm-test-ulps: Update.
11579         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11580
11581 2012-03-16  David S. Miller  <davem@davemloft.net>
11582
11583         * sysdeps/sparc/fpu/math_private.h: New file.
11584
11585 2012-03-15  David S. Miller  <davem@davemloft.net>
11586
11587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
11588         file.
11589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
11590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
11591         file.
11592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
11593         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
11594         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
11595         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
11596         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
11597         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
11598         sysdep routines.
11599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11600
11601         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
11602         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
11603
11604         * sysdeps/sparc/sparc-ifunc.h: New file.
11605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
11606         sparc-ifunc.h
11607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
11608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
11609         Likewise.
11610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
11611         Likewise.
11612         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
11613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
11614         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
11615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
11616         Likewise.
11617         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
11618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
11619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
11620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
11621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
11622         Likewise.
11623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
11624         Likewise.
11625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
11626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
11627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
11628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
11629         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
11630         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
11631         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
11632         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
11633         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
11634         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
11635         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
11636         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
11637         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
11638         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
11639         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
11640         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
11641         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
11642         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
11643         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
11644         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
11645         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
11646         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
11647         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
11648         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
11649
11650 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11651
11652         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
11653         scaling.
11654         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11655
11656 2012-03-15  Andreas Jaeger  <aj@suse.de>
11657
11658         [BZ #13852]
11659         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
11660         ieee754/flt-32 implementation for sin, cos and sincos.
11661         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
11662         * sysdeps/i386/fpu/s_cosf.S: Likewise.
11663         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
11664         * sysdeps/i386/fpu/s_sinf.S: Likewise.
11665         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
11666         ieee754/flt-32 implementation for tan.
11667
11668         * math/libm-test.inc (cos_test): Enable some large input tests for
11669         float as well
11670         (sin_test): Likewise.
11671         (sincos_test): Likewise.
11672         (tan_test): Add tests for large input.
11673
11674         * sysdeps/i386/fpu/libm-test-ulps: Update.
11675
11676 2012-03-15  Andreas Jaeger  <aj@suse.de>
11677
11678         [BZ #13658]
11679         * math/libm-test.inc (cos_test): Add more test cases.
11680         (sin_test): Likewise.
11681         (sincos_test): Likewise.
11682
11683 2012-03-15  Andreas Jaeger  <aj@suse.de>
11684
11685         [BZ #13837]
11686         * math/libm-test.inc (cos_test): Add a test case for large input
11687         value.
11688         (sin_test): Likewise.
11689         (sincos_test): Likewise.
11690
11691 2012-03-15  Andreas Jaeger  <aj@suse.de>,
11692         Joseph Myers  <joseph@codesourcery.com>
11693
11694         [BZ #13658]
11695         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
11696         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
11697         * sysdeps/i386/fpu/branred.c: Likewise.
11698         * sysdeps/i386/fpu/dosincos.c: Likewise.
11699         * sysdeps/i386/fpu/mpa.c: Likewise.
11700         * sysdeps/i386/fpu/s_cos.S: Likewise.
11701         * sysdeps/i386/fpu/s_sin.S: Likewise.
11702         * sysdeps/i386/fpu/s_sincos.S: Likewise.
11703         * sysdeps/i386/fpu/sincos32.c: Likewise.
11704
11705         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
11706         Define.
11707         (libc_feupdateenv_53bit): Define.
11708         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
11709         Define.
11710         (libc_feupdateenv_53bit): Define.
11711
11712         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
11713         53 bit (without extend i386 double precision).
11714
11715         * math/libm-test.inc (sincos_test): Add tests for large input.
11716         (sin): Likewise.
11717         (cos): Likewise.
11718
11719         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11720
11721 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11722
11723         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11724
11725 2012-03-15  David S. Miller  <davem@davemloft.net>
11726
11727         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11728         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11729         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11730         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11731         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11732         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11733         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11734         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11735         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11736         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11737         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11738         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11739         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11740         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11741         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11743         file.
11744         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11746         file.
11747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11749         file.
11750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11752         file.
11753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11754         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11755         fmin/fmax sysdep routines.
11756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11757
11758 2012-03-14  David S. Miller  <davem@davemloft.net>
11759
11760         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11761         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11762         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11763         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11764         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11765         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11766         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11767         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11768         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11769         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11770         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11771         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11772         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11773         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11774         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11775         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11776         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11777         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11778         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11779         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11780         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11781         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11782         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11783         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11784         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11785         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11786         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11787         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11788         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11789         routines.
11790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11791         file.
11792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11794         file.
11795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11797         file.
11798         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11800         file.
11801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11803         file.
11804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11806         file.
11807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11808         file.
11809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11810         file.
11811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11812         file.
11813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11814         New file.
11815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11816         file.
11817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11818         file.
11819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11821         file.
11822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11824         file.
11825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11827         file.
11828         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11830         VIS3 routines.
11831
11832         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11833         New file.
11834
11835         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11836
11837         * sysdeps/sparc/configure.in: New file.
11838         * sysdeps/sparc/configure: Generate.
11839         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11840         * configure: Regenerate.
11841         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11842         * config.make.in (have-as-vis3): New.
11843         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11844         available use -Av9d instead of -Av9a.
11845         * sysdeps/sparc/sparc64/Makefile: Likewise.
11846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11848         New file.
11849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11850         file.
11851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11852         New file.
11853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11854         file.
11855         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11856         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11857         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11858         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11859         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11860
11861         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11862         fzeros/fnegs to load 0x80000000 into a float register instead of
11863         using the stack.
11864         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11865
11866 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11867
11868         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11869         bits/syscall.h.
11870         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11871         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11872         ($(inst_includedir)/bits/syscall.h): Remove rule.
11873         ($(objpfx)bits/syscall.d): Include instead of
11874         $(objpfx)syscall-list.d.
11875         (generated): Change syscall-list.h and syscall-list.d to
11876         bits/syscall.h and bits/syscall.d.
11877
11878 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11879
11880         [BZ #13846]
11881         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11882
11883 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11884
11885         [BZ #13841]
11886         * math/s_csqrt.c: Include <float.h>.
11887         (__csqrt): Scale large or subnormal inputs.
11888         * math/s_csqrtf.c: Likewise.
11889         * math/s_csqrtl.c: Likewise.
11890         * math/libm-test.inc (csqrt_test): Add more tests.
11891         * sysdeps/i386/fpu/libm-test-ulps: Update.
11892         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11893
11894         [BZ #13840]
11895         * math/libm-test.inc (hypot_test): Add more tests.
11896
11897 2012-03-13  David S. Miller  <davem@davemloft.net>
11898
11899         [BZ #13840]
11900         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11901         double-precision for the calculation instead of scaling.
11902
11903 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11904
11905         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11906         manipulate bits before adding and subtracting TWO52[sx].
11907         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11908         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11909         Likewise.
11910         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11911
11912 2012-03-13  David S. Miller  <davem@davemloft.net>
11913
11914         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11915         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11916         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11917         rtld-global-offsets.h
11918         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11919
11920         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11921         large parameters.
11922
11923         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11924
11925         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11926         'err' in the ifdef scope in which it is actually used.
11927
11928         * nss/nss_db/db-init.c: Include string.h
11929
11930 2012-03-12  David S. Miller  <davem@davemloft.net>
11931
11932         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11933         masking out of the most significant byte of random value used.
11934         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11935         Fix coding style in previous change.
11936
11937         * sysdeps/unix/sysv/linux/kernel-features.h
11938         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11939         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11940         expression.
11941         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11942         later.
11943
11944 2012-03-11  David S. Miller  <davem@davemloft.net>
11945
11946         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11947         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11948         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11949         for 'resultvar' otherwise things get truncated on 64-bit.
11950
11951         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11952         Fix masking out of the most significant byte of random value used.
11953
11954         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11955
11956 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11957
11958         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11959
11960 2012-03-09  David S. Miller  <davem@davemloft.net>
11961
11962         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11963         variables with appropriate CPP guards.
11964         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11965         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11966         on resulting framesize and the management of the outregs buffer for pltexit.
11967         Preserve floating point return values across _dl_call_pltexit call.
11968         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11969         framesize and the management of the outregs buffer for pltexit.
11970         Preserve floating point return values across _dl_call_pltexit
11971         call.
11972         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11973         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11974         (print_exit): Fix format string for return register value.
11975
11976 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11977
11978         * sunrpc/Makefile (others): Add rpcgen.
11979         ($(objpfx)rpcgen): Remove special build rule and dependency on
11980         libc.
11981         * sunrpc/rpcgen.c: New file.
11982
11983 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11984
11985         [BZ #13673]
11986         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11987         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11988         * sysdeps/i386/crti.S: Likewise.
11989         * sysdeps/i386/crtn.S: Likewise.
11990         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11991         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11992         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11993         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11994         * sysdeps/sh/crti.S: Likewise.
11995         * sysdeps/sh/crtn.S: Likewise.
11996         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11997
11998         [BZ #13673]
11999         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12000         with URL.
12001         * locale/programs/locfile-kw.gperf: Likewise.
12002         * locale/programs/charmap-kw.h: Regenerated.
12003         * locale/programs/locfile-kw.h: Likewise.
12004
12005         [BZ #13673]
12006         * intl/plural.y: Replace FSF snail mail address with URL.
12007         * intl/plural.c: Regenerated.
12008
12009 2012-03-09  Richard Henderson  <rth@twiddle.net>
12010
12011         * include/math_private.h: Remove file.
12012         * math/math_private.h: Move file ...
12013         * sysdeps/generic/math_private.h: ... here.
12014
12015         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12016         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12017         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12018
12019         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12020         and <math_private.h>.
12021         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12022         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12023         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12024         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12025         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12026         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12027         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12028         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12029         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12030         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12031         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12032         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12033         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12034         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12035         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12036         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12037         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12038         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12039         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12040         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12041         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12042         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12043         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12044         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12045         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12046         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12047         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12048         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12049         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12050         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12051         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12052         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12053         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12054         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12055         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12056         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12057         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12058         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12059         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12060         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12061         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12062         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12063         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12064         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12065         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12066         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12067         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12068         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12069         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12070         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12071         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12072         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12073         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12074         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12075         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12076         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12077         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12078         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12079         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12080         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12081         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12082         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12083         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12084         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12085         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12086         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12087         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12088         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12089         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12090         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12091         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12092         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12093         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12094         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12095         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12096         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12097         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12098         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12099         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12100         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12101         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12102         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12103         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12104         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12105         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12106         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12107         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12108         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12109         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12110         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12111         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12112         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12113         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12114         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12115         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12116         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12117         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12118         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12119         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12120         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12121         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12122         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12123         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12124         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12125         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12126         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12127         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12128         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12129         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12130         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12131         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12132         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12133         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12134         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12135         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12136         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12137         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12138         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12139         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12140         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12141         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12142         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12143         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12144         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12145         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12146         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12147         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12148         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12149         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12150         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12151         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12152         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12153         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12154         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12155         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12156         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12157         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12158         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12159         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12160         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12161         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12162         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12163         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12164         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12165         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12166         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12167         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12168         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12169         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12170         * sysdeps/ieee754/k_standard.c: Likewise.
12171         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12172         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12173         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12174         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12175         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12176         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12177         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12178         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12179         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12180         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12181         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12182         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12183         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12184         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12185         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12186         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12187         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12188         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12189         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12190         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12191         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12192         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12193         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12194         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12195         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12196         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12197         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12198         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12199         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12200         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12201         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12202         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12203         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12204         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12205         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12206         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12207         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12208         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12209         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12210         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12211         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12212         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12213         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12214         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12215         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12216         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12217         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12218         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12219         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12220         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12221         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12222         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12223         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12224         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12225         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12226         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12227         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12228         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12229         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12230         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12231         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12232         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12233         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12234         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12235         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12236         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12237         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12238         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12239         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12240         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12241         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12242         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12243         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12244         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12245         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12246         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12247         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12248         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12249         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12250         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12251         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12252         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12253         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12254         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12255         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12256         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12257         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12258         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12259         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12260         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12261         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12262         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12263         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12264         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12265         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12266         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12267         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12268         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12269         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12270         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12271         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12272         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12273         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12274         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12275         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12276         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12277         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12278         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12279         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12280         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12281         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12282         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12283         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12284         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12285         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12286         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12287         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12288         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12289         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12290         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12291         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12292         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12293         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12294         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12295         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12296         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12297         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12298         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12299         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12300         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12301         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12302         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12303         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12304         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12305         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12306         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12307         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12308         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12309         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12310         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12311         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12312         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12313         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12314         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12315         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12316         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12317         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12318         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12319         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12320         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12321         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12322         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12323         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12324         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12325         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12326         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12327         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12328         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12329         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12330         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12331         * sysdeps/ieee754/s_lib_version.c: Likewise.
12332         * sysdeps/ieee754/s_matherr.c: Likewise.
12333         * sysdeps/ieee754/s_signgam.c: Likewise.
12334         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12335         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12336         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12337         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12338         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12339         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12340         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
12341         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
12342         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
12343         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12344         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12345         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12346         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12347         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12348         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
12349         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
12350         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
12351         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
12352         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
12353         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12354         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12355
12356 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12357
12358         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
12359         * sunrpc/rpc_main.c: Likewise.
12360         * sunrpc/rpc_svcout.c: Likewise.
12361
12362 2012-03-09  David S. Miller  <davem@davemloft.net>
12363
12364         * include/math_private.h: New file.
12365
12366 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12367
12368         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
12369         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
12370         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
12371         from <bits/socket_type.h>.
12372         (enum __socket_type): Don't define here.
12373         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
12374         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12375         bits/socket_type.h.
12376
12377         [BZ #13566]
12378         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
12379         checking __USE_GNU.
12380
12381         * Makerules ($(inst_includedir)/%.h): New rule.
12382         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
12383         (install-others): Remove variable setting.
12384         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
12385
12386 2012-03-08  Richard Henderson  <rth@twiddle.net>
12387
12388         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
12389         from macro to inline function; merge with the
12390         !__LIBC_INTERNAL_MATH_INLINES version.
12391         (__ieee754_sqrtf): Likewise.
12392
12393         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
12394         to inline function.
12395         (__rintf, __floor, __floorf): Likewise.
12396
12397         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
12398         macro to inline function.
12399         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
12400
12401         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
12402         not <math/math_private.h>.
12403
12404 2012-03-08  David S. Miller  <davem@davemloft.net>
12405
12406         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
12407         copyright year.
12408         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12409
12410 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
12411
12412         * resolv/gai_misc.c (handle_requests): Fix struct timespec
12413         normalization.
12414         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
12415         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
12416
12417 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
12418
12419         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
12420         be defined individually, they must be defined as a block.  Define
12421         S for printing a string instead of hidint the different by using a
12422         macro for adding the 'l'.
12423         * stdio-common/tst-fphex-wide.c: Adjust.
12424
12425 2012-03-07  Marek Polacek  <polacek@redhat.com>
12426
12427         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
12428
12429 2012-03-08  Marek Polacek  <polacek@redhat.com>
12430
12431         [BZ #13806]
12432         * stdio-common/Makefile (tests): Add tst-fphex-wide.
12433         * stdio-common/tst-fphex.c: Define a few macros to make the
12434         test reusable.  Use them.
12435         * stdio-common/tst-fphex-wide.c: New file.
12436
12437 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
12438
12439         [BZ #6911]
12440         * manual/macros.texi (gnusystems): New macro.
12441         (nongnusystems): Likewise.
12442         (gnulinuxhurdsystems): Likewise.
12443         (gnuhurdsystems): Likewise..
12444         (gnulinuxsystems): Likewise.
12445         * manual/charset.texi: Use new macros or @theglibc{} to refer to
12446         variants of the GNU system, not "GNU system".
12447         * manual/conf.texi: Likewise.
12448         * manual/errno.texi: Likewise.  Update example of errno macro
12449         expansion.
12450         * manual/filesys.texi: Likewise.
12451         (getumask): Document as specific to GNU/Hurd.
12452         * manual/install.texi: Likewise.  Reword some references to
12453         GNU/Linux.
12454         * manual/intro.texi: Likewise.
12455         * manual/io.texi: Likewise.
12456         (File Name Portability): Detail which constraints are inapplicable
12457         to all GNU systems and which are only inapplicable to GNU/Hurd.
12458         * manual/job.texi: Likewise.
12459         * manual/llio.texi: Likewise.
12460         (O_NOCTTY): Document as present on GNU/Linux.
12461         * manual/maint.texi: Likewise.
12462         * manual/memory.texi: Likewise.
12463         * manual/pattern.texi: Likewise.
12464         * manual/pipe.texi: Likewise.
12465         * manual/process.texi: Likewise.
12466         * manual/resource.texi: Likewise.
12467         (RUSAGE_CHILDREN): Remove statement about specifying a particular
12468         child on GNU/Hurd.
12469         * manual/setjmp.texi: Likewise.
12470         * manual/signal.texi: Likewise.
12471         * manual/startup.texi: Likewise.
12472         * manual/stdio.texi: Likewise.
12473         * manual/terminal.texi: Likewise.
12474         (ONLCR): Document as POSIX.
12475         (OXTABS): Document availability on GNU/Linux as XTABS.
12476         (ONOEOT): Document availability separately from other bits.
12477         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
12478         * manual/time.texi: Likewise.
12479         * manual/users.texi: Likewise.
12480         * INSTALL: Regenerated.
12481         * sysdeps/gnu/errlist.c: Regenerated.
12482
12483         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
12484         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
12485         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
12486         puts.
12487         * configure: Regenerated.
12488
12489 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
12490
12491         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
12492         default includes instead of AC_HEADER_CHECK.
12493         * sysdeps/i386/configure: Regenerated.
12494
12495         [BZ #10716]
12496         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
12497         * math/s_cacoshf.c (__cacoshf): Likewise.
12498         * math/s_cacoshl.c (__cacoshl): Likewise.
12499         * math/s_casinh.c (__casinh): Set signs of result from argument.
12500         * math/s_casinhf.c (__casinhf): Likewise.
12501         * math/s_casinhl.c (__casinhl): Likewise.
12502         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
12503         (casinh_test): Add more tests.
12504         * sysdeps/i386/fpu/libm-test-ulps: Update.
12505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12506
12507 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
12508
12509         * po/zh_TW.po: Update from translation team.
12510
12511         * login/Makefile (distribute): Remove variable.
12512         * catgets/Makefile: Likewise.
12513         * mach/Makefile: Likewise.
12514         * malloc/Makefile: Likewise.
12515         * misc/Makefile: Likewise.
12516         * iconv/Makefile: Likewise.
12517         * nscd/Makefile: Likewise.
12518         * hurd/Makefile: Likewise.
12519         * manual/Makefile: Likewise.
12520         * locale/Makefile: Likewise.
12521         * intl/Makefile: Likewise.
12522         * conform/Makefile: Likewise.
12523         * nss/Makefile: Likewise.
12524         * time/Makefile: Likewise.
12525         * soft-fp/Makefile: Likewise.
12526         * dirent/Makefile: Likewise.
12527         * gmon/Makefile: Likewise.
12528         * po/Makefile: Likewise.
12529         * rt/Makefile: Likewise.
12530         * socket/Makefile: Likewise.
12531         * math/Makefile: Likewise.
12532         * signal/Makefile: Likewise.
12533         * debug/Makefile: Likewise.
12534         * elf/Makefile: Likewise.
12535         * timezone/Makefile: Likewise.
12536         * stdlib/Makefile: Likewise.
12537         * iconvdata/Makefile: Likewise.
12538         * sunrpc/Makefile: Likewise.
12539         * io/Makefile: Likewise.
12540         * argp/Makefile: Likewise.
12541         * inet/Makefile: Likewise.
12542         * hesiod/Makefile: Likewise.
12543         * grp/Makefile: Likewise.
12544         * csu/Makefile: Likewise.
12545         * wctype/Makefile: Likewise.
12546         * crypt/Makefile: Likewise.
12547         * libio/Makefile: Likewise.
12548         * string/Makefile: Likewise.
12549         * nis/Makefile: Likewise.
12550         * resolv/Makefile: Likewise.
12551         * stdio-common/Makefile: Likewise.
12552         * wcsmbs/Makefile: Likewise.
12553         * dlfcn/Makefile: Likewise.
12554         * posix/Makefile: Likewise.
12555
12556         [BZ #6959]
12557         * timezone/Makefile: Don't install timezone files, just the programs
12558         and scripts.
12559
12560 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
12561
12562         * nss/databases.def: Add missing gshadow entry.
12563
12564         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
12565
12566 2012-03-06  Marek Polacek  <polacek@redhat.com>
12567
12568         [BZ #13726]
12569         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
12570         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
12571         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
12572         * stdio-common/tst-long-dbl-fphex.c: New file.
12573
12574 2012-03-06  David S. Miller  <davem@davemloft.net>
12575
12576         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12577         (set_obp_int): New function.
12578         (get_obp_int): New function.
12579         (__get_clockfreq_via_dev_openprom): Likewise.
12580         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
12581         Avoid unused variable warnings on 'val' and use builtin_expect.
12582         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
12583         __builtin_expect.
12584         (INLINE_CLONE_SYSCALL): Likewise.
12585
12586 2012-03-05  David S. Miller  <davem@davemloft.net>
12587
12588         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12589
12590 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
12591
12592         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12593
12594         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
12595         only for |x| >= 40.
12596         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12597
12598 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12599
12600         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
12601         Replace gettimeofday with __vdso_gettimeofday.
12602
12603         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12604         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
12605         __vdso_clock_gettime and __vdso_getcpu.
12606
12607         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
12608         time with __vdso_time.
12609
12610 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12611
12612         * manual/lang.texi (size_t): Note types to which size_t may be
12613         equivalent with the GNU C Library, but do not describe when
12614         differences between them are significant.
12615
12616 2012-03-05  Andreas Jaeger  <aj@suse.de>
12617
12618         * sysdeps/i386/fpu/libm-test-ulps: Update.
12619
12620 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12621
12622         [BZ #3976]
12623         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
12624         (__ieee754_pow): Save and restore rounding mode and use
12625         round-to-nearest for main computations.
12626         * math/libm-test.inc (pow_test_tonearest): New function.
12627         (pow_test_towardzero): Likewise.
12628         (pow_test_downward): Likewise.
12629         (pow_test_upward): Likewise.
12630         (main): Call the new functions.
12631         * sysdeps/i386/fpu/libm-test-ulps: Update.
12632         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12633
12634         [BZ #3976]
12635         * math/libm-test.inc (cosh_test_tonearest): New function.
12636         (cosh_test_towardzero): Likewise.
12637         (cosh_test_downward): Likewise.
12638         (cosh_test_upward): Likewise.
12639         (sinh_test_tonearest): Likewise.
12640         (sinh_test_towardzero): Likewise.
12641         (sinh_test_downward): Likewise.
12642         (sinh_test_upward): Likewise.
12643         (main): Call the new functions.
12644         * sysdeps/i386/fpu/libm-test-ulps: Update.
12645         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12646
12647 2012-03-05  Tom de Vries  <tom@codesourcery.com>
12648
12649         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
12650         default stack guard is set in last bytes.
12651         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
12652
12653 2012-03-05  Kees Cook  <keescook@chromium.org>
12654
12655         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
12656
12657         [BZ #13656]
12658         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
12659         possibly allocate from heap instead of stack.
12660         * stdio-common/bug-vfprintf-nargs.c: New file.
12661         * stdio-common/Makefile (tests): Add nargs overflow test.
12662
12663 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
12664
12665         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12666
12667 2012-03-03  Marek Polacek  <polacek@redhat.com>
12668
12669         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
12670         * math/math_private.h: Likewise.
12671         * stdlib/tst-strtod.c: Likewise.
12672         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12673         * sysdeps/x86_64/bits/atomic.h: Likewise.
12674
12675 2012-03-02  David S. Miller  <davem@davemloft.net>
12676
12677         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
12678         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
12679         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
12680         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
12681         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
12682         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
12683         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
12684         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
12685
12686 2012-03-02  Roland McGrath  <roland@hack.frob.com>
12687
12688         [BZ #13792]
12689         * manual/examples/README: New file, says the example source files
12690         can be used under GPL>=2.
12691         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
12692         line containing just "*/".
12693         * manual/examples/add.c: Add copyright header (GPL>=2).
12694         * manual/examples/argp-ex1.c: Likewise.
12695         * manual/examples/argp-ex2.c: Likewise.
12696         * manual/examples/argp-ex3.c: Likewise.
12697         * manual/examples/argp-ex4.c: Likewise.
12698         * manual/examples/atexit.c: Likewise.
12699         * manual/examples/db.c: Likewise.
12700         * manual/examples/dir.c: Likewise.
12701         * manual/examples/dir2.c: Likewise.
12702         * manual/examples/execinfo.c: Likewise.
12703         * manual/examples/filecli.c: Likewise.
12704         * manual/examples/filesrv.c: Likewise.
12705         * manual/examples/fmtmsgexpl.c: Likewise.
12706         * manual/examples/genpass.c: Likewise.
12707         * manual/examples/inetcli.c: Likewise.
12708         * manual/examples/inetsrv.c: Likewise.
12709         * manual/examples/isockad.c: Likewise.
12710         * manual/examples/longopt.c: Likewise.
12711         * manual/examples/memopen.c: Likewise.
12712         * manual/examples/memstrm.c: Likewise.
12713         * manual/examples/mkfsock.c: Likewise.
12714         * manual/examples/mkisock.c: Likewise.
12715         * manual/examples/mygetpass.c: Likewise.
12716         * manual/examples/pipe.c: Likewise.
12717         * manual/examples/popen.c: Likewise.
12718         * manual/examples/rprintf.c: Likewise.
12719         * manual/examples/search.c: Likewise.
12720         * manual/examples/select.c: Likewise.
12721         * manual/examples/setjmp.c: Likewise.
12722         * manual/examples/sigh1.c: Likewise.
12723         * manual/examples/sigusr.c: Likewise.
12724         * manual/examples/stpcpy.c: Likewise.
12725         * manual/examples/strdupa.c: Likewise.
12726         * manual/examples/strftim.c: Likewise.
12727         * manual/examples/strncat.c: Likewise.
12728         * manual/examples/subopt.c: Likewise.
12729         * manual/examples/swapcontext.c: Likewise.
12730         * manual/examples/termios.c: Likewise.
12731         * manual/examples/testopt.c: Likewise.
12732         * manual/examples/testpass.c: Likewise.
12733         * manual/examples/timeval_subtract.c: Likewise.
12734
12735         [BZ #13792]
12736         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12737         function to ...
12738         * manual/timeval_subtract.c.texi: ... here, new file.
12739
12740 2012-03-02  David S. Miller  <davem@davemloft.net>
12741
12742         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12743
12744 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12745
12746         [BZ #3976]
12747         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12748         (__sin): Save and restore rounding mode and use round-to-nearest
12749         for all computations.
12750         (__cos): Save and restore rounding mode and use round-to-nearest
12751         for all computations.
12752         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12753         <fenv.h>.
12754         (tan): Save and restore rounding mode and use round-to-nearest for
12755         all computations.
12756         * math/libm-test.inc (cos_test_tonearest): New function.
12757         (cos_test_towardzero): Likewise.
12758         (cos_test_downward): Likewise.
12759         (cos_test_upward): Likewise.
12760         (sin_test_tonearest): Likewise.
12761         (sin_test_towardzero): Likewise.
12762         (sin_test_downward): Likewise.
12763         (sin_test_upward): Likewise.
12764         (tan_test_tonearest): Likewise.
12765         (tan_test_towardzero): Likewise.
12766         (tan_test_downward): Likewise.
12767         (tan_test_upward): Likewise.
12768         (main): Call the new functions.
12769         * sysdeps/i386/fpu/libm-test-ulps: Update.
12770         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12771
12772         [BZ #10135]
12773         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12774         small n, then large n, before computing and testing k+n.
12775         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12776         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12777         Likewise.
12778         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12779         Likewise.
12780         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12781         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12782         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12783         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12784         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12785         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12786         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12787         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12788         * math/libm-test.inc (scalbn_test): Add more tests.
12789         (scalbln_test): Likewise.
12790
12791         * manual/filesys.texi (mode_t): Describe constraints on size and
12792         signedness, not exact equivalence to a particular type.
12793         (ino_t): Likewise.
12794         (ino64_t): Likewise.
12795         (dev_t): Likewise.
12796         (nlink_t): Likewise.
12797         (blkcnt_t): Likewise.
12798         (blkcnt64_t): Likewise.
12799         * manual/llio.texi (off_t): Likewise.
12800
12801         [BZ #3976]
12802         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12803         (__ieee754_exp): Save and restore rounding mode and use
12804         round-to-nearest for all computations.
12805         * math/libm-test.inc (exp_test_tonearest): New function.
12806         (exp_test_towardzero): Likewise.
12807         (exp_test_downward): Likewise.
12808         (exp_test_upward): Likewise.
12809         (main): Call the new functions.
12810         * sysdeps/i386/fpu/libm-test-ulps: Update.
12811         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12812
12813 2012-03-01  Chris Demetriou  <cgd@google.com>
12814
12815         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12816         have predictable order.
12817
12818 2012-03-01  David S. Miller  <davem@davemloft.net>
12819
12820         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12821
12822         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12823         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12824         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12825         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12826
12827         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12828         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12829         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12830         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12831         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12832         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12833         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12834         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12835         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12836
12837         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12838
12839         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12840         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12841         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12842
12843         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12844         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12845         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12846         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12847         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12848         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12849         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12850         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12851         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12852         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12853         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12854         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12855         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12856         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12857         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12858         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12859         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12860         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12861         * sysdeps/sparc/elf/configure: Regenerated.
12862
12863 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12864
12865         * configure.in (AS, LD): Require binutils 2.20 or later.
12866         * configure: Regenerated.
12867         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12868         as required minimum version.
12869         * INSTALL: Regenerated.
12870
12871         [BZ #2541]
12872         [BZ #4108]
12873         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12874         before squaring exponent.
12875         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12876         bottom long double and 27 bits of top long double before squaring
12877         exponent.
12878         * math/libm-test.inc (erfc_test): Add more tests.
12879         * sysdeps/i386/fpu/libm-test-ulps: Update.
12880         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12881         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12882
12883 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12884
12885         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12886         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12887         containing bit-fields.
12888         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12889         * soft-fp/single.h (_FP_UNION_S): Likewise.
12890         * soft-fp/double.h (_FP_UNION_D): Likewise.
12891
12892 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12893
12894         [BZ #13786]
12895         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12896         not include ../strcmp.S.
12897         [USE_AS_STRNCASECMP_L]: Likewise.
12898         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12899         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12900         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12901         (__strncasecmp_l_ia32): Define as alias to
12902         __strncasecmp_l_nonascii.
12903
12904         [BZ #5794]
12905         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12906         * sysdeps/i386/fpu/libm-test-ulps: Update.
12907         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12908
12909         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12910         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12911
12912 2012-02-29  Jeff Law  <law@redhat.com>
12913
12914         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12915         out of bounds read.
12916
12917 2012-02-29  Marek Polacek  <polacek@redhat.com>
12918
12919         [BZ #13706]
12920         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12921         * elf/Makefile: Add rules to run tst-unused-dep.out.
12922
12923 2012-02-28  David S. Miller  <davem@davemloft.net>
12924
12925         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12926         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12927         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12928         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12929         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12930         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12931
12932 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12933
12934         * math/libm-test.inc (llround_test): Move one test from
12935         lround_test.  Use TEST_f_L in moved test.
12936         (lround_test): Move misplaced test to llround_test.  Add testcase
12937         from bug 2561.
12938
12939 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12940
12941         * sysdeps/x86_64/fpu/e_expf.S: New file.
12942         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12943
12944 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12945
12946         [BZ #13637]
12947         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12948         of remain_len that may cause incomplete multi-byte character and
12949         false match.
12950         * posix/bug-regex33.c: New file.
12951         * posix/Makefile (tests): Add bug-regex33.
12952
12953 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12954
12955         * manual/macros.texi: New file.
12956         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12957         * manual/libc.texinfo: Include macros.texi.
12958         * manual/creatute.texi: Likewise.
12959         * manual/install.texi: Likewise.
12960         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12961         @glibcadj{} in references to the GNU C Library.
12962         * manual/charset.texi: Likewise.
12963         * manual/conf.texi: Likewise.
12964         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12965         when not using those macros.
12966         * manual/creature.texi: Likewise.
12967         * manual/crypt.texi: Likewise.
12968         * manual/errno.texi: Likewise.
12969         * manual/filesys.texi: Likewise.
12970         * manual/header.texi: Likewise.
12971         * manual/install.texi: Likewise.
12972         * manual/intro.texi: Likewise.
12973         * manual/io.texi: Likewise.
12974         * manual/job.texi: Likewise.
12975         * manual/lang.texi: Likewise.
12976         * manual/libc.texiinfo: Likewise.
12977         * manual/llio.texi: Likewise.
12978         * manual/locale.texi: Likewise.
12979         * manual/maint.texi: Likewise.
12980         * manual/math.texi: Likewise.
12981         * manual/memory.texi: Likewise.
12982         * manual/message.texi: Likewise.
12983         * manual/nss.texi: Likewise.
12984         * manual/pattern.texi: Likewise.
12985         * manual/process.texi: Likewise.
12986         * manual/resource.texi: Likewise.
12987         * manual/search.texi: Likewise.
12988         * manual/setjmp.texi: Likewise.
12989         * manual/signal.texi: Likewise.
12990         * manual/socket.texi: Likewise.
12991         * manual/startup.texi: Likewise.
12992         * manual/stdio.texi: Likewise.
12993         * manual/string.texi: Likewise.
12994         * manual/sysinfo.texi: Likewise.
12995         * manual/syslog.texi: Likewise.
12996         * manual/terminal.texi: Likewise.
12997         * manual/time.texi: Likewise.
12998         * manual/users.texi: Likewise.
12999         * INSTALL: Regenerated.
13000         * NOTES: Regenerated.
13001         * sysdeps/gnu/errlist.c: Regenerated.
13002
13003 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13004
13005         * include/dirent.h: Include <dirstream.h> before
13006         <dirent/dirent.h>.
13007
13008 2012-02-28  David S. Miller  <davem@davemloft.net>
13009
13010         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13011         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13012         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13013         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13014
13015 2012-02-27  David S. Miller  <davem@davemloft.net>
13016
13017         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13018         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13019         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13020         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13021
13022         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13023         frame pointer instead of stack pointer relative arg slot.
13024         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13025         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13026         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13027
13028 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13029
13030         [BZ #3992]
13031         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13032
13033 2012-02-27  David S. Miller  <davem@davemloft.net>
13034
13035         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13037         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13038         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13039         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13040         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13041         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13042         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13043
13044 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13045
13046         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13047         later.  Allow versions 5-9.
13048         * configure: Regenerated.
13049         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13050         required minimum version and 4.6 as recommended version.  Do not
13051         mention bugs in GCC 2.7 and 2.8.
13052         * INSTALL: Regenerated.
13053
13054 2012-02-27  David S. Miller  <davem@davemloft.net>
13055
13056         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13057         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13058         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13059         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13060         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13061         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13062         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13063         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13064
13065         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13066         manipulate bits before adding and subtracting TWO112[sx].
13067         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13068
13069 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13070
13071         [BZ #13775]
13072         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13073         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13074         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13075         being in POSIX, because they are in 1003.1-2008.
13076
13077         * rt/tst-aio.c: Include <fcntl.h>.
13078         * rt/tst-aio7.c: Likewise.
13079         * rt/tst-aio64.c: Likewise.
13080
13081         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13082
13083 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13084
13085         * manual/install.texi (--with-headers): Describe headers as
13086         interface headers, not private headers.
13087         (Specific advice for GNU/Linux systems): Describe use of headers
13088         from "make headers_install", not private headers from older
13089         kernels.
13090         * INSTALL: Regenerated.
13091         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13092         Change to 2.6.19.
13093         * sysdeps/unix/sysv/linux/configure: Regenerated.
13094
13095         * manual/llio.texi (fclean): Remove documentation.
13096
13097         * manual/Makefile (libc-texi-generated): New variable.  Include
13098         version.texi.
13099         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13100         $(libc-texi-generated), not duplicated list of files.
13101         (version.texi, stamp-version): New rules.
13102         (realclean): Remove $(libc-texi-generated), not individual files
13103         from that list.  Do not remove dir-add.texinfo.
13104         * manual/libc.texinfo: Comment out uses of edition numbers and
13105         references to printed manual.  Remove last-updated dates.
13106         (EDITION): Comment out.
13107         (ISBN): Likewise.
13108         (VERSION, UPDATED): Remove.
13109         (version.texi): Include.
13110
13111 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13112
13113         * sysdeps/posix/spawni.c: Include <signal.h>.
13114         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13115         * sysdeps/pthread/aio_fsync.c: Likewise.
13116
13117 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13118
13119         * conform/Makefile (tests): Run only when not cross-compiling and
13120         when fast-check is not defined.
13121
13122         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13123         * conform/data/limits.h-data: Fixes for POSIX2008.
13124         * conform/run-conformtest.sh: Run all tests.
13125         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13126         headers.
13127         * include/bits/dlfcn.h: Likewise.
13128         * include/langinfo.h: Likewise.
13129         * include/monetary.h: Likewise.
13130         * include/sys/poll.h: Likewise.
13131
13132         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13133         for __USE_GNU.
13134         * posix/spawn.h: Define __need_sigset_t.
13135         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13136         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13137         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13138         to get sigevent_t only.
13139         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13140         only for __USE_GNU.
13141         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13142         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13143         process_vm_writev only for __USE_GNU.
13144         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13145
13146         * conform/Makefile: For now ignore errors from run-conformtest.
13147         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13148         POSIX to avoid namespace pollution.  Don't prepend headers.
13149         * conform/data/aio.h-data: Fixes for POSIX testing.
13150         * conform/data/fcntl.h-data: Likewise.
13151         * conform/data/glob.h-data: Likewise.
13152         * conform/data/grp.h-data: Likewise.
13153         * conform/data/pthread.h-data: Likewise.
13154         * conform/data/pwd.h-data: Likewise.
13155         * conform/data/signal.h-data: Likewise.
13156         * conform/data/spawn.h-data: Likewise.
13157         * conform/data/stdio.h-data: Likewise.
13158         * conform/data/stdlib.h-data: Likewise.
13159         * conform/data/stropts.h-data: Likewise.
13160         * conform/data/sys/mman.h-data: Likewise.
13161         * conform/data/sys/stat.h-data: Likewise.
13162         * conform/data/sys/types.h-data: Likewise.
13163         * conform/data/sys/wait.h-data: Likewise.
13164         * conform/data/time.h-data: Likewise.
13165         * conform/data/unistd.h-data: Likewise.
13166         * conform/data/utime.h-data: Likewise.
13167
13168         * io/sys/stat.h: fchmod was always in POSIX.
13169         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13170         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13171         * rt/aio.h: Define __need_timespec before including <time.h>.
13172         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13173         struct.  Add forward declaration of pthread_attr_t and use it in
13174         sigevent.
13175         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13176         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13177         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13178         always remove CLK_TCK definition.
13179
13180 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13181
13182         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13183
13184 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13185
13186         * conform/run-conformtest.sh: New file.
13187         * conform/Makefile: Run run-conformtest for tests.
13188         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13189         support.
13190
13191         * conform/data/uchar.h-data: New file.
13192         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13193         * conform/data/arpa/inet.h-data: Likewise.
13194         * conform/data/assert.h-data: Likewise.
13195         * conform/data/complex.h-data: Likewise.
13196         * conform/data/cpio.h-data: Likewise.
13197         * conform/data/ctype.h-data: Likewise.
13198         * conform/data/dirent.h-data: Likewise.
13199         * conform/data/dlfcn.h-data: Likewise.
13200         * conform/data/errno.h-data: Likewise.
13201         * conform/data/fcntl.h-data: Likewise.
13202         * conform/data/float.h-data: Likewise.
13203         * conform/data/fmtmsg.h-data: Likewise.
13204         * conform/data/fnmatch.h-data: Likewise.
13205         * conform/data/ftw.h-data: Likewise.
13206         * conform/data/glob.h-data: Likewise.
13207         * conform/data/grp.h-data: Likewise.
13208         * conform/data/iconv.h-data: Likewise.
13209         * conform/data/inttypes.h-data: Likewise.
13210         * conform/data/langinfo.h-data: Likewise.
13211         * conform/data/libgen.h-data: Likewise.
13212         * conform/data/limits.h-data: Likewise.
13213         * conform/data/locale.h-data: Likewise.
13214         * conform/data/math.h-data: Likewise.
13215         * conform/data/monetary.h-data: Likewise.
13216         * conform/data/mqueue.h-data: Likewise.
13217         * conform/data/ndbm.h-data: Likewise.
13218         * conform/data/net/if.h-data: Likewise.
13219         * conform/data/netdb.h-data: Likewise.
13220         * conform/data/netinet/in.h-data: Likewise.
13221         * conform/data/nl_types.h-data: Likewise.
13222         * conform/data/poll.h-data: Likewise.
13223         * conform/data/pthread.h-data: Likewise.
13224         * conform/data/pwd.h-data: Likewise.
13225         * conform/data/regex.h-data: Likewise.
13226         * conform/data/sched.h-data: Likewise.
13227         * conform/data/search.h-data: Likewise.
13228         * conform/data/semaphore.h-data: Likewise.
13229         * conform/data/setjmp.h-data: Likewise.
13230         * conform/data/signal.h-data: Likewise.
13231         * conform/data/spawn.h-data: Likewise.
13232         * conform/data/stdarg.h-data: Likewise.
13233         * conform/data/stdio.h-data: Likewise.
13234         * conform/data/stdlib.h-data: Likewise.
13235         * conform/data/string.h-data: Likewise.
13236         * conform/data/strings.h-data: Likewise.
13237         * conform/data/stropts.h-data: Likewise.
13238         * conform/data/sys/ipc.h-data: Likewise.
13239         * conform/data/sys/mman.h-data: Likewise.
13240         * conform/data/sys/msg.h-data: Likewise.
13241         * conform/data/sys/resource.h-data: Likewise.
13242         * conform/data/sys/select.h-data: Likewise.
13243         * conform/data/sys/sem.h-data: Likewise.
13244         * conform/data/sys/shm.h-data: Likewise.
13245         * conform/data/sys/socket.h-data: Likewise.
13246         * conform/data/sys/stat.h-data: Likewise.
13247         * conform/data/sys/statvfs.h-data: Likewise.
13248         * conform/data/sys/time.h-data: Likewise.
13249         * conform/data/sys/timeb.h-data: Likewise.
13250         * conform/data/sys/times.h-data: Likewise.
13251         * conform/data/sys/types.h-data: Likewise.
13252         * conform/data/sys/uio.h-data: Likewise.
13253         * conform/data/sys/un.h-data: Likewise.
13254         * conform/data/sys/utsname.h-data: Likewise.
13255         * conform/data/sys/wait.h-data: Likewise.
13256         * conform/data/syslog.h-data: Likewise.
13257         * conform/data/tar.h-data: Likewise.
13258         * conform/data/termios.h-data: Likewise.
13259         * conform/data/utime.h-data: Likewise.
13260         * conform/data/utmpx.h-data: Likewise.
13261         * conform/data/varargs.h-data: Likewise.
13262         * conform/data/wchar.h-data: Likewise.
13263         * conform/data/wctype.h-data: Likewise.
13264         * conform/data/wordexp.h-data: Likewise.
13265
13266         * include/stropts.h: New file.
13267         * include/uchar.h: New file.
13268         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13269         * include/assert.h: Likewise.
13270         * include/ctype.h: Likewise.
13271         * include/dirent.h: Likewise.
13272         * include/dlfcn.h: Likewise.
13273         * include/fcntl.h: Likewise.
13274         * include/fnmatch.h: Likewise.
13275         * include/glob.h: Likewise.
13276         * include/grp.h: Likewise.
13277         * include/libio.h: Likewise.
13278         * include/locale.h: Likewise.
13279         * include/math.h: Likewise.
13280         * include/net/if.h: Likewise.
13281         * include/netdb.h: Likewise.
13282         * include/netinet/in.h: Likewise.
13283         * include/pthread.h: Likewise.
13284         * include/pwd.h: Likewise.
13285         * include/regex.h: Likewise.
13286         * include/sched.h: Likewise.
13287         * include/search.h: Likewise.
13288         * include/setjmp.h: Likewise.
13289         * include/signal.h: Likewise.
13290         * include/stdio.h: Likewise.
13291         * include/stdlib.h: Likewise.
13292         * include/string.h: Likewise.
13293         * include/sys/cdefs.h: Likewise.
13294         * include/sys/mman.h: Likewise.
13295         * include/sys/msg.h: Likewise.
13296         * include/sys/resource.h: Likewise.
13297         * include/sys/select.h: Likewise.
13298         * include/sys/socket.h: Likewise.
13299         * include/sys/stat.h: Likewise.
13300         * include/sys/statvfs.h: Likewise.
13301         * include/sys/time.h: Likewise.
13302         * include/sys/times.h: Likewise.
13303         * include/sys/uio.h: Likewise.
13304         * include/sys/utsname.h: Likewise.
13305         * include/sys/wait.h: Likewise.
13306         * include/termios.h: Likewise.
13307         * include/time.h: Likewise.
13308         * include/ulimit.h: Likewise.
13309         * include/unistd.h: Likewise.
13310         * include/utime.h: Likewise.
13311         * include/wchar.h: Likewise.
13312         * include/wctype.h: Likewise.
13313         * include/wordexp.h: Likewise.
13314
13315         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13316
13317         * time/time.h: TIME_UTC must be a macro.
13318         Make timespec_get available for ISO C11 only as well.
13319
13320 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13321
13322         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13323         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13324
13325 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13326
13327         * configure.in: Use -o not -a in test for unsupported multi-arch.
13328
13329 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13330
13331         * manual/texinfo.tex: Update to version 2012-01-19.16.
13332
13333 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13334
13335         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
13336
13337 2012-02-24  Roland McGrath  <roland@hack.frob.com>
13338
13339         [BZ #13738]
13340         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
13341         * manual/fdl-1.3.texi: New file.
13342         * manual/fdl-1.1.texi: File removed.
13343
13344         [BZ #13738]
13345         * manual/libc.texinfo (FDL_VERSION): New @set.
13346         Use it for mention of FDL in cover text.
13347         (Documentation License): Use it in @include file name.
13348
13349 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13350             Roland McGrath  <roland@hack.frob.com>
13351
13352         [BZ #5461]
13353         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
13354         not LONG_LONG_MAX and LONG_LONG_MIN.
13355         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
13356         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
13357         name.
13358         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
13359
13360 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13361
13362         [BZ #2547]
13363         [BZ #11365]
13364         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
13365         manipulate bits before adding and subtracting TWO23[sx].
13366         * math/libm-test.inc (nearbyint_test): Add more tests.
13367
13368 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13369
13370         [BZ #2548]
13371         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
13372         bits before adding and subtracting TWO23[sx].
13373         * math/libm-test.inc (rint_test): Add more tests.
13374         (rint_test_tonearest): Likewise.
13375         (rint_test_towardzero): Likewise.
13376         (rint_test_downward): Likewise.
13377         (rint_test_upward: Likewise.
13378
13379 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13380
13381         [BZ #10110]
13382         * include/stdc-predef.h: New file.  Extracted from features.h.
13383         * include/features.h: Include stdc-predef.h.
13384         * Makefile (headers): Add stdc-predef.h.
13385         * CONFORMANCE (Compiler limitations): Update.
13386
13387 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13388
13389         * manual/libc.texinfo (VERSION, UPDATED): Revert.
13390
13391 2012-02-21  David S. Miller  <davem@davemloft.net>
13392
13393         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
13394         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13395
13396 2012-02-20  David S. Miller  <davem@davemloft.net>
13397
13398         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
13399         using a normal save/restore sequence, rather than allocating a
13400         dummy stack frame just to store a frame pointer and restore.
13401         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13402
13403 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13404
13405         * manual/install.texi: Fix stray word in line-wrapped comment.
13406
13407 2012-02-20  David S. Miller  <davem@davemloft.net>
13408
13409         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
13410         both binutils and gcc support GOTDATA.
13411
13412         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
13413         "rd %pc" in the PIC register setup sequences.
13414
13415         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
13416         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
13417         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13418         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
13419         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13420         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13421         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13422         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13423         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
13424         (SYSCALL_ERROR_HANDLER): Likewise.
13425         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13426         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13427         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
13428         (SYSCALL_ERROR_HANDLER): Likewise.
13429
13430         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
13431         (HAVE_GCC_GOTDATA): New.
13432         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
13433         relocation support in both binutils and gcc.
13434         * sysdeps/sparc/elf/configure: Regenerate.
13435
13436         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
13437         * sysdeps/sparc/sparc32/elf/configure: Delete.
13438         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
13439         * sysdeps/sparc/sparc64/elf/configure: Delete.
13440         * sysdeps/sparc/elf/configure.in: New file.
13441         * sysdeps/sparc/elf/configure: Generate.
13442
13443         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
13444         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
13445         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13446         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
13447         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
13448
13449 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13450
13451         * manual/install.texi: Do not mention specific glibc version
13452         numbers.
13453         * manual/libc.texinfo (VERSION, UPDATED): Update.
13454         (@copying): Use @copyright{} and range of years.
13455
13456 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13457
13458         [BZ #13695]
13459         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
13460         [crti.S not in sysdirs] (generated): Do not append.
13461         [crti.S not in sysdirs] (omit-deps): Likewise.
13462         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
13463         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
13464         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
13465         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
13466         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
13467         Likewise.
13468         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
13469         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
13470         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
13471         * csu/defs.awk: Remove file.
13472         * sysdeps/generic/initfini.c: Likewise.
13473         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
13474         variable.
13475         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
13476         Likewise.
13477
13478 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13479
13480         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
13481         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
13482         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
13483         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
13484         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13485         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
13486         <bits/epoll.h>.
13487         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
13488         (__EPOLL_PACKED): Define to empty if not defined by
13489         <bits/epoll.h>.
13490         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
13491         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13492         bits/epoll.h.
13493
13494 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13495
13496         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
13497         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
13498         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
13499         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
13500         <bits/timerfd.h>.
13501         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
13502         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13503         bits/timerfd.h.
13504
13505 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13506
13507         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
13508         in C locale.
13509         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13510         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
13511         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
13512         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13513
13514 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
13515
13516         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13517         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13518
13519 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
13520
13521         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
13522         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
13523         defined.
13524         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
13525         Likewise.
13526         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
13527         entry for 2.16.
13528
13529 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
13530
13531         * math/w_acos.c: Use non-signaling floating-point comparisons.
13532         * math/w_acosf.c: Likewise.
13533         * math/w_acosh.c: Likewise.
13534         * math/w_acoshf.c: Likewise.
13535         * math/w_acoshl.c: Likewise.
13536         * math/w_acosl.c: Likewise.
13537         * math/w_asin.c: Likewise.
13538         * math/w_asinf.c: Likewise.
13539         * math/w_asinl.c: Likewise.
13540         * math/w_atanh.c: Likewise.
13541         * math/w_atanhf.c: Likewise.
13542         * math/w_atanhl.c: Likewise.
13543         * math/w_exp2.c: Likewise.
13544         * math/w_exp2f.c: Likewise.
13545         * math/w_exp2l.c: Likewise.
13546         * math/w_j0.c: Likewise.
13547         * math/w_j0f.c: Likewise.
13548         * math/w_j0l.c: Likewise.
13549         * math/w_j1.c: Likewise.
13550         * math/w_j1f.c: Likewise.
13551         * math/w_j1l.c: Likewise.
13552         * math/w_jn.c: Likewise.
13553         * math/w_jnf.c: Likewise.
13554         * math/w_log.c: Likewise.
13555         * math/w_log10.c: Likewise.
13556         * math/w_log10f.c: Likewise.
13557         * math/w_log10l.c: Likewise.
13558         * math/w_log2.c: Likewise.
13559         * math/w_log2f.c: Likewise.
13560         * math/w_log2l.c: Likewise.
13561         * math/w_logf.c: Likewise.
13562         * math/w_logl.c: Likewise.
13563         * math/w_sqrt.c: Likewise.
13564         * math/w_sqrtf.c: Likewise.
13565         * math/w_sqrtl.c: Likewise.
13566         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13567         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
13568         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13569         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13570         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13571
13572 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13573
13574         [BZ #9739]
13575         * manual/string.texi (strnlen): Use correct parameter name in
13576         equivalent expression.
13577
13578 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13579
13580         [BZ #11174]
13581         * manual/users.texi (seteuid): Consistently use neweuid for
13582         argument name.
13583
13584 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13585
13586         [BZ #13704]
13587         * manual/nss.texi (Services in the NSS configuration): Correct
13588         list of services in example configuration file.
13589
13590 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
13591
13592         [BZ #11322]
13593         * manual/arith.texi: Remove statements about negative zero
13594         behaving identically to zero.
13595
13596 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13597
13598         [BZ #5993]
13599         * manual/install.texi: Do not document upgrading from libc5.
13600
13601 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13602
13603         [BZ #4596]
13604         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
13605
13606 2012-02-18  David S. Miller  <davem@davemloft.net>
13607
13608         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
13609         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
13610         %o7 across the call.
13611         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
13612         instead.
13613         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
13614         SETUP_PIC_REG_LEAF.
13615         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13616         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
13617         * sysdeps/sparc/crtn.S: Likewise.
13618
13619 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
13620
13621         * aout/Makefile: Remove.
13622
13623 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
13624
13625         [BZ #13058]
13626         * manual/examples/argp-ex1.c (main): Format definition in GNU
13627         style.
13628         * manual/examples/argp-ex2.c (main): Likewise.
13629         * manual/examples/argp-ex3.c (main): Likewise.
13630         * manual/examples/argp-ex4.c (main): Likewise.
13631         * manual/examples/longopt.c (main): Use new-style prototype
13632         definition.
13633         * manual/examples/strncat.c (main): Specify return type and use
13634         (void) for arguments.
13635         * manual/examples/subopt.c (main): Use char **argv argument.
13636
13637 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13638
13639         [BZ #5077]
13640         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
13641         rounding modes.
13642
13643 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
13644
13645         [BZ #6907]
13646         * manual/string.texi (strchr): Change when strchrnul is
13647         recommended.
13648
13649 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
13650
13651         [BZ #174]
13652         * manual/locale.texi (setlocale): Document LOCPATH.
13653
13654 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13655
13656         [BZ #10210]
13657         * manual/process.texi (execle): Move @dots{} before last argument.
13658
13659 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
13660
13661         [BZ #12047]
13662         * manual/charset.texi (Generic Charset Conversion): Fix typo
13663         (LC_TYPE -> LC_CTYPE).
13664
13665 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
13666
13667         [BZ #5805]
13668         * manual/arith.texi (scalbn): Use @var{} on parameter names.
13669         (scalbnf): Likewise.
13670         (scalbnl): Likewise.
13671         (scalbln): Likewise.
13672         (scalblnf): Likewise.
13673         (scalblnl): Likewise.
13674         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
13675         (vwarnx): Likewise.
13676         (verr): Likewise.
13677         (verrx): Likewise.
13678         * manual/filesys.texi (telldir): Use braces around return type.
13679         * manual/llio.texi (mmap): Add space after comma.
13680         (mmap64): Likewise.
13681         * manual/math.texi (jn): Use @var{} on parameter names.
13682         (jnf): Likewise.
13683         (jnl): Likewise.
13684         (yn): Likewise.
13685         (ynf): Likewise.
13686         (ynl): Likewise.
13687         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
13688         line.
13689         * manual/resource.texi (ulimit): Use @dots{} instead of literal
13690         "...".
13691         (sched_get_priority_min): Remove semicolon on @deftypefun line.
13692         (sched_get_priority_max): Likewise.
13693         * manual/signal.texi (sigvec): Add space after comma.
13694         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
13695         names.
13696         (if_indextoname): Likewise.
13697         (if_freenameindex): Likewise.
13698         (sendto): Use ',' instead of '.' in prototype.
13699         * manual/startup.texi (syscall): Use @dots{} instead of literal
13700         "...".
13701         * manual/stdio.texi (__fpending): Separate initial words of
13702         paragraph from @deftypefun line.
13703         * manual/syslog.texi (syslog): Use @dots{} instead of literal
13704         "...".
13705         (vsyslog): Use @var{} on parameter names.
13706         * manual/terminal.texi (stty): Use @var{} on parameter names.
13707         * manual/users.texi (getutmp): Use @var{} on parameter names.
13708         (getutmpx): Likewise.
13709
13710 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13711
13712         [BZ #6884]
13713         * manual/stdio.texi (fopen): Fix typos in description of
13714         ",ccs=STRING".
13715
13716 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
13717
13718         [BZ #4026]
13719         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13720         get clock_id definition.
13721
13722 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13723
13724         [BZ #4822]
13725         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13726         (madvise): Cast every argument to void on its own.
13727
13728 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13729
13730         [BZ #9902]
13731         * manual/startup.texi (Exit Status): Fix typo.
13732
13733 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13734
13735         [BZ #10140]
13736         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13737         * manual/examples/argp-ex2.c: Likewise.
13738         * manual/examples/argp-ex3.c: Likewise.
13739
13740 2012-02-16  Richard Henderson  <rth@redhat.com>
13741
13742         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13743         * sysdeps/s390/s390-32/initfini.c: Remove.
13744         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13745         * sysdeps/s390/s390-64/initfini.c: Remove.
13746
13747 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13748
13749         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13750         compiler output for sysdeps/generic/initfini.c.
13751         * sysdeps/sh/elf/initfini.c: Remove file.
13752
13753 2012-02-16  David S. Miller  <davem@davemloft.net>
13754
13755         [BZ #11494]
13756         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13757
13758         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13759         * sysdeps/sparc/crti.S: New file.
13760         * sysdeps/sparc/crtn.S: New file.
13761         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13762         * sysdeps/sparc/sparc64/Makefile: Likewise.
13763
13764 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13765
13766         [BZ #3335]
13767         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13768
13769 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13770
13771         [BZ #4822]
13772         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13773
13774         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13775         (write, read, close): Likewise.
13776         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13777
13778 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13779
13780         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13781         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13782         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13783         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13784         <bits/signalfd.h>.
13785         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13786         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13787         bits/signalfd.h.
13788
13789 2012-02-14  Marek Polacek  <polacek@redhat.com>
13790
13791         * sysdeps/x86_64/crti.S: New file.
13792         * sysdeps/x86_64/crtn.S: New file.
13793         * sysdeps/x86_64/elf/initfini.c: Remove file.
13794
13795 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13796
13797         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13798         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13799         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13800         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13801         <bits/inotify.h>.
13802         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13803         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13804         bits/inotify.h.
13805
13806 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13807
13808         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13809         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13810         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13811         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13812         <bits/eventfd.h>.
13813         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13814         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13815         bits/eventfd.h.
13816
13817 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13818
13819         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13820         __feraiseexcept instead of feraiseexcept.
13821
13822         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13823         nanosleep invocations.
13824         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13825         strings, and add error checking for a nanosleep invocations.
13826
13827 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13828
13829         Replace FSF snail mail address with URLs, as per GNU coding standards.
13830         Most of the snail mail addresses were wrong anyway, and omitting
13831         them makes the source code easier to maintain.  Almost all of the
13832         changes are to license notices and to locale LC_IDENTIFICATION
13833         addresses, except for this one:
13834         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13835         not its snail mail address.
13836
13837 2012-02-09  Richard Henderson  <rth@twiddle.net>
13838
13839         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13840         of kernel-features.h.
13841
13842         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13843
13844 2012-02-08  Marek Polacek  <polacek@redhat.com>
13845
13846         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13847         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13848         * sysdeps/gnu/_G_config.h: Likewise.
13849         * sysdeps/generic/_G_config.h: Likewise.
13850
13851 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13852
13853         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13854         tests.
13855         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13856
13857         * sysdeps/powerpc/powerpc32/crti.S: New file.
13858         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13859         * sysdeps/powerpc/powerpc64/crti.S: New file.
13860         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13861
13862         * Makeconfig (have-initfini): Don't set.
13863         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13864         * configure.in (nopic_initfini): Don't substitute.
13865         * config.h.in (HAVE_INITFINI): Don't #undef.
13866         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13867         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13868
13869 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13870
13871         Support crti.S and crtn.S provided directly by architectures.
13872         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13873         [crti.S in sysdirs] (omit-deps): Likewise.
13874         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13875         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13876         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13877         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13878         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13879         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13880         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13881         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13882         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13883         compiler output for sysdeps/generic/initfini.c.
13884         * sysdeps/i386/elf/Makefile: Remove file.
13885         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13886
13887 2012-02-07  Marek Polacek  <polacek@redhat.com>
13888
13889         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13890         * sysdeps/gnu/_G_config.h: Likewise.
13891         * sysdeps/mach/hurd/_G_config.h: Likewise.
13892
13893 2012-02-07  Marek Polacek  <polacek@redhat.com>
13894
13895         * math/Makefile (tests): Add tst-CMPLX2.
13896         * math/tst-CMPLX2.c: New file.
13897
13898 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13899
13900         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13901
13902         * math/libm-test.inc (jn_test): Add missing L suffix.
13903
13904 2012-02-06  Marek Polacek  <polacek@redhat.com>
13905
13906         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13907         * sysdeps/i386/fpu/e_powf.S: Likewise.
13908         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13909         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13910         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13911         * sysdeps/i386/fpu/e_pow.S: Likewise.
13912         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13913         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13914         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13915         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13916         * sysdeps/i386/fpu/e_log2.S: Likewise.
13917         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13918         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13919         * sysdeps/i386/fpu/e_powl.S: Likewise.
13920         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13921         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13922         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13923         * sysdeps/i386/fpu/e_logl.S: Likewise.
13924         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13925         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13926         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13927         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13928         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13929         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13930         * sysdeps/i386/fpu/e_log.S: Likewise.
13931         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13932         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13933         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13934         * sysdeps/i386/fpu/e_logf.S: Likewise.
13935         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13936         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13937         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13938         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13939         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13940         * sysdeps/i386/fpu/e_log10.S: Likewise.
13941         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13942         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13943         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13944         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13945         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13946         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13947         * sysdeps/i386/asm-syntax.h: Likewise.
13948         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13949         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13950         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13951         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13952         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13953         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13954         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13955         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13956         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13957         * sysdeps/powerpc/sysdep.h: Likewise.
13958         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13959         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13960
13961 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13962
13963         [BZ #411]
13964         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13965
13966 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13967
13968         * sysdeps/i386/sysdep.h: Include <features.h>.
13969         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13970         version.
13971
13972 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13973
13974         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13975         Define.
13976         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13977         LOAD_PIC_REG_STR.
13978
13979 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13980
13981         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13982         (SETUP_PIC_REG): Use GET_PC_THUNK.
13983         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13984         macro.
13985
13986 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13987
13988         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13989         for non-PIC compilation.
13990         (SETUP_PIC_REG): Add .p2align directive.
13991         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13992         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13993         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13994         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13995         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13996         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13997         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13998         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13999         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14000         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14001         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14002         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14003         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14004         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14005         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14006         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14007         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14008         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14009         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14010         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14011         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14012         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14013         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14014         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14015         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14016         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14017         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14018         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14019         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14020         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14021         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14022         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14023         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14024         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14025         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14026         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14027         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14028         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14029         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14030         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14031         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14032
14033 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14034
14035         * math/tst-CMPLX.c: Include <stdio.h>.
14036
14037 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14038
14039         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14040         float.
14041         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14042         * sysdeps/sparc/bits/mathdef.h: Likewise.
14043
14044 2012-01-31  Marek Polacek  <polacek@redhat.com>
14045
14046         * libio/libio.h: Don't define _PARAMS.
14047         * locale/programs/config.h: Don't define PARAMS.
14048         * stdlib/strtol_l.c: Likewise.
14049         (__strtol_l): Remove PARAMS from the prototype.
14050
14051 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14052
14053         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14054         names.  Just use the correct names.  Remove unnecessary wrapper
14055         functions.
14056         * malloc/arena.c: Likewise.
14057         * malloc/hooks.c: Likewise.
14058
14059         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14060         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14061         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14062
14063 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14064
14065         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14066         into tail calls.
14067         (update_get_addr): New function.
14068         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14069         GET_ADDR_MODULE parameter.
14070
14071 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14072
14073         * crypt/cert.c: Remove __STDC__ conditionals.
14074         * crypt/crypt-entry.c: Likewise.
14075         * crypt/crypt_util.c: Likewise.
14076         * libio/filedoalloc.c: Likewise.
14077         * libio/fileops.c: Likewise.
14078         * libio/genops.c: Likewise.
14079         * libio/iofclose.c: Likewise.
14080         * libio/iofdopen.c: Likewise.
14081         * libio/iofopen.c: Likewise.
14082         * libio/iofopen64.c: Likewise.
14083         * libio/iogetdelim.c: Likewise.
14084         * libio/iopopen.c: Likewise.
14085         * libio/obprintf.c: Likewise.
14086         * libio/oldfileops.c: Likewise.
14087         * libio/oldiofclose.c: Likewise.
14088         * libio/oldiofdopen.c: Likewise.
14089         * libio/oldiofopen.c: Likewise.
14090         * libio/oldiopopen.c: Likewise.
14091         * libio/wfiledoalloc.c: Likewise.
14092         * libio/wgenops.c: Likewise.
14093         * locale/programs/xmalloc.c: Likewise.
14094         * misc/syslog.c: Likewise.
14095         * stdio-common/xbug.c: Likewise.
14096         * string/memchr.c: Likewise.
14097         * string/memcmp.c: Likewise.
14098         * string/memrchr.c: Likewise.
14099         * string/rawmemchr.c: Likewise.
14100         * sysdeps/posix/getcwd.c: Likewise.
14101         * time/strftime_l.c: Likewise.
14102
14103 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14104
14105         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14106         * config.make.in (config-cflags-sse2avx): Define.
14107         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14108         Fix typo.
14109
14110 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14111
14112         * scripts/config.guess: Update from upstream config git repository.
14113         * scripts/config.sub: Likewise.
14114
14115 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14116
14117         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14118         (EM_NUM): Update.
14119         (R_TILEPRO_*, R_TILEGX_*): New macros.
14120
14121         * scripts/firstversions.awk: Fix bug in version range handling.
14122
14123         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14124
14125         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14126
14127         * include/sys/epoll.h: New file.
14128         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14129         libc_hidden_def.
14130
14131 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14132
14133         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14134         Avoid unnecessary __WORDSIZE == 64 test.
14135         (fmaxf): Use VEX format if possible.
14136         (fmax): Likewise.
14137         (fminf): Likewise.
14138         (fmin): Likewise.
14139
14140         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14141         * math/math_private.h: Remove libc_fegetround* and
14142         libc_fesetround*.
14143         * sysdeps/i386/configure.in: Check for -msse2avx.
14144         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14145         also if SSE2AVX is defined.
14146         Remove libc_fegetround* and libc_fesetround*.
14147         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14148         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14149         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14150         of HAS_YMM_USABLE.
14151         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14152         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14153         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14154         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14155         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14156
14157         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14158
14159 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14160
14161         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14162         size is not set.
14163         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14164
14165 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14166
14167         [BZ #13618]
14168         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14169         relocation.
14170         * Makeconfig (libm): Define.
14171         * elf/Makefile: Add rules to build and run tst-relsort1.
14172         * elf/tst-relsort1.c: New file.
14173         * elf/tst-relsort1mod1.c: New file.
14174         * elf/tst-relsort1mod2.c: New file.
14175
14176 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14177
14178         * math/s_ldexp.c: Remove __STDC__ conditionals.
14179         * math/s_ldexpf.c: Likewise.
14180         * math/s_ldexpl.c: Likewise.
14181         * math/s_nextafter.c: Likewise.
14182         * math/s_nexttowardf.c: Likewise.
14183         * math/s_significand.c: Likewise.
14184         * math/s_significandf.c: Likewise.
14185         * math/s_significandl.c: Likewise.
14186         * math/w_jnl.c: Likewise.
14187         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14188         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14189         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14190         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14191         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14192         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14193         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14194         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14195         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14196         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14197         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14198         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14199         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14200         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14201         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14202         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14203         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14204         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14205         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14206         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14207         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14208         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14209         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14210         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14211         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14212         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14213         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14214         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14215         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14216         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14217         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14218         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14219         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14220         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14221         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14222         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14223         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14224         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14225         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14226         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14227         * sysdeps/ieee754/k_standard.c: Likewise.
14228         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14229         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14230         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14231         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14232         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14233         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14234         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14235         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14236         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14237         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14238         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14239         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14240         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14241         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14242         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14243         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14244         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14245         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14246         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14247         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14248         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14249         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14250         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14251         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14252         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14253         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14254         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14255         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14256         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14257         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14258         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14259         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14260         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14261         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14262         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14263         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14264         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14265         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14266         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14267         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14268         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14269         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14270         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14271         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14272         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14273         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14274         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14275         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14276         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14277         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14278         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14279         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14280         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14281         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14282         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14283         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14284         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14285         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14286         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14287         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14288         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14289         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14290         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14291         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14292         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14293         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14294         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14295         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14296         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14297         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14298         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14299         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14300         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14301         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14302         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14303         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14304         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14305         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14306         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14307         * sysdeps/ieee754/s_matherr.c: Likewise.
14308         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14309         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14310         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14311         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14312
14313 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14314
14315         * crypt/md5.h: Remove __STDC__ conditionals.
14316         * libio/libioP.h: Likewise.
14317         * locale/programs/config.h: Likewise.
14318         * sysdeps/generic/sysdep.h: Likewise.
14319         * sysdeps/i386/asm-syntax.h: Likewise.
14320         * sysdeps/s390/asm-syntax.h: Likewise.
14321         * sysdeps/unix/sysdep.h: Likewise.
14322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14324
14325 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14326
14327         * libio/libio.h: Remove __STDC__ conditionals.
14328         * malloc/obstack.h: Likewise.
14329         * math/complex.h: Likewise.
14330         * math/math.h: Likewise.
14331         * sysdeps/generic/_G_config.h: Likewise.
14332         * sysdeps/gnu/_G_config.h: Likewise.
14333         * sysdeps/mach/hurd/_G_config.h: Likewise.
14334         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14335         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14336         * sysdeps/sparc/bits/mathdef.h: Likewise.
14337
14338 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
14339
14340         [BZ #13583]
14341         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
14342         Clean up HAS_* macros.
14343         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
14344         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
14345         possible.
14346         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
14347         HAS_AVX.
14348         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14349         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14350         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14351         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14352         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14353
14354 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
14355
14356         * elf/tst-unique3.cc (gets): Remove declaration.
14357         * elf/tst-unique3lib.cc (gets): Likewise.
14358         * elf/tst-unique3lib2.cc (gets): Likewise.
14359         * elf/tst-unique4.cc (gets): Likewise.
14360
14361 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
14362
14363         * include/stdio.h: Add C++ protection.  Add gets declarations and
14364         definitions.
14365         * debug/tst-chk1.c: Don't declare gets here.
14366         * stdio-common/tst-gets.c: Likewise.
14367
14368 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14369
14370         * posix/glob: Remove directory.
14371
14372 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14373
14374         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
14375
14376 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
14377
14378         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
14379         of the non-standard EPFNOSUPPORT.
14380
14381 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14382
14383         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
14384         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
14385         ANYWHERE set to 1 only on KERN_NO_SPACE error.
14386
14387 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
14388
14389         * wcsmbs/uchar.h: Test __STDC_VERSION__.
14390
14391 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
14392
14393         * nscd/aicache.c (addhstaiX): Do not cache negative results of
14394         transient errors.
14395         * nscd/grpcache.c (cache_addgr): Likewise.
14396         * nscd/hstcache.c (cache_addhst): Likewise.
14397         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14398         * nscd/pwdcache.c (cache_addpw): Likewise.
14399         * nscd/servicescache.c (cache_addserv): Likewise.
14400
14401 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
14402
14403         * malloc/malloc.c: Various cleanups.
14404         * malloc/hooks.c: Likewise.
14405
14406         * stdlib/Makefile (tests): Add bug-fmtmsg1.
14407         * stdlib/bug-fmtmsg1.c: New file.
14408
14409         * stdlib/fmtmsg.c (init): Add missing unlock.
14410         Patch by Peng Haitao <penght@cn.fujitsu.com>.
14411
14412 2012-01-12  Marek Polacek  <polacek@redhat.com>
14413
14414         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
14415         and _GNU_SOURCE.
14416
14417 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14418
14419         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
14420         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
14421         macro to ensure uniqueness of label name.
14422         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14423         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14424
14425 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
14426
14427         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
14428
14429         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
14430         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
14431         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
14432         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
14433
14434 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
14435
14436         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
14437
14438         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
14439         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
14440         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
14441
14442         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
14443
14444         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
14445         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
14446         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
14447         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
14448
14449         * math/bits/math-finite.h: Add ldexp support.
14450
14451 2012-01-10  Marek Polacek  <polacek@redhat.com>
14452
14453         * locale/programs/localedef.h (show_archive_content): Add noreturn
14454         attribute.
14455
14456 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
14457
14458         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
14459
14460 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14461
14462         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
14463
14464         * io/Makefile (headers): Add bits/poll2.h.
14465
14466 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
14467
14468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
14469         typo #include statement.
14470
14471 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14472
14473         * include/sys/cdefs.h: Define __attribute_alloc_size.
14474         * catgets/gencat.c: Add alloc_size attribute and apply consistently
14475         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
14476         * elf/pldd.c: Likewise.
14477         * iconv/iconv_charmap.c: Likewise.
14478         * iconv/iconvconfig.c: Likewise.
14479         * iconv/strtab.c: Likewise.
14480         * locale/programs/locale.c: Likewise.
14481         * locale/programs/localedef.h: Likewise.
14482         * locale/programs/simple-hash.c: Likewise.
14483         * nscd/nscd.h: Likewise.
14484         * nss/makedb.c: Likewise.
14485         * sysdeps/generic/ldconfig.h: Likewise.
14486         * locale/programs/localedef.c: Remove xmalloc prototype.
14487         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
14488
14489 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14490
14491         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
14492         appropriate.
14493
14494 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14495
14496         * math/Makefile (tests): Add tst-CMPLX.
14497         * math/tst-CMPLX.c: New file.
14498
14499         * math/complex.h (CMPLXL): Fix typo.
14500
14501         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
14502         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
14503         GLIBC_2.16.
14504         * debug/tst-chk1.c: Add poll and ppoll tests.
14505         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
14506         * include/sys/poll.h: Add hidden proto for ppoll.
14507         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
14508         * sysdeps/mach/hurd/ppoll.c: Likewise.
14509         * io/ppoll.c: Likewise.
14510         * debug/poll_chk.c: New file.
14511         * debug/ppoll_chk.c: New file.
14512         * include/bits/poll2.h: New file.
14513         * io/bits/poll2.h: New file.
14514
14515         [BZ #1350]
14516         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
14517
14518         * configure.in: static is always set to yes.  Remove.
14519         * config.make.in: Don't set build-static.
14520         * Makeconfig: Remove use of build-static.
14521         * dlfcn/Makefile: Likewise.
14522         * elf/Makefile: Likewise.
14523         * math/Makefile: Likewise.
14524         * misc/Makefile: Likewise.
14525         * nptl/Makefile: Likewise.
14526         * sysdeps/mach/hurd/Makefile: Likewise.
14527
14528         * configure.in: PWD_P is not used anymore.
14529         * config.make.in: Remove PWD_P entry.
14530
14531         * configure.in: Remove last remnants of RANLIB.
14532         No need to check for signed size_t anymore.
14533         Don't set libc_commonpagesize and libc_relro_required here for Alpha
14534         and IA-64.
14535         Remove __builtin_expect test because we require at least gcc 3.4.
14536         * aclocal.m4: Likewise.
14537
14538         * wcsmbs/mbrtoc16.c: Implement using towc function.
14539         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
14540         * wcsmbs/wcsmbsload.c: Likewise.
14541         * iconv/gconv_simple.c: Likewise.
14542         * iconv/gconv_int.h: Likewise.
14543         * iconv/gconv_builtin.h: Likewise.
14544         * iconv/iconv_prog.c: Remove CHAR16 handling.
14545
14546         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
14547
14548         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
14549
14550         * configure.in: Remove --with-elf and --enable-bounded options.
14551         Dont set base_machine for ia64.  More non-ELF conditions removed.
14552         Remove testing and setting of leading underscore information.
14553         * config.make.in (build-bounded): Set to no.
14554         * config.h.in: Remove NO_UNDERSCORES entry.
14555         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
14556         them.
14557         * csu/start.c: Remove !NO_UNDERSCORE code.
14558         * locale/localeinfo.h: Likewise.
14559         * sysdeps/generic/machine-gmon.h: Likewise.
14560         * sysdeps/generic/sysdep.h: Likewise.
14561         * sysdeps/i386/sysdep.h: Likewise.
14562         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14563         * sysdeps/mach/sysdep.h: Likewise.
14564         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14565         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14566         * sysdeps/sh/sysdep.h: Likewise.
14567         * sysdeps/sparc/sparc32/alloca.S: Likewise.
14568         * sysdeps/unix/i386/sysdep.S: Likewise.
14569         * sysdeps/unix/sparc/start.c: Likewise.
14570         * sysdeps/unix/sparc/sysdep.S: Likewise.
14571         * sysdeps/unix/sparc/sysdep.h: Likewise.
14572         * sysdeps/unix/start.c: Likewise.
14573         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14574         * sysdeps/x86_64/sysdep.h: Likewise.
14575
14576 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
14577
14578         [BZ #13553]
14579         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
14580         for non-gcc.
14581         * argp/argp-fmtstream.h: Use const instead __const.
14582         * argp/argp.h: Likewise.
14583         * assert/assert.h: Likewise.
14584         * bits/fenv.h: Likewise.
14585         * bits/sched.h: Likewise.
14586         * bits/sigset.h: Likewise.
14587         * bits/sigthread.h: Likewise.
14588         * catgets/nl_types.h: Likewise.
14589         * conform/data/pthread.h-data: Likewise.
14590         * crypt/crypt-private.h: Likewise.
14591         * crypt/crypt.h: Likewise.
14592         * crypt/crypt_util.c: Likewise.
14593         * ctype/ctype.h: Likewise.
14594         * debug/execinfo.h: Likewise.
14595         * debug/mbsnrtowcs_chk.c: Likewise.
14596         * debug/mbsrtowcs_chk.c: Likewise.
14597         * debug/wcsnrtombs_chk.c: Likewise.
14598         * debug/wcsrtombs_chk.c: Likewise.
14599         * debug/wcstombs_chk.c: Likewise.
14600         * dirent/dirent.h: Likewise.
14601         * dlfcn/dlfcn.h: Likewise.
14602         * elf/neededtest4.c: Likewise.
14603         * grp/grp.h: Likewise.
14604         * gshadow/gshadow.h: Likewise.
14605         * iconv/gconv.h: Likewise.
14606         * iconv/gconv_int.h: Likewise.
14607         * iconv/gconv_simple.c: Likewise.
14608         * iconv/iconv.h: Likewise.
14609         * iconv/loop.c: Likewise.
14610         * iconv/skeleton.c: Likewise.
14611         * include/aio.h: Likewise.
14612         * include/aliases.h: Likewise.
14613         * include/argz.h: Likewise.
14614         * include/arpa/inet.h: Likewise.
14615         * include/assert.h: Likewise.
14616         * include/dirent.h: Likewise.
14617         * include/dlfcn.h: Likewise.
14618         * include/execinfo.h: Likewise.
14619         * include/fcntl.h: Likewise.
14620         * include/fenv.h: Likewise.
14621         * include/glob.h: Likewise.
14622         * include/grp.h: Likewise.
14623         * include/libintl.h: Likewise.
14624         * include/mntent.h: Likewise.
14625         * include/netdb.h: Likewise.
14626         * include/pwd.h: Likewise.
14627         * include/rpc/netdb.h: Likewise.
14628         * include/sched.h: Likewise.
14629         * include/search.h: Likewise.
14630         * include/shadow.h: Likewise.
14631         * include/signal.h: Likewise.
14632         * include/stdio.h: Likewise.
14633         * include/stdlib.h: Likewise.
14634         * include/string.h: Likewise.
14635         * include/sys/socket.h: Likewise.
14636         * include/sys/stat.h: Likewise.
14637         * include/sys/statfs.h: Likewise.
14638         * include/sys/statvfs.h: Likewise.
14639         * include/sys/syslog.h: Likewise.
14640         * include/sys/time.h: Likewise.
14641         * include/sys/uio.h: Likewise.
14642         * include/time.h: Likewise.
14643         * include/unistd.h: Likewise.
14644         * include/utmp.h: Likewise.
14645         * include/wchar.h: Likewise.
14646         * include/wctype.h: Likewise.
14647         * inet/aliases.h: Likewise.
14648         * inet/arpa/inet.h: Likewise.
14649         * inet/netinet/ether.h: Likewise.
14650         * inet/netinet/in.h: Likewise.
14651         * intl/libintl.h: Likewise.
14652         * io/bits/fcntl2.h: Likewise.
14653         * io/fcntl.h: Likewise.
14654         * io/ftw.h: Likewise.
14655         * io/sys/poll.h: Likewise.
14656         * io/sys/stat.h: Likewise.
14657         * io/sys/statfs.h: Likewise.
14658         * io/sys/statvfs.h: Likewise.
14659         * io/utime.h: Likewise.
14660         * libio/bits/stdio.h: Likewise.
14661         * libio/bits/stdio2.h: Likewise.
14662         * libio/libio.h: Likewise.
14663         * libio/libioP.h: Likewise.
14664         * libio/stdio.h: Likewise.
14665         * locale/lc-ctype.c: Likewise.
14666         * locale/locale.h: Likewise.
14667         * login/utmp.h: Likewise.
14668         * malloc/arena.c: Likewise.
14669         * malloc/malloc.c: Likewise.
14670         * malloc/malloc.h: Likewise.
14671         * malloc/mcheck.c: Likewise.
14672         * malloc/mtrace.c: Likewise.
14673         * math/bits/mathcalls.h: Likewise.
14674         * math/fenv.h: Likewise.
14675         * math/math_private.h: Likewise.
14676         * misc/bits/error.h: Likewise.
14677         * misc/bits/syslog.h: Likewise.
14678         * misc/err.h: Likewise.
14679         * misc/error.h: Likewise.
14680         * misc/fstab.h: Likewise.
14681         * misc/mntent.h: Likewise.
14682         * misc/regexp.h: Likewise.
14683         * misc/search.h: Likewise.
14684         * misc/sgtty.h: Likewise.
14685         * misc/sys/mman.h: Likewise.
14686         * misc/sys/syslog.h: Likewise.
14687         * misc/sys/uio.h: Likewise.
14688         * misc/sys/xattr.h: Likewise.
14689         * misc/ttyent.h: Likewise.
14690         * nis/rpcsvc/ypclnt.h: Likewise.
14691         * nss/nss.h: Likewise.
14692         * posix/bits/unistd.h: Likewise.
14693         * posix/fnmatch.h: Likewise.
14694         * posix/glob.h: Likewise.
14695         * posix/sched.h: Likewise.
14696         * posix/spawn.h: Likewise.
14697         * posix/sys/wait.h: Likewise.
14698         * posix/unistd.h: Likewise.
14699         * posix/wordexp.h: Likewise.
14700         * pwd/pwd.h: Likewise.
14701         * resolv/netdb.h: Likewise.
14702         * resource/sys/resource.h: Likewise.
14703         * rt/aio.h: Likewise.
14704         * rt/bits/mqueue2.h: Likewise.
14705         * rt/mqueue.h: Likewise.
14706         * shadow/shadow.h: Likewise.
14707         * signal/signal.h: Likewise.
14708         * socket/send.c: Likewise.
14709         * socket/sendto.c: Likewise.
14710         * socket/sys/socket.h: Likewise.
14711         * stdio-common/printf.h: Likewise.
14712         * stdlib/bits/stdlib.h: Likewise.
14713         * stdlib/fmtmsg.h: Likewise.
14714         * stdlib/monetary.h: Likewise.
14715         * stdlib/stdlib.h: Likewise.
14716         * stdlib/ucontext.h: Likewise.
14717         * streams/stropts.h: Likewise.
14718         * string/argz.h: Likewise.
14719         * string/bits/string2.h: Likewise.
14720         * string/string.h: Likewise.
14721         * string/strings.h: Likewise.
14722         * sunrpc/rpc/auth.h: Likewise.
14723         * sunrpc/rpc/auth_des.h: Likewise.
14724         * sunrpc/rpc/clnt.h: Likewise.
14725         * sunrpc/rpc/netdb.h: Likewise.
14726         * sunrpc/rpc/pmap_clnt.h: Likewise.
14727         * sunrpc/rpc/xdr.h: Likewise.
14728         * sysdeps/generic/inttypes.h: Likewise.
14729         * sysdeps/generic/net/if.h: Likewise.
14730         * sysdeps/generic/sys/swap.h: Likewise.
14731         * sysdeps/gnu/net/if.h: Likewise.
14732         * sysdeps/gnu/utmpx.h: Likewise.
14733         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14734         * sysdeps/i386/i486/bits/string.h: Likewise.
14735         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14736         * sysdeps/s390/bits/string.h: Likewise.
14737         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14738         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14739         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14740         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14741         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14742         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14743         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14744         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14745         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14746         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14747         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14748         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14749         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14750         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14751         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14752         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14753         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14754         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14755         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14756         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14757         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14758         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14759         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14760         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14761         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14762         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14763         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14764         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14765         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14766         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14767         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14768         * sysvipc/sys/ipc.h: Likewise.
14769         * sysvipc/sys/msg.h: Likewise.
14770         * sysvipc/sys/sem.h: Likewise.
14771         * sysvipc/sys/shm.h: Likewise.
14772         * termios/termios.h: Likewise.
14773         * time/sys/time.h: Likewise.
14774         * time/time.h: Likewise.
14775         * wcsmbs/bits/wchar2.h: Likewise.
14776         * wcsmbs/uchar.h: Likewise.
14777         * wcsmbs/wchar.h: Likewise.
14778         * wctype/wctype.h: Likewise.
14779
14780         [BZ #13551]
14781         * Makeconfig: Remove all but ELF support including AIX support.
14782         * Makerules: Likewise.
14783         * config.h.in: Likewise.
14784         * config.make.in: Likewise.
14785         * configure: Likewise.
14786         * configure.in: Likewise.
14787         * csu/Makefile: Likewise.
14788         * csu/version.c: Likewise.
14789         * debug/Makefile: Likewise.
14790         * dlfcn/Makefile: Likewise.
14791         * elf/Makefile: Likewise.
14792         * extra-lib.mk: Likewise.
14793         * iconv/Makefile: Likewise.
14794         * include/libc-symbols.h: Likewise.
14795         * include/shlib-compat.h: Likewise.
14796         * resolv/Makefile: Likewise.
14797         * resolv/res_libc.c: Likewise.
14798         * rt/Makefile: Likewise.
14799         * sysdeps/i386/asm-syntax.h: Likewise.
14800         * sysdeps/i386/sysdep.h: Likewise.
14801         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14802         * sysdeps/mach/sysdep.h: Likewise.
14803         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14804         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14805         * sysdeps/s390/asm-syntax.h: Likewise.
14806         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14807         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14808         * sysdeps/sh/sysdep.h: Likewise.
14809         * sysdeps/unix/sparc/sysdep.h: Likewise.
14810         * sysdeps/wordsize-32/divdi3.c: Likewise.
14811         * sysdeps/x86_64/sysdep.h: Likewise.
14812
14813         * argp/Versions: Remove _argp_unlock_xxx.
14814
14815         [BZ #13559]
14816         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14817         * abilist/libBrokenLocale.abilist: Likewise.
14818         * abilist/libanl.abilist: Likewise.
14819         * abilist/libc.abilist: Likewise.
14820         * abilist/libcrypt.abilist: Likewise.
14821         * abilist/libdl.abilist: Likewise.
14822         * abilist/libm.abilist: Likewise.
14823         * abilist/libnsl.abilist: Likewise.
14824         * abilist/libpthread.abilist: Likewise.
14825         * abilist/libresolv.abilist: Likewise.
14826         * abilist/librt.abilist: Likewise.
14827         * abilist/libthread_db.abilist: Likewise.
14828         * abilist/libutil.abilist: Likewise.
14829         * abilist/libnss_db.abilist: New file.
14830
14831         * scripts/abilist.awk: Add support for indirect functions.
14832
14833         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14834
14835         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14836
14837         * shlib-versions: Remove entries for ports architectures.
14838
14839         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14840         files in ports.
14841         * elf/stackguard-macros.h: Remove support for IA-64.
14842         * elf/tst-auditmod1.c: Likewise.
14843         * sysdeps/generic/ldsodefs.h: Likewise.
14844
14845         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14846         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14847         configure files.
14848
14849         [BZ #13552]
14850         * configure.in: Remove --enable-omitfp support.
14851         * FAQ.in: Adjust.
14852         * config.make.in: Likewise.
14853         * Makeconfig: Likewise.
14854         * manual/install.texi: Likewise.
14855
14856         In case anyone cares, the IA-64 architecture could move to ports.
14857         * sysdeps/ia64/*: Removed.
14858         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14859         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14860
14861         [BZ #13555]
14862         * configure.in: Remove entries for unsupported architectures.
14863
14864         [BZ #13533]
14865         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14866         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14867         routines.
14868         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14869         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14870         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14871         fall back to using wcrtomb.
14872         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14873         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14874         renaming.
14875         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14876         * wcsmbs/tst-c16c32-1.c: New file.
14877
14878         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14879         local variable.
14880
14881         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14882
14883         * elf/tst-unique3.cc: Add explicit declaration of gets.
14884         * elf/tst-unique3lib.cc: Likewise.
14885         * elf/tst-unique3lib2.cc: Likewise.
14886         * elf/tst-unique4.cc: Likewise.
14887
14888         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14889
14890 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14891
14892         [BZ #13566]
14893         * assert/assert.h (static_assert): Don't define for C++.
14894         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14895         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14896
14897 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14898
14899         * iconv/loop.c (single loop): Fix assertion in storing of
14900         remaining bytes.
14901
14902         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14903
14904 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14905
14906         * posix/getconf.c: Update copyright year.
14907         * nss/getent.c: Likewise.
14908         * nss/makedb.c: Likewise.
14909         * iconv/iconvconfig.c: Likewise.
14910         * iconv/iconv_prog.c: Likewise.
14911         * elf/ldconfig.c: Likewise.
14912         * elf/pldd.c: Likewise.
14913         * elf/sotruss.ksh: Likewise.
14914         * catgets/gencat.c: Likewise.
14915         * csu/version.c: Likewise.
14916         * elf/ldd.bash.in: Likewise.
14917         * elf/sprof.c (print_version): Likewise.
14918         * locale/programs/locale.c: Likewise.
14919         * locale/programs/localedef.c: Likewise.
14920         * login/programs/pt_chown.c: Likewise.
14921         * nscd/nscd.c (print_version): Likewise.
14922         * debug/xtrace.sh: Likewise.
14923         * malloc/memusage.sh: Likewise.
14924         * malloc/mtrace.pl: Likewise.
14925         * debug/catchsegv.sh: Likewise.
14926
14927 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14928
14929         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14930         pure attribute.
14931
14932 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14933
14934         [BZ #13533]
14935         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14936         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14937         transformations.
14938         * iconv/gconv_int.h: Likewise.
14939         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14940         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14941         from libc for GLIBC_2.16.
14942         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14943         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14944         * wcsmbs/uchar.h: Really define mbstate_t.
14945         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14946         * wcsmbs/c16rtomb.c: New file.
14947         * wcsmbs/mbrtoc16.c: New file.
14948         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14949         for C/POSIX locale.
14950         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14951         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14952
14953         * wcsmbs/wchar.h: Add missing __restrict.
14954
14955 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14956
14957         [BZ #13532]
14958         * time/Makefile (routines): Add timespec_get.
14959         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14960         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14961         timespec for ISO C11.
14962         * time/timespec_get.c: New file.
14963         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14964         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14965
14966         [BZ #13531]
14967         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14968         * stdlib/stdlib.h: Declare aligned_alloc.
14969         * Versions.def: Add GLIBC_2.16 for libc.
14970         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14971
14972         [BZ 13527]
14973         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14974         ISO C11.
14975
14976         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14977         code.
14978
14979         [BZ #13528]
14980         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14981
14982         [BZ #13529]
14983         * assert/assert.h (static_assert): Define.
14984
14985         * version.h: Update for 2.16 development version.
14986
14987         [BZ #13526]
14988         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14989         _ISOC11_SOURCE.
14990
14991         * version.h (RELEASE): Bump for 2.15 release.
14992         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14993
14994         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14995         Patch by Marek Polacek <mpolacek@redhat.com>.
14996
14997         * bits/byteswap.h: Protect long long constants with __extension__.
14998         * sysdeps/i386/bits/byteswap.h: Likewise.
14999         * sysdeps/ia64/bits/byteswap.h: Likewise.
15000         * sysdeps/s390/bits/byteswap.h: Likewise.
15001         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15002
15003 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15004
15005         [BZ #13540]
15006         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15007         destination buffer.
15008         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15009
15010 2011-12-23  Marek Polacek  <polacek@redhat.com>
15011
15012         * elf/dl-addr.c (determine_info): Add inline keyword.
15013         * elf/tst-auditmod4b.c (check_avx): Likewise.
15014         * elf/tst-auditmod6b.c (check_avx): Likewise.
15015         * elf/tst-auditmod6c.c (check_avx): Likewise.
15016         * elf/tst-auditmod7b.c (check_avx): Likewise.
15017
15018 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15019
15020         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15021         !__SSE_MATH__.
15022
15023 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15024
15025         [BZ #13540]
15026         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15027         processing for last bytes.
15028
15029 2011-08-06  Bruno Haible  <bruno@clisp.org>
15030
15031         [BZ #13061]
15032         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15033         U+0385, not to U+1FEE.
15034
15035         [BZ #13062]
15036         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15037         entry for U+00A5 U+0301.
15038
15039 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15040
15041         [BZ #13166]
15042         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15043         buffer for the output is too small.
15044
15045         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15046         optimization.
15047
15048         [BZ #13185]
15049         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15050         SSE flags if possible.
15051
15052 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15053
15054         [BZ #13540]
15055         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15056         processing for last bytes.
15057
15058 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15059
15060         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15061         (syscall-list-default-options, syscall-list-default-condition)
15062         (syscall-list-includes): Define.
15063         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15064         list of ABIs and options and #if conditions for each ABI.  Do not
15065         handle common syscalls between ABIs specially.
15066         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15067         Remove.
15068         (syscall-list-variants, syscall-list-32bit-options)
15069         (syscall-list-32bit-condition, syscall-list-64bit-options)
15070         (syscall-list-64bit-condition): Define.
15071         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15072         (syscall-list-variants, syscall-list-32bit-options)
15073         (syscall-list-32bit-condition, syscall-list-64bit-options)
15074         (syscall-list-64bit-condition): Define.
15075         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15076         Remove.
15077         (syscall-list-variants, syscall-list-32bit-options)
15078         (syscall-list-32bit-condition, syscall-list-64bit-options)
15079         (syscall-list-64bit-condition): Define.
15080         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15081         Remove.
15082         (syscall-list-variants, syscall-list-32bit-options)
15083         (syscall-list-32bit-condition, syscall-list-64bit-options)
15084         (syscall-list-64bit-condition): Define.
15085
15086 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15087
15088         * locale/iso-639.def: Add brx entry.
15089
15090         [BZ #13328]
15091         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15092         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15093
15094         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15095         __feraiseexcept_renamed.
15096
15097 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15098
15099         [BZ #13538]
15100         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15101         EPOLLET with unsigned values.
15102         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15103         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15104
15105         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15106         to large cancellation.
15107         * math/s_cacoshf.c: Likewise.
15108         * math/s_cacoshl.c: Likewise.
15109
15110 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15111
15112         [BZ #13305]
15113         [BZ #12786]
15114         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15115         * math/s_cacoshf.c: Likewise.
15116         * math/s_cacoshl.c: Likewise.
15117
15118 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15119
15120         [BZ #13439]
15121         * iconv/gconv.h: Define __GCONV_SWAP.
15122         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15123         * iconvdata/utf-16.c: Likewise.
15124         * iconvdata/utf-32.c: Likewise.
15125
15126 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15127
15128         [BZ #13524]
15129         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15130         numerator after shifting it by one limb.
15131
15132 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15133
15134         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15135         under [__USE_EXTERN_INLINES].
15136
15137 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15138
15139         [BZ #13446]
15140         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15141
15142 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15143
15144         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15145         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15146         optimized code.
15147         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15148         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15149         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15150         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15151         for strncasecmp/strncasecmp_l compilation.
15152         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15153         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15154
15155 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15156
15157         [BZ #13484]
15158         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15159         of __asm__.
15160
15161 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15162
15163         [BZ #13506]
15164         * time/tzfile.c (__tzfile_read): Check values from file header.
15165
15166 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15167
15168         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15169         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15170         * powerpc/powerpc32/dl-start.S: Likewise.
15171         * powerpc/powerpc32/elf/start.S: Likewise.
15172         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15173         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15174         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15175         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15176         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15177         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15178         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15179         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15180         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15181         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15182         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15183         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15184         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15185         * powerpc/powerpc32/memset.S: Likewise.
15186         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15187         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15188         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15189         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15190         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15191         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15192         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15193         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15194         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15195         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15196         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15197         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15198         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15199
15200 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15201
15202         * math/libm-test.inc: Added more nearbyint tests.
15203         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15204         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15205         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15206         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15207
15208 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15209
15210         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15211         FD_CLOEXEC.
15212
15213 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15214
15215         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15216         Add wcscpy-ssse3 wcscpy-c.
15217         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15218         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15219         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15220         * sysdeps/x86_64/wcschr.S: New file.
15221         * sysdeps/x86_64/wcsrchr.S: New file.
15222         * string/test-strcmp.c: Remove checking of wcscmp function for
15223         wrong alignments.
15224         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15225         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15226         wcsrchr-sse2 wcsrchr-c.
15227         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15228         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15229         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15230         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15231         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15232         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15233         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15234         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15235         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15236         * wcsmbc/wcschr.c (WCSCHR): New macro.
15237
15238 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15239
15240         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15241         * wcsmbs/test-wcsrchr.c: New file.
15242         * string/test-strrchr.c: Add wcsrchr support.
15243         (WIDE): New macro.
15244         * wcsmbs/test-wcscpy.c: New file.
15245         * string/test-strcpy.c: Add wcscpy support.
15246         (WIDE): New macro.
15247
15248 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15249
15250         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15251         the inner loop.
15252
15253 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15254
15255         [BZ #13472]
15256         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15257
15258 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15259
15260         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15261         Minor optimizations.
15262
15263         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15264         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15265         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15266
15267 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15268
15269         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15270         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15271         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15272         for gcc to avoid warnings.
15273         * inet/Makefile (tests): Add tst-checks.
15274         * inet/tst-checks.c: New file.
15275
15276         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15277         warning.
15278
15279         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15280         __wmemcmp_sse2.
15281
15282         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15283         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15284
15285         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15286
15287 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15288
15289         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15290         problem.
15291
15292         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15293
15294 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15295
15296         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15297         conditional on GCC version.
15298         (__arch_compare_and_exchange_val_8_acq)
15299         (__arch_compare_and_exchange_val_16_acq)
15300         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15301         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15302         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15303
15304 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15305
15306         * sysdeps/sh/backtrace.c: New file.
15307
15308 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15309
15310         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15311         parenthesis.
15312
15313 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15314
15315         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15316         falling back to utime.
15317
15318 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15319
15320         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15321         expectations for float.
15322
15323 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15324
15325         * locale/weight.h (findidx): Add parameter len.
15326         * locale/weightwc.h (findidx): Likewise.
15327         * posix/fnmatch_loop.c (FCT): Adjust caller.
15328         * posix/regcomp.c (build_equiv_class): Likewise.
15329         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15330         * posix/regexec.c (check_node_accept_bytes): Likewise.
15331         * string/strcoll_l.c (STRCOLL): Likewise.
15332         * string/strxfrm_l.c (STRXFRM): Likewise.
15333
15334 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
15335
15336         * Makefile.in: Remove CVSOPT handling.
15337         * configure.in: Remove use of AC_REVISION.
15338         * iconvdata/Makefile (distribute): No need to filter out CVS.
15339         * scripts/list-sources.sh: Remove CVS, subversion and monotone
15340         handling.
15341
15342 2011-11-16  Andreas Schwab  <schwab@redhat.com>
15343
15344         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
15345         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
15346         [USE_AS_STRNCASECMP_L]: Likewise.
15347         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
15348         NO_TLS_DIRECT_SEG_REFS.
15349         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
15350         Fix argument offsets for non-PIC.
15351         [USE_AS_STRNCASECMP_L]: Likewise.
15352         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
15353         NO_TLS_DIRECT_SEG_REFS.
15354
15355 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15356
15357         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
15358         O_CLOEXEC.
15359         * locale/loadlocale.c (_nl_load_locale): Likewise.
15360
15361 2011-11-15  Andreas Schwab  <schwab@redhat.com>
15362
15363         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
15364         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
15365         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
15366         (SYSCALL_GETTIME): Set errno on error.
15367
15368         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
15369         count references to noai6ai_cached.
15370
15371 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15372
15373         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
15374
15375         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
15376         FD_CLOEXEC for /proc/self/maps.
15377
15378         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
15379         FD_CLOEXEC for /proc/meminfo.
15380
15381         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
15382         gai.conf.
15383
15384         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
15385         FD_CLOEXEC for given file.
15386
15387         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
15388
15389         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
15390         FD_CLOEXEC for /etc/hosts.
15391         (_gethtent): Likewise.
15392
15393         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
15394
15395         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
15396         cancellation and set FD_CLOEXEC for /etc/netgroup.
15397
15398         * nss/nss_files/files-key.c (search): Don't allow cancellation when
15399         reading /etc/publickey.
15400
15401         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
15402         allow cancellation when reading /etc/group.
15403
15404         * nss/nss_files/files-alias.c (internal_setent): Don't allow
15405         cancellation.
15406         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
15407
15408         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
15409         when using data file.
15410
15411         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
15412
15413         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
15414         (write_nis_obj): Use "c" and "e" in fopen.
15415
15416         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
15417
15418         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
15419
15420         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
15421
15422         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
15423
15424         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
15425         locale.alias.
15426
15427         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
15428
15429         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
15430
15431         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
15432
15433         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
15434         file parsing and set FD_CLOEXEC.
15435
15436 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15437
15438         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
15439
15440 2011-11-14  Andreas Schwab  <schwab@redhat.com>
15441
15442         * malloc/arena.c (arena_get2): Don't call reused_arena when
15443         _int_new_arena failed.
15444
15445 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15446
15447         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
15448         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
15449         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
15450         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15451         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15452         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
15453         to compile strcasecmp and strncasecmp.
15454         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
15455         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
15456
15457         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
15458
15459 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
15460
15461         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
15462         locale-defines.sym to gen-as-const-headers.
15463         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
15464         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
15465         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
15466         to compile strcasecmp and strncasecmp.
15467         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
15468         strcasecmp_l and strncasecmp_l.
15469         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
15470         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
15471         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
15472         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
15473         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
15474         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
15475         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
15476         * sysdeps/i386/i686/multiarch/strncase.S: New file.
15477         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
15478         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
15479         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
15480
15481 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
15482
15483         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
15484         result of SYSDEP_GETTIME_CPU to retval.
15485         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
15486         parameter list to macro.  Remove trailing semicolon.  Adjust users.
15487
15488         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
15489         variable.
15490
15491         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
15492         mantissa words.
15493         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15494
15495         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
15496         from unused variable.
15497
15498         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
15499         DWARF definitions.
15500         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
15501         for assembling.
15502
15503         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
15504         over namespaces.
15505
15506         * sunrpc/rpc_prot.c (rejected): Fix case value.
15507
15508         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
15509         unsigned long long int to avoid warnings in shift.
15510
15511         * posix/regex_internal.c (re_string_reconstruct): Actually use result
15512         of use of trans.
15513         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
15514         variable tmp.
15515
15516         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
15517         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
15518         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
15519
15520         * nis/nis_table.c (nis_list): Use variable of correct type for
15521         result of __follow_path call.
15522
15523 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15524
15525         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
15526         of math functions ceil, trunc, floor, round, and sqrt, when
15527         avaliable on the platform.
15528         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
15529         name clash.
15530         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15531         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15532         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15533
15534 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
15535
15536         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
15537         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
15538
15539 2011-11-11  Roland McGrath  <roland@hack.frob.com>
15540
15541         * include/unistd.h: Fix __readlink return type.
15542         Reported by Chris Metcalf <cmetcalf@tilera.com>.
15543
15544 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
15545
15546         * stdlib/ucontext.h: Undo last change for makecontext.
15547
15548 2011-11-11  Andreas Schwab  <schwab@redhat.com>
15549
15550         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
15551
15552         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
15553         * setjmp/setjmp.h: Mark functions as non-leaf.
15554         * setjmp/bits/setjmp2.h: Likewise.
15555         * stdlib/ucontext.h: Likewise.
15556
15557 2011-11-10  Andreas Schwab  <schwab@redhat.com>
15558
15559         * malloc/arena.c (_int_new_arena): Don't increment narenas.
15560         (reused_arena): Don't check arena limit.
15561         (arena_get2): Atomically check arena limit.
15562
15563 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
15564
15565         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
15566         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
15567
15568         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
15569         instructions.
15570
15571 2011-11-07  Andreas Schwab  <schwab@redhat.com>
15572
15573         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
15574         handler when locking.
15575
15576         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15577         Fix size of allocated buffer.
15578
15579 2011-11-04  Andreas Schwab  <schwab@redhat.com>
15580
15581         [BZ #10103]
15582         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
15583         declarations for long double functions.
15584         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
15585
15586         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
15587
15588 2011-11-03  Andreas Schwab  <schwab@redhat.com>
15589
15590         * nscd/nscd.c (main): Don't start AVC thread until credentials are
15591         installed.
15592
15593         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
15594         is disabled.
15595
15596 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15597
15598         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
15599
15600 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
15601
15602         * include/alloca.h (stackinfo_alloca_round): Define.
15603         (extend_alloca): Use it.
15604         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
15605         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
15606         here.
15607
15608         * scripts/check-local-headers.sh: Ignore libaudit.h.
15609
15610         * nscd/Makefile (extra-objs): Make recursively expanded.
15611
15612 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
15613
15614         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
15615         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
15616
15617         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
15618         * posix/tst-rfc3484-2.c: Likewise.
15619         * posix/tst-rfc3484-3.c: Likewise.
15620
15621         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
15622         process_vm_writev.
15623         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
15624         process_vm_writev.
15625         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
15626         process_vm_writev from libc using GLIBC_2.15 version.
15627
15628         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
15629
15630 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
15631
15632         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
15633         stack usage.
15634
15635 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
15636
15637         [BZ #13367]
15638         * nss/getent.c (initgroups_keys): Show error message in case no group
15639         names are given.
15640
15641         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
15642         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
15643         __bump_nl_timestamp.
15644         * nscd/connections (nscd_init): When host database is served open
15645         netlink socket and request notification about configuration changes.
15646         (main_loop_poll): Track netlink file descriptor and bump timestamp
15647         in case data becomes available.
15648         (main_loop_epoll): Likewise.
15649         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
15650         (database_pers_head): Add extra_data fileds.
15651         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
15652         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
15653         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
15654         Adjust caller.
15655         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
15656         in6ai data, call __free_in6ai.
15657         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
15658         Add -DHAVE_NETLINK.
15659         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
15660         interface information.  Reuse previous data if netlink timestamp
15661         is not changed.
15662         (__bump_nl_timestamp): New function.
15663         (__free_in6ai): New function.
15664
15665 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
15666
15667         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
15668         close_not_cancel_no_status here.
15669         (__check_pf): Reorganize code a bit to not call close twice if OOM.
15670
15671 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15672
15673         [BZ #13276]
15674         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
15675         return value.
15676
15677         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
15678         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
15679         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
15680
15681 2011-07-03  Andreas Jaeger  <aj@suse.de>
15682
15683         [BZ #10709]
15684         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
15685         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
15686         * math/libm-test.inc (sin_test): Add test case.
15687
15688 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15689
15690         [BZ #13337]
15691         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
15692         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15693
15694         * elf/chroot_canon.c (chroot_canon): Cleanups.
15695
15696         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
15697
15698         [BZ #13335]
15699         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
15700         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15701
15702         * string/test-strchr.c: Make usable for strchrnul testing.
15703         * string/test-strchrnul.c: New file.
15704         * string/Makefile (strop-tests): Add strchrnul.
15705
15706         * po/it.po: Update from translation team.
15707         * po/es.po: Likewise.
15708
15709 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
15710
15711         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
15712         the three constants needed as parameters.  Drop the others.
15713         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
15714         __m128i_strloadu_tolower.
15715         Create and initialize variable zero and use it in all the places
15716         where _mm_setzero_si128 was used.
15717
15718         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
15719         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15720         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15721         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15722         anymore.
15723         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15724         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15725         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15726         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15727         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15728         __mpranred, __mptan.
15729         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15730         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15731         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15732         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15733         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15734         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15735         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15736         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15737         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15738
15739 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15740
15741         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15742         redefine if SHARED.
15743         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15744
15745         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15746         wide char related routines to wcsmbs subdir.
15747
15748 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15749
15750         [BZ #13344]
15751         * misc/sys/cdefs.h (__THROWNL): Define.
15752         * posix/unistd.h: Use __THREADNL instead of __THREAD
15753         for memory synchronization functions.
15754
15755 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15756
15757         [BZ #13349]
15758         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15759         doesn't exist.
15760         * manual/stdio.texi (Obstack Streams): Node removed.
15761
15762 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15763
15764         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15765         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15766         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15767
15768         * math/math_private.h (math_force_eval): Allow non-addressable
15769         arguments.
15770         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15771
15772 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15773
15774         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15775         file is not needed.
15776
15777         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15778         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15779         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15780         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15781         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15782         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15783         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15784         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15785         Add AVX variants.
15786         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15787         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15788         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15789         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15790         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15791         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15792         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15793         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15794         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15795         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15796         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15797         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15798         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15799         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15800         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15801         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15802         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15803         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15804         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15805
15806         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15807         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15808
15809         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15810         place.  Use VEX encoding when compiling for AVX.
15811
15812 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15813
15814         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15815         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15816
15817         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15818
15819 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15820
15821         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15822         useless if() expression.
15823         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15824         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15825         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15826         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15827         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15828         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15829         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15830         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15831         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15832         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15833         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15834         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15835         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15836         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15837         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15838         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15839         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15840         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15841         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15842
15843         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15844
15845 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15846
15847         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15848         condition.
15849         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15850
15851 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15852
15853         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15854         .text section.  Avoid duplicate constants.
15855         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15856         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15857         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15858         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15859         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15860         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15861         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15862         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15863         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15864         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15865         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15866         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15867         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15868         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15869         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15870         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15871         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15872         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15873         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15874         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15875         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15876         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15877         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15878         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15879         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15880         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15881         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15882         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15883         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15884         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15885         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15886         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15887         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15888         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15889         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15890         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15891         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15892         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15893         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15894         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15895         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15896         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15897         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15898         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15899         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15900
15901 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15902
15903         * sysdeps/x86_64/dla.h: Move to ...
15904         * sysdeps/x86_64/fpu/dla.h: ...here.
15905         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15906         situations.  Use __builtin_fma only for gcc 4.6 and up.
15907
15908         * config.make.in: Add have-mfma4 entry.
15909         * configure.in: Substitute libc_cv_cc_fma4.
15910         * math/Makefile (dbl-only-routines): Add sincostab.
15911         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15912         Use __sincostab not sincos.
15913         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15914         name is a macro.
15915         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15916         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15917         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15918         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15919         using __copysign.
15920         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15921         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15922         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15923         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15924         and __inv.
15925         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15926         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15927         __copysign.
15928         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15929         define aliases when function name is a macro.
15930         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15931         sysdeps/ieee754/dbl-64/sincos.tbl.
15932         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15933         fma4-enabled routines.
15934         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15935         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15936         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15937         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15938         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15939         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15940         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15941         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15942         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15943         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15944         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15945         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15946         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15947         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15948         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15949         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15950         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15951         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15952         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15953         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15954         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15955         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15956         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15957         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15958         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15959         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15960         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15961         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15962         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15963         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15964
15965         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15966         rename.
15967         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15968         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15969         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15970         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15971         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15972         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15973         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15974         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15975
15976 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15977
15978         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15979
15980 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15981
15982         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15983
15984         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15985         prediction.
15986         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15987
15988         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15989         Remove unused variable magic_bits.
15990         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15991
15992         * string/strnlen.c: Define and use STRNLEN macro.
15993         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15994         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15995         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15996         * wcsmbs/wcslen.c: Define and use WCSLEN.
15997         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15998         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15999         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16000         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16001         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16002         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16003         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16004
16005 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16006
16007         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16008         strnlen-sse2-no-bsf.
16009         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16010         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16011         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16012         Add strnlen support.
16013         (USE_AS_STRNLEN): New macro.
16014         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16015         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16016         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16017         * sysdeps/x86_64/wcslen.S: New file.
16018
16019 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16020
16021         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16022         XMM-moves are used for copying on small sizes.
16023
16024 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16025
16026         * wcsmbs/Makefile (strop-tests): Add wcschr.
16027         * wcsmbs/test-wcschr.c: New file.
16028         * string/test-strchr.c: Update.
16029         Add wcschr support.
16030         (WIDE): New macro.
16031
16032 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16033
16034         * wcsmbs/Makefile (strop-tests): Add wcslen.
16035         * wcsmbs/test-wcslen.c: New file.
16036         * string/test-strlen.c: Update.
16037         Add wcslen support.
16038         (WIDE): New macro.
16039
16040 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16041
16042         * po/it.po: Update from translation team.
16043
16044 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16045
16046         * sysdeps/x86_64/wcscmp.S: Update.
16047         Fix wrong comparison semantics.
16048         wcscmp shall use signed comparison not unsigned.
16049         Don't use substraction to avoid overflow bug.
16050         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16051         * wcsmbc/wcscmp.c: Likewise.
16052         * string/test-strcmp.c: Likewise.
16053         Add new tests to check cases with negative values.
16054
16055 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16056
16057         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16058         * sysdeps/x86_64/dla.h: ...here.  New file.
16059         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16060         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16061         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16062         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16063         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16064         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16065         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16066         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16067         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16068
16069 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16070
16071         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16072         __ynl_finite aliases.
16073
16074 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16075
16076         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16077
16078         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16079         define DLA_FMA.
16080         [DLA_FMA] (EMULV): Use DLA_FMA.
16081         [DLA_FMA] (MUL12): Use EMULV.
16082         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16083         that are not needed.
16084         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16085         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16086         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16087         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16088         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16089         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16090         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16091
16092 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16093
16094         * math/s_nan.c: Undef __nan.
16095         * math/s_nanf.c: Undef __nanf.
16096         * math/s_nanl.c: Undef __nanl.
16097         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16098         "math_private.h".
16099
16100 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16101
16102         * math/s_catan.c: Add branch predictions.
16103         * math/s_catanf.c: Likewise.
16104         * math/s_catanh.c: Likewise.
16105         * math/s_catanhf.c: Likewise.
16106         * math/s_catanhl.c: Likewise.
16107         * math/s_catanl.c: Likewise.
16108         * math/s_cexp.c: Likewise.
16109         * math/s_cexpf.c: Likewise.
16110         * math/s_cexpl.c: Likewise.
16111         * math/s_clog.c: Likewise.
16112         * math/s_clog10.c: Likewise.
16113         * math/s_clog10f.c: Likewise.
16114         * math/s_clog10l.c: Likewise.
16115         * math/s_clogf.c: Likewise.
16116         * math/s_clogl.c: Likewise.
16117         * math/s_csqrt.c: Likewise.
16118         * math/s_csqrtf.c: Likewise.
16119         * math/s_csqrtl.c: Likewise.
16120         * math/s_ctanf.c: Likewise.
16121         * math/s_ctanh.c: Likewise.
16122         * math/s_ctanhf.c: Likewise.
16123         * math/s_ctanhl.c: Likewise.
16124         * math/s_ctanl.c: Likewise.
16125
16126         * math/math_private.h: Define __nan, __nanf, __nanl.
16127         * math/s_cacosh.c: Include <math_private.h>.
16128         * math/s_cacoshl.c: Likewise.
16129         * math/s_casinh.c: Likewise.
16130         * math/s_casinhf.c: Likewise.
16131         * math/s_casinhl.c: Likewise.
16132         * math/s_ccos.c: Rely entire on ccosh.
16133         * math/s_ccosf.c: Rely entire on ccoshf.
16134         * math/s_ccosl.c: Rely entirely on ccoshl.
16135         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16136         Remove tests for FE_INVALID.
16137         * math/s_ccoshf.c: Likewise.
16138         * math/s_ccoshl.c: Likewise.
16139         * math/s_csin.c: Likewise.
16140         * math/s_csinf.c: Likewise.
16141         * math/s_csinh.c Likewise.
16142         * math/s_csinhf.c: Likewise.
16143         * math/s_csinhl.c: Likewise.
16144         * math/s_csinl.c: Likewise.
16145         * math/s_ctan.c: Likewise.
16146         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16147         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16148         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16149
16150 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16151
16152         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16153         compilation problems.
16154
16155         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16156         __builtin_expect.
16157
16158 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16159
16160         * sysdeps/i386/configure.in: Test for -mfma4 option.
16161         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16162         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16163         COMMON_CPUID_INDEX_80000001.
16164         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16165         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16166         use it if FMA3 is not supported.
16167         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16168
16169         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16170         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16171
16172 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16173
16174         [BZ #12892]
16175         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16176         it would create a cycle with a link time dependency.
16177
16178 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16179
16180         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16181         instruction.
16182         * string/Makefile (strop-tests): Add rawmemchr.
16183         * string/test-rawmemchr.c: New file.
16184
16185         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16186         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16187         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16188         when compiling str{,n}casecmp and when AVX is available.  Hook up
16189         new optimized code in initializers.
16190
16191 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16192
16193         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16194         __feraiseexcept instead of feraiseexcept.
16195
16196 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16197
16198         * math/math_private.h: Define defaults for libc_fetestexcept and
16199         libc_feupdateenv.
16200         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16201         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16202         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16203         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16204         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16205         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16206         libc_fetestexcept and libc_feupdateenv.
16207
16208         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16209         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16210         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16211         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16212         libc_feholdexcept_setround.
16213
16214         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16215         Add s_nearbyint-c and s_nearbyintf-c.
16216         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16217         nearbyintf inlines.
16218         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16219         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16220         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16221         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16222
16223         * math/math_private.h: Define defaults for libc_fegetround,
16224         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16225         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16226         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16227         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16228         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16229         standard functions.
16230         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16231         Remove comments and hacks for old compiler versions.
16232         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16233         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16234         libc_feholdexceptl.
16235
16236 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16237
16238         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16239         (__feraiseexcept_renamed): Add __NTH.
16240         (feraiseexcept): Add __NTH.  Rename local variables to fix
16241         namespace violations.
16242
16243 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16244
16245         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16246
16247         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16248
16249         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16250         recently added interfaces.
16251         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16252
16253         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16254         about macro parameter expansion.
16255
16256         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16257         __NO_MATH_INLINES is defined.  Cleanups.
16258
16259         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16260         and __floorf is target has SSE4.1.
16261         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16262         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16263         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16264         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16265
16266         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16267         name.
16268         (floorf): Likewise.
16269
16270         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16271
16272 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16273
16274         * misc/sys/cdefs.h: Fix last change.
16275
16276         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16277         database lookup.
16278
16279 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16280
16281         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16282
16283         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16284         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16285         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16286         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16287         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16288         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16289         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16290         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16291         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16292         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16293         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16294         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16295         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16296         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16297         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16298         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16299         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16300         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16301         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16302         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16303         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16304         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16305
16306         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16307         ceil, ceilf, floor, floorf.
16308
16309         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16310         Perform IRELATIVE relocations last.
16311
16312         * elf/do-rel.h: Add another parameter nrelative, replacing the
16313         local variable with the same name.  Change name of the function
16314         to end in Rel or Rela (uppercase).
16315         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16316         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16317         elf_dynamic_do_##reloc function.
16318
16319 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16320
16321         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16322         is sufficient, at least on modern CPUs.
16323
16324         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16325
16326         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16327         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16328
16329         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16330         __expl_finite.
16331         * math/bits/math-finite.h: Add entries for exp.
16332         * math/e_expl.c: Add __*_finite alias.
16333         * sysdeps/i386/fpu/e_exp.S: Likewise.
16334         * sysdeps/i386/fpu/e_expf.S: Likewise.
16335         * sysdeps/i386/fpu/e_expl.c: Likewise.
16336         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16337         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16338         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16339         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16340         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
16341         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16342         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16343
16344         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
16345         is sufficient, at least on modern CPUs.
16346
16347         * ctype/ctype-info.c (__ctype_init): Define.
16348         * include/ctype.h (__ctype_init): Declare.
16349         (__ctype_b_loc): The variable is always initialized.
16350         (__ctype_toupper_loc): Likewise.
16351         (__ctype_tolower_loc): Likewise.
16352         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
16353         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
16354
16355 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
16356
16357         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
16358
16359         * configure.in: Also look in $cxxmachine/include for C++ system
16360         headers.
16361
16362 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16363
16364         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
16365         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
16366         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
16367         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
16368         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
16369         (USE_AS_WMEMCMP): New macro.
16370         Fixing indents.
16371         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
16372         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
16373         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
16374         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
16375         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16376         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
16377         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
16378         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
16379         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
16380         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
16381         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
16382         (USE_AS_WMEMCMP): New macro.
16383         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
16384         * sysdeps/string/test-memcmp.c: Update.
16385         Fix simple_wmemcmp.
16386         Add new tests.
16387         * wcsmbs/wmemcmp.c: Update.
16388         (WMEMCMP): New macro.
16389         Fix overflow bug.
16390
16391 2011-10-12  Andreas Jaeger  <aj@suse.de>
16392
16393         [BZ #13268]
16394         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
16395
16396 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16397
16398         * libio/iofwide.c (do_length): Avoid warning.
16399
16400         * ctype/ctype.h (__isctype_f): Add missing __THROW.
16401
16402 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
16403
16404         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
16405
16406         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
16407         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
16408         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
16409         * sysdeps/i386/i686/fpu/e_log.S: New file.
16410         * sysdeps/i386/i686/fpu/e_logf.S: New file.
16411         * sysdeps/i386/i686/fpu/e_logl.S: New file.
16412
16413         * ctype/ctype.h: Add support for inlined isXXX functions when
16414         compiling C++ code.
16415
16416 2011-10-14  Andreas Schwab  <schwab@redhat.com>
16417
16418         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16419
16420         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
16421
16422 2011-10-13  Roland McGrath  <roland@hack.frob.com>
16423
16424         [BZ #13291]
16425         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
16426
16427 2011-10-13  Andreas Schwab  <schwab@redhat.com>
16428
16429         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
16430         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
16431         feraiseexcept.
16432
16433         * sysdeps/x86_64/memrchr.S: Check for zero size.
16434
16435         * string/stratcliff.c: Add memrchr tests.
16436
16437 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16438
16439         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16440         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
16441         rawmemchr-sse2 rawmemchr-sse2-bsf.
16442         * sysdeps/i386/i686/multiarch/memchr.S: New file.
16443         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
16444         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
16445         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
16446         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
16447         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
16448         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
16449         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
16450         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
16451         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
16452         * string/memrchr.c (MEMRCHR): New macro.
16453
16454 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
16455
16456         Add integration with gcc's -ffinite-math-only and optimize wrapper
16457         functions in libm.
16458         * Versions.def: Define GLIBC_2.15 version for libm.
16459         * math/Makefile (headers): Add bits/math-finite.h.
16460         * math/bits/math-finite.h: New file.
16461         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
16462         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
16463         * math/e_acoshl.c: Add __*_finite alias.
16464         * math/e_acosl.c: Likewise.
16465         * math/e_asinl.c: Likewise.
16466         * math/e_atan2l.c: Likewise.
16467         * math/e_atanhl.c: Likewise.
16468         * math/e_coshl.c: Likewise.
16469         * math/e_exp10.c: Likewise.
16470         * math/e_exp10f.c: Likewise.
16471         * math/e_exp10l.c: Likewise.
16472         * math/e_exp2l.c: Likewise.
16473         * math/e_fmodl.c: Likewise.
16474         * math/e_gammal_r.c: Likewise.
16475         * math/e_hypotl.c: Likewise.
16476         * math/e_j0l.c: Likewise.
16477         * math/e_j1l.c: Likewise.
16478         * math/e_jnl.c: Likewise.
16479         * math/e_lgammal_r.c: Likewise.
16480         * math/e_log10l.c: Likewise.
16481         * math/e_log2l.c: Likewise.
16482         * math/e_logl.c: Likewise.
16483         * math/e_powl.c: Likewise.
16484         * math/e_sinhl.c: Likewise.
16485         * math/e_sqrtl.c: Likewise.
16486         * math/e_scalb.c: Completely rewritten and optimized.
16487         * math/e_scalbf.c: Likewise.
16488         * math/e_scalbl.c: Likewise.
16489         * math/w_acos.c: Likewise.
16490         * math/w_acosf.c: Likewise.
16491         * math/w_acosl.c: Likewise.
16492         * math/w_acosh.c: Likewise.
16493         * math/w_acoshf.c: Likewise.
16494         * math/w_acoshl.c: Likewise.
16495         * math/w_asin.c: Likewise.
16496         * math/w_asinf.c: Likewise.
16497         * math/w_asinl.c: Likewise.
16498         * math/w_atan2.c: Likewise.
16499         * math/w_atan2f.c: Likewise.
16500         * math/w_atan2l.c: Likewise.
16501         * math/w_atanh.c: Likewise.
16502         * math/w_atanhf.c: Likewise.
16503         * math/w_atanhl.c: Likewise.
16504         * math/w_exp10.c: Likewise.
16505         * math/w_exp10f.c: Likewise.
16506         * math/w_exp10l.c: Likewise.
16507         * math/w_fmod.c: Likewise.
16508         * math/w_fmodf.c: Likewise.
16509         * math/w_fmodl.c: Likewise.
16510         * math/w_j0.c: Likewise.
16511         * math/w_j0f.c: Likewise.
16512         * math/w_j0l.c: Likewise.
16513         * math/w_j1.c: Likewise.
16514         * math/w_j1f.c: Likewise.
16515         * math/w_j1l.c: Likewise.
16516         * math/w_jn.c: Likewise.
16517         * math/w_jnf.c: Likewise.
16518         * math/w_log.c: Likewise.
16519         * math/w_logf.c: Likewise.
16520         * math/w_logl.c: Likewise.
16521         * math/w_log10.c: Likewise.
16522         * math/w_log10f.c: Likewise.
16523         * math/w_log10l.c: Likewise.
16524         * math/w_log2.c: Likewise.
16525         * math/w_log2f.c: Likewise.
16526         * math/w_log2l.c: Likewise.
16527         * math/w_pow.c: Likewise.
16528         * math/w_powf.c: Likewise.
16529         * math/w_powl.c: Likewise.
16530         * math/w_remainder.c: Likewise.
16531         * math/w_remainderf.c: Likewise.
16532         * math/w_remainderl.c: Likewise.
16533         * math/w_scalb.c: Likewise.
16534         * math/w_scalbf.c: Likewise.
16535         * math/w_scalbl.c: Likewise.
16536         * math/w_sqrt.c: Likewise.
16537         * math/w_sqrtf.c: Likewise.
16538         * math/w_sqrtl.c: Likewise.
16539         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
16540         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
16541         used.
16542         * math/math_private.h: Declare __kernel_standard_f.
16543         * math/w_cosh.c: Remove cruft and optimize a bit.
16544         * math/w_coshf.c: Likewise.
16545         * math/w_coshl.c: Likewise.
16546         * math/w_exp2.c: Likewise.
16547         * math/w_exp2f.c: Likewise.
16548         * math/w_exp2l.c: Likewise.
16549         * math/w_hypot.c: Likewise.
16550         * math/w_hypotf.c: Likewise.
16551         * math/w_hypotl.c: Likewise.
16552         * math/w_lgamma.c: Likewise.
16553         * math/w_lgamma_r.c: Likewise.
16554         * math/w_lgammaf.c: Likewise.
16555         * math/w_lgammaf_r.c: Likewise.
16556         * math/w_lgammal.c: Likewise.
16557         * math/w_lgammal_r.c: Likewise.
16558         * math/w_sinh.c: Likewise.
16559         * math/w_sinhf.c: Likewise.
16560         * math/w_sinhl.c: Likewise.
16561         * math/w_tgamma.c: Likewise.
16562         * math/w_tgammaf.c: Likewise.
16563         * math/w_tgammal.c: Likewise.
16564         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16565         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16566         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
16567         Minor optimizations.  Pretty printing.  Remove cruft.
16568         * sysdeps/i386/fpu/e_acosf.S: Likewise.
16569         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16570         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16571         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16572         * sysdeps/i386/fpu/e_acosl.c: Likewise.
16573         * sysdeps/i386/fpu/e_asin.S: Likewise.
16574         * sysdeps/i386/fpu/e_asinf.S: Likewise.
16575         * sysdeps/i386/fpu/e_atan2.S: Likewise.
16576         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
16577         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
16578         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16579         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16580         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16581         * sysdeps/i386/fpu/e_exp10.S: Likewise.
16582         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
16583         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
16584         * sysdeps/i386/fpu/e_exp2.S: Likewise.
16585         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
16586         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
16587         * sysdeps/i386/fpu/e_fmod.S: Likewise.
16588         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
16589         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
16590         * sysdeps/i386/fpu/e_hypot.S: Likewise.
16591         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
16592         * sysdeps/i386/fpu/e_log.S: Likewise.
16593         * sysdeps/i386/fpu/e_log10.S: Likewise.
16594         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16595         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16596         * sysdeps/i386/fpu/e_log2.S: Likewise.
16597         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16598         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16599         * sysdeps/i386/fpu/e_logf.S: Likewise.
16600         * sysdeps/i386/fpu/e_logl.S: Likewise.
16601         * sysdeps/i386/fpu/e_pow.S: Likewise.
16602         * sysdeps/i386/fpu/e_powf.S: Likewise.
16603         * sysdeps/i386/fpu/e_powl.S: Likewise.
16604         * sysdeps/i386/fpu/e_remainder.S: Likewise.
16605         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
16606         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
16607         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16608         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16609         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16610         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
16611         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
16612         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
16613         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
16614         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16615         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16616         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16617         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16618         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
16619         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16620         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16621         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16622         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16623         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16624         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16625         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16626         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
16627         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
16628         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16629         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16630         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16631         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16632         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16633         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16634         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16635         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16636         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16637         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16638         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16639         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16640         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16641         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16642         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16643         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16644         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16645         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16646         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16647         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16648         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16649         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16650         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16651         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16652         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16653         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16654         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16655         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16656         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16657         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16658         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16659         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16660         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16661         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16662         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16663         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16664         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16665         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16666         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16667         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16668         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16669         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16670         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16671         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16672         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16673         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16674         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16675         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16676         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16677         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16678         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16679         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16680         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16681         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
16682         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16683         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16684         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16685         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16686         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16687         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16688         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16689         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
16690         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16691         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16692         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16693         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16694         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16695         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
16696         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16697         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16698         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16699         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16700         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16701         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16702         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16703         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16704         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16705         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16706         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
16707         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16708         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16709         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16710         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
16711         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
16712         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
16713         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
16714         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
16715         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
16716         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
16717         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16718         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16719         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16720         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16721         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16722         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16723         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16724         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16725         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16726         (__isnanf): Likewise.
16727         (__isinf_ns): Likewise.
16728         (__isinf_nsf): Likewise.
16729         (__finite): Likewise.
16730         (__finitef): Likewise.
16731         (__ieee754_sqrt): Define as macro.
16732         (__ieee754_sqrtf): Define as macro.
16733         (__ieee754_sqrtl): Define as macro.
16734         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16735         inlined copy.
16736         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16737         __FINITE_MATH_ONLY__ consistent.
16738         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16739
16740 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16741
16742         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16743         of rawmemchr.
16744
16745         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16746
16747 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16748
16749         * po/ja.po: Update from translation team.
16750
16751 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16752
16753         * locale/programs/locarchive.c (prepare_address_space): New function.
16754         (create_archive, enlarge_archive, open_archive): Use it.
16755
16756         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16757         inside [SHARED], where it is used.
16758
16759         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16760
16761         * nss/getent.c (netgroup_keys): Remove unused variable.
16762         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16763
16764 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16765
16766         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16767         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16768         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16769         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16770         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16771         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16772         * math/Makefile (libm-calls): Add s_isinf_ns.
16773         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16774         * math/multc3.c: Likewise.
16775         * math/s_casin.c: Likewise.
16776         * math/s_casinf.c: Likewise.
16777         * math/s_casinl.c: Likewise.
16778         * math/s_ccos.c: Likewise.
16779         * math/s_ccosf.c: Likewise.
16780         * math/s_ccosl.c: Likewise.
16781         * math/s_ctan.c: Likewise.
16782         * math/s_ctanf.c: Likewise.
16783         * math/s_ctanh.c: Likewise.
16784         * math/s_ctanhf.c: Likewise.
16785         * math/s_ctanhl.c: Likewise.
16786         * math/s_ctanl.c: Likewise.
16787         * math/w_fmod.c: Likewise.
16788         * math/w_fmodf.c: Likewise.
16789         * math/w_fmodl.c: Likewise.
16790         * math/w_remainder.c: Likewise.
16791         * math/w_remainderf.c: Likewise.
16792         * math/w_remainderl.c: Likewise.
16793         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16794         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16795         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16796         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16797         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16798         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16799         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16800         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16801
16802         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16803         of the number.
16804         * stdio-common/printf_fphex.c: Likewise.
16805         * stdio-common/printf_size.c: Likewise.
16806
16807         * math/e_exp10.c: Include math_private.h using <...> not "...".
16808         * math/e_exp10f.c: Likewise.
16809         * math/e_exp10l.c: Likewise.
16810         * math/e_exp2l.c: Likewise.
16811         * math/e_j0l.c: Likewise.
16812         * math/e_j1l.c: Likewise.
16813         * math/e_jnl.c: Likewise.
16814         * math/e_lgammal_r.c: Likewise.
16815         * math/e_rem_pio2l.c: Likewise.
16816         * math/e_scalb.c: Likewise.
16817         * math/e_scalbf.c: Likewise.
16818         * math/e_scalbl.c: Likewise.
16819         * math/k_cosl.c: Likewise.
16820         * math/k_sinl.c: Likewise.
16821         * math/k_tanl.c: Likewise.
16822         * math/s_cacoshf.c: Likewise.
16823         * math/s_catan.c: Likewise.
16824         * math/s_catanf.c: Likewise.
16825         * math/s_catanh.c: Likewise.
16826         * math/s_catanhf.c: Likewise.
16827         * math/s_catanhl.c: Likewise.
16828         * math/s_catanl.c: Likewise.
16829         * math/s_ccosh.c: Likewise.
16830         * math/s_ccoshf.c: Likewise.
16831         * math/s_ccoshl.c: Likewise.
16832         * math/s_cexp.c: Likewise.
16833         * math/s_cexpf.c: Likewise.
16834         * math/s_cexpl.c: Likewise.
16835         * math/s_clog.c: Likewise.
16836         * math/s_clog10.c: Likewise.
16837         * math/s_clog10f.c: Likewise.
16838         * math/s_clog10l.c: Likewise.
16839         * math/s_clogf.c: Likewise.
16840         * math/s_clogl.c: Likewise.
16841         * math/s_csin.c: Likewise.
16842         * math/s_csinf.c: Likewise.
16843         * math/s_csinh.c: Likewise.
16844         * math/s_csinhf.c: Likewise.
16845         * math/s_csinhl.c: Likewise.
16846         * math/s_csinl.c: Likewise.
16847         * math/s_csqrt.c: Likewise.
16848         * math/s_csqrtf.c: Likewise.
16849         * math/s_csqrtl.c: Likewise.
16850         * math/s_ctan.c: Likewise.
16851         * math/s_ctanf.c: Likewise.
16852         * math/s_ctanh.c: Likewise.
16853         * math/s_ctanhf.c: Likewise.
16854         * math/s_ctanhl.c: Likewise.
16855         * math/s_ctanl.c: Likewise.
16856         * math/s_ldexp.c: Likewise.
16857         * math/s_ldexpf.c: Likewise.
16858         * math/s_ldexpl.c: Likewise.
16859         * math/s_significand.c: Likewise.
16860         * math/s_significandf.c: Likewise.
16861         * math/s_significandl.c: Likewise.
16862         * math/w_acos.c: Likewise.
16863         * math/w_acosf.c: Likewise.
16864         * math/w_acosh.c: Likewise.
16865         * math/w_acoshf.c: Likewise.
16866         * math/w_acoshl.c: Likewise.
16867         * math/w_acosl.c: Likewise.
16868         * math/w_asin.c: Likewise.
16869         * math/w_asinf.c: Likewise.
16870         * math/w_asinl.c: Likewise.
16871         * math/w_atan2.c: Likewise.
16872         * math/w_atan2f.c: Likewise.
16873         * math/w_atan2l.c: Likewise.
16874         * math/w_atanh.c: Likewise.
16875         * math/w_atanhf.c: Likewise.
16876         * math/w_atanhl.c: Likewise.
16877         * math/w_cosh.c: Likewise.
16878         * math/w_coshf.c: Likewise.
16879         * math/w_coshl.c: Likewise.
16880         * math/w_dremf.c: Likewise.
16881         * math/w_exp10.c: Likewise.
16882         * math/w_exp10f.c: Likewise.
16883         * math/w_exp10l.c: Likewise.
16884         * math/w_exp2.c: Likewise.
16885         * math/w_exp2f.c: Likewise.
16886         * math/w_fmod.c: Likewise.
16887         * math/w_fmodf.c: Likewise.
16888         * math/w_fmodl.c: Likewise.
16889         * math/w_hypot.c: Likewise.
16890         * math/w_hypotf.c: Likewise.
16891         * math/w_hypotl.c: Likewise.
16892         * math/w_j0.c: Likewise.
16893         * math/w_j0f.c: Likewise.
16894         * math/w_j0l.c: Likewise.
16895         * math/w_j1.c: Likewise.
16896         * math/w_j1f.c: Likewise.
16897         * math/w_j1l.c: Likewise.
16898         * math/w_jn.c: Likewise.
16899         * math/w_jnf.c: Likewise.
16900         * math/w_jnl.c: Likewise.
16901         * math/w_lgamma.c: Likewise.
16902         * math/w_lgamma_r.c: Likewise.
16903         * math/w_lgammaf.c: Likewise.
16904         * math/w_lgammaf_r.c: Likewise.
16905         * math/w_lgammal.c: Likewise.
16906         * math/w_lgammal_r.c: Likewise.
16907         * math/w_log.c: Likewise.
16908         * math/w_log10.c: Likewise.
16909         * math/w_log10f.c: Likewise.
16910         * math/w_log10l.c: Likewise.
16911         * math/w_log2.c: Likewise.
16912         * math/w_log2f.c: Likewise.
16913         * math/w_log2l.c: Likewise.
16914         * math/w_logf.c: Likewise.
16915         * math/w_logl.c: Likewise.
16916         * math/w_pow.c: Likewise.
16917         * math/w_powf.c: Likewise.
16918         * math/w_powl.c: Likewise.
16919         * math/w_remainder.c: Likewise.
16920         * math/w_remainderf.c: Likewise.
16921         * math/w_remainderl.c: Likewise.
16922         * math/w_scalb.c: Likewise.
16923         * math/w_scalbf.c: Likewise.
16924         * math/w_scalbl.c: Likewise.
16925         * math/w_sinh.c: Likewise.
16926         * math/w_sinhf.c: Likewise.
16927         * math/w_sinhl.c: Likewise.
16928         * math/w_sqrt.c: Likewise.
16929         * math/w_sqrtf.c: Likewise.
16930         * math/w_sqrtl.c: Likewise.
16931         * math/w_tgamma.c: Likewise.
16932         * math/w_tgammaf.c: Likewise.
16933         * math/w_tgammal.c: Likewise.
16934
16935         * po/ja.po: Update from translation team.
16936
16937 2011-09-29  Andreas Jaeger  <aj@suse.de>
16938
16939         [BZ #13179]
16940         * sunrpc/netname.c (netname2host): Fix logic.
16941
16942         [BZ #6779]
16943         [BZ #6783]
16944         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16945         correctly.
16946         * math/w_remainder.c (__remainder): Likewise.
16947         * math/w_remainderf.c (__remainderf): Likewise.
16948         * math/libm-test.inc (remainder_test): Add test cases.
16949
16950 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16951
16952         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16953         sdiv_qrnnd.
16954
16955 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16956
16957         * string/test-memcmp.c: Avoid unncessary #defines.
16958         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16959
16960 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16961
16962         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16963         Use new sse2 version for core i3 - i7 as it's faster
16964         than sse42 version.
16965         (bit_Prefer_PMINUB_for_stringop): New.
16966         * sysdeps/x86_64/rawmemchr.S: Update.
16967         Replace with faster SSE2 version.
16968         * sysdeps/x86_64/memrchr.S: New file.
16969         * sysdeps/x86_64/memchr.S: Update.
16970         Replace with faster SSE2 version.
16971
16972 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16973
16974         * elf/dl-load.c (lose): Add cast to avoid warning.
16975
16976 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16977
16978         * po/ca.po: Update from translation team.
16979
16980         * inet/getnetgrent_r.c: Hook up nscd.
16981         * nscd/Makefile (routines): Add nscd_netgroup.
16982         (nscd-modules): Add netgroupcache.
16983         (CFLAGS-netgroupcache.c): Define.
16984         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16985         (cache_search): Add const to second parameter.
16986         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16987         INNETGR.
16988         (dbs): Add netgrdb entry.
16989         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16990         (verify_persistent_db): Handle netgrdb.
16991         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16992         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16993         GETFDNETGR.
16994         (netgroup_response_header): Define.
16995         (innetgroup_response_header): Define.
16996         (datahead): Add netgroup_response_header and innetgroup_response_header
16997         elements.
16998         * nscd/nscd.conf: Add entries for netgroup cache.
16999         * nscd/nscd.h (dbtype): Add netgrdb.
17000         (_PATH_NSCD_NETGROUP_DB): Define.
17001         (netgroup_iov_disabled): Declare.
17002         (xmalloc, xcalloc, xrealloc): Move declarations here.
17003         (cache_search): Adjust prototype.
17004         Add netgroup-related prototypes.
17005         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17006         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17007         (__nscd_innetgr): Declare.
17008         * nscd/selinux.c (perms): Use access_vector_t as element type and
17009         add netgroup-related initializers.
17010         * nscd/netgroupcache.c: New file.
17011         * nscd/nscd_netgroup.c: New file.
17012         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17013         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17014         For four parameters use innetgr.
17015         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17016         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17017         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17018         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17019
17020         * nscd/connections.c (register_traced_file): Don't register file
17021         for disabled databases.
17022
17023 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17024
17025         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17026
17027         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17028         from tree and freeing node.
17029
17030 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17031
17032         * nss/nsswitch.c (__nss_database_lookup): Handle
17033         nss_parse_service_list out of memory case.
17034
17035 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17036
17037         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17038         out of memory case.
17039
17040 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17041
17042         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17043         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17044         pass it down.
17045         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17046         elf_machine_rela, elf_machine_lazy_rel.
17047         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17048         (ELF_DYNAMIC_DO_REL): Likewise.
17049         (ELF_DYNAMIC_DO_RELA): Likewise.
17050         (ELF_DYNAMIC_RELOCATE): Likewise.
17051         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17052         to ELF_DYNAMIC_DO_REL.
17053         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17054         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17055         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17056         elf_machine_rela.
17057         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17058         skip_ifunc, don't call ifunc function if non-zero.
17059         (elf_machine_rela): Likewise.
17060         (elf_machine_lazy_rel): Likewise.
17061         (elf_machine_lazy_rela): Likewise.
17062         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17063         (elf_machine_lazy_rel): Likewise.
17064         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17065         Likewise.
17066         (elf_machine_lazy_rel): Likewise.
17067         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17068         Likewise.
17069         (elf_machine_lazy_rel): Likewise.
17070         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17071         (elf_machine_lazy_rel): Likewise.
17072         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17073         (elf_machine_lazy_rel): Likewise.
17074         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17075         (elf_machine_lazy_rel): Likewise.
17076         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17077         (elf_machine_lazy_rel): Likewise.
17078         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17079         (elf_machine_lazy_rel): Likewise.
17080         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17081         (elf_machine_lazy_rel): Likewise.
17082
17083 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17084
17085         * nss/nss_files/files-init.c (_nss_files_init): Use static
17086         initialization for all the *_traced_file variables.
17087
17088 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17089
17090         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17091
17092 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17093
17094         [BZ #13226]
17095         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17096
17097 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17098
17099         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17100         Reread the line before reparsing it.
17101
17102 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17103
17104         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17105
17106 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17107             Maxim Kuvyrkov  <maxim@codesourcery.com>
17108             Joseph Myers  <joseph@codesourcery.com>
17109
17110         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17111         if needed for __stack_chk_guard.
17112
17113 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17114
17115         * sysdeps/posix/spawni.c (script_execute): Always define it.
17116         It will be optimized away if unused.
17117         (maybe_script_execute): New function.
17118         (__spawni): Call it.
17119
17120         * Makerules: Don't include tls.make.
17121         (config-tls): Always set to thread.
17122         * tls.make.c: File removed.
17123
17124 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17125
17126         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17127         * config.make.in (CPPFLAGS-config): New substituted variable.
17128
17129 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17130
17131         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17132
17133         [BZ #13192]
17134         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17135         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17136
17137 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17138
17139         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17140         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17141         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17142         (CALL_FAIL): Likewise.
17143         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17144         (CALL_FAIL): Macro removed.
17145         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17146
17147 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17148
17149         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17150         for __FINITE_MATH_ONLY__ == 1.
17151
17152 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17153
17154         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17155         __ieee754_sqrt instead of sqrt.
17156         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17157         __ieee754_sqrtf instead of sqrtf.
17158         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17159         __floorf instead of floorf.
17160         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17161         __floorf, __truncf instead of floorf, truncf.
17162
17163 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17164
17165         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17166
17167         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17168         __extern_always_inline.
17169         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17170         32-bit.
17171
17172 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17173
17174         * elf/rtld.c (dl_main): Also relocate in dependency order when
17175         doing symbol dependency testing.
17176
17177 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17178
17179         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17180         Always define `refsym'.
17181
17182 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17183
17184         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17185         (__FD_ELT): Renamed from __FDELT.
17186         * misc/bits/select2.h (__FD_ELT): Likewise.
17187         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17188         __FD_MASK instead of __FDELT, __FDMASK.
17189         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17190         Likewise.
17191         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17192         Likewise.
17193
17194         * elf/Makefile (gen-ldd): Fix pattern.
17195
17196         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17197         (init_tls): Likewise.
17198
17199 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17200
17201         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17202
17203 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17204
17205         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17206         `struct cmsghdr *' instead of `void *'.
17207         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17208         Likewise.
17209
17210 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17211
17212         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17213         if non-absolute.
17214         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17215         ldd_rewrite_script.
17216
17217 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17218
17219         * configure.in: Remove --with-tls option.
17220         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17221         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17222         out in case it is missing.
17223         * sysdeps/ia64/elf/configure.in: Likewise.
17224         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17225         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17226         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17227         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17228         * sysdeps/sh/elf/configure.in: Likewise.
17229         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17230         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17231         * sysdeps/x86_64/elf/configure.in: Likewise.
17232         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17233         * sysdeps/mach/hurd/tls.h: Likewise.
17234
17235         [BZ #13067]
17236         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17237
17238         [BZ #13090]
17239         * configure.in: Fix use of AC_INIT.
17240
17241         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17242
17243 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17244
17245         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17246         __set_errno.
17247         * malloc/hooks.c: Likewise.
17248
17249         [BZ #11929]
17250         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17251         variables statically.
17252         (narenas): Initialize.
17253         (list_lock): Initialize.
17254         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17255         initializtion of main_arena and list_lock.  Small cleanups.
17256         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17257         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17258         Add initializers to main_arena and mp_.
17259         (malloc_state): Remove pagesize member.  Change all users to use
17260         GLRO(dl_pagesize).
17261
17262         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17263         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17264         is always initialized.
17265
17266         * malloc/malloc.c: Removed unused configurations and dead code.
17267         * malloc/arena.c: Likewise.
17268         * malloc/hooks.c: Likewise.
17269         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17270
17271         * include/tls.h: Removed.  USE___THREAD must always be defined.
17272         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17273         * elf/dl-libc.c: Likewise.
17274         * elf/dl-tsd.c: Likewise.
17275         * include/errno.h: Likewise.
17276         * include/netdb.h: Likewise.
17277         * include/resolv.h: Likewise.
17278         * inet/herrno-loc.c: Likewise.
17279         * inet/herrno.c: Likewise.
17280         * malloc/arena.c: Likewise.
17281         * malloc/hooks.c: Likewise.
17282         * malloc/malloc.c: Likewise.
17283         * resolv/res-state.c: Likewise.
17284         * resolv/res_libc.c: Likewise.
17285         * sysdeps/i386/dl-machine.h: Likewise.
17286         * sysdeps/ia64/dl-machine.h: Likewise.
17287         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17288         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17289         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17290         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17291         * sysdeps/sh/dl-machine.h: Likewise.
17292         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17293         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17294         * sysdeps/unix/i386/sysdep.S: Likewise.
17295         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17296         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17297         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17298         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17299         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17300         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17301         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17302         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17303         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17304         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17305         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17306         * sysdeps/x86_64/dl-machine.h: Likewise.
17307         * tls.make.c: Likewise.
17308
17309         * configure.in: Remove --with-__thread option.  Make tests for
17310         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17311         tls_model attribute fail if no support is available.  Remove
17312         USE_IN_LIBIO.
17313         * Makeconfig: Adjust for dropped configure option.  All features are
17314         now mandatory.
17315         * Makerules: Likewise.
17316         * Versions.def: Likewise.
17317         * argp/argp-fmtstream.c: Likewise.
17318         * argp/argp-fmtstream.h: Likewise.
17319         * argp/argp-help.c: Likewise.
17320         * assert/assert.c: Likewise.
17321         * config.h.in: Likewise.
17322         * config.make.in: Likewise.
17323         * configure: Likewise.
17324         * configure.in: Likewise.
17325         * csu/Versions: Likewise.
17326         * csu/init.c: Likewise.
17327         * elf/tst-audit2.c: Likewise.
17328         * elf/tst-tls10.c: Likewise.
17329         * elf/tst-tls10.h: Likewise.
17330         * elf/tst-tls11.c: Likewise.
17331         * elf/tst-tls12.c: Likewise.
17332         * elf/tst-tls14.c: Likewise.
17333         * elf/tst-tlsmod11.c: Likewise.
17334         * elf/tst-tlsmod12.c: Likewise.
17335         * elf/tst-tlsmod13.c: Likewise.
17336         * elf/tst-tlsmod13a.c: Likewise.
17337         * elf/tst-tlsmod14a.c: Likewise.
17338         * elf/tst-tlsmod15b.c: Likewise.
17339         * elf/tst-tlsmod16a.c: Likewise.
17340         * elf/tst-tlsmod16b.c: Likewise.
17341         * elf/tst-tlsmod7.c: Likewise.
17342         * elf/tst-tlsmod8.c: Likewise.
17343         * elf/tst-tlsmod9.c: Likewise.
17344         * gmon/gmon.c: Likewise.
17345         * grp/fgetgrent_r.c: Likewise.
17346         * grp/putgrent.c: Likewise.
17347         * hurd/fopenport.c: Likewise.
17348         * include/libc-symbols.h: Likewise.
17349         * include/tls.h: Likewise.
17350         * intl/gettextP.h: Likewise.
17351         * intl/loadinfo.h: Likewise.
17352         * locale/global-locale.c: Likewise.
17353         * locale/localeinfo.h: Likewise.
17354         * mach/devstream.c: Likewise.
17355         * malloc/arena.c: Likewise.
17356         * malloc/set-freeres.c: Likewise.
17357         * misc/err.c: Likewise.
17358         * misc/getttyent.c: Likewise.
17359         * misc/mntent_r.c: Likewise.
17360         * posix/getopt.c: Likewise.
17361         * posix/wordexp.c: Likewise.
17362         * pwd/fgetpwent_r.c: Likewise.
17363         * resolv/Versions: Likewise.
17364         * resolv/res_hconf.c: Likewise.
17365         * shadow/fgetspent_r.c: Likewise.
17366         * shadow/putspent.c: Likewise.
17367         * stdio-common/printf_fphex.c: Likewise.
17368         * stdio-common/tmpfile.c: Likewise.
17369         * stdlib/abort.c: Likewise.
17370         * stdlib/fmtmsg.c: Likewise.
17371         * sunrpc/auth_unix.c: Likewise.
17372         * sunrpc/clnt_perr.c: Likewise.
17373         * sunrpc/clnt_tcp.c: Likewise.
17374         * sunrpc/clnt_udp.c: Likewise.
17375         * sunrpc/clnt_unix.c: Likewise.
17376         * sunrpc/openchild.c: Likewise.
17377         * sunrpc/svc_simple.c: Likewise.
17378         * sunrpc/svc_tcp.c: Likewise.
17379         * sunrpc/svc_udp.c: Likewise.
17380         * sunrpc/svc_unix.c: Likewise.
17381         * sunrpc/xdr.c: Likewise.
17382         * sunrpc/xdr_array.c: Likewise.
17383         * sunrpc/xdr_rec.c: Likewise.
17384         * sunrpc/xdr_ref.c: Likewise.
17385         * sunrpc/xdr_stdio.c: Likewise.
17386
17387 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17388
17389         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17390
17391 2011-07-03  Andreas Jaeger  <aj@suse.de>
17392
17393         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
17394         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
17395         regenerate with gen-libm-tests.pl.
17396
17397 2010-05-12  Petr Baudis  <pasky@suse.cz>
17398
17399         [BZ #11589]
17400         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
17401         around j0() zero points by switching to j1().
17402         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17403         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17404         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17405         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17406
17407 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17408
17409         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
17410         instead of 0.
17411         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
17412         instead of 0.                              .
17413         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17414         Patch in part by Pavel Roskin <proski@gnu.org>.
17415
17416         [BZ #13138]
17417         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
17418         realloc.
17419         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
17420         Free memory block if necessary.
17421
17422         [BZ #12847]
17423         * libio/genops.c (INTDEF): For string streams the _lock pointer can
17424         be NULL.  Don't lock in this case.
17425
17426 2011-09-09  Roland McGrath  <roland@hack.frob.com>
17427
17428         * elf/elf.h (ELFOSABI_GNU): New macro.
17429         (ELFOSABI_LINUX): Define to that.
17430
17431 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
17432
17433         * string/strncat.c (strncat): Undef the symbol in case it has been
17434         defined in bits/string.h.
17435
17436 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17437
17438         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
17439
17440         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
17441         link map.
17442
17443 2011-08-17  Andreas Jaeger  <aj@suse.de>
17444
17445         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
17446
17447 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
17448             Ian Lance Taylor  <iant@google.com>
17449
17450         * math/libm-test.inc (lround_test): New testcase.
17451         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
17452
17453 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
17454
17455         * Makefile: Remove support for automatic cvs check-ins.
17456         * Makerules: Likewise.
17457         * config.make.in: Likewise.
17458         * configure.in: Likewise.
17459         * intl/Makefile: Likewise.
17460         * locale/Makefile: Likewise.
17461         * po/Makefile: Likewise.
17462         * posix/Makefile: Likewise.
17463         * sysdeps/gnu/Makefile: Likewise.
17464         * sysdeps/mach/hurd/Makefile: Likewise.
17465         * sysdeps/sparc/sparc32/Makefile: Likewise.
17466
17467         [BZ #13118]
17468         * posix/Makefile (bug-regex32-ENV): Define.
17469         Patch by John Stanley <jpsinthemix@verizon.net>.
17470
17471         * misc/Makefile (headers): Add bits/select2.h.
17472         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
17473         * misc/bits/select2.h: New file.
17474         * include/bits/select2.h: New file.
17475         * debug/Makefile (routines): Add fdelt_chk.
17476         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
17477         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
17478         FD_ISSET.
17479         * debug/fdelt_chk.c: New file.
17480
17481         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
17482         * wcsmbs/test-wmemcmp.c: Likewise.
17483         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
17484         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
17485
17486 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17487
17488         * string/Makefile (strop-tests): Add memcmp.
17489         * string/test-wmemcmp.c: New file.
17490         * string/test-memcmp.c: Add wmemcmp support.
17491
17492 2011-09-08  Roland McGrath  <roland@hack.frob.com>
17493
17494         [BZ #13153]
17495         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
17496         2011-07-19 change.
17497
17498         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
17499         garbage value in a __mach_port_mod_refs call in the cases of the
17500         task-self and thread-self ports.
17501
17502 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17503
17504         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
17505
17506 2011-09-08  Andreas Schwab  <schwab@redhat.com>
17507
17508         * elf/dl-load.c (lose): Check for non-null L.
17509
17510 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17511
17512         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
17513
17514         * elf/dl-libc.c (dlerror_run): Pass back error code from
17515         dl_catch_error.
17516
17517         [BZ #13123]
17518         * elf/dl-load.c (lose): Free l_origin if it is valid.
17519
17520         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
17521         names.
17522         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
17523         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17524         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17525         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17526         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
17527         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
17528
17529 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17530
17531         * sysdeps/powerpc/fpu/e_hypot.c: New file.
17532         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
17533         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
17534         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
17535         * sysdeps/powerpc/fpu/k_cosf.c: New file.
17536         * sysdeps/powerpc/fpu/k_sinf.c: New file.
17537         * sysdeps/powerpc/fpu/s_cosf.c: New file.
17538         * sysdeps/powerpc/fpu/s_sinf.c: New file.
17539         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
17540         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
17541
17542 2011-08-15  Alan Modra  <amodra@gmail.com>
17543
17544         [BZ #13092]
17545         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
17546         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
17547         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
17548         ppc_mcount to static-only-routines.
17549         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
17550         __mcount_internal.
17551         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
17552         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
17553
17554 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
17555
17556         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
17557         for finite and infinity parameters.
17558
17559 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
17560
17561         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
17562         and add nop instructions for throughput optimization.
17563         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17564
17565 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
17566
17567         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
17568         aligned copy for power7 with vector-scalar instructions.
17569         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
17570
17571 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
17572
17573         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
17574         AVX check.
17575
17576 2011-09-07  Andreas Schwab  <schwab@redhat.com>
17577
17578         [BZ #13144]
17579         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
17580         last change.
17581
17582 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17583
17584         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17585         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
17586         syscall wrapper around clock_gettime in __vdso_clock_gettime.
17587         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
17588         clock_gettime.
17589
17590 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17591
17592         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
17593         Forgot to demangle the pointer.
17594
17595         * sysdeps/i386/sysdep.h: Define atom_text_section.
17596         * sysdeps/x86_64/sysdep.h: Likewise.
17597         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
17598         section with atom_text_section.
17599         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17600         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17601         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
17602         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17603         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
17604
17605         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
17606         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
17607         already be defined.  Change to take two parameters and don't assign
17608         result to variable.  Adjust all users.
17609         Define INTERNAL_GETTIME if not already defined.
17610         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
17611         call.
17612         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
17613         HAVE_CLOCK_GETTIME_VSYSCALL.
17614         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
17615
17616         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
17617         gettimeofday vsyscall, just use time.
17618
17619 2011-09-06  Andreas Schwab  <schwab@redhat.com>
17620
17621         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
17622         <errno.h>.
17623
17624 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17625
17626         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
17627         syscall on x86-64.
17628         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
17629         syscall.
17630         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17631         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
17632         syscall if possible.
17633
17634 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17635
17636         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
17637         e_ident.  Don't pass to find_mapsXX.
17638         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
17639
17640 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17641
17642         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17643         strchr-sse2-no-bsf strrchr-sse2-no-bsf
17644         * sysdeps/x86_64/multiarch/strchr.S: Update.
17645         Check bit_slow_BSF bit.
17646         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17647         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
17648         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
17649
17650 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17651
17652         [BZ #13134]
17653         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
17654         before glibc 2.15.
17655         (tryshell): Define.
17656         (__spawni): Change last parameter to be flag.  Test
17657         SPAWN_XFLAGS_USE_PATH flag to use path or not.
17658         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
17659         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
17660         * posix/spawni.c: Likewise.
17661         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
17662         * posix/spawnp.c: Likewise.  Change normal version to use
17663         SPAWN_XFLAGS_USE_PATH.
17664         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
17665         SPAWN_XFLAGS_TRY_SHELL.
17666
17667         [BZ #13150]
17668         * posix/glob.h: Remove gcc 1.x support.
17669
17670         [BZ #13068]
17671         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
17672
17673 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17674
17675         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17676         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
17677         strrchr-sse2-bsf
17678         * sysdeps/i386/i686/multiarch/strchr.S: New file.
17679         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
17680         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
17681         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
17682         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
17683         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
17684
17685 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17686
17687         * sysdeps/x86_64/wcscmp.S: New file.
17688
17689         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
17690         wcscmp-c wcscmp-sse2
17691         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
17692         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
17693         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
17694         * wcsmbs/wcscmp.c: Allow renaming.
17695
17696 2011-09-05  David S. Miller  <davem@davemloft.net>
17697
17698         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
17699         stack slot, rather than the struct return pointer slot.
17700         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
17701         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
17702         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
17703         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
17704
17705 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17706
17707         * po/ja.po: Update from translation team.
17708
17709         [BZ #13144]
17710         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
17711         kernel in 64-bit binaries.
17712
17713 2011-09-01  David S. Miller  <davem@davemloft.net>
17714
17715         * elf/elf.h (HWCAP_SPARC_*): Move to..
17716         * sysdeps/sparc/sysdep.h: this new file and add new values.
17717         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
17718         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
17719         _DL_HWCAP_COUNT to 24.
17720         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17721         entries.
17722         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17723         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17724         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17725         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17726         instead of magic constants.
17727         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17728
17729 2011-08-31  David S. Miller  <davem@davemloft.net>
17730
17731         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17732         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17733         Reimplement to do errno handling inline.
17734         (SYSCALL_ERROR_HANDLER): New macro.
17735         (__SYSCALL_STRING): Do not do errno handling in asm.
17736         (__CLONE_SYSCALL_STRING): Delete.
17737         (__INTERNAL_SYSCALL_STRING): Delete.
17738         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17739         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17740         (PSEUDO): Reimplement to do errno handling inline.
17741         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17742         (SYSCALL_ERROR_HANDLER): New macro.
17743         (__SYSCALL_STRING): Do not do errno handling in asm.
17744         (__CLONE_SYSCALL_STRING): Delete.
17745         (__INTERNAL_SYSCALL_STRING): Delete.
17746         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17747         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17748         i386.
17749         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17750         (inline_syscall*): Add 'err' argument.
17751         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17752         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17753         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17754         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17755
17756         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17757         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17758
17759 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17760
17761         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17762
17763 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17764
17765         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17766         directive.
17767
17768 2011-08-24  David S. Miller  <davem@davemloft.net>
17769
17770         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17771
17772 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17773
17774         * elf/Makefile: Add rules to build and run unload8 test.
17775         * elf/unload8.c: New file.
17776         * elf/unload8mod1.c: New file.
17777         * elf/unload8mod1x.c: New file.
17778         * elf/unload8mod2.c: New file.
17779         * elf/unload8mod3.c: New file.
17780
17781         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17782         it wasn't used.
17783
17784 2011-08-23  David S. Miller  <davem@davemloft.net>
17785
17786         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17787         subtract stack bias.
17788         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17789         %sp not %fp in calculations.
17790         (_JMPBUF_UNWINDS_ADJ): Likewise.
17791
17792         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17793         (aio_suspend): Call it to force an exception region around the
17794         AIO_MISC_WAIT() invocation.
17795
17796 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17797
17798         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17799         backslash.
17800
17801 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17802
17803         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17804         protection macro.
17805         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17806         and <dl-machine.h>.
17807         (Elf64_FuncDesc): Remove.
17808
17809 2011-08-22  David S. Miller  <davem@davemloft.net>
17810
17811         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17812         sigaltstack check, add missing cfi directives.
17813         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17814         missing cfi directives, and sigaltstack handling.
17815
17816 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17817
17818         [BZ #11724]
17819         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17820         object is seen twice.
17821         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17822
17823         * elf/Makefile (distribute): Add tst-initorder2.c.
17824         (tests): Add tst-initorder2.
17825         (modules-names): Add tst-initorder2a tst-initorder2b
17826         tst-initorder2c tst-initorder2d.  Add rules to build them.
17827         ($(objpfx)tst-initorder2.out): New rule.
17828         * elf/tst-initorder2.c: New file.
17829         * elf/tst-initorder2.exp: New file.
17830
17831 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17832
17833         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17834
17835         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17836         dependencies back to end of function.
17837
17838         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17839         $(elfobjdir)/ld.so.
17840
17841 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17842
17843         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17844         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17845         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17846         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17847         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17848         of __vdso_gettimeofday.
17849         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17850         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17851         attribute_hidden.
17852         (_libc_vdso_platform_setup): Remove initialization of
17853         __vdso_gettimeofday and __vdso_time.
17854
17855 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17856
17857         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17858         and fgetc_unlocked.
17859         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17860         getc_unlocked.
17861
17862         * elf/dl-open.c (add_to_global): Report additions to the global scope
17863         for LD_DEBUG=scopes.
17864         (dl_open_worker): Also print scope of newly loaded dependencies.
17865         (_dl_show_scope): Indicate if there is no scope.
17866
17867         [BZ #13114]
17868         * stdio-common/Makefile (tests): Add bug24.
17869         * stdio-common/bug24.c: New file.
17870
17871 2011-08-19  Andreas Jaeger  <aj@suse.de>
17872
17873         [BZ #13114]
17874         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17875         non-existant file when using close-on-exec mode.
17876
17877 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17878
17879         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17880         the very first instruction.
17881
17882         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17883         the CFI state in the end.
17884         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17885         inclusion of dl-trampoline.h.
17886         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17887
17888 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17889
17890         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17891         expectations for long double.
17892
17893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17894         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17895
17896 2011-08-14  David S. Miller  <davem@davemloft.net>
17897
17898         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17899         artificual limit depends upon the system page size.
17900
17901 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17902
17903         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17904         * resolv/Makefile: Define CFLAGS-libresolv.
17905
17906 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17907
17908         * nss/makedb.c (compute_tables): Make variables used in nested
17909         function static.
17910
17911 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17912
17913         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17914         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17915         if buffer was too small.
17916
17917         * elf/pldd.c (main): Attach to all threads in the process.
17918         Rewrite /proc handling to use *at functions.
17919
17920 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17921
17922         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17923         specifies first scope to show.
17924         (dl_open_worker): Update callers.  Move printing scope of new
17925         object to before the relocation.
17926         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17927         * sysdeps/generic/ldsodefs.h: Update declaration.
17928
17929         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17930         string for the scope number.
17931
17932 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17933
17934         * nscd/servicescache.c (cache_addserv): Make sure written is always
17935         initialized.
17936
17937 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17938
17939         * sysdeps/i386/i486/bits/atomic.h
17940         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17941         statement expression, so as to suppress "set but not used" warning.
17942         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17943
17944         * string/strncat.c (STRNCAT): Use prototype definition.
17945
17946         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17947         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17948         -Iprograms here.
17949         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17950         (localedef-modules): Add localedef.
17951         (locale-modules): Add locale.
17952
17953         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17954         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17955         to avoid a warning.
17956
17957 2011-08-14  David S. Miller  <davem@davemloft.net>
17958
17959         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17960         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17961
17962 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17963
17964         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17965         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17966         * elf/rtld.c (dl_main): Set l_name of vDSO.
17967         Call _dl_show_scope when DL_DEBUG_SCOPES.
17968         (process_dl_debug): Recognize scopes flag and also set it for all.
17969         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17970         Declare _dl_show_scope.
17971
17972         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17973         (do_dlopen): Pass caller_dlopen to dl_open.
17974         (__libc_dlopen_mode): Initialize caller_dlopen.
17975
17976         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17977         of libc.  Make tolower call locale-independent.  Optimize a bit by
17978         using isdigit instead of isalnum.
17979         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17980
17981 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17982
17983         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17984         was a dependency or dynamically loaded.
17985
17986 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17987
17988         * intl/l10nflist.c: Allow architecture-specific pop function.
17989         * sysdeps/x86_64/l10nflist.c: New file.
17990
17991         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17992         classification.
17993
17994 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17995
17996         * include/dirent.h: Add libc_hidden_proto for scandirat and
17997         scandirat64.  Don't declare __scandirat64.
17998         * dirent/scandirat.c: Add libc_hidden_def.
17999         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18000         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18001
18002 2011-08-10  David S. Miller  <davem@davemloft.net>
18003
18004         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18005         enum.
18006         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18007         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18008         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18009
18010 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18011
18012         * Versions.def [libc]: Add GLIBC_2.15.
18013         * dirent/Makefile (routines): Add scandirat and scandirat64.
18014         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18015         GLIBC_2.15.
18016         * dirent/dirent.h: Declare scandirat and scandirat64.
18017         * dirent/scandirat.c: New file.
18018         * dirent/scandirat64.c: New file.
18019         * sysdeps/wordsize-64/scandirat.c: New file.
18020         * sysdeps/wordsize-64/scandirat64.c: New file.
18021         * dirent/opendir.c: Define opendirat.
18022         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18023         using scandirat.
18024         * dirent/scandir64.c: Adjust for scandir.c change.
18025         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18026         __scandirat64, and __scandir_cancel_handler.
18027         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18028         additional parameter and use openat instead of open (outside of ld.so).
18029         Add new __opendir as wrapper around __opendirat.
18030         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18031         here without requiring old scandirat implementation.
18032
18033 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18034
18035         * dirent/scandir.c (cancel_handler): Renamed to
18036         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18037         defined.  Adjust users.
18038         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18039         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18040
18041 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18042
18043         * string/test-string.h (IMPL): Use __STRING to expand name and then
18044         stringify it.
18045
18046         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18047         of cleanups.
18048
18049 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18050
18051         * string/Makefile: Update.
18052         (strop-tests): Append strncat.
18053         * string/test-wcscmp.c: New file.
18054         New comprehensive test for wcscmp.
18055         * string/test-strcmp.c: Update.
18056         (WIDE): New define.
18057
18058 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18059
18060         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18061         line.
18062
18063 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18064
18065         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18066         encoding to ACE if AI_IDN.
18067
18068 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18069
18070         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18071         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18072
18073 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18074
18075         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18076         Fix overflow bug in strncat.
18077         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18078
18079         * string/test-strncat.c: Update.
18080         Add new tests for checking overflow bugs.
18081
18082 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18083
18084         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18085         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18086         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18087         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18088         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18089         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18090         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18091         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18092         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18093
18094         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18095         (USE_AS_STRCAT): Define.
18096         Add strcat and strncat support.
18097         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18098
18099 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18100
18101         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18102         __n bigger than INT_MAX+1.
18103         (__strncmp_g): Likewise.
18104
18105 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18106
18107         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18108         * libio/stido.h: Likewise.
18109
18110         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18111         (AF_NFC): Define.
18112         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18113         (AF_NFC): Define.
18114
18115         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18116         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18117         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18118         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18119         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18120
18121         [BZ #13021]
18122         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18123         installed.
18124
18125         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18126         typo.
18127         (_dl_x86_64_save_sse): Likewise.
18128
18129 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18130
18131         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18132         OSXSAVE.
18133         (_dl_x86_64_save_sse): Likewise.
18134
18135         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18136
18137         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18138
18139 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18140
18141         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18142         change.
18143         (_dl_x86_64_save_sse): Use correct AVX check.
18144
18145 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18146
18147         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18148         bug in strncpy/strncat.
18149         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18150
18151 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18152
18153         * string/tester.c (test_strcat): Add tests for different alignments
18154         of source and destination.
18155         (test_strncat): Likewise.
18156
18157 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18158
18159         [BZ #12852]
18160         * posix/glob.c (glob): Check passed in values before using them in
18161         expressions to avoid some overflows.
18162         (glob_in_dir): Likewise.
18163
18164         [BZ #13007]
18165         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18166         check for AVX enablement so that we don't crash with old kernels and
18167         new hardware.
18168         * elf/tst-audit4.c: Add same checks here.
18169         * elf/tst-audit6.c: Likewise.
18170
18171         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18172
18173 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18174
18175         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18176
18177 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18178
18179         * po/cs.po: Update from translation team.
18180         * po/bg.po: Likewise.
18181
18182 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18183
18184         * misc/sys/cdefs.h: Add support for const attribute.
18185         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18186         to gnu_dev_{major,minor,makedev} functions.
18187
18188 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18189
18190         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18191
18192 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18193
18194         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18195         strlen results.
18196
18197 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18198
18199         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18200         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18201         register in order to avoid conflicts with the soft frame pointer
18202         being held in r11 when necessary.
18203         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18204         (INTERNAL_VSYSCALL_NCS): Likewise.
18205
18206 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18207
18208         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18209         * elf/dl-fini.c (_dl_fini): Adjust caller.
18210         * elf/dl-close.c (_dl_close_worker): Likewise.
18211         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18212
18213 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18214
18215         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18216         "aux_cache->nlibs < 0".
18217
18218         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18219         in the reload-count case.
18220
18221 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18222
18223         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18224         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18225         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18226         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18227         * sysdeps/x86_64/multiarch/strcat.S: New file.
18228         * sysdeps/x86_64/multiarch/strncat.S: New file.
18229         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18230         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18231         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18232         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18233         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18234         (USE_AS_STRCAT): Define.
18235         Add strcat and strncat support.
18236         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18237         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18238         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18239         * string/strncat.c: Update.
18240         (USE_AS_STRNCAT): Define.
18241         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18242         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18243         and i7.
18244         * sysdeps/x86_64/multiarch/init-arch.h
18245         (bit_Prefer_PMINUB_for_stringop): New.
18246         (index_Prefer_PMINUB_for_stringop): Likewise.
18247         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18248         bit_Prefer_PMINUB_for_stringop.
18249
18250 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18251
18252         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18253         buffer64.
18254         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18255         of casting of buffer.
18256         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18257         buffer32 and buffer64.
18258         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18259         writes instead of casting of buffer.
18260         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18261         buffer32.
18262         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18263         casting of buffer.
18264
18265 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18266
18267         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18268
18269 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18270
18271         * nscd/nscd.c (termination_handler): Don't do anything for a database
18272         if it has not yet been initialized.
18273
18274 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18275
18276         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18277
18278 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18279
18280         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18281
18282 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18283
18284         * po/nl.po: Update from translation team.
18285         * po/sv.po: Likewise.
18286
18287 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18288
18289         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18290         now disallowed by GCC.
18291
18292         * configure.in (use-default-link): Default to yes if a test -shared
18293         link meets our qualifications.
18294         * configure: Regenerated.
18295
18296         * config.make.in (output-format): New variable.
18297         * configure.in: Check for ld --print-output-format support.
18298         * configure: Regenerated.
18299         * Makerules ($(common-objpfx)format.lds)
18300         [$(output-format) != unknown]: Just use $(output-format),
18301         instead of the linker-script munging.
18302
18303 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18304
18305         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18306         of $(common-objpfx)shlib.lds.
18307         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18308
18309         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18310         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18311
18312         * configure.in (-z relro check): Adjust test code to add a large
18313         writable data section after it.
18314         * configure: Regenerated.
18315
18316 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18317
18318         * configure.in (-z relro check): Fix test code to make the variable
18319         truly const.
18320         * configure: Regenerated.
18321
18322 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18323
18324         * nscd/nscd.h (struct traced_file): Define.
18325         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18326         elements.  Add traced_files.
18327         (inotify_fd): Declare.
18328         (register_traced_file): Declare.
18329         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18330         (inotify_fd): Export.
18331         (resolv_conf_descr): Remove.
18332         (nscd_init): Move inotify descriptor creation to main.
18333         Don't register files for notification here.
18334         (register_traced_file): New function.
18335         (invalidate_cache): Don't use reset_res to determine whether to call
18336         res_init, go through the list of registered files.
18337         (main_loop_poll): The inotify descriptors are now stored in the
18338         structures for the traced files.
18339         (main_loop_epoll): Likewise
18340         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
18341         to __nss_disable_nscd.
18342         * nscd/cache.c (prune_cache): There is no single inotify descriptor
18343         for a database anymore.  Check the records for all the registered
18344         files instead.
18345         * nss/Makefile (libnss_files-routines): Add files-init.
18346         (libnss_db-routines): Add db-init.
18347         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
18348         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
18349         * nss/nss_db/db-init.c: New file.
18350         * nss/nss_files/files-init.c: New file.
18351         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
18352         __nss_lookup_function.
18353         (__nss_lookup_function): Call nss_load_library.
18354         (nss_load_all_libraries): New function.
18355         (__nss_disable_nscd): Take parameter with callback function for files
18356         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
18357         used for the cached services.
18358         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
18359         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
18360         options for features to all the files in nscd.
18361
18362         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
18363
18364 2011-07-10  Roland McGrath  <roland@hack.frob.com>
18365
18366         * csu/elf-init.c (__libc_csu_init): Comment typo.
18367
18368 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
18369
18370         * po/pl.po: Update from translation team.
18371         * po/ja.po: Likewise.
18372         * po/ru.po: Likewise.
18373         * po/ko.po: Likewise.
18374         * po/fr.po: Likewise.
18375
18376 2011-07-09  Roland McGrath  <roland@hack.frob.com>
18377
18378         * configure.in (.ctors/.dtors header and trailer check):
18379         Use an empirical test on a built program.
18380         * configure: Regenerated.
18381
18382         * configure.in (-z relro check): Use an empirical test on a built DSO.
18383         Detect, but do not require, on ia64.
18384         * configure: Regenerated.
18385
18386         * configure.in (READELF): Find it with AC_CHECK_TOOL.
18387         Update tests that use readelf to use $READELF instead.
18388         * configure: Regenerated.
18389
18390 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
18391
18392         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
18393         if the result is not used.
18394
18395 2011-07-05  Andreas Jaeger  <aj@suse.de>
18396
18397         [BZ#9696]
18398         * stdlib/tst-strtod.c: Add testcase.
18399
18400 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
18401
18402         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
18403         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
18404         The latter has a higher limit.  Take additional parameter to pass to
18405         the new function.
18406         (__pathconf): Pass file to __statfs_link_max.
18407         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
18408         __statfs_link_max.
18409         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
18410         __statfs_link_max.
18411
18412         [BZ #12868]
18413         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
18414         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18415         Handle Lustre.
18416         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
18417         (__statfs_filesize_max): Likewise.
18418         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
18419
18420 2011-07-05  Andreas Jaeger  <aj@suse.de>
18421
18422         * resolv/res_comp.c (dn_skipname): Remove unused variable.
18423
18424 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
18425
18426         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
18427         `status' variable.
18428         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
18429         Likewise.
18430
18431 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
18432
18433         * Makefile (strop-tests): Add strncat.
18434         * string/test-strncat.c: New file.
18435
18436 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
18437
18438         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
18439
18440 2011-06-21  Andreas Jaeger  <aj@suse.de>
18441
18442         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
18443         Copy rule from iconvdata/Makefile.
18444
18445 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18446
18447         [BZ #12922]
18448         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
18449         but no long options are defined, just return 'W'.
18450
18451 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
18452
18453         [BZ #9696]
18454         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
18455
18456 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18457
18458         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
18459         netgroups to read.
18460         (innetgr): Likewise.
18461
18462 2011-07-05  Roland McGrath  <roland@hack.frob.com>
18463
18464         * config.make.in (install_root): Default to $(DESTDIR).
18465
18466 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
18467
18468         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
18469
18470 2011-07-02  Roland McGrath  <roland@hack.frob.com>
18471
18472         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
18473
18474         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
18475         containing directory rather than embedding absolute directory names.
18476
18477         * scripts/check-local-headers.sh: Rewritten using awk.
18478         Match by word, not by line.  Print error messages for matches.
18479         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
18480
18481         * Makerules [shlib-lds-flags empty]:
18482         ($(common-objpfx)libc_pic.opts): New target.
18483         ($(common-objpfx)libc_pic.os.clean): New target.
18484         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
18485
18486         * config.make.in (OBJCOPY): New variable.
18487         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
18488         * configure: Regenerated.
18489
18490         * config.make.in (use-default-link): New variable.
18491         * configure.in (use_default_link): Grok --with-default-link to set it.
18492         * configure: Regenerated.
18493         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
18494         (shlib-lds, shlib-lds-flags): Define to empty.
18495
18496         * Makerules (shlib-lds): New variable.
18497         (shlib-lds-flags): New variable.
18498         (build-shlib, build-moduile, build-module-asneeded): Use it.
18499         ($(common-objpfx)libc.so): Use $(shlib-lds).
18500         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
18501         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
18502
18503         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
18504         DT_FLAGS/DT_FLAGS_1 with zero flags.
18505
18506         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
18507         linker script munging.
18508
18509 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
18510
18511         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
18512         as 128-bit value.
18513         * crypt/sha512.c (sha512_process_block): Perform total addition using
18514         128-bit if possible.
18515         (__sha512_finish_ctx): Likewise.
18516         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
18517         as 64-bit value.
18518         * crypt/sha256.c (SWAP64): Define.
18519         (sha256_process_block): Perform total addition using 64-bit if
18520         possible.
18521         (__sha256_finish_ctx): Likewise.
18522
18523 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
18524
18525         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
18526         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18527         * nscd/hstcache.c (cache_addhst): Likewise.
18528         * nscd/grpcache.c (cache_addgr): Likewise.
18529         * nscd/aicache.c (addhstaiX): Likewise
18530         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
18531
18532 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
18533
18534         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
18535         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18536         * nscd/hstcache.c (cache_addhst): Likewise.
18537         * nscd/grpcache.c (cache_addgr): Likewise.
18538         * nscd/aicache.c (addhstaiX): Likewise
18539
18540 2011-07-01  Andreas Schwab  <schwab@redhat.com>
18541
18542         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
18543         domain only when needed.
18544
18545 2011-06-30  Andreas Schwab  <schwab@redhat.com>
18546
18547         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
18548         is always restored.
18549
18550 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
18551
18552         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
18553         are re-adding the entry.
18554         * nscd/servicescache.c (cache_addserv): Likewise.
18555
18556 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
18557
18558         * sysdeps/generic/dl-irel.h: fix protection against multiple
18559         inclusions.
18560         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
18561
18562 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
18563
18564         [BZ #12935]
18565         * malloc/memusage.sh: Fix quoting in message.
18566         * debug/xtrace.sh: Likewise.
18567
18568         * configure.in: Remove support for --experimental-malloc option, make
18569         it the default.
18570         * config.make.in: Likewise.
18571         * malloc/Makefile: Likewise.
18572
18573 2011-06-27  Andreas Schwab  <schwab@redhat.com>
18574
18575         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
18576         two-byte characters.
18577
18578 2011-06-27  Roland McGrath  <roland@hack.frob.com>
18579
18580         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
18581         AC_CACHE_CHECK invocation.
18582         * configure: Regenerated.
18583
18584         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
18585
18586 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
18587
18588         [BZ #12350]
18589         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
18590         bit from old_res_options.
18591
18592         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
18593
18594         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
18595         value type for setfct.
18596
18597 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18598
18599         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18600         __gettimeofday instead of gettimeofday.
18601
18602 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
18603
18604         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
18605
18606 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18607
18608         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
18609
18610         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
18611         info.
18612
18613 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18614
18615         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18616         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18617         strcpy-sse2-unaligned strncpy-sse2-unaligned
18618         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
18619         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
18620         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
18621         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
18622         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
18623         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
18624         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
18625         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
18626         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
18627         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
18628         (STRCPY): Support SSE2 and SSSE3 versions.
18629
18630 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
18631
18632         [BZ #12874]
18633         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
18634         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
18635         kernels which artificially limit size of requests.
18636
18637 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18638
18639         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18640         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18641         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
18642         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
18643         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
18644         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
18645         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
18646         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
18647         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
18648         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
18649         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
18650         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
18651         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
18652         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
18653         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
18654         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18655         Enable unaligned load optimization for Intel Core i3, i5 and i7
18656         processors.
18657         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
18658         Define.
18659         (index_Fast_Unaligned_Load): Define.
18660         (HAS_FAST_UNALIGNED_LOAD): Define.
18661
18662 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
18663
18664         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
18665
18666 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18667
18668         [BZ #12907]
18669         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
18670         until it is clear that the information is realy needed.
18671         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
18672
18673 2011-06-22  Andreas Schwab  <schwab@redhat.com>
18674
18675         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
18676
18677 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18678
18679         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18680         /sys/devices/system/cpu/online if it is usable.
18681
18682         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
18683         reading the information from the /proc filesystem to once a second.
18684
18685 2011-06-21  Andreas Jaeger  <aj@suse.de>
18686
18687         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
18688         NULL after inclusion of kernel headers.
18689
18690 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
18691
18692         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
18693         calls to internal_setent.
18694
18695         [BZ #12885]
18696         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
18697         addresses using gethostbyname4_r ignore IPv4 addresses.
18698
18699         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
18700         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
18701
18702         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
18703
18704 2011-06-20  David S. Miller  <davem@davemloft.net>
18705
18706         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
18707         inclusions.
18708         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
18709
18710         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
18711         (elf_irel): Use it.
18712         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
18713         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
18714         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
18715         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
18716         * sysdeps/x86_64/dl-irel.h: Likewise.
18717
18718         * elf/dl-runtime.c: Use elf_ifunc_invoke.
18719         * elf/dl-sym.c: Likewise.
18720
18721 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18722
18723         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18724         need to dereference resplen2.
18725
18726 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18727
18728         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18729
18730 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18731
18732         * Makeconfig: Define vardbdir and inst_vardbdir.
18733         * nss/Makefile: Add rules to install db-Makefile.
18734
18735         * nss/nss_db/db-XXX.c: Cleanup.
18736
18737         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18738         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18739         GLIBC_PRIVATE.
18740         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18741         * nss/makedb.c: Implement -g option to specify that value strings
18742         are generated and should not be added to table iterated over for
18743         get*ent calls.
18744         * nss/nss_db/db-initgroups.c: New file.
18745
18746         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18747         interface.
18748
18749         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18750         (internal_getgrouplist): Adjust to name change.
18751         Update use_initgroups_entry if this is not the first call.
18752         * nss/databases.def: Add initgroups entry.
18753
18754         * nss/makedb.c (compute_tables): Check result of multiple hash table
18755         sizes to minimize maximum chain length.
18756
18757 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18758
18759         * Versions.def: Add entry for libnss_db.
18760         * shlib-versions: Likewise.
18761         * nss/Makefile: Add rules to build libnss_db.
18762         * nss/Versions: Add libnss_db information.  Organize libnss_files
18763         entries better.
18764         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18765         makedb progra.  Some minor improvements to generate smaller files.
18766         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18767         here from...
18768         * nss/makedb.c: ...here.
18769         Improve database format to be smaller and require less memory at
18770         runtime.
18771         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18772         db anymore.
18773         * nss/nss_db/db-netgrp.c: Likewise.
18774         * nss/nss_db/db-open.c: Likewise.
18775         * nss/nss_files/flies-XXX.x: Adjust comments.
18776         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18777         * nss/nss_files/files-grp.c: Likewise.
18778         * nss/nss_files/files-hosts.c: Likewise.
18779         * nss/nss_files/files-network.c: Likewise.
18780         * nss/nss_files/files-proto.c: Likewise.
18781         * nss/nss_files/files-pwd.c: Likewise.
18782         * nss/nss_files/files-rpc.c: Likewise.
18783         * nss/nss_files/files-service.c: Likewise.
18784         * nss/nss_files/files-sgrp.c: Likewise.
18785         * nss/nss_files/files-spwd.c: Likewise.
18786         * nss/nss_db/db-alias.c: Removed.
18787         * nss/nss_db/dummy-db.h: Removed.
18788
18789 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18790
18791         * nss/makedb.c: Rewritten to not use database library.
18792         * nss/Makefile: Update to build new makedb program.
18793
18794 2011-06-14  Andreas Jaeger  <aj@suse.de>
18795
18796         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18797         memset declaration.
18798
18799 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18800
18801         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18802         tmpbuf.
18803
18804 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18805
18806         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18807         * elf/Makefile ($(objpfx)ld.so): Likewise.
18808
18809         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18810         Don't list ld.so twice in dependencies.
18811
18812         * posix/bug-regex31.c: Include <stdlib.h>.
18813
18814         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18815
18816         * nis/nss_compat/compat-spwd.c
18817         (getspent_next_nss_netgr): Remove unused variable.
18818         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18819
18820         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18821         nonmembers" output to use the right array.
18822
18823         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18824
18825         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18826
18827         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18828         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18829         * catgets/gencat.c (read_input_file): Likewise.
18830         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18831
18832         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18833         variable definition inside #if's controlling its use.
18834
18835         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18836
18837         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18838
18839         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18840
18841         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18842         unreachable code.
18843
18844         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18845
18846         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18847         * configure: Regenerated.
18848
18849         * Makerules: Revert last change.
18850         * elf/Makefile: Likewise.
18851
18852 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18853
18854         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18855         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18856         (reloc-link): Likewise.
18857
18858 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18859
18860         * elf/Makefile: Add rules to build pldd.
18861         * elf/pldd.c: New file.
18862         * elf/pldd-xx.c: New file.
18863
18864 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18865
18866         * version.h: Update for 2.15 development version.
18867
18868 2011-06-07  David S. Miller  <davem@davemloft.net>
18869
18870         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18871         ifuncs.
18872         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18873         elf_machine_lazy_rel): Likewise.
18874         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18875         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18876         elf_machine_lazy_rel): Likewise.
18877         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18878         dl_hwcap via passed in argument.
18879         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18880         Likewise.
18881
18882 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18883
18884         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18885
18886 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18887
18888         [BZ #12849]
18889         * manual/fdl-1.1.texi: New file, verbatim from:
18890         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18891         * manual/lgpl-2.1.texi: New file, verbatim from:
18892         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18893         * manual/Makefile (licenses): New variable, list those new file names.
18894         (texis): Use it.
18895         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18896
18897         * manual/fdl.texi: File removed.
18898         * manual/lesser.texi: File removed.
18899         * manual/libc.texinfo (Copying, Documentation License):
18900         Use new @include file names, put @appendix directive before @include.
18901
18902 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18903
18904         [BZ #12841]
18905         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18906         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18907         (mq_open): Add __NTH.
18908
18909 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18910
18911         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18912         Assume Intel Core i3/i5/i7 processor if AVX is available.
18913
18914 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18915
18916         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18917         typo.
18918
18919 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18920
18921         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18922         memory.  Use alloca_account.  Fix memory leak when retrying.
18923
18924 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18925
18926         * version.h (RELEASE): Bump for 2.14 release.
18927         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18928
18929         * config.make.in (RANLIB): Remove entry.
18930
18931 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18932
18933         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18934         (libc.pot): Work around missing support for .ksh extension in xgettext.
18935
18936         [BZ #12684]
18937         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18938         if both request failed.
18939         (send_dg): In case of server errors clear resplen or *resplen2.
18940
18941         [BZ #12454]
18942         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18943         when there are multiple maps.
18944         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18945         (_dl_fini): Remove test here.
18946
18947         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18948
18949 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18950
18951         [BZ #12350]
18952         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18953         bit from old_res_options.
18954         (gaih_inet): Likewise.
18955
18956         [BZ #11099]
18957         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18958         as signed.
18959
18960         * resolv/res_init.c (res_setoptions): Make the code more compact.
18961
18962         [BZ #11558]
18963         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18964         set RES_USEVC.
18965
18966         [BZ #11634]
18967         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18968
18969         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18970
18971         [BZ #11781]
18972         * malloc/malloc.h: Declare malloc hook variables as volatile.
18973
18974         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18975         in last patch.
18976
18977         [BZ #11799]
18978         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18979         raise in the comment.
18980         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18981         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18982         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18983
18984 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18985
18986         [BZ #12811]
18987         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18988         grow the buffers more if it already has to be sufficient.
18989         (build_wcs_upper_buffer): Likewise.
18990         * posix/regexec.c (check_matching): Likewise.
18991         (clean_state_log_if_needed): Likewise.
18992         (extend_buffers): Don't enlarge buffers beyond size of the input
18993         buffer.
18994         Patches mostly by Emil Wojak <emil@wojak.eu>.
18995         * posix/bug-regex32.c: New file.
18996         * posix/Makefile (tests): Add bug-regex32.
18997
18998         * locale/findlocale.c (_nl_find_locale): Return right away if
18999         _nl_explode_name failed.
19000         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19001
19002         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19003
19004         * debug/xtrace.sh: Unify messages.
19005         * malloc/memusage.sh: Likewise.
19006
19007         [BZ #12813]
19008         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19009         time symbol from vDSO.  Substitute with vsyscall if not available.
19010         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19011         __vdso_time.
19012
19013         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19014         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19015         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19016         Add sendmmsg and internal_sendmmsg.
19017         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19018         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19019         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19020
19021         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19022         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19023         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19024
19025 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19026
19027         [BZ #12813]
19028         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19029         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19030         available.
19031         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19032         __vdso_getcpu.
19033
19034         [BZ #12814]
19035         * iconvdata/Makefile (tests): Add bug-iconv9.
19036         * iconvdata/bug-iconv9.c: New file.
19037
19038 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19039
19040         [BZ #12814]
19041         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19042
19043 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19044
19045         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19046         (struct user_regs_struct): Change intcs field back to cs.
19047
19048 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19049
19050         * po/ja.po: Update from translation team.
19051
19052 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19053
19054         [BZ #12795]
19055         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19056         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19057
19058 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19059
19060         * stdlib/longlong.h: Update from GCC.
19061
19062 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19063
19064         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19065         parameter name.
19066         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19067         Add parameter name.
19068         (__sysconf): Pass it down.
19069
19070 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19071
19072         [BZ #12671]
19073         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19074         some situations.
19075         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19076         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19077         add in in __libc_use_alloca calls.  Adjust callers.
19078         (glob): Use malloc in some situations.
19079
19080         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19081         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19082         pltexit.
19083
19084 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19085
19086         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19087         and CLOCK_BOOTTIME_ALARM.
19088
19089         [BZ #12782]
19090         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19091         is returned.
19092
19093         * string/_strerror.c (__strerror_r): Print negative errors as signed
19094         numbers.
19095
19096         [BZ #12777]
19097         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19098         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19099         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19100
19101         * configure.in: Fix typo in redirection and correct removal of test
19102         files in two cases.
19103
19104         [BZ #12788]
19105         * locale/setlocale.c (new_composite_name): Fix test to check for
19106         identical name of all categories.
19107
19108         [BZ #12792]
19109         * libio/filedoalloc.c (local_isatty): New function.
19110         (_IO_file_doallocate): Use local_isatty.
19111         * stdio-common/perror.c (perror): In case a new stream is used
19112         forward the stream error.
19113         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19114         error flag.
19115
19116 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19117
19118         [BZ #11869]
19119         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19120         alloca.
19121         * include/alloca.h (extend_alloca_account): Define.
19122
19123         [BZ #11857]
19124         * posix/regex.h: Fix comments with documentation of user-accessible
19125         fields after compilation and describe correct free'ing of pattern
19126         after re_compile_pattern.
19127         Patch by Reuben Thomas <rrt@sc3d.org>.
19128
19129 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19130
19131         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19132         and -mno-altivec to prevent the compiler from using Altivec and/or
19133         VSX instructions when the corresponding registers are not available.
19134
19135 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19136
19137         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19138
19139 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19140
19141         * libio/freopen.c (freopen): Use __dup2, not dup2.
19142         * libio/freopen64.c (freopen64): Likewise.
19143
19144 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19145
19146         [BZ #12775]
19147         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19148         * math/Makefile (tests): Add test-powl.
19149         (CFLAGS-test-powl.c): Define.
19150         * math/test-powl.c: New file.
19151
19152 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19153
19154         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19155
19156 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19157
19158         [BZ #11837]
19159         * iconvdata/gb18030.c: Update to GB18020-2005.
19160
19161 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19162
19163         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19164         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19165         Patch by Aharon Robbins <arnold@skeeve.com>.
19166
19167         [BZ #11892]
19168         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19169         on the stack.
19170
19171         [BZ #11895]
19172         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19173         through underflows.
19174
19175         [BZ #12766]
19176         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19177         point to strings before performing equality test for error_one_per_line
19178         mode.
19179
19180         [BZ #11697]
19181         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19182
19183         [BZ #11820]
19184         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19185         (struct user_fpregs_struct): Avoid __uint*_t types.
19186
19187         [BZ #6420]
19188         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19189         symbol info.  Use it instead of calling _dl_addr locally.
19190         (lock_and_info): New function.
19191         (tr_freehook): Call lock_and_info and pass symbol info as additional
19192         parameter to tr_where.
19193         (tr_mallochook): Likewise.
19194         (tr_reallochook): Likewise.
19195         (tr_memalignhook): Likewise.
19196
19197         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19198         used and couldn't be at all thread-safe.
19199
19200 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19201
19202         * libio/freopen.c (freopen): Don't close old file descriptor
19203         before the new one is opened.  Instead dup the new file descriptor
19204         to the old one after the new stream is created.
19205         * libio/freopen64.c (freopen64): Likewise.
19206         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19207         * libio/fileops.c (_IO_new_file_close_it): Handle new
19208         _IO_FLAGS2_NOCLOSE flag.
19209         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19210         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19211         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19212         _IO_FLAGS2_NOCLOSE flag.
19213         * include/unistd.h: Add hidden_proto for dup3.
19214         Define __have_dup3.
19215         * io/dup3.c: Define hidden symbol.
19216         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19217
19218         [BZ #7101]
19219         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19220         when an incomplete long option is used.
19221         * posix/tst-getopt_long1.c: New file.
19222         * posix/Makefile (tests): Add tst-getopt_long1.
19223
19224         [BZ #10138]
19225         * scripts/config.guess: Update from autoconf-2.68.
19226         * scripts/config.sub: Likewise.
19227
19228         [BZ #10157]
19229         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19230         tests into ...
19231         (has_cpuclock): ...this.  New function.
19232         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19233         macro here based on has_cpuclock code.
19234
19235         [BZ #10149]
19236         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19237         First byte (not low byte) is now always NUL.
19238         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19239
19240         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19241         Use non-cancelable interfaces.
19242
19243         [BZ #9809]
19244         * locale/iso-639.def: Add entry for Sorani.
19245
19246         [BZ #11901]
19247         * include/stdlib.h: Move include protection to the right place.
19248         Define abort_msg_s.  Declare __abort_msg with it.
19249         * stdlib/abort.c (__abort_msg): Adjust type.
19250         * assert/assert.c (__assert_fail_base): New function.  Majority
19251         of code from __assert_fail.  Allocate memory for __abort_msg with
19252         mmap.
19253         (__assert_fail): Now call __assert_fail_base.
19254         * assert/assert-perr.c: Remove bulk of implementation.  Use
19255         __assert_fail_base.
19256         * include/assert.hL Declare __assert_fail_base.
19257         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19258         mmap.
19259         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19260
19261 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19262
19263         [BZ #11952]
19264         [BZ #12453]
19265         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19266         until all modules are registered in the DTV.
19267         * elf/Makefile: Add rules to build and run tst-tls19.
19268         * elf/tst-tls19.c: New file.
19269         * elf/tst-tls19mod1.c: New file.
19270         * elf/tst-tls19mod2.c: New file.
19271         * elf/tst-tls19mod3.c: New file.
19272         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19273
19274         [BZ #12083]
19275         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19276         correctly.
19277
19278         [BZ #12601]
19279         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19280         two-byte sequence errors.
19281         * iconvdata/Makefile (tests): Add bug-iconv8.
19282         * iconvdata/bug-iconv8.c: New file.
19283
19284         [BZ #12626]
19285         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19286         buf2 definition.
19287
19288         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19289
19290         [BZ #12432]
19291         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19292         (dummy_getcfa): New function.
19293         (init): Get _Unwind_GetCFA address, use dummy if not found.
19294         (backtrace_helper): In recursion check, also check whether CFA changes.
19295         (__backtrace): Completely initialize arg.
19296
19297         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19298         storing incomplete byte sequence in state object.  Avoid testing for
19299         guaranteed too small input if we know there is enough data available.
19300
19301 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19302
19303         * Makeconfig (+link-pie): Indent.
19304         * Rules (binaries-pie): Define if $(have-fpie) and
19305         $(build-shared).
19306         (binaries-shared): Also filter out $(binaries-pie).
19307         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19308         * nscd/Makefile (others-pie): Add nscd.
19309         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19310         ($(objpfx)nscd): Remove command override.
19311         * login/Makefile (others-pie): Add pt_chown.
19312         ($(objpfx)pt_chown): Remove command override.
19313         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19314         remove command overrides.
19315
19316 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19317
19318         * libio/tst_putwc.c: Fix error messages.
19319
19320         [BZ #12724]
19321         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19322         currently writing and seek to current position when not.
19323         * libio/Makefile (tests): Add bug-fclose1.
19324         * libio/bug-fclose1.c: New file.
19325
19326 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19327
19328         [BZ #12511]
19329         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19330         don't set DF_1_NODELETE here.
19331         (do_lookup_x): When entering new entry test for copy relocation
19332         and if necessary set DF_1_NODELETE flag.
19333         * elf/tst-unique4.cc: New file.
19334         * elf/tst-unique4.h: New file.
19335         * elf/tst-unique4lib.cc: New file.
19336         * elf/Makefile: Add rules to build and run tst-unique4.
19337         Patch by Piotr Bury <pbury@goahead.com>.
19338
19339 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19340
19341         [BZ #12052]
19342         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
19343
19344         [BZ #12625]
19345         * misc/mntent_r.c (addmntent): Flush the stream after the output
19346
19347         [BZ #12393]
19348         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
19349         (is_trusted_path_normalize): Skip initial colon.  Append slash
19350         to empty buffer.  Duplicate is_trusted_path code but allow
19351         constructed patch to be prefix.
19352         (is_dst): Allow $ORIGIN followed by /.
19353         (_dl_dst_substitute): Correct clearing of check_for_trusted.
19354         Correct testing of result of is_trusted_path_normalize
19355         (decompose_rpath): Fix warning.
19356
19357 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
19358
19359         [BZ #11257]
19360         * grp/initgroups.c (internal_getgrouplist): When we found the service
19361         list through the initgroups entry in nsswitch.conf do not always
19362         continue on a successful lookup.  Don't always use the
19363         __nss_group_database value if it is set.
19364         * nss/nsswitch.conf (initgroups): Change action for successful db
19365         lookup to continue for compatibility.
19366
19367 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
19368
19369         [BZ #11532]
19370         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
19371         and CP774 modules.
19372         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
19373         and CP774 modules.
19374         * iconvdata/tst-tables.sh: Likewise.
19375         * iconvdata/cp770.c: New file.
19376         * iconvdata/cp771.c: New file.
19377         * iconvdata/cp772.c: New file.
19378         * iconvdata/cp773.c: New file.
19379         * iconvdata/cp774.c: New file.
19380         * iconvdata/testdata/CP770: New file.
19381         * iconvdata/testdata/CP770..UTF8: New file.
19382         * iconvdata/testdata/CP771: New file.
19383         * iconvdata/testdata/CP771..UTF8: New file.
19384         * iconvdata/testdata/CP772: New file.
19385         * iconvdata/testdata/CP772..UTF8: New file.
19386         * iconvdata/testdata/CP773: New file.
19387         * iconvdata/testdata/CP773..UTF8: New file.
19388         * iconvdata/testdata/CP774: New file.
19389         * iconvdata/testdata/CP774..UTF8: New file.
19390
19391         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
19392         END CHARMAP line.
19393         * iconvdata/gen-8bit-gap.sh: Likewise.
19394         * iconvdata/gen-8bit.sh: Likewise.
19395
19396         * locale/iso-639.def: Add ary entry.
19397
19398         [BZ #11258]
19399         * locale/C-translit.h.in: Add U20A1 transliteration.
19400
19401         [BZ #12178]
19402         * locale/iso-639.def: Add wae entry.
19403         Patch by Kevin Bortis <bortis@translate-wae.ch>.
19404
19405         [BZ #12545]
19406         * locale/programs/localedef.c (construct_output_path): Use ssize_t
19407         for n.
19408
19409         [BZ #12711]
19410         * locale/C-translit.h.in: Add entry for U20B9.
19411         Patch by pravin.d.s@gmail.com.
19412
19413 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
19414
19415         [BZ #12713]
19416         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
19417         ENAMETOOLONG use generic getcwd.
19418         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
19419         in rtld.  Use *stat64.
19420         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
19421         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
19422         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
19423         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
19424         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
19425         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
19426         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
19427         __fstatat64 macros.
19428         * include/dirent.h: Add libc_hidden_proto for rewinddir.
19429         * dirent/rewinddir.c: Add libc_hidden_def.
19430         * sysdeps/mach/hurd/rewinddir.c: Likewise.
19431         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
19432
19433         * include/dirent.h (__alloc_dir): Add flags parameter.
19434         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
19435         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
19436         __alloc_dir.
19437         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
19438         from fdopendir if O_CLOEXEC is already set.
19439
19440 2011-03-15  Alan Modra  <amodra@gmail.com>
19441
19442         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
19443         l_tls_firstbyte_offset non-zero.  Save padding offset in
19444         l_tls_firstbyte_offset for later use.
19445         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
19446         freeing static tls block.
19447
19448 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
19449
19450         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
19451         where #ifdef was intended.  The intent is to prevent ARG_MAX from
19452         being defined by the kernel headers.
19453
19454 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
19455
19456         [BZ #12734]
19457         * resolv/resolv.h: Define RES_NOTLDQUERY.
19458         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
19459         no-tld-query and set RES_NOTLDQUERY.
19460         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
19461         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
19462         modern BIND to search name as TLD unless forbidden.
19463
19464 2011-05-07  Petr Baudis  <pasky@suse.cz>
19465             Ulrich Drepper  <drepper@gmail.com>
19466
19467         [BZ #12393]
19468         * elf/dl-load.c (fillin_rpath): Move trusted path check...
19469         (is_trusted_path): ...to here.
19470         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
19471         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
19472         using is_trusted_path_normalize() in setuid scripts.
19473
19474 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19475
19476         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
19477         __BEGIN/__END_DECLS.
19478
19479 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
19480
19481         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
19482         NSS_STATUS_NOTFOUND if no record was found.
19483
19484 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19485
19486         * sunrpc/Makefile (headers): Add rpc/netdb.h.
19487         (headers-not-in-tirpc): Remove rpc/netdb.h
19488         * resolv/netdb.h: Revert last change.
19489
19490 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19491
19492         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
19493         circular dependency between libgcc.a and libc.a.
19494
19495 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19496
19497         * resolv/netdb.h: Don't include <rpc/netdb.h>.
19498         * nis/Makefile: Don't install rpcsvc/*.
19499         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
19500         instead of <rpc/types.h>.
19501         (MAXHOSTNAMELEN): Define.
19502
19503 2011-05-03  Andreas Schwab  <schwab@redhat.com>
19504
19505         * elf/ldconfig.c (add_dir): Don't crash on empty path.
19506
19507 2011-04-28  Maciej Babinski  <mbabinski@google.com>
19508
19509         [BZ #12714]
19510         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
19511         gethostbyname4_r when IPv6 results are possible.
19512
19513 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
19514
19515         [BZ #12723]
19516         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
19517         _PC_PIPE_BUF handling.
19518
19519 2011-04-30  Bruno Haible  <bruno@clisp.org>
19520
19521         [BZ #12717]
19522         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
19523         * resolv/netdb.h (getnameinfo): Change type of flags parameter
19524         to 'int'.
19525         * inet/getnameinfo.c (getnameinfo): Likewise.
19526
19527 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
19528
19529         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
19530         to groups setting in database lookup.
19531         * nss/nsswitch.conf: Add initgroups entry.
19532
19533 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
19534
19535         [BZ #12685]
19536         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
19537         mode string.
19538         Patch by Eric Blake <eblake@redhat.com>.
19539
19540 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
19541
19542         * sunrpc/Makefile (need-export-routines): Add svc_run.
19543         (routines): Remove svc_run.
19544         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
19545         * sunrpc/clnt_perr.c (clnt_perrno): Export.
19546         * sunrpc/svc_run.c (svc_run): Likewise.
19547         * sunrpc/svc_udp.c (svcudp_create): Likewise.
19548
19549 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
19550
19551         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
19552         problem in reallocation in last patch.
19553
19554 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
19555
19556         * sunrpc/Makefile: Move inclusion of Rules.
19557
19558 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19559
19560         * nss/nss_files/files-initgroups.c: New file.
19561         * nss/Makefile (libnss_files-routines): Add files-initgroups.
19562         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
19563         _nss_files_initgroups_dyn.
19564
19565 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
19566
19567         * elf/elf.h (R_ARM_IRELATIVE): Define.
19568
19569 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19570
19571         * po/ru.po: Update from translation team.
19572
19573 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19574
19575         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
19576         dependencies.
19577
19578 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
19579
19580         [BZ #12653]
19581         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
19582         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
19583         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19584         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
19585         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
19586
19587 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
19588
19589         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
19590         differing bytes.
19591         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
19592         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
19593         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
19594
19595 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19596
19597         [BZ #12420]
19598         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
19599         storing it.
19600         * stdlib/bug-getcontext.c: New file.
19601         * stdlib/Makefile: Add rules to build and run bug-getcontext.
19602
19603 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19604
19605         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
19606         instructions into .machine "z9-109".
19607         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
19608         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
19609
19610 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19611
19612         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
19613         between environment variables and auxiliary vector.
19614
19615 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
19616
19617         * Makefile: Add rules to build linkobj/libc.so.
19618         * include/libc-symbols.h: Define libc_hidden_nolink.
19619         * include/rpc/auth.h: Mark functions which are to be hidden.
19620         * include/rpc/auth_des.h: Likewise.
19621         * include/rpc/auth_unix.h: Likewise.
19622         * include/rpc/clnt.h: Likewise.
19623         * include/rpc/des_crypt.h: Likewise.
19624         * include/rpc/key_prot.h: Likewise.
19625         * include/rpc/pmap_clnt.h: Likewise.
19626         * include/rpc/pmap_prot.h: Likewise.
19627         * include/rpc/pmap_rmt.h: Likewise.
19628         * include/rpc/rpc_msg.h: Likewise.
19629         * include/rpc/svc.h: Likewise.
19630         * include/rpc/svc_auth.h: Likewise.
19631         * include/rpc/xdr.h: Likewise.
19632         * nis/Makefile: Link all DSOs against linkobj/libc.so.
19633         * nss/Makefile: Likewise.
19634         * sunrpc/Makefile: Don't install headers.  Build library with normal
19635         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
19636         * sunrpc/auth_des.c: Hide exported symbols by default, export some
19637         for the compat linking library.  Remove use of INTDEF/INTUSE.
19638         * sunrpc/auth_none.c: Likewise.
19639         * sunrpc/auth_unix.c: Likewise.
19640         * sunrpc/authdes_prot.c: Likewise.
19641         * sunrpc/authuxprot.c: Likewise.
19642         * sunrpc/clnt_gen.c: Likewise.
19643         * sunrpc/clnt_perr.c: Likewise.
19644         * sunrpc/clnt_raw.c: Likewise.
19645         * sunrpc/clnt_simp.c: Likewise.
19646         * sunrpc/clnt_tcp.c: Likewise.
19647         * sunrpc/clnt_udp.c: Likewise.
19648         * sunrpc/clnt_unix.c: Likewise.
19649         * sunrpc/des_crypt.c: Likewise.
19650         * sunrpc/des_soft.c: Likewise.
19651         * sunrpc/get_myaddr.c: Likewise.
19652         * sunrpc/key_call.c: Likewise.
19653         * sunrpc/key_prot.c: Likewise.
19654         * sunrpc/netname.c: Likewise.
19655         * sunrpc/pm_getmaps.c: Likewise.
19656         * sunrpc/pm_getport.c: Likewise.
19657         * sunrpc/pmap_clnt.c: Likewise.
19658         * sunrpc/pmap_prot.c: Likewise.
19659         * sunrpc/pmap_prot2.c: Likewise.
19660         * sunrpc/pmap_rmt.c: Likewise.
19661         * sunrpc/publickey.c: Likewise.
19662         * sunrpc/rpc_cmsg.c: Likewise.
19663         * sunrpc/rpc_common.c: Likewise.
19664         * sunrpc/rpc_dtable.c: Likewise.
19665         * sunrpc/rpc_prot.c: Likewise.
19666         * sunrpc/rpc_thread.c: Likewise.
19667         * sunrpc/rtime.c: Likewise.
19668         * sunrpc/svc.c: Likewise.
19669         * sunrpc/svc_auth.c: Likewise.
19670         * sunrpc/svc_authux.c: Likewise.
19671         * sunrpc/svc_raw.c: Likewise.
19672         * sunrpc/svc_run.c: Likewise.
19673         * sunrpc/svc_simple.c: Likewise.
19674         * sunrpc/svc_tcp.c: Likewise.
19675         * sunrpc/svc_udp.c: Likewise.
19676         * sunrpc/svc_unix.c: Likewise.
19677         * sunrpc/svcauth_des.c: Likewise.
19678         * sunrpc/xcrypt.c: Likewise.
19679         * sunrpc/xdr.c: Likewise.
19680         * sunrpc/xdr_array.c: Likewise.
19681         * sunrpc/xdr_float.c: Likewise.
19682         * sunrpc/xdr_intXX_t.c: Likewise.
19683         * sunrpc/xdr_mem.c: Likewise.
19684         * sunrpc/xdr_rec.c: Likewise.
19685         * sunrpc/xdr_ref.c: Likewise.
19686         * sunrpc/xdr_sizeof.c: Likewise.
19687         * sunrpc/xdr_stdio.c: Likewise.
19688
19689 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
19690
19691         [BZ #12650]
19692         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
19693         * sysdeps/ia64/dl-tls.h: Likewise.
19694         * sysdeps/powerpc/dl-tls.h: Likewise.
19695         * sysdeps/s390/dl-tls.h: Likewise.
19696         * sysdeps/sh/dl-tls.h: Likewise.
19697         * sysdeps/sparc/dl-tls.h: Likewise.
19698         * sysdeps/x86_64/dl-tls.h: Likewise.
19699         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
19700
19701 2011-03-14  Andreas Schwab  <schwab@redhat.com>
19702
19703         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
19704         rpath element also skip the following colon.
19705         (expand_dynamic_string_token): Add is_path parameter and pass
19706         down to DL_DST_REQUIRED and _dl_dst_substitute.
19707         (decompose_rpath): Call expand_dynamic_string_token with
19708         non-zero is_path.  Ignore empty rpaths.
19709         (_dl_map_object_from_fd): Call expand_dynamic_string_token
19710         with zero is_path.
19711
19712 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
19713
19714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
19715         Make cancelable.
19716
19717 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
19718
19719         [BZ #12655]
19720         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19721         Patch by Filipe David Manana <fdmanana@apache.org>.
19722
19723 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19724
19725         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19726         Maintain aligned stack.
19727         (CHECK_RSP): Remove unused macro.
19728
19729 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19730
19731         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19732         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19733
19734 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19735
19736         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19737
19738         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19739
19740 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19741
19742         [BZ #12518]
19743         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19744         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19745         * sysdeps/x86_64/memmove.c: New file.
19746         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19747         (memcpy): Renamed to ...
19748         (__new_memcpy): This.
19749         (memcpy): Provide GLIBC_2_14 memcpy.
19750         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19751         (memcpy): Provide GLIBC_2_2_5 memcpy.
19752
19753 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19754
19755         [BZ #12631]
19756         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19757
19758 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19759
19760         * misc/syncfs.c: New file.
19761         * misc/Makefile (routines): Add syncfs.
19762         * posix/unistd.h: Declare syncfs.
19763         * sysdeps/unix/syscalls.list: Add syncfs.
19764
19765 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19766
19767         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19768         open_by_handle_at.
19769         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19770         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19771         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19772         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19773         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19774         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19775         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19776
19777 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19778
19779         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19780         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19781         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19782         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19783         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19784         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19785         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19786
19787         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19788         sync_file_range.c with -fexceptions.
19789         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19790         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19791         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19792         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19793         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19794         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19795         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19796         sync_file_range as cancellation point
19797         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19798         now a wrapper around __call_sync_file_range with cancellation handling.
19799         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19800         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19801         function name to __call_sync_file_range.
19802         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19803         Add call_sync_file_range.
19804
19805 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19806
19807         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19808         bits/timex.h.
19809
19810 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19811
19812         * iconv/iconv.h: Fix typo in comment.
19813         * io/fcntl.h: Likewise.
19814         * libio/stdio.h: Likewise.
19815         * posix/spawn.h: Likewise.
19816         * posix/unistd.h: Likewise.
19817         * stdlib/stdlib.h: Likewise.
19818         * time/time.h: Likewise.
19819         * wcsmbs/wchar.h: Likewise.
19820
19821         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19822         open_by_handle): Add.
19823         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19824         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19825         Augment a few comments.
19826         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19827         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19828         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19829         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19830         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19831         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19832         open_by_handle.
19833
19834         * io/fcntl.h (AT_EMPTY_PATH): Define.
19835
19836 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19837
19838         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19839         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19840         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19841         to...
19842         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19843         * Versions.def: Add GLIBC_2.14.
19844         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19845         Export.
19846
19847 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19848
19849         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19850         round counter.
19851         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19852
19853 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19854
19855         [BZ #12597]
19856         * string/test-strncmp.c (do_page_test): New function.
19857         (check2): Likewise.
19858         (test_main): Call check2.
19859         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19860
19861 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19862
19863         [BZ #12587]
19864         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19865         Handle cache information in CPU leaf 4.
19866         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19867
19868 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19869
19870         [BZ #12583]
19871         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19872         character representation.
19873         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19874
19875 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19876
19877         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19878         END(__isnan) to END(__isnanf) to match function entry point/label
19879         EALIGN(__isnanf,...).
19880
19881 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19882
19883         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19884
19885 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19886
19887         [BZ #12510]
19888         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19889         copy from the symbol referenced in the relocation to initialize the
19890         used variable.
19891         Patch by Piotr Bury <pbury@goahead.com>.
19892         * elf/Makefile: Add rules to build and tst-unique3.
19893         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19894         * elf/tst-unique3.cc: New file.
19895         * elf/tst-unique3.h: New file.
19896         * elf/tst-unique3lib.cc: New file.
19897         * elf/tst-unique3lib2.cc: New file.
19898
19899         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19900
19901 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19902
19903         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19904         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19905         to _start.
19906
19907 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19908
19909         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19910         to-be-loaded object along a path to loader is ld.so.
19911
19912 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19913             Ulrich Drepper  <drepper@gmail.com>
19914
19915         * sysdeps/x86_64/memset.S: After aligning destination, code
19916         branches to different locations depending on the value of
19917         misalignment, when multiarch is enabled. Fix this.
19918
19919 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19920
19921         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19922         Set _x86_64_preferred_memory_instruction for AMD processsors.
19923         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19924         Set bit_Prefer_SSE_for_memop for AMD processors.
19925
19926 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19927
19928         * libio/fmemopen.c (fmemopen): Optimize a bit.
19929
19930 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19931
19932         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19933
19934 2011-03-03  Roland McGrath  <roland@redhat.com>
19935
19936         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19937
19938 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19939
19940         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19941         __bzero_ultra1 instead of __memset_ultra1.
19942
19943 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19944             Ulrich Drepper  <drepper@gmail.com>
19945
19946         [BZ #12509]
19947         * include/link.h (struct link_map): Add l_orig_initfini.
19948         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19949         returning unsuccessfully.
19950         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19951         close of a file loaded at startup, restore the original l_initfini
19952         list.
19953         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19954         list, store the pointer.
19955         * elf/Makefile ($(objpfx)noload-mem): New rule.
19956         (noload-ENV): Define.
19957         (tests): Add $(objpfx)noload-mem.
19958         * elf/noload.c: Include <memcheck.h>.
19959         (main): Call mtrace.  Close all opened handles.
19960
19961 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19962
19963         [BZ #12454]
19964         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19965         dependencies are missing.
19966
19967 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19968
19969         Fix __if_freereq crash: Unlike the generic version which uses free,
19970         Hurd needs munmap.
19971         * sysdeps/mach/hurd/ifreq.h: New file.
19972
19973 2011-01-27  Petr Baudis  <pasky@suse.cz>
19974             Ulrich Drepper  <drepper@gmail.com>
19975
19976         [BZ 12445]#
19977         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19978         to extend_alloca().
19979         * stdio-common/bug23.c: New file.
19980         * stdio-common/Makefile (tests): Add bug23.
19981
19982 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19983             Ulrich Drepper  <drepper@gmail.com>
19984
19985         [BZ #12489]
19986         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19987         before performing relro protection.  At old place add assertion
19988         to make sure nothing changed.
19989
19990 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19991             Glauber de Oliveira Costa  <glommer@gmail.com>
19992
19993         * elf/elf.h: Add new ARM TLS relocs.
19994
19995 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19996
19997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19998         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19999         cast from r3.
20000         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20001         'tests' variable.
20002         * sysdeps/wordsize-64/tst-writev.c: New file.
20003
20004 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20005
20006         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20007         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20008         insns in _dl_start to prevent a TOC reference before relocs are
20009         resolved.
20010
20011 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20012
20013         [BZ #12469]
20014         * Makeconfig: Remove RANLIB definition.
20015         * Makerules: Don't use RANLIB.
20016         * aclocal.m4: Remove ranlib test.
20017         * configure.in: No need to check for ranlib.
20018         * elf/rtld-Rules: Don't use RANLIB.
20019
20020 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20021
20022         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20023         protection macro.
20024         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20025         inclusion protection macro.
20026
20027         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20028         SIGRTMIN and SIGRTMAX and print information in that case only when
20029         SIGRTMIN is defined.
20030
20031 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20032
20033         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20034         arginfo fn returning -1.
20035
20036         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20037         and thousands string is zero terminated.
20038
20039 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20040
20041         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20042         sysdeps/unix/sysv/linux/bits/socket.h.
20043
20044 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20045
20046         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20047         (__CPU_COUNT): Remove old macros.
20048         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20049         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20050         (__CPU_ALLOC, __CPU_FREE): Add macros.
20051         (__sched_cpualloc, __sched_cpufree): Add declarations.
20052
20053 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20054
20055         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20056         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20057         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20058         (readdhstai): Return value of addhstaiX call.
20059         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20060         (addgrbyX): Return value returned by cache_addgr.
20061         (readdgrbyname): Return value returned by addgrbyX.
20062         (readdgrbygid): Likewise.
20063         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20064         (addpwbyX): Return value returned by cache_addpw.
20065         (readdpwbyname): Return value returned by addhstbyX.
20066         (readdpwbyuid): Likewise.
20067         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20068         (addservbyX): Return value returned by cache_addserv.
20069         (readdservbyname): Return value returned by addservbyX:
20070         (readdservbyport): Likewise.
20071         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20072         (addhstbyX): Return value returned by cache_addhst.
20073         (readdhstbyname): Return value returned by addhstbyX.
20074         (readdhstbyaddr): Likewise.
20075         (readdhstbynamev6): Likewise.
20076         (readdhstbyaddrv6): Likewise.
20077         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20078         (readdinitgroups): Return value returned by addinitgroupsX.
20079         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20080         (prune_cache): Keep track of timeout value of re-added entries.
20081         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20082         * nscd/nscd.h: Adjust prototypes of readd* functions.
20083
20084 2011-02-04  Roland McGrath  <roland@redhat.com>
20085
20086         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20087         (nis_stats): Likewise.
20088         * nis/nis_modify.c (nis_modify): Likewise.
20089         * nis/nis_remove.c (nis_remove): Likewise.
20090         * nis/nis_add.c (nis_add): Likewise.
20091
20092         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20093
20094         * posix/fnmatch_loop.c: Add some consts.
20095
20096         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20097
20098 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20099
20100         [BZ #12460]
20101         * config.make.in (config-cflags-novzeroupper): Define.
20102         * configure.in: Substitute libc_cv_cc_novzeroupper.
20103         * elf/Makefile (AVX-CFLAGS): Define.
20104         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20105         (CFLAGS-tst-auditmod4a.c): Likewise.
20106         (CFLAGS-tst-auditmod4b.c): Likewise.
20107         (CFLAGS-tst-auditmod6b.c): Likewise.
20108         (CFLAGS-tst-auditmod6c.c): Likewise.
20109         (CFLAGS-tst-auditmod7b.c): Likewise.
20110         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20111
20112 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20113
20114         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20115         function to the callback.
20116         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20117
20118 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20119
20120         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20121         of errno.
20122
20123 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20124
20125         [BZ #11724]
20126         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20127         of constructors.
20128         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20129         of destructors.
20130         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20131
20132         [BZ #11724]
20133         * elf/Makefile: Add rules to build and run new test.
20134         * elf/tst-initorder.c: New file.
20135         * elf/tst-initorder.exp: New file.
20136         * elf/tst-initordera1.c: New file.
20137         * elf/tst-initordera2.c: New file.
20138         * elf/tst-initordera3.c: New file.
20139         * elf/tst-initordera4.c: New file.
20140         * elf/tst-initorderb1.c: New file.
20141         * elf/tst-initorderb2.c: New file.
20142         * elf/tst-order-a1.c: New file.
20143         * elf/tst-order-a2.c: New file.
20144         * elf/tst-order-a3.c: New file.
20145         * elf/tst-order-a4.c: New file.
20146         * elf/tst-order-b1.c: New file.
20147         * elf/tst-order-b2.c: New file.
20148         * elf/tst-order-main.c: New file.
20149         New test case by George Gensure <werkt0@gmail.com>.
20150
20151 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20152
20153         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20154         decoding ACE if AI_CANONIDN.
20155
20156 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20157
20158         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20159
20160 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20161
20162         * version.h (RELEASE): Bump for 2.13 release.
20163         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20164
20165         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20166
20167         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20168         MADV_NOHUGEPAGE.
20169         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20170         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20171         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20172         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20173         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20174         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20175
20176         * posix/getconf.c: Update copyright year.
20177         * catgets/gencat.c: Likewise.
20178         * csu/version.c: Likewise.
20179         * debug/catchsegv.sh: Likewise.
20180         * debug/xtrace.sh: Likewise.
20181         * elf/ldconfig.c: Likewise.
20182         * elf/ldd.bash.in: Likewise.
20183         * elf/sprof.c (print_version): Likewise.
20184         * iconv/iconv_prog.c: Likewise.
20185         * iconv/iconvconfig.c: Likewise.
20186         * locale/programs/locale.c: Likewise.
20187         * locale/programs/localedef.c: Likewise.
20188         * malloc/memusage.sh: Likewise.
20189         * malloc/mtrace.pl: Likewise.
20190         * nscd/nscd.c (print_version): Likewise.
20191         * nss/getent.c: Likewise.
20192
20193         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20194         PF_CAIF, and PF_ALG.
20195         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20196
20197 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20198
20199         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20200         (modules-names): Use them.
20201         (ifunc-test-modules, ifunc-pie-tests): Define.
20202         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20203         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20204         (test-extras): Likewise.
20205         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20206         $(compile-command.c).
20207         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20208         (all-built-dso): Define.
20209         (check-textrel.out, check-execstack.out): Depend on it.
20210
20211         * configure.in: Don't override --enable-multi-arch.
20212
20213 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20214
20215         [BZ #6812]
20216         * nscd/hstcache.c (tryagain): Define.
20217         (cache_addhst): Return tryagain not notfound for temporary errors.
20218         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20219         failed.
20220
20221 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20222
20223         [BZ #10563]
20224         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20225         to make the syscall.
20226         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20227
20228         [BZ #12378]
20229         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20230         and fall back to matching as normal character if the string ends before
20231         the matching ']' is found.  This is what POSIX requires.
20232         * posix/testfnm.c: Adjust test result.
20233         * posix/globtest.sh: Adjust test result.  Add new test.
20234         * posix/tst-fnmatch.input: Likewise.
20235         * posix/tst-fnmatch2.c: Add new test.
20236
20237 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20238
20239         * elf/Makefile (check-execstack): Revert last change.  Depend on
20240         check-execstack.h.
20241         (check-execstack.h): New target.
20242         (generated): Add check-execstack.h.
20243         * elf/check-execstack.c: Include "check-execstack.h".
20244         (main): Revert last change.
20245         (handle_file): Return zero if GNU_STACK is absent and
20246         DEFAULT_STACK_PERMS doesn't include PF_X.
20247
20248 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20249
20250         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20251         in child fails because the descriptor is already closed.
20252         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20253         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20254         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20255
20256         [BZ #12397]
20257         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20258         syscall.
20259
20260         [BZ #10484]
20261         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20262         temporary buffer used to handle multi lookups locally.
20263         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20264
20265 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20266
20267         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20268         loader is ld.so.
20269
20270 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20271
20272         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20273         alignment for SSE2.
20274
20275 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20276
20277         [BZ #12394]
20278         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20279         characters.  When rounding increased number of integer digits recompute
20280         number of groups.
20281         * stdio-common/tst-grouping.c: New file.
20282         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20283
20284 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20285
20286         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20287         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20288
20289         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20290         void.
20291         * bits/select.h: Likewise.
20292
20293 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20294
20295         * po/ja.po: Update from translation team.
20296
20297 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20298
20299         [BZ #11155]
20300         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20301         implementation just like for lxstat, fxstatat, et al.
20302
20303 2010-12-27  Jim Meyering  <meyering@redhat.com>
20304
20305         [BZ #12348]
20306         * posix/regexec.c (build_trtable): Return failure indication upon
20307         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20308
20309 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20310
20311         [BZ #12201]
20312         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20313         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20314         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20315         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20316
20317         [BZ #12207]
20318         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20319
20320         [BZ #12204]
20321         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20322         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20323
20324 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20325
20326         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20327         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20328         script has SORT_BY_INIT_PRIORITY.
20329         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20330         NO_CTORS_DTORS_SECTIONS is defined.
20331         * elf/soinit.c: Likewise.
20332         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20333         NO_CTORS_DTORS_SECTIONS is defined.
20334         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
20335         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
20336         * sysdeps/sh/init-first.c: Likewise.
20337         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
20338
20339 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
20340
20341         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
20342         always use the slow path.
20343
20344 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
20345
20346         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
20347         similar rule which adds the sysdep directories to the header search in
20348         order to pick up the correct platform stackinfo.h.
20349         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
20350         perform test if it is, otherwise return successfully without testing.
20351         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
20352         DEFAULT_STACK_PERMS define in stackinfo.h.
20353         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
20354         defined in stackinfo.h.
20355         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
20356         DEFAULT_STACK_PERMS defined in stackinfo.h.
20357         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
20358         * sysdeps/ia64/stackinfo.h: Likewise.
20359         * sysdeps/s390/stackinfo.h: Likewise.
20360         * sysdeps/sh/stackinfo.h: Likewise.
20361         * sysdeps/sparc/stackinfo.h: Likewise.
20362         * sysdeps/x86_64/stackinfo.h: Likewise.
20363         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
20364         PF_X for powerpc64.  Retain PF_X for powerpc32.
20365
20366 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
20367
20368         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
20369         accurately.
20370         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
20371         GETDENTS_64BIT_ALIGNED.
20372
20373 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
20374
20375         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
20376
20377 2010-12-10  Andreas Schwab  <schwab@redhat.com>
20378
20379         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
20380         _GNU_SOURCE.
20381
20382         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
20383         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
20384         Remove __restrict.
20385         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
20386         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
20387
20388 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
20389
20390         [BZ #11655]
20391         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
20392         are initialized.
20393
20394 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
20395
20396         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
20397
20398 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
20399
20400         * po/it.po: Update from translation team.
20401
20402 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20403
20404         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
20405         unused codes.
20406
20407 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
20408
20409         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
20410
20411 2010-11-24  Andreas Schwab  <schwab@redhat.com>
20412
20413         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
20414         specially.
20415         (gaih_getanswer_slice): Likewise.
20416
20417 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
20418
20419         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
20420
20421 2010-05-31  Petr Baudis  <pasky@suse.cz>
20422
20423         [BZ #11149]
20424         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
20425         silently even in the chroot mode.
20426
20427 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
20428
20429         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
20430         last patch a bit.  Pretty printing
20431
20432 2010-05-31  Petr Baudis <pasky@suse.cz>
20433
20434         [BZ #10085]
20435         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
20436         initialization of skip_initgroups_dyn.
20437
20438 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
20439
20440         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
20441         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20442
20443 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
20444
20445         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
20446
20447 2010-11-11  Andreas Schwab  <schwab@redhat.com>
20448
20449         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
20450         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
20451         (tst-fnmatch-ENV): Set MALLOC_TRACE.
20452         ($(objpfx)tst-fnmatch-mem): New rule.
20453         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
20454         * posix/tst-fnmatch.c (main): Call mtrace.
20455
20456 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
20457
20458         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20459         Support Intel processor model 6 and model 0x2c.
20460
20461 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
20462
20463         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
20464           signed comparison.
20465
20466 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
20467
20468         [BZ #12205]
20469         * string/test-strncasecmp.c (check_result): New function.
20470         (do_one_test): Use it.
20471         (check1): New function.
20472         (test_main): Use it.
20473         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
20474         Support strcasecmp and strncasecmp.
20475
20476 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
20477
20478         [BZ #12194]
20479         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
20480         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20481
20482 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20483
20484         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
20485         IFUNC support.
20486         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20487         memset-x86-64.
20488         * sysdeps/x86_64/multiarch/bzero.S: New file.
20489         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
20490         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
20491         * sysdeps/x86_64/multiarch/memset.S: New file.
20492         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
20493         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20494         Set bit_Prefer_SSE_for_memop for Intel processors.
20495         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
20496         Define.
20497         (index_Prefer_SSE_for_memop): Define.
20498         (HAS_PREFER_SSE_FOR_MEMOP): Define.
20499
20500 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
20501
20502         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
20503         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
20504
20505 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
20506
20507         [BZ #12191]
20508         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20509         (__x86_64_raw_data_cache_size_half): Likewise.
20510         (__x86_64_raw_shared_cache_size): Likewise.
20511         (__x86_64_raw_shared_cache_size_half): Likewise.
20512
20513         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20514         (__x86_64_raw_data_cache_size_half): Likewise.
20515         (__x86_64_raw_shared_cache_size): Likewise.
20516         (__x86_64_raw_shared_cache_size_half): Likewise.
20517         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
20518         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
20519         and __x86_64_raw_shared_cache_size_half.  Round
20520         __x86_64_data_cache_size_half, __x86_64_data_cache_size
20521         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
20522         to multiple of 256 bytes.
20523
20524 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
20525
20526         [BZ #12167]
20527         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
20528         of inacessible symlinks.  Verify result of symlink before returning it.
20529         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
20530         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
20531
20532 2010-10-28  Erich Ritz  <erichritz@gmail.com>
20533
20534         * math/math.h (isinf): Fix typo in comment.
20535
20536 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
20537
20538         * po/da.po: Update from translation team.
20539
20540 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
20541
20542         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
20543         is added to the list.
20544
20545 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20546             Ulrich Drepper  <drepper@gmail.com>
20547
20548         * elf/dl-object.c (_dl_new_object): Don't append the new object to
20549         the global list here.  Move code to...
20550         (_dl_add_to_namespace_list): ...here.  New function.
20551         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
20552         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
20553         * elf/dl-load.c (lose): Don't remove the element from the list.
20554         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
20555         (_dl_map_object): Likewise.
20556
20557 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
20558
20559         [BZ #12159]
20560         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
20561         into all bytes of SSE register.
20562         Patch by Richard Li <richardpku@gmail.com>.
20563
20564 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
20565
20566         [BZ #12140]
20567         * malloc/malloc.c (_int_free): Fill correct number of bytes when
20568         perturbing.
20569
20570 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
20571
20572         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
20573         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
20574         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
20575         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
20577         submachine.
20578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
20579
20580 2010-10-22  Andreas Schwab  <schwab@redhat.com>
20581
20582         * include/dlfcn.h (__RTLD_SECURE): Define.
20583         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
20584         mode & __RTLD_SECURE instead.
20585         (open_path): Rename preloaded parameter to secure.
20586         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
20587         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
20588         * elf/dl-deps.c (openaux): Likewise.
20589         * elf/rtld.c (struct map_args): Remove is_preloaded.
20590         (map_doit): Don't use it.
20591         (dl_main): Likewise.
20592         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
20593         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
20594
20595 2010-09-09  Andreas Schwab  <schwab@redhat.com>
20596
20597         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
20598         (sysd-rules-targets): Remove duplicates.
20599         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
20600         rtld-%.$o dependency.
20601
20602 2010-10-18  Andreas Schwab  <schwab@redhat.com>
20603
20604         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
20605         _dl_map_object do it.
20606
20607 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
20608
20609         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
20610         fast fma builtins, define the macros in the C99 standard.
20611         (FP_FAST_FMAF): Likewise.
20612         (FP_FAST_FMAL): Likewise.
20613         * sysdeps/x86_64/bits/mathdef.h: Likewise.
20614
20615         * bits/mathdef.h: Update copyright year.
20616         * sysdeps/powerpc/bits/mathdef.h: Likewise.
20617
20618 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20619
20620         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
20621         builtins, define the macros in the C99 standard.
20622         (FP_FAST_FMAF): Likewise.
20623         (FP_FAST_FMAL): Likewise.
20624         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
20625         multiply/add.
20626         (FP_FAST_FMAF): Likewise.
20627
20628 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
20629
20630         [BZ #3268]
20631         * math/libm-test.inc (fma_test): Some new testcases.
20632         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
20633         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
20634         y and infinite z.  Do multiplication by C already in long double.
20635         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
20636         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
20637         y and infinite z.  Do bitwise or of inexact bit into u.d.
20638         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
20639         * sysdeps/i386/fpu/s_fmaf.S: Removed.
20640         * sysdeps/i386/fpu/s_fma.S: Removed.
20641         * sysdeps/i386/fpu/s_fmal.S: Removed.
20642
20643 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
20644
20645         [BZ #3268]
20646         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
20647         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
20648         computation is not scheduled after fetestexcept.  Fix value
20649         of minimum denormal long double.
20650
20651 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
20652
20653         [BZ #3268]
20654         * math/libm-test.inc (fma_test): Add some more tests.
20655         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
20656         correctly.
20657
20658 2010-10-15  Andreas Schwab  <schwab@redhat.com>
20659
20660         * scripts/data/localplt-s390-linux-gnu.data: New file.
20661         * scripts/data/localplt-s390x-linux-gnu.data: New file.
20662
20663 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
20664
20665         [BZ #3268]
20666         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
20667         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
20668         instead of dbl-64.
20669         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
20670         inlines.
20671         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
20672         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
20673         if one of x and y is very large and the other is subnormal.
20674         * sysdeps/s390/fpu/s_fmaf.c: New file.
20675         * sysdeps/s390/fpu/s_fma.c: New file.
20676         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
20677         * sysdeps/powerpc/fpu/s_fma.S: New file.
20678         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
20679         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
20680         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
20681
20682 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
20683
20684         [BZ #3268]
20685         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
20686         fma tests.
20687         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
20688         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
20689         * sysdeps/i386/i686/multiarch/s_fma.c: Include
20690         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
20691         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
20692         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
20693         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
20694
20695 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
20696
20697         [BZ #12078]
20698         * posix/regcomp.c (parse_branch): One more memory leak plugged.
20699         * posix/bug-regex31.input: Add test case.
20700
20701 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20702
20703         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
20704         * posix/bug-regex31.input: New file.
20705
20706         [BZ #12078]
20707         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
20708         (parse_sub_exp): Fix last change, use postorder.
20709
20710         * posix/bug-regex31.c: New file.
20711         * posix/Makefile: Add rules to build and run bug-regex31.
20712
20713         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
20714
20715         [BZ #12078]
20716         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
20717
20718         [BZ #12108]
20719         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20720         to have entries in sys_siglist.
20721
20722         [BZ #12093]
20723         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20724         be NULL.
20725
20726 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20727
20728         [BZ #3268]
20729         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20730         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20731         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20732         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20733         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20734         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20735         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20736         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20737         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20738         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20739         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20740         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20741         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20742         * math/ftestexcept.c (fetestexcept): Likewise.
20743         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20744         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20745         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20746         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20747         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20748         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20749         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20750
20751 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20752
20753         [BZ #12107]
20754         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20755         newline.
20756
20757 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20758
20759         * string/bug-strstr1.c: New file.
20760         * string/Makefile: Add rules to build and run bug-strstr1.
20761
20762 2010-10-05  Eric Blake  <eblake@redhat.com>
20763
20764         [BZ #12092]
20765         * string/str-two-way.h (two_way_long_needle): Always clear memory
20766         when skipping input due to the shift table.
20767
20768 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20769
20770         [BZ #12005]
20771         * malloc/mcheck.c: Handle large requests.
20772
20773         [BZ #12077]
20774         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20775         for strncmp and strncasecmp.
20776         * string/stratcliff.c: Add tests for strcmp and strncmp.
20777         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20778
20779 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20780
20781         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20782         __set_fpscr.
20783
20784 2010-09-30  Andreas Jaeger  <aj@suse.de>
20785
20786         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20787         (CGROUP_SUPER_MAGIC): Define.
20788         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20789         Handle btrfs and cgroup file systems.
20790         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20791         Likewise.
20792
20793 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20794
20795         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20796         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20797
20798 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20799
20800         [BZ #12067]
20801         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20802         trying to locate the ELF header.
20803
20804 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20805
20806         [BZ #11611]
20807         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20808         Mask out sign-bit copies when constructing f_fsid.
20809
20810 2010-09-24  Petr Baudis <pasky@suse.cz>
20811
20812         * debug/stack_chk_fail_local.c: Add missing licence exception.
20813         * debug/warning-nop.c: Likewise.
20814
20815 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20816
20817         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20818         implementing getdents64 using getdents syscall, set d_type if
20819         __ASSUME_GETDENTS32_D_TYPE.
20820
20821 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20822
20823         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20824         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20825
20826 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20827
20828         [BZ #12037]
20829         * posix/unistd.h: Undo change of feature selection for ftruncate from
20830         2010-01-11.
20831
20832 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20833
20834         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20835         detection.
20836
20837 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20838
20839         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20840         fanotify_mark.
20841         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20842
20843 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20844
20845         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20846         variables after CHECK_SP call.
20847         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20848
20849 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20850             Ulrich Drepper  <drepper@redhat.com>
20851
20852         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20853         re-relocationg ld.so.
20854         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20855         _dl_init_paths call.
20856         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20857         here anymore.
20858
20859 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20860
20861         * resolv/res_init.c (__res_vinit): Count the default server we added.
20862
20863 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20864             Ulrich Drepper  <drepper@redhat.com>
20865
20866         [BZ #11968]
20867         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20868         (____longjmp_chk): Use %ebx for saving value across system call.
20869         Add unwind info.
20870
20871 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20872
20873         * manual/Makefile: Don't mix pattern rules with normal rules.
20874
20875 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20876
20877         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20878         operation.
20879         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20880         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20881         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20882         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20883         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20884         Likewise.
20885
20886 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20887
20888         [BZ #11979]
20889         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20890         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20891
20892 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20893
20894         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20895         * sysdeps/x86_64/addmul_1.S: Likewise.
20896         * sysdeps/x86_64/lshift.S: Likewise.
20897         * sysdeps/x86_64/mul_1.S: Likewise.
20898         * sysdeps/x86_64/rshift.S: Likewise.
20899         * sysdeps/x86_64/sub_n.S: Likewise.
20900         * sysdeps/x86_64/submul_1.S: Likewise.
20901
20902 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20903
20904         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20905         Define __sched_param instead of SCHED_* and sched_param when
20906         <bits/sched.h> is included with __need_schedparam defined.
20907         * bits/sched.h [__need_schedparam]
20908         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20909         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20910         (__defined_schedparam): Define to 1.
20911         (__sched_param): New structure, identical to sched_param.
20912         (__need_schedparam): Undefine.
20913
20914 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20915
20916         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20917         (epoll_create1): Declare.
20918
20919         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20920
20921 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20922
20923         [BZ #7066]
20924         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20925         shifting retval into place.
20926
20927 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20928
20929         * nis/rpcsvc/nis.h: Update copyright notice.
20930         * nis/rpcsvc/nis.x: Likewise.
20931         * nis/rpcsvc/nis_callback.h: Likewise.
20932         * nis/rpcsvc/nis_callback.x: Likewise.
20933         * nis/rpcsvc/nis_object.x: Likewise.
20934         * nis/rpcsvc/nis_tags.h: Likewise.
20935         * nis/rpcsvc/yp.h: Likewise.
20936         * nis/rpcsvc/yp.x: Likewise.
20937         * nis/rpcsvc/ypupd.h: Likewise.
20938         * nis/yp_xdr.c: Likewise.
20939         * nis/ypupdate_xdr.c: Likewise.
20940
20941         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20942         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20943         (pmap_getport): Use __libc_rpc_getport.
20944         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20945         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20946         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20947
20948 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20949
20950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20951         fanotify_mark.
20952
20953 2010-08-27  Roland McGrath  <roland@redhat.com>
20954
20955         * sysdeps/i386/i686/multiarch/Makefile
20956         (CFLAGS-varshift.c): New variable.
20957
20958 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20959
20960         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20961         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20962
20963         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20964
20965         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20966
20967 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20968
20969         * sysdeps/x86_64/strlen.S: Unroll the loop.
20970         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20971         strlen-sse2 strlen-sse2-bsf.
20972         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20973         __strlen_no_bsf if bit_Slow_BSF is set.
20974         (__strlen_sse42): Removed.
20975         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20976         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20977
20978 2010-08-25  Roland McGrath  <roland@redhat.com>
20979
20980         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20981         * sysdeps/x86_64/multiarch/varshift.c: New file.
20982         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20983         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20984         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20985         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20986
20987 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20988
20989         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20990         strlen-sse2 strlen-sse2-bsf.
20991         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20992         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20993         (__strlen_sse2): Removed.
20994         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20995         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20996         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20997         bit_Slow_BSF for Atom.
20998         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20999         (index_Slow_BSF): Define.
21000         (HAS_SLOW_BSF): Define.
21001
21002 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21003
21004         [BZ #10851]
21005         * resolv/res_init.c (__res_vinit): When no server address at all
21006         is given default to loopback.
21007
21008 2010-08-24  Roland McGrath  <roland@redhat.com>
21009
21010         * configure.in: Remove config-name.h generation.
21011         * configure: Regenerated.
21012         * config-name.in: File removed.
21013         * scripts/config-uname.sh: New file.
21014         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21015         ($(objdir)config-name.h): New target.
21016
21017         * sunrpc/rpc_parse.h: Avoid nested comment.
21018
21019 2010-08-24  Richard Henderson  <rth@redhat.com>
21020             Ulrich Drepper  <drepper@redhat.com>
21021             H.J. Lu  <hongjiu.lu@intel.com>
21022
21023         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21024         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21025         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21026         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21027         _mm_alignr_epi8 with _mm_loadu_si128.
21028         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21029         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21030         (__m128i_shift_right): Removed.
21031         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21032         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21033         * sysdeps/x86_64/multiarch/varshift.h: New file.
21034         * sysdeps/x86_64/multiarch/varshift.S: New file.
21035
21036 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21037
21038         * configure.in: Move assembler checks to before sysdep dir checking.
21039
21040 2010-08-20  Petr Baudis  <pasky@suse.cz>
21041
21042         * LICENSES: Sync the sunrpc license.
21043
21044 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21045
21046         * sunrpc/auth_des.c: Update copyright notice once again.
21047         * sunrpc/auth_none.c: Likewise.
21048         * sunrpc/auth_unix.c: Likewise.
21049         * sunrpc/authdes_prot.c: Likewise.
21050         * sunrpc/authuxprot.c: Likewise.
21051         * sunrpc/bindrsvprt.c: Likewise.
21052         * sunrpc/clnt_gen.c: Likewise.
21053         * sunrpc/clnt_perr.c: Likewise.
21054         * sunrpc/clnt_raw.c: Likewise.
21055         * sunrpc/clnt_simp.c: Likewise.
21056         * sunrpc/clnt_tcp.c: Likewise.
21057         * sunrpc/clnt_udp.c: Likewise.
21058         * sunrpc/clnt_unix.c: Likewise.
21059         * sunrpc/des_crypt.c: Likewise.
21060         * sunrpc/des_soft.c: Likewise.
21061         * sunrpc/get_myaddr.c: Likewise.
21062         * sunrpc/getrpcport.c: Likewise.
21063         * sunrpc/key_call.c: Likewise.
21064         * sunrpc/key_prot.c: Likewise.
21065         * sunrpc/openchild.c: Likewise.
21066         * sunrpc/pm_getmaps.c: Likewise.
21067         * sunrpc/pm_getport.c: Likewise.
21068         * sunrpc/pmap_clnt.c: Likewise.
21069         * sunrpc/pmap_prot.c: Likewise.
21070         * sunrpc/pmap_prot2.c: Likewise.
21071         * sunrpc/pmap_rmt.c: Likewise.
21072         * sunrpc/rpc/auth.h: Likewise.
21073         * sunrpc/rpc/auth_unix.h: Likewise.
21074         * sunrpc/rpc/clnt.h: Likewise.
21075         * sunrpc/rpc/des_crypt.h: Likewise.
21076         * sunrpc/rpc/key_prot.h: Likewise.
21077         * sunrpc/rpc/netdb.h: Likewise.
21078         * sunrpc/rpc/pmap_clnt.h: Likewise.
21079         * sunrpc/rpc/pmap_prot.h: Likewise.
21080         * sunrpc/rpc/pmap_rmt.h: Likewise.
21081         * sunrpc/rpc/rpc.h: Likewise.
21082         * sunrpc/rpc/rpc_des.h: Likewise.
21083         * sunrpc/rpc/rpc_msg.h: Likewise.
21084         * sunrpc/rpc/svc.h: Likewise.
21085         * sunrpc/rpc/svc_auth.h: Likewise.
21086         * sunrpc/rpc/types.h: Likewise.
21087         * sunrpc/rpc/xdr.h: Likewise.
21088         * sunrpc/rpc_clntout.c: Likewise.
21089         * sunrpc/rpc_cmsg.c: Likewise.
21090         * sunrpc/rpc_common.c: Likewise.
21091         * sunrpc/rpc_cout.c: Likewise.
21092         * sunrpc/rpc_dtable.c: Likewise.
21093         * sunrpc/rpc_hout.c: Likewise.
21094         * sunrpc/rpc_main.c: Likewise.
21095         * sunrpc/rpc_parse.c: Likewise.
21096         * sunrpc/rpc_parse.h: Likewise.
21097         * sunrpc/rpc_prot.c: Likewise.
21098         * sunrpc/rpc_sample.c: Likewise.
21099         * sunrpc/rpc_scan.c: Likewise.
21100         * sunrpc/rpc_scan.h: Likewise.
21101         * sunrpc/rpc_svcout.c: Likewise.
21102         * sunrpc/rpc_tblout.c: Likewise.
21103         * sunrpc/rpc_util.c: Likewise.
21104         * sunrpc/rpc_util.h: Likewise.
21105         * sunrpc/rpcinfo.c: Likewise.
21106         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21107         * sunrpc/rpcsvc/key_prot.x: Likewise.
21108         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21109         * sunrpc/rpcsvc/mount.x: Likewise.
21110         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21111         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21112         * sunrpc/rpcsvc/rex.x: Likewise.
21113         * sunrpc/rpcsvc/rstat.x: Likewise.
21114         * sunrpc/rpcsvc/rusers.x: Likewise.
21115         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21116         * sunrpc/rpcsvc/spray.x: Likewise.
21117         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21118         * sunrpc/rtime.c: Likewise.
21119         * sunrpc/svc.c: Likewise.
21120         * sunrpc/svc_auth.c: Likewise.
21121         * sunrpc/svc_authux.c: Likewise.
21122         * sunrpc/svc_raw.c: Likewise.
21123         * sunrpc/svc_run.c: Likewise.
21124         * sunrpc/svc_simple.c: Likewise.
21125         * sunrpc/svc_tcp.c: Likewise.
21126         * sunrpc/svc_udp.c: Likewise.
21127         * sunrpc/svc_unix.c: Likewise.
21128         * sunrpc/svcauth_des.c: Likewise.
21129         * sunrpc/xcrypt.c: Likewise.
21130         * sunrpc/xdr.c: Likewise.
21131         * sunrpc/xdr_array.c: Likewise.
21132         * sunrpc/xdr_float.c: Likewise.
21133         * sunrpc/xdr_mem.c: Likewise.
21134         * sunrpc/xdr_rec.c: Likewise.
21135         * sunrpc/xdr_ref.c: Likewise.
21136         * sunrpc/xdr_sizeof.c: Likewise.
21137         * sunrpc/xdr_stdio.c: Likewise.
21138
21139         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21140         handling.
21141
21142 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21143
21144         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21145
21146 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21147
21148         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21149         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21150         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21151         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21152         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21153         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21154         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21155         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21156         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21157         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21158         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21159         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21160         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21161         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21162
21163 2010-07-26  Anton Blanchard  <anton@samba.org>
21164
21165         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21166         * malloc/arena.c (heap_trim): Likewise.
21167
21168 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21169
21170         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21171         here.  Not...
21172         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21173         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21174
21175 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21176
21177         * sysdeps/i386/elf/Makefile: New file.
21178
21179 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21180
21181         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21182         from fanotify_init.
21183         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21184         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21185
21186 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21187
21188         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21189         of strncasecmp_l.
21190         * sysdeps/multiarch/strcmp.S: Likewise.
21191
21192 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21193
21194         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21195         strncase_l-nonascii.
21196         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21197         Add strncase_l-ssse3.
21198         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21199         * sysdeps/x86_64/strcmp.S: Likewise.
21200         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21201         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21202         * sysdeps/x86_64/strncase.S: New file.
21203         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21204         * sysdeps/x86_64/strncase_l.S: New file.
21205         * string/Makefile (strop-tests): Add strncasecmp.
21206         * string/test-strncasecmp.c: New file.
21207
21208         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21209         warning.
21210
21211         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21212         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21213
21214 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21215
21216         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21217
21218 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21219
21220         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21221         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21222         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21223
21224 2010-05-01  Alan Modra  <amodra@gmail.com>
21225
21226         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21227         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21228         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21229         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21230         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21231         tidying.  Don't tail-call __sigjmp_save for static lib.
21232         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21233         save location.
21234         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21235         (CALL_MCOUNT): Add eh info, and nop after bl.
21236         (TAIL_CALL_SYSCALL_ERROR): New macro.
21237         (PSEUDO_RET): Use it.
21238         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21239         Correct save location of integer regs and cr.
21240         (_dl_profile_resolve): Correct cr save location.  Delete nops
21241         after bl when SHARED.  Reduce cfi size a little by better
21242         placement of cfi directives.
21243         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21244         make a stack frame.  Instead use parm save area as a temp.
21245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21246         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21248         Don't make a stack frame for parent, use parm save area.
21249         Increase child stack frame to 112 bytes.  Don't save unused reg,
21250         and adjust reg usage.  Set up cfi on error recovery and
21251         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21253         (__makecontext): Add dummy nop after jump to exit.
21254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21255         Use correct parm save area and cr save, reduce stack frame.
21256         Correct cfi for possible PSEUDO_RET frame setup.
21257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21258         Branch to local label emitted by PSEUDO_RET rather than
21259         __syscall_error.
21260
21261 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21262
21263         [BZ #11904]
21264         * locale/programs/locale.c (print_assignment): New function.
21265         (show_locale_vars): Use it.
21266
21267 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21268
21269         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21270         field.
21271         (struct statfs64): Likewise.
21272         (_STATFS_F_FLAGS): Define.
21273         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21274         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21275         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21276         (ST_VALID): Define locally.
21277         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21278         __statvfs_getflags, use the provided value.
21279         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21280         __ASSUME_STATFS_F_FLAGS.
21281
21282         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21283
21284         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21285         Add sys/fanotify.h.
21286         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21287         fanotify_mask for GLIBC_2.13.
21288         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21289         fanotify_init and fanotify_mark.
21290         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21291         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21292
21293         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21294         Add prlimit.
21295         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21296         prlimit64 for GLIBC_2.13.
21297         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21298         prlimit64.
21299         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21300         syscall.
21301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21302         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21303         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21304         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21305         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21306         add prlimit alias.
21307         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21308
21309         [BZ #11903]
21310         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21311         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21312
21313         * nss/Makefile: Add rules to build and run tst-nss-test1.
21314         * shlib-versions: Add entry for libnss_test1.
21315         * nss/nss_test1.c: New file.
21316         * nss/tst-nss-test1.c: New file.
21317
21318         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21319         (__nss_configure_lookup): Set appropriate entry in
21320         __nss_configure_lookup to true.
21321         * nss/nsswitch.h: Define enum with indeces of databases in
21322         databases and __nss_database_custom arrays.  Declare
21323         __nss_database_custom.
21324         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21325         to avoid using nscd when custom rules are installed.
21326         * nss/getXXbyYY_r.c: Likewise.
21327         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21328
21329         * nss/nss_files/files-parse.c: Whitespace fixes.
21330
21331 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21332
21333         [BZ #11883]
21334         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
21335         * posix/fnmatch_loop.c: Likewise.
21336
21337 2010-07-17  Andi Kleen  <ak@linux.intel.com>
21338
21339         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
21340         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
21341         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
21342         * Versions.def [GLIBC_2.13]: Add.
21343
21344 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
21345
21346         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21347         Also fail if tpwd after pwuid call is NULL.
21348
21349 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21350
21351         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
21352         when converting to ms.
21353
21354 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21355
21356         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
21357         EOPNOTSUPP errors with ENOTTY.
21358         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
21359         EOPNOTSUPP errors with ENOTTY.
21360
21361 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
21362
21363         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21364         Add strcasecmp_l-ssse3.
21365         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
21366         strcasecmp.
21367         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
21368         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
21369         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
21370
21371 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
21372
21373         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
21374
21375         * string/Makefile (strop-tests): Add strcasecmp.
21376         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21377         strcasecmp_l-nonascii.
21378         (gen-as-const-headers): Add locale-defines.sym.
21379         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
21380         * sysdeps/x86_64/strcasecmp.S: New file.
21381         * sysdeps/x86_64/strcasecmp_l.S: New file.
21382         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
21383         * sysdeps/x86_64/locale-defines.sym: New file.
21384         * string/test-strcasecmp.c: New file.
21385
21386         * string/test-strcasestr.c: Test both ends of the range of characters.
21387         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
21388
21389 2010-07-29  Roland McGrath  <roland@redhat.com>
21390
21391         [BZ #11856]
21392         * manual/locale.texi (Yes-or-No Questions): Fix example code.
21393
21394 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
21395
21396         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
21397         for ld.so.
21398
21399 2010-07-27  Andreas Schwab  <schwab@redhat.com>
21400
21401         * manual/memory.texi (Malloc Tunable Parameters): Document
21402         M_PERTURB.
21403
21404 2010-07-26  Roland McGrath  <roland@redhat.com>
21405
21406         [BZ #11840]
21407         * configure.in (-fgnu89-inline check): Set and substitute
21408         gnu89_inline, not libc_cv_gnu89_inline.
21409         * configure: Regenerated.
21410         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
21411
21412 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
21413
21414         * string/test-strnlen.c: New file.
21415         * string/Makefile (strop-tests): Add strnlen.
21416         * string/tester.c (test_strnlen): Add a few more test cases.
21417         * string/tst-strlen.c: Better error reporting.
21418
21419         * sysdeps/x86_64/strnlen.S: New file.
21420
21421 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
21422
21423         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
21424         lower-latency instructions.
21425
21426 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
21427
21428         * string/test-strcasestr.c: New file.
21429         * string/test-strstr.c: New file.
21430         * string/Makefile (strop-tests): Add strstr and strcasestr.
21431         * string/str-two-way.h: Don't undefine MAX.
21432         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
21433
21434 2010-07-21  Andreas Schwab  <schwab@redhat.com>
21435
21436         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21437         strcasestr-nonascii.
21438         (CFLAGS-strcasestr-nonascii.c): Define.
21439         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
21440         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
21441         Remove unused attribute.
21442
21443 2010-07-20  Roland McGrath  <roland@redhat.com>
21444
21445         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
21446         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
21447         ld.so.cache was broken.  With it, there is no way to disable dsocaps
21448         like LD_HWCAP_MASK can disable hwcaps.
21449
21450 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21451
21452         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
21453
21454 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
21455
21456         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
21457         call in strcasestr.
21458         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
21459         __strcasestr_sse42_nonascii.
21460         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
21461         strcasestr-nonascii.c.
21462         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
21463
21464 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
21465
21466         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
21467         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
21468         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
21469         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
21470
21471 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
21472
21473         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
21474         fcntl.
21475
21476 2010-07-06  Andreas Schwab  <schwab@redhat.com>
21477
21478         [BZ #11577]
21479         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
21480         dl_signal_cerror.
21481
21482 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
21483
21484         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
21485         _PC_PIPE_BUF using F_GETPIPE_SZ.
21486
21487 2010-07-05  Roland McGrath  <roland@redhat.com>
21488
21489         * manual/arith.texi (Rounding Functions): Fix rint description
21490         implicit in round description.
21491
21492 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
21493
21494         * elf/Makefile: Fix linking for a few tests to make recent linker
21495         happy.
21496
21497 2010-06-30  Andreas Schwab  <schwab@redhat.com>
21498
21499         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
21500         $(common-objpfx)libc_nonshared.a.
21501
21502 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
21503
21504         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
21505         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
21506         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21507         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21508         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
21509         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
21510         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21511         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
21513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
21514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
21515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
21517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
21519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
21520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
21521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
21522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
21524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
21526         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
21527         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
21528         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
21529         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
21530         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
21531         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
21532         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
21533         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
21534         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
21535         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
21536         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
21537         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
21538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
21539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
21540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
21541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
21542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
21543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
21544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
21545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
21546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
21547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
21548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
21549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
21550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
21551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
21552
21553 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21554
21555         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
21556         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
21557         * string/memmove.c (memmove): Renamed to ...
21558         (MEMMOVE): ...this.  Default to memmove.
21559         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
21560         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
21561         (END_CHK): Define.
21562         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21563         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
21564         mempcpy-ssse3-back memmove-ssse3-back.
21565         * sysdeps/x86_64/multiarch/bcopy.S: New file .
21566         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
21567         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
21568         * sysdeps/x86_64/multiarch/memcpy.S: New file.
21569         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
21570         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
21571         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
21572         * sysdeps/x86_64/multiarch/memmove.c: New file.
21573         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
21574         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
21575         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
21576         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
21577         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
21578         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
21579         Define.
21580         (index_Fast_Copy_Backward): Define.
21581         (HAS_ARCH_FEATURE): Define.
21582         (HAS_FAST_REP_STRING): Define.
21583         (HAS_FAST_COPY_BACKWARD): Define.
21584
21585 2010-06-21  Andreas Schwab  <schwab@redhat.com>
21586
21587         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21588         Restore proper fallback handling.
21589
21590 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
21591
21592         [BZ #11701]
21593         * posix/group_member.c (__group_member): Correct checking loop.
21594
21595         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
21596         OOM in getpwuid_r correctly.  Return error number when the caller
21597         should return, otherwise -1.
21598         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
21599         call returning > 0 value.
21600         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
21601
21602 2010-06-07  Andreas Schwab  <schwab@redhat.com>
21603
21604         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
21605         libc_nonshared.a from targets in modules-names.
21606
21607 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
21608
21609         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
21610         requires it.
21611
21612 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
21613
21614         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
21615         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
21616         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
21617         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
21618
21619 2010-06-02  Andreas Schwab  <schwab@redhat.com>
21620
21621         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
21622
21623 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
21624
21625         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
21626         and F_GETPIPE_SZ.
21627         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
21628         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21629         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21630         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21631         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21632         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
21633
21634 2010-06-14  Roland McGrath  <roland@redhat.com>
21635
21636         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
21637
21638 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
21639
21640         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
21641         __REDIRECT followed by __THROW.
21642         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
21643         * posix/getopt.h (getopt): Likewise.
21644
21645 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21646
21647         * hurd/lookup-at.c (__file_name_lookup_at): Accept
21648         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
21649         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
21650         in AT_FLAGS.
21651         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
21652         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
21653
21654 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
21655
21656         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
21657
21658 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
21659
21660         [BZ #11640]
21661         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21662         Properly check family and model.
21663
21664 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
21665
21666         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
21667
21668 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
21669
21670         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
21671
21672 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
21673
21674         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
21675         symbol reference.
21676
21677 2010-05-19  Andreas Schwab  <schwab@redhat.com>
21678
21679         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
21680         symbol reference.
21681
21682 2010-05-21  Andreas Schwab  <schwab@redhat.com>
21683
21684         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
21685         and internal_recvmmsg.
21686         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
21687         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
21688         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
21689         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
21690
21691         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
21692         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
21693         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
21694
21695 2010-05-20  Andreas Schwab  <schwab@redhat.com>
21696
21697         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
21698
21699 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
21700
21701         POWER7 optimizations.
21702         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
21703         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
21704
21705 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
21706
21707         * version.h: Update for 2.13 development version.
21708
21709 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
21710
21711         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
21712         exceptions.  Return 0.
21713
21714 2010-05-07  Roland McGrath  <roland@redhat.com>
21715
21716         * elf/ldconfig.c (main): Add a const.
21717
21718 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
21719
21720         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21721         (args_options): Add no-idn option.
21722         (ahosts_keys_int): Add idn_flags to ai_flags.
21723         (parse_option): Handle 'i' option to clear idn_flags.
21724
21725         * malloc/malloc.c (_int_free): Possible race in the most recently
21726         added check.  Only act on the data if no current modification
21727         happened.
21728
21729 See ChangeLog.17 for earlier changes.